One inbox for the questions all your coding agents ask you. An agent posts a card and keeps working. You answer in one place, and the answer goes back to that session within a second.
With 100 sessions open, a question waits in whichever terminal asked it, and you find it late or never. Your Attention puts every question on one queue, sorted by priority, one card at a time. Each card shows whether its agent is listening, busy or offline, and where your answer is: stored, delivered, or read by the model. An answer to an offline agent waits until its session resumes.
Claude Code and pi post cards through tools, and herdr turns any blocked agent into a card. A card can draw Mermaid diagrams, such as a flowchart of the choice on the card. A click copies a command or an approval sentence that the agent wrote as code. A diagram that doesn't parse goes back to the agent with mermaid's error. Your own inbox refuses it when the agent posts the card. On the hosted inbox, the agent's client checks it first, and the page sends back any card that skipped that check. To request a key, the agent places the secret widget, key = widget secret {"name": "OLLAMA_API_KEY"}, beside the card's other questions. Your browser encrypts the key for that session, and each command the session runs gets it as $OLLAMA_API_KEY, while the model sees only the name. Each new client pairs with a code you confirm.
PRINCIPLES.md states the design and SPEC.md the protocol.
These steps take a machine with only a coding harness on it to a full setup. A coding agent can run them for you. Steps marked (optional) add a feature, and you can skip them.
- Check what you need.
- Choose a home for the inbox.
- Install the command.
- Start or open your inbox.
- Connect your agents.
- Open the inbox on your phone (optional).
- Node 22.18 or later. The
your-attentioncommand runs on it. Check withnode --version. - git, to get the code.
- A coding harness, such as Claude Code, pi, or any agent that herdr runs. Your agents post cards from it.
- A browser. The inbox is a web page. Diagrams need a browser that parses ES2022, as Safari 16.4, Chrome 94 and Firefox 93 do, and a few kinds of diagram also call
Object.groupBy, which Safari 17.4, Chrome 117 and Firefox 119 added, so a browser between the two shows those diagrams' source instead of the drawing.
The inbox is one server that holds your cards. Pick one place for it:
| Where | What you get | Choose it when |
|---|---|---|
| On your own computer | Unlimited and free, without an account. Agents on the same machine find it on their own. It stops when that computer sleeps. | You work from one machine. This is the default. |
| Your own Cloudflare inbox | Always on, reachable from any machine and your phone. You deploy it to your own Cloudflare account. | You run agents on several machines, and want to own the deployment. See Run your own cloud inbox. |
| A hosted inbox | Always on, with no deployment. Someone who runs the service gives you an invite code. Each inbox has limits. | Someone already runs the service for you. |
The rest of this README calls the first choice your own inbox. You can change your mind later. Each machine pairs with one inbox at a time.
Agents talk to the inbox through the your-attention command, so you install it wherever an agent runs.
git clone https://github.com/elecnix/your-attention ~/Source/your-attention
cd ~/Source/your-attention && npm ci && npm link
your-attention --helpEach command answers --help or -h with its usage and options, and your-attention help <command> prints the same text. A wrong option or argument prints one line that says what's wrong, then the command's usage, and the command exits with status 2.
npm link puts your-attention on your path. To update later, run git pull && npm ci in the same folder.
The package is also on npm, and npm install -g your-attention works. The published tarball contains the same sources compiled into dist/, because Node refuses to strip TypeScript types in anything under node_modules. A checkout runs the sources directly, with no build step.
On your own computer:
your-attention start # runs the inbox in the background, on port 4815
your-attention open # opens the inbox page, signed in
your-attention open --link # prints a one-time sign-in link, for a private window or another browserThe inbox keeps its files in ~/.your-attention. Set YOUR_ATTENTION_HOME to move them.
The PIN is optional. Your own inbox, used by one person, works fine without it. In a terminal, start and serve offer to set it while the inbox has none: type y and the PIN twice, s to skip until the next start, or n to stop asking. A service started at login has no terminal, so it never asks.
To start the inbox at login, and to have it restart when it stops, install it as a service. The command writes a launchd agent on macOS, or a systemd unit on Linux, and prints the unit instead when you leave out --write.
your-attention service serve --write
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/dev.your-attention.serve.plist # macOS
systemctl --user enable --now your-attention-serve # LinuxLoad the unit into the domain of the desktop session, gui/$(id -u) on macOS. A unit that an SSH login loads runs in the background domain and ends with that shell. FileVault asks for a login at every boot, which creates the desktop domain, so the inbox returns with that login.
The unit sets the PATH of the shell that wrote it, and YOUR_ATTENTION_HOME and HERDR_BIN_PATH when that shell defines them. launchd and systemd give a unit a short PATH of their own, which finds neither herdr for an approval nor the programs a secret source runs, so write the unit from the shell that has them.
On a hosted inbox:
- Open the address you got with your invite code. Enter the code and a 4-digit PIN, then select Create my inbox. Leave the PIN empty to skip it for now, or tick Never ask me for a PIN.
- The page opens your inbox, signed in. Bookmark that address, and keep it private. You type the PIN in each new tab.
- Pair each machine that runs agents, as step 5 shows.
The address alone does not sign a browser in. What opens a cloud inbox is an owner token kept in the browser's cookie, and the link that creates that cookie works once, within five minutes. Keep that browser signed in. When no browser holds the cookie, the page lists sign-in steps that each need a browser already signed in, and a machine paired as an agent cannot make a sign-in code.
Keep a second way in. From a signed-in page, tap the phone button and use the code on your phone. Or pair a computer as owner while a page has you signed in. That saves an owner token in owner.json, and your-attention open then signs that computer's browser in from a terminal.
With neither, make a new inbox. The cards in the old one remain in a place nobody can open.
On your own Cloudflare inbox: deploy it first, as Run your own cloud inbox shows. Then pair each machine, as step 5 shows.
Do the parts for the harnesses you use.
Add the channel server once. It gives every session the card tools, and brings your answers into the session as they arrive.
claude mcp add -s user your-attention -- your-attention claude-channelClaude Code loads a channel only from a launch flag. Start each session with it, and confirm the development-channel warning that Claude Code shows:
claude --dangerously-load-development-channels=server:your-attentionKeep the = form: the flag takes a list, and would read a prompt after it as a second server.
A shell function that adds the flag (optional). It adds the flag to interactive starts, and leaves subcommands and --print alone. Put it in ~/.bashrc or ~/.zshrc:
claude() {
case "${1:-}" in
-p|--print|mcp|config|doctor|update|install|plugin|setup-token|migrate-installer|--version|-v|--help|-h) command claude "$@" ;;
*) command claude --dangerously-load-development-channels=server:your-attention "$@" ;;
esac
}Questions from AskUserQuestion as cards (optional). Add these hooks to ~/.claude/settings.json, next to any hooks you already have. Answer in either place. Your terminal answer closes the card, and a card answer goes to the session. In herdr, the terminal dialog closes too. When you cancel the dialog, or the session moves on without an answer, ask-cancel closes the card.
{ "hooks": {
"PreToolUse": [{ "matcher": "AskUserQuestion", "hooks": [{ "type": "command", "command": "your-attention claude-hook ask-pre", "timeout": 10 }] }],
"PostToolUse": [{ "matcher": "AskUserQuestion", "hooks": [{ "type": "command", "command": "your-attention claude-hook ask-post", "timeout": 10 }] }],
"PostToolUseFailure": [{ "matcher": "AskUserQuestion", "hooks": [{ "type": "command", "command": "your-attention claude-hook ask-cancel", "timeout": 10 }] }],
"PermissionDenied": [{ "matcher": "AskUserQuestion", "hooks": [{ "type": "command", "command": "your-attention claude-hook ask-cancel", "timeout": 10 }] }],
"UserPromptSubmit": [{ "hooks": [{ "type": "command", "command": "your-attention claude-hook ask-cancel", "timeout": 10 }] }],
"SessionEnd": [{ "hooks": [{ "type": "command", "command": "your-attention claude-hook ask-cancel", "timeout": 10 }] }]
} }Secrets in Bash commands (optional). When the person grants a secret on a card, the channel keeps it in memory, and these hooks give each Bash command the variable and mask the value in the output of every tool. Without them, a session that receives a grant can't use it.
{ "hooks": {
"PreToolUse": [{ "matcher": "Bash", "hooks": [{ "type": "command", "command": "your-attention claude-hook secret-pre", "timeout": 10 }] }],
"PostToolUse": [{ "matcher": "*", "hooks": [{ "type": "command", "command": "your-attention claude-hook secret-post", "timeout": 10 }] }]
} }Install the plugin instead (one step). The plugin adds the channel server, the AskUserQuestion hooks, the Bash hooks for secrets and the Stop hook together. It runs the CLI already on your PATH, and falls back to the package version this plugin pins.
Inside a session:
/plugin install your-attention --marketplace elecnix/claude-plugins
From a shell, the same install:
claude plugin install your-attention --marketplace elecnix/claude-pluginsThe channel still needs the launch flag, and the plugin names it:
claude --dangerously-load-development-channels=plugin:your-attention@elecnix-pluginsRemove the claude mcp add server and the hooks above once the plugin is installed, so you answer each question once. The plugin records the turn end as well. Remove the optional Stop hook below if you added it. If you added the shell wrapper, point its flag at plugin:your-attention@elecnix-plugins too. Otherwise the flag references a server you removed, so the channel never loads.
A card from a session that goes inactive without one (optional, off until asked for). This hook records when the session's turn ends, and never blocks the stop. When the inbox's rule covers the session and none of its cards is open, the channel sends the session a request for a card at 2, 5 and 10 minutes of inactivity, counted from that moment, and names the card_post call to make. The rule's delays sets those minutes. The person typing a prompt, an answer or a card arriving through the channel, a card tool call, and a card of the session's own all cancel the asks still to come. Whether the session gets asked comes from the inbox, not the environment, so turning it on reaches a session that is already running. A session turns it on with settings {"scope": "self", "on": true}, and a proposal that would apply to all agents waits for the person's approval on a card. YOUR_ATTENTION_REQUIRE_CARD stays as a per-session override: 1 asks on the default schedule and any other value stops the ask, and that decision stands in place of the inbox for as long as the session runs. A background agent gets neither. Set the variable at the agent's start rather than in a startup file, since a launcher that starts a non-interactive harness leaves it out.
The plugin installs this hook already. Add it by hand only when you set up Claude Code without the plugin.
{ "hooks": {
"Stop": [{ "hooks": [{ "type": "command", "command": "your-attention claude-hook turn-end", "timeout": 10 }] }]
} }pi install git:github.com/elecnix/your-attentionA session's cards can take default tags, such as the repository and the topic. Start pi through the launcher, which sets YOUR_ATTENTION_TAGS and passes the rest of the command to pi unchanged:
your-attention pi --tags repo=acme/api,topic=billing -- [pi args]Every card the session posts inherits them, under the tags on the card itself. The agent reads or changes them with the card_tags tool, so a compaction loses nothing.
When a run settles and none of the session's cards is open, the session gets asked for a card at 2, 5 and 10 minutes of inactivity, counted from when the run settled, once the inbox's rule covers it. Any run that the request did not start cancels the asks still to come, and so does a card of its own. A session turns the rule on with settings {"scope": "self", "on": true}, and a proposal that would apply to all agents waits for the person's approval on a card. The extension sends the request as a user message. The rule's delays holds the minutes, and an empty list turns the requests off. YOUR_ATTENTION_REQUIRE_CARD=1 in the session's environment asks anyway on the default schedule and any other value stops the ask, and that decision stands in place of the inbox for as long as the session runs. A background agent gets neither, so set the variable at the agent's start rather than in a startup file.
Write the plugin file once. It gives every session the card tools, and brings each answer into its session as a new message. A message that arrives while the agent works waits for the turn to end.
your-attention opencode-plugin --writeThe file goes in ~/.config/opencode/plugin/, or under $XDG_CONFIG_HOME when you set it, and OpenCode loads it at its next start. It loads the plugin from this checkout, so keep the checkout where it is. Run the command without --write to see the file first.
The sidecar posts a card when any herdr agent waits for you, whatever its harness. When the agent shows numbered choices, such as a permission prompt, you pick one on the card, and the sidecar presses it in that agent's pane. It first checks that the same prompt still waits there.
your-attention herdr-blocked &A machine whose inbox runs elsewhere pairs once:
- Run
your-attention pair <inbox address>on that machine. It prints a six-digit code. - A card with a code appears in your inbox. Approve it only when the code matches.
- The machine saves its token in
~/.your-attention/client.json, and its agents use that inbox from then on.
For a hosted inbox, the address is the one you bookmarked, such as https://app.example.workers.dev/i/<inbox id>. On your network, your-attention discover lists the inboxes that computers on it run, with their addresses.
your-attention discover
your-attention pair http://<host>:4815To pair a front-end that answers cards instead of an agent, add --role owner. The machine saves that token in ~/.your-attention/owner.json, beside its agent pairing, so its agents keep their own token. A machine paired as owner signs a browser in with your-attention open, and opens your-attention tui. It also runs the pin commands against a hosted inbox, such as your-attention pin reset for a forgotten PIN. Its token works without the PIN, so pair a machine as owner only while you sit at it.
Triage reads each new card and sends back one that lacks a goal, options, evidence or a recommendation. It uses your own OpenRouter account, or runs a coding harness in print mode:
your-attention triage login # once, for OpenRouter
your-attention service triage --write # a launchd or systemd unit, loaded as step 4 shows
your-attention triage --judge-cmd "claude -p" # or a harness insteadA card that specifies a pull request waits for your answer while that pull request can still break. The watcher runs a gh monitor watch on each pull request a waiting card specifies, and sends the card back to its agent, with the change, as soon as the pull request conflicts with its base or starts failing a check its ruleset requires. Answering or closing the card ends the watch.
your-attention service pr-watch --write # a launchd or systemd unit, loaded as step 4 shows
your-attention pr-watch --name pr-watch # or run it in a terminalIt reads the same inbox a triage service does, through an extension token.
Agents that can't reach the computer that runs your inbox connect through a bridge, an SSH tunnel or a relay:
your-attention bridge --upstream https://inbox.example
your-attention offer ssh build-box
YOUR_ATTENTION_RELAY_KEY=... your-attention serve --relay https://relay.exampleSelect the phone button, left of the GitHub mark, and scan the QR code with the phone camera. The phone opens the inbox, signed in with its own token. The code works once, for five minutes, so keep it to yourself.
If the camera opens the wrong browser, select Copy the sign-in link in the dialog, send the link to the phone, and open it in the browser you want. The link is the one in the QR code, so it also works once, within five minutes. The dialog gets a new link before the old one expires, so copy it again after it changes.
The dialog also shows a short code, such as K7QM-3XTP. Type it, or paste the sign-in link, in the Sign-in code or link field of the sign-in page. A Home Screen app signs in this way, since it has no address bar. The devices button, left of the phone button, lists every key to the inbox and signs one out, so a phone you lost ends without touching the others.
A cloud inbox works from anywhere, and your own inbox works from a phone on the same network. Your own inbox listens on every network interface, IPv4 and IPv6, by default. Its QR code opens your computer's .local name, such as http://my-computer.local:4815, and the dialog also gives an IP address, for a phone that cannot open .local names.
If the phone cannot open the inbox, check for a VPN on the computer that runs the inbox. A VPN that sends your home network's IPv4 traffic into its tunnel breaks every connection from the phone to that computer over IPv4. The inbox still answers over IPv6, which most home networks and phones use. Otherwise, exclude your home network from the VPN, or use a cloud inbox.
Your phone can buzz when an agent posts a card, even with the page closed. This is Web Push. It works on an https address only, so the inbox page must come from one of these:
- the hosted inbox, which is https already;
- your own inbox behind an https relay:
your-attention serve --relay https://relay.example, as in step 5; - your own inbox at
http://localhost, for notifications on the computer that runs it.
Your own inbox opened over plain http, such as http://my-computer.local:4815 from a phone, cannot send them. Its Notify me switch stays greyed out and says "needs an https address".
Android, or a computer:
- Open the https inbox in Chrome, Edge, Firefox or Safari, signed in. An app installed from Chrome on Android shares Chrome's sign-in, so signing in Chrome signs it in. If it shows the sign-in page, type the phone dialog's short code there.
- Turn on Notify me, and allow notifications when the browser asks.
iPhone or iPad (iOS 16.4 or newer):
- Open the https inbox in Safari.
- Tap Share, then Add to Home Screen.
- Open Your Attention from the new Home Screen icon, not from Safari. The Home Screen app keeps its own sign-in, apart from Safari's, so it shows the sign-in page even after you sign Safari in. On a signed-in page, open the phone button, then type its short code in the app's Sign-in code or link field, or paste its sign-in link there.
- Turn on Notify me, and tap Allow.
Before step 3, the switch on an iPhone is grey and says "add this page to your Home Screen first". If you tap Don't Allow, it says "the browser blocks notifications". Change that in the phone's Settings.
The notification shows the card's title, and a tap opens the inbox on that card. The inbox encrypts the title for your device before it sends it. The push service of your browser maker (Apple, Google or Mozilla) carries the message and cannot read it, but it sees that your inbox messaged your device, and when. A PIN does not hide the title on a locked phone screen, so turn Notify me off on a phone you share.
The rules match the page's own notifications. A card in a group you collapsed does not push, unless its priority is the highest level. Each device keeps its own switch. Turn it off to stop that device, or sign the device out under the devices button. The inbox drops a device that the push service forgot. Open the page with the switch on, and it saves the device again.
Answer cards on the inbox page. Each answer reaches its agent within a second, or when its session resumes.
An agent's recommendation shows inside the option it recommends, under a Recommended tag, so you read the pick once. The agent marks that option with recommended: true, or starts its recommendation with the option's label, as in "Go ahead. The key is read-only." A recommendation that matches no option keeps its own box above the options.
your-attention status # the inbox on this machine, its files, and this machine's pairings
your-attention clear # clears the cards you answered or that closed; search finds them for 30 days
your-attention reset --yes # removes every card, answer and file; tokens and templates stay
your-attention login-url # prints a sign-in link that works once, within 5 minutes
your-attention stop # stops the inbox, or its launchd or systemd serviceA card can link a file on the agent's computer with a file: address, such as file:///Users/me/report.html. On your own inbox, a click opens the file in a new tab, when the card came from the same computer. The inbox serves only files that the card's text or recommendation contains, to the owner only, and a served HTML file can't run scripts. A cloud inbox, and a card from another computer, show the path as code.
The inbox deletes a cleared card 30 days after you clear it. It also deletes a card nobody answered 30 days after its agent last changed it, even a card that still waits for you. Each deletion takes the answer and the files with the card. An answered card you haven't cleared stays.
clear, reset and stop act on the inbox this machine runs. login-url and open sign in to that inbox, or, on a machine that runs none, to the inbox it paired with as owner, such as a cloud inbox: your-attention pair <url> --role owner.
your-attention status says what runs here before you start or stop anything: whether the inbox on this machine answers, its address, pid, inbox id, PIN and usage setting, the home directory with its database, token files, service and log, the inboxes this machine paired with, whether each address is reachable and whether each token is approved or rejected, and YOUR_ATTENTION_URL or YOUR_ATTENTION_TOKEN when they are set, since they win over the files. It prints the names of the token files and of those two variables, never their contents, so a secret stays out of the scrollback.
your-attention tui shows the inbox full screen in a terminal, beside your agents in herdr, tmux or any terminal tab. The card list is on the left, in the page's sections and order. The open card is on the right, with its text, the recommendation, its files and its form. The recommended option shows the same tag and recommendation as on the page. Your answer goes to the agent with the same values the page would send.
your-attention tui # the inbox on this machine, as its owner
your-attention tui --mono # no colors
your-attention tui --ascii # ASCII symbols and borders, for a terminal without UnicodeLike the other commands, the client reads YOUR_ATTENTION_URL and YOUR_ATTENTION_TOKEN first. Without them, it uses a pairing made with your-attention pair <url> --role owner, then the inbox this machine runs, with its owner-token file. For an inbox with a PIN, the client prompts for the PIN when the token needs it, as a sign-in link's token does. The owner-token file and an owner pairing open the inbox without it.
| Key | In the list | In the card |
|---|---|---|
Up, Down, j, k |
open the card above or below | move between fields, or inside a choice |
| Enter, Right, Tab | move into the card | pick a choice, press a button |
| Space | move into the card | pick a choice or tick a box |
| Tab, Shift+Tab | move into the card | the next or previous field, button or link |
| Esc | back to the list | |
| PgUp, PgDn | ten cards up or down | scroll the card |
| Ctrl+Enter, Ctrl+S | send the answer | send the answer |
| Ctrl+N | skip for now | skip for now |
d |
dismiss without telling the agent | dismiss without telling the agent |
g |
group by nothing, priority, agent, last modified or a tag | |
p |
pin the open card's value of the tag you group by | |
C |
clear the answered and closed cards | |
o |
open the card in the browser | |
?, q, Ctrl+C |
help, quit, quit | Ctrl+C quits |
On a card that is still loading, Enter waits and shows "Loading the card…". The client moves into the card once it loads, unless you pick another card first.
Ctrl+Enter needs a terminal that reports it, such as iTerm2, Ghostty, cmux, kitty or WezTerm, and tmux with extended-keys on. Ctrl+S works in every terminal. In a text field, letters type text, and the Ctrl keys still work.
A click opens a card or presses a button. In a form, a click picks a choice, ticks a box or puts the cursor in a text field. The wheel scrolls the pane under the pointer. A click on a herdr session link opens that session in herdr, as on the page. A click on any other link opens it in the browser.
Color is never the only sign. Each state has a symbol of its own: ● waits for you and ◉ is the card on screen. In the Outbox and Sent sections, ○ means the inbox stored your answer, ◑ that the agent got it, ✓ that the model read it, and × that the card closed. Each waiting card shows its priority level in words, such as now or soon, beside the level's color. The card on screen has a marker, ▶, and inverse video while the list has the keys. Set NO_COLOR=1 or pass --mono for no colors at all, and pass --ascii, or set YOUR_ATTENTION_TUI_ASCII=1, for symbols such as *, @ and >. YOUR_ATTENTION_TUI_COLOR forces a color depth: mono, 16, 256 or truecolor.
The client works in iTerm2, cmux, Apple Terminal, tmux and herdr panes, and Linux terminals. From 60 columns it shows the list beside the card, and below that one pane at a time. A card part that a terminal can't draw, such as a chart or an HTML card, shows a line with the card's address on the page. On a laptop, the first frame of an inbox with 200 cards appears about 130 ms after the command starts. YOUR_ATTENTION_TUI_TRACE=<file> writes that time to the file, then one line for each frame and one for each state the client shows. A state's line records the ids of the cards that arrived with it and the Group by in force when the client applied it, so a test tells a screen that lagged apart from a state the client never received.
your-attention watch keeps one agent stream open and prints each event it receives as one line of JSON, so a script reads the answers without a front-end. The fields are the ones SPEC.md defines for the agent stream, with receivedAt added: the time this process read the event. The command adds receivedAt and leaves the other fields as the inbox wrote them. Output is line-delimited JSON, so jq reads it as it arrives. A beat, the frame that shows the stream answering, never becomes a line, so a quiet inbox writes only the answers that arrive.
your-attention watch --agent cli:deploy | jq -r 'select(.type == "answer") | .answer.values.choice'
your-attention watch --no-card # the answer and its receipt, without the card
your-attention watch --select id,title,status # only these fields of the card
your-attention watch --agent cli:deploy --ack # marks each answer read, as the answering session does
your-attention ack <card> # marks one answer read, when the script took it another wayWithout --ack a watcher leaves the answer unread, and the card waits in the page's outbox until something says it read it. your-attention ack <card> is that word, for a script that reads answers another way, and for one that keeps a card to read later.
A watcher receives the answers to cards that this machine's token posted as the agent it names, so it pairs with your-attention post --agent cli:deploy: a script that posts cards and watches them gets each answer as it arrives. Cards that other sessions post stay on the page and in your-attention tui. The watcher reconnects by itself with one instance id, so a restarted inbox or a dropped socket keeps every answer queued and delivers each one once, and a hello line marks each connection or reconnection.
The inbox reports an answer as read only when something acknowledges it, so --ack is off by default. A watcher that acknowledged every answer would mark read what the session waiting for it has not seen.
--role owner follows every card in the inbox, as the page does, so one process can wake an orchestrator on any card or forward each new card to a notifier. It uses the owner token of the inbox on this machine, or the pairing from your-attention pair <url> --role owner, and works with your own inbox and the hosted one. Each change to a card prints one change line with the whole card, its answer and its state, such as open, answered or closed. --agent keeps one agent's cards, and --type keeps the event types it lists, with either role. --ack stays with the agent role: only the token that posted a card may mark its answer read.
your-attention watch --role owner | jq -c 'select(.type == "change" and .state == "answered")'
your-attention watch --role owner --agent claude:deploy --select id,title
your-attention watch --role owner --type change --no-card # the card id, state and answer onlyAn owner watcher sees every card and every answer. Its token is an owner token, in a file with mode 0600. Pair the machine as owner only when it is yours, and sign it out from the devices button on the page to end its access.
An agent that only runs when something calls it, such as a hosted bot or a CI job, can get its answers at a webhook instead of running watch:
your-attention subscribe --agent cli:deploy --webhook https://example.com/hooks/abc --header-file ~/.config/deploy-hook-headers
your-attention unsubscribe --agent cli:deployThe inbox shows the request to you as a card with the address and the header names. The inbox calls the webhook only after you approve it there, and changing your answer to Deny later stops it. Once you approve, the inbox POSTs each answer to a card of that agent, from the same token, in the format of an agent stream event. It tries again with a growing wait until the webhook answers 2xx, and that answer marks it read. Write a secret header as a NAME: VALUE line in a file of mode 0600, and pass that file with --header-file. With --header-file - the headers come from stdin. Keep --header 'NAME: VALUE' for the rest, since ps shows command-line arguments to every user of the machine. An address with a secret in its path goes in a file too, with --webhook-file. subscribe prints the secret that signs each call, once. your-attention status lists the webhooks. SPEC.md, "Answer webhooks", has the details.
An answer on a card goes straight into a coding agent's session. Someone who gets the inbox address or a sign-in link, from a bookmark, the browser history or a pasted message, could open the page and answer as you. A 4-digit PIN stops that: the address or link signs a browser in, and each new tab must also type the PIN before it shows a card or takes an answer.
The PIN is optional. Set one when other machines on your network can open the inbox, and when you would mind a sign-in link kept in a browser history.
your-attention pin status # whether the inbox has a PIN, and any lockout
your-attention pin set # sets a PIN, typed twice and hidden
your-attention pin reset # replaces a forgotten PIN without the old one, and lifts a lockout
your-attention pin clear # removes the PINThe PIN commands act on the inbox this machine runs, with its owner-token file, or on the inbox this machine paired with as owner. On the page, the buttons below the card list change the PIN, which needs the current one, and lock the tab.
- Closing the tab locks the inbox again. A tab also locks after 12 hours without a request, and every tab locks when the PIN changes.
- After 5 wrong PINs, the page waits 1 minute before the next try. Each later lockout doubles the wait, up to a day.
your-attention pin resetlifts the lockout from the computer that runs the inbox. - The PIN never leaves your browser or terminal. The page and the CLI derive a key from it with a slow salted hash, and the inbox stores a hash of that key. Nobody can read the PIN back, including you.
- Without a PIN, the page offers to set one each time it opens. Skip asks again next time, and Never ask again stops the offer for that inbox.
A passkey opens a tab instead of the PIN, after your fingerprint, your face or the touch of a security key. Select Passkeys below the card list, type the current PIN, and select Add a passkey: that browser's authenticator makes a credential whose private key never leaves the device. From then on, every new tab at this address shows Use a passkey beside the PIN field, on every browser that enrolled one. Select Remove there to take one out, and its device types the PIN again.
The PIN stays the fallback. A device can be lost, and a browser may have no authenticator. A phone at a plain http:// address on your network has no WebAuthn either. A passkey then opens nothing, and the PIN still does. The page offers one at http://localhost and at any https address, which are the addresses where a browser runs WebAuthn, and never at an IP address such as http://192.168.2.40:4815. Enrolling needs an unlocked tab and the current PIN, so a ya_token cookie copied out of a browser plants no passkey. Removing the PIN removes every passkey with it, and your-attention pin reset leaves them in place.
The PIN guards the page and every sign-in link. Agents and their tokens, and the owner-token file on the computer that runs the inbox, work without it. A PIN does not protect the inbox from someone who can read files on that computer, or from a person who watches you type it. A 4-digit PIN has 10,000 values, so the wait after wrong tries is what stops a guesser. After about 60 tries in the first day and a half, a guesser gets 5 tries a day.
Your own inbox sends nothing unless you turn usage counts on. The first start in a terminal asks once, and the inbox page offers them until you pick. When on, the inbox sends the maintainers one anonymous report a day. It counts cards posted and answered, pairing requests, page opens, and how many agents, agent processes and tokens connected, with a random install id. It never sends card text, answers, agent names, paths, host names, addresses or anything else that says who you are.
your-attention telemetry status # on or off, where reports go, and the install id
your-attention telemetry on # turns anonymous reports on
your-attention telemetry show # prints the next report
your-attention telemetry off # turns reports off and deletes the days not yet sent
your-attention telemetry reset-id # picks a new random install idDO_NOT_TRACK=1 or YOUR_ATTENTION_TELEMETRY=off keeps reports off whatever the setting says, and YOUR_ATTENTION_TELEMETRY_DEBUG=1 prints each report to stderr in place of sending it.
The hosted service always sends the same counts, with an id made from the invite code that created the inbox, and has no off switch. Its landing page and the inbox page say so. To keep the counts to yourself, run your own inbox. SPEC.md lists every field.
The Cloudflare build runs the same inbox on Workers. Each inbox is one Durable Object that sleeps when idle. Choose a mode when you deploy:
- single serves one inbox, yours, at the root address.
- hosted serves many inboxes. Each person creates one with an invite code you give out.
You need a Cloudflare account with R2 turned on once in the dashboard, a workers.dev subdomain, Terraform, and the GitHub CLI.
-
Create the KV namespace, the R2 bucket, its 30-day expiry rule, and a deploy token that can change Workers only. The state file contains that token, so it stays outside the repo:
export CLOUDFLARE_API_TOKEN=... # an account token that can create tokens, KV and R2 terraform -chdir=cloudflare init -backend-config="path=$HOME/.your-attention/cloudflare.tfstate" terraform -chdir=cloudflare apply -var account_id=<account id>
-
Put the outputs in the repo's
cloudflareenvironment:terraform -chdir=cloudflare output -raw deploy_token | gh secret set CLOUDFLARE_API_TOKEN --env cloudflare gh variable set KV_NAMESPACE_ID --env cloudflare --body "$(terraform -chdir=cloudflare output -raw kv_namespace_id)" gh secret set CLOUDFLARE_ACCOUNT_ID --env cloudflare --body "<account id>"
-
Add the secret for your mode:
- Single mode needs
OWNER_TOKEN, your owner token. It is 12 hex digits, a dot, and 64 hex digits:echo "$(openssl rand -hex 6).$(openssl rand -hex 32)" | gh secret set OWNER_TOKEN --env cloudflare. Keep a copy: you sign in with it. - Hosted mode needs
INBOX_ID_SECRET, which signs inbox addresses:openssl rand -hex 32 | gh secret set INBOX_ID_SECRET --env cloudflare. Changing it later makes every inbox address invalid.
- Single mode needs
-
Run the
deploy-cloudflareworkflow from the Actions tab, and pick the mode. The mode has no default, and the run refuseschoose. It also refusessinglein an environment that hasINBOX_ID_SECRET, because a single-mode Worker answers 404 at every hosted inbox address. Both checks run before anything uploads. The Worker is namedapp, so it answers athttps://app.<subdomain>.workers.dev.The same run deploys the telemetry Worker first, which takes the anonymous daily counts that people's own inboxes send. It uses the same credentials as the inbox and answers at
https://telemetry.<subdomain>.workers.dev. Deploy both with:gh workflow run deploy-cloudflare -f mode=hosted
A hosted run ends by asking the site it deployed: it signs a fresh inbox address with the same secret the Worker checks, then requests that inbox's page and its
/v1/info. Both have to answer 200 with the page title and a version, so a deploy that breaks the page turns red in seconds rather than being found by the first person who opens their inbox. The check reads the repository variableWORKERS_SUBDOMAIN, the part before.workers.dev. -
In single mode, open
https://app.<subdomain>.workers.dev/#token=<owner token>. In hosted mode, add an invite code. Codes need 20 characters or more, and the value is<uses> <moment>: how many inboxes the code creates and when it stops.code=$(openssl rand -hex 16) npx wrangler kv key put "invite:$code" "5 2027-01-01T00:00:00Z" --expiration-ttl 31536000 --binding INVITES --remote
The registry refuses the code once the clock passes that moment, and
--expiration-ttlgives the key its own life in KV. A value with only a count has no moment, and the registry refuses it.That command doesn't print the code.
$codeholds it, so you can give it out.
In hosted mode, each inbox writes its daily usage counts to the your_attention_usage Analytics Engine dataset in your account, with an id made from its invite code. your-attention telemetry report --invites <file> lists usage per invite and flags an invite with many clients in one inbox. Each line of the file is a code and a label. It needs CLOUDFLARE_ACCOUNT_ID and a CLOUDFLARE_API_TOKEN with Account Analytics Read.
The Cloudflare build sets these in wrangler.jsonc, so a free account stays within its quotas:
- 100 MB of uploaded files over the inbox's life. Each file counts as at least 64 KB, and the count doesn't go down when a file is deleted.
- 20 MB in the inbox's database. A full inbox takes only deletes, answers and closes until you make room. Past 16 MB, the inbox deletes cleared and unanswered cards before their 30 days, oldest first.
- 2,000 file downloads a day for each client.
- 300 requests a minute for each signed-in client address, per inbox, and 100 a minute for each address without a token.
- R2 deletes each file 30 days after its upload. The card stays.
- Pages and agents get their events over WebSockets, so an idle inbox sleeps. The event stream and long-poll routes answer 410.
Your own inbox has none of these limits.
