Repository navigation
inbox: the note for every agent whose docs verify a global rules file - #3599
Draft
backnotprop wants to merge 5 commits into
Draft
backnotprop wants to merge 5 commits into
backnotprop wants to merge 5 commits into
Conversation
Written by itself, with the quiet line, for Qwen Code (its own rules file), Cursor (a local plugin, where its editor is found), Kiro, Windsurf / Devin, Amp, Antigravity (Gemini CLI's block) and DeepSeek Harness; OpenCode 2's AGENTS.md is created when missing. Cline is offered. Files Plannotator owns carry the front matter each tool's docs give and are deleted whole. Stale statements about Kiro, Cursor and Copilot corrected.
- OpenCode: create ~/.config/opencode/AGENTS.md only with OpenCode 2 here, no sign of OpenCode 1 (a `plugin` key or `opencode` on PATH) and no ~/.claude/CLAUDE.md, so OpenCode 1 never stops reading the person's file. - Qwen Code: a note pasted by hand into QWEN.md without markers counts, so the automatic add makes no second copy. - Cursor: the rule file is written before the manifest, and a failed write leaves neither; the switch still turns the note off once the editor is gone. - Own files with front matter: one that is there but blank and that Plannotator did not create gets no note (a block without its front matter may never load). - Amp: the note follows XDG_CONFIG_HOME, as Amp's settings.json does. - The guide: removal keeps the folder an own file sits in; the live check per agent is in the guide; no handoff reference left. - The public docs: the agents that get the note, their files, and Cursor's plugin.
OpenCode 2's package ships `opencode` too, and nothing Plannotator reads without running it tells that copy from a real OpenCode 1. `opencode` beside `opencode2` with no V1 `plugin` key is now unsure: AGENTS.md is still not created there, and Settings no longer says it would stop OpenCode 1 reading CLAUDE.md; it says only that the file does not exist. The OpenCode 1 reason stays where OpenCode 1 shows (a `plugin` key, or `opencode` alone). The guide no longer says Qwen never gets the note twice: the automatic add skips a pasted note, the person's own add still writes.
…/inbox-note-more-agents
This branch has not been deployed
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.
Stacked on #3598 (rules in the note). The base is
feat/inbox-note-rules; switch the base to main once #3598 merges (merge main in, no rebase).What a person notices
The Inbox note (and with it the person's rules) now reaches every agent whose docs verify a global rules file. As the owner decided ("Just add it, with the quiet line"), the note is written by itself, like Codex's today, and the connect line says "Added the Inbox note to X's instructions." for each agent.
~/.qwen/rules/plannotator-inbox.md($QWEN_HOME/rules/), its own file~/.cursor/plugins/local/plannotator-inbox/local plugin.cursor-plugin/plugin.json{ "name": "plannotator-inbox" },rules/plannotator-inbox.mdcwithalwaysApply: true~/.kiro/steering/plannotator-inbox.md, its own fileinclusion: alwaysfront matter, first in the file~/.devin/rules/plannotator-inbox.md, its own filetrigger: always_onfront matter$XDG_CONFIG_HOME/amp/AGENTS.md(default~/.config, as for Amp's settings.json), a marked sectionAGENT.md/CLAUDE.mdsits there~/.gemini/GEMINI.md, the same block as Gemini CLI's$DSH_HOME/AGENTS.md, a marked section~/.config/opencode/AGENTS.mdpluginkey;opencodebesideopencode2is unsure) and no~/.claude/CLAUDE.md; otherwise unchanged (only an AGENTS.md that exists)$CLINE_DIR/rules/plannotator-inbox.md, its own fileCursor without its editor (the CLI alone) keeps today's copy by hand.
The plugin route applies to the editor after a reload. It does not apply when an Enterprise admin has turned local plugins off, or in
cursor-agent acp. In those cases the note's text in Settings → Agents is still there to copy.Not included: OpenClaw (a persona folder), Hermes, Muse Code (no documented path) and the Claude app.
Guarantees, per new target
QWEN.mdwithout markers counts: no second copy.QWEN.mdstays there.What changed
packages/server/inbox-agent-notes.ts:noteTargetcases for the new agents.ownFiles: each file Plannotator owns, with its front matter, extras and folders to prune.noteCopiedByHand, andcursorEditorFound.CURSOR_NOTE_REASONand the Gemini memory-section comment.packages/core/inbox-types.ts: the new note agent ids, and the auto list.packages/inbox/agents.ts: Cursor copied by hand is still asked in the dialog.noteCopiedByHandinstead ofid === "cursor":inbox.ts: the note switch, the dialog answer and the preview.--notes cursor.--helpnote lists.inbox-foundation.md: Where, Written by itself, Cursor, and the dialog's rows are corrected (Kiro "has no file", Copilot "not verified", Cursor "no file to write", "every other agent").Text that is new or changed (for the owner)
The note body is unchanged. Strings that are not agent-facing instructions:
---\ninclusion: always\n---\n(Kiro)---\ntrigger: always_on\n---\n(Devin)---\nalwaysApply: true\n---\n(Cursor.mdc){ "name": "plannotator-inbox" }--help):CURSOR_NOTE_REASON: "Cursor's editor was not found here, and only it loads Plannotator's note by itself: copy the note into Customize → Rules yourself. Plannotator can't see, update or remove that copy."In
--help(agent-facing), only the generated agent lists change: who is written by itself and who is asked. The fixed sentence "Cursor's note is copied by hand instead…" now shows only when Cursor's note is copied by hand. The fixed Cursor line is unchanged and shows in the same case.Proven by documentation only
The guide's rule is "PROVEN to load", and none of these agents has been checked live. Each agent's one check (where the file lands, and how to see the agent obey it) is below, and briefly in the guide:
qwenin a scratch project, ask it to quote the first line under "Plannotator Inbox".cursor-agent -p.acpis expected to fail.kiro-cli. A custom agent is expected to miss it unlessresourceslist the steering files.devinand the canary.ampand the canary.agyor the IDE and the canary, and confirm the note shows once.dshprofile with the plugin, and the canary.opencode2.How it was tested
Each test file was run alone, after a grep that it starts no Inbox.
New
packages/server/inbox-agent-notes-more.test.ts(22 tests) covers:opencode2), V1 only, both versions (one config with both keys, or both binaries), and V2 with a CLAUDE.md (home orCLAUDE_CONFIG_DIR);XDG_CONFIG_HOME;New
apps/hook/server/inbox-help-notes.test.ts: which agents--helpsays are written by themselves vs asked, with and without Cursor's editor.Updated existing tests whose behaviour changed:
agents.test.ts;inbox-agents-settings.test.ts, which starts an Inbox.These pass locally:
Typecheck is clean for core, shared, server, Pi, mod, hook server, inbox and the inbox app.
No real agent folder was touched, and no agent CLI was run.
Review fixes (e3978ae)
openCodeVersionsSeenreads every sign of each version, not just the first. AGENTS.md is created only with V2 seen, no V1 sign and no~/.claude/CLAUDE.md(or$CLAUDE_CONFIG_DIR/CLAUDE.md). V2's package also shipsopencode, and nothing read without running it tells that copy from a real V1, soopencodebesideopencode2(nopluginkey) is unsure: not created, and Settings shows only "~/.config/opencode/AGENTS.mddoes not exist" (an existing reason), never the OpenCode 1 sentence (b4bf33f). The OpenCode 1 reason stays where V1 shows: apluginkey, oropencodealone.reference/inbox.md(the auto list, every agent's file, Cursor's plugin) and the Cursor entry inlib/inbox-agents.ts(setup step, trouble entry). Facts only.pastedBesidechecks QWEN.md for an unmarked note; the automatic add skips with the existing reason, naming QWEN.md.<file>is empty and Plannotator did not create it, so it is left as it is". Settings offers no Fix for it.~/.kiro/steering,~/.devin/rulesand the like stay.XDG_CONFIG_HOME, like its settings.json.CURSOR_NOTE_REASON.