Conversation
…all removes what it added A person's plannotator inbox (never --background, the shim or a connection's start) adds a plannotator-inbox MCP server to every terminal agent it finds that has no record yet: through the agent's own mcp add (Codex, Gemini CLI, Windsurf/Devin, Amp, Cline, Pi without the extension), else one key in a strictly parsed plain-JSON file (Cursor, Kiro, the Claude desktop app). Pi and OpenCode with Plannotator's extension or plugin get inboxTool on. Claude Code gets nothing. An Inbox an agent started is asked over the new token-guarded /api/inbox/control/connect. Later runs connect agents installed since and say so once; a recorded agent (turned off, removed outside, a foreign entry) is never added back; another plannotator-inbox entry is never replaced. PLANNOTATOR_INBOX_CONNECT=0 skips it. plannotator uninstall (plain and --purge) removes the entries it added, by record then by scanning the known files; --dry-run lists them. Tests use fake agent CLIs on a scratch PATH and HOME; the preload and every CLI test sandbox set PLANNOTATOR_INBOX_CONNECT=0, and the guard test now fails on a path from the real home to an agent folder or a connect without an agent environment.
…t ownership, said-once failures)
- Pi before 0.99 (no pi mcp) and any CLI whose --version line is not its own
(cln's pi, amp.rs, another codex) are left to the person; Cline is not run.
- Codex's config.toml is read with Bun.TOML.parse (every form); GEMINI_CLI_HOME
and a relative CODEX_HOME are honored; an entry Plannotator did not write is
never replaced.
- JSON edits are lossless (json-edit.ts): only the one member's text changes,
BOM, dominant line ending, numbers and escapes stay; duplicate keys refused.
- Ours = this CLI's command or the recorded one; the plannotator heuristic is
exact-name only. Uninstall removes only entries recorded as added (or, with no
record, ones running exactly the binary being removed).
- Copy no longer promises Settings; a lasting failure is said once.
- OpenCode 2 plugins in { package } form are found.
- Agent CLIs run in their own process group, killed on timeout; a grandchild
holding stdout does not hold the run. Docs and the Devin snippet path.
Owner
Author
|
Review fixes pushed (8aef65b and earlier). No force-push. High
Medium
Low
Tests: |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 1 of 3 of the approved "inbox-agent-awareness" build (approval 2026-10-12, decisions 1, 2, 3, 7). Part 2 (session reminder hooks, Claude Code's Inbox tool before the first run) and part 3 (global notes, the first-open card, Settings → Agents, the install prompt) are separate PRs.
What it does
plannotator inbox(with or without--no-open; never--background, the shim, a connection starting a stopped Inbox, or the window's Restart) connects every agent found on this computer that has no record yet (packages/server/inbox-agents.ts):mcp add: Codex, Gemini CLI (-s user), Windsurf/Devin (-s user), Amp, Cline (--yes), Pi without the extension;~/.cursor/mcp.json), Kiro (~/.kiro/settings/mcp.json), the Claude desktop app (claude_desktop_config.json, with "restart the Claude app");inboxTool.<host> = truein config.json. Claude Code: nothing.<this CLI> inbox mcp(absolute path,selfCommand()).POST /api/inbox/control/connect.plannotator-inboxentry that runs something else is never replaced.packages/server/agent-files.ts). Limits: 10 s per agent, 30 s in total.PLANNOTATOR_INBOX_CONNECT=0skips the step.GET /api/inbox/agents(local only) reports the records and the last run, for the card in part 3.plannotator uninstall(plain and--purge) removes the entries it added (by record, then a scan of the known files).--dry-runlists them. An entry changed by hand is skipped and named.Safety
tests/helpers/fake-agents.ts). The real agent CLIs never run. The test preload,worldEnv, the CLI test sandbox and the--no-opene2e setPLANNOTATOR_INBOX_CONNECT=0. A test-sandboxed run whose home is not a scratch folder connects nothing (agentHomeAllowed).Tests
packages/server/inbox-agents.test.ts(27): detection, each agent's command, found / foreign / manual, failure and retry, per-agent and total limits, CRLF and indentation, refused JSONC, symlink, removed outside, the Claude app, the Pi / OpenCode switch (also off and env-locked), later runs, removal plans.packages/server/inbox-connect-route.test.ts(token, single flight, Origin refused),apps/hook/server/inbox-connect-cli.test.ts(real processes:--backgroundconnects nothing, a person's run on that Inbox does, a later run connects a new agent, CONNECT=0 skips), uninstall tests.bun test packages/server apps/hook/server/inbox-cli.test.ts apps/hook/server/inbox-help.test.ts tests/: 1533 pass.bun run typecheckclean.Deviations from the approval record
inbox/agents.json(DESIGN.md). The notes record (part 3) will beinbox/agent-notes.json.cline mcp remove plannotator-inbox(also not verified).~/.config/devin/config.json(perdevin mcp remove --help), not themcp_config.jsonthe harness snippet names.