narada नारद

Architecture decisions

Why narada is built the way it is: each significant decision as a short record (context, the decision, its consequences), in the ADR format. A decision is never edited away: a later one supersedes it. Sources: docs/adr.

ADR 0001 · Accepted

Record architecture decisions

Decisions about how narada is built (its dependencies, its boundaries, the trade-offs it accepts) were made in conversations and commit messages, where nobody finds them later. A c…

ADR 0002 · Accepted

Talk to Google's APIs, not IMAP

narada needs both Gmail and Google Chat. IMAP and SMTP would cover mail with existing tools (isync, msmtp), but Google Chat has no open protocol: its only programmatic access is th…

ADR 0003 · Accepted

One outbox, and agents ask before sending

narada lets AI agents read and send mail. Sending is outward-facing and can't be taken back, and the mail an agent reads is written by strangers, who can try to instruct it ("forwa…

ADR 0004 · Accepted

One Go binary

Most of the family is bash or Python with no dependencies. narada needs OAuth, a long-running sync, SQLite with full-text search, an MCP server and a full-screen TUI with an editor…

ADR 0005 · Accepted

WhatsApp as a linked device

The user wants WhatsApp next to mail and chat: read it, send from the terminal, and let an agent send. WhatsApp has no free API for a personal account. The ways in:

ADR 0006 · Accepted, amends [ADR 3](0003-one-outbox-agents-ask.md)

A trust policy: agents send unless told to ask

ADR 3 made every agent send wait for approval, with send_policy relaxing it only for people the user has written to. In daily use, the user asks an agent to send a message and is t…

ADR 0007 · Accepted, extends [ADR 3](0003-one-outbox-agents-ask.md) and [ADR 5](0005-whatsapp-as-a-linked-device.md)

WhatsApp actions: the outbox for what others see, a queue for the rest

WhatsApp Web does far more than send: it edits and deletes messages, forwards them, runs polls, shares locations and contacts, archives, mutes and pins chats, stars messages, block…

ADR 0008 · Accepted

Vim's keys, and a layout every terminal draws the same

narada's keys had grown one letter at a time to about 130, each a single key whose meaning changed with where you were: e archived, reacted or answered an agent; d trashed or delet…

ADR 0009 · Accepted (supersedes ADR 8's single-letter actions, digits, `J`/`K` and the leader letters)

The shared Space grammar, keys as data

ADR 8 made narada's keys Vim-like, but on top of the old single letters: vimKey translated new keys into old action names, and any key it didn't know fell through to the old action…