AGENTS.md. The scratchpad is where patterns are experimental. AGENTS.md is where proven knowledge lives. Promotion is the deliberate step between the two — the agent flags candidates, and you decide what moves.
How the workflow works
Patterns start as session notes. When something recurs across three or more sessions, the agent flags it in the## Ready to Promote section of .agents.local.md. You review the candidates and move the ones that have proven themselves into AGENTS.md.
AGENTS.md is committed, shared with your team, and loaded into every agent’s context on every turn.
The Ready to Promote format
When the agent identifies a recurring pattern, it writes a row into the## Ready to Promote table using a standard format:
The AGENTS.md format patterns are promoted into
AGENTS.md uses a compressed pipe-delimited format. When you promote a pattern, it becomes a single line in the relevant section:
Running the promote command
Check what's ready to promote
.agents.local.md for the ## Ready to Promote section and shows you what the agent has flagged. No files are written until you confirm.Review and approve each candidate
For each flagged item, decide whether it belongs in
AGENTS.md. Items you approve are appended to the appropriate section. Items you skip stay in ## Ready to Promote for next time.Automatic promotion
If you have configuredpromote=auto in .agents.local.md, patterns are promoted directly to AGENTS.md when they recur 3 or more times — no manual review step.
--autopromote, any item in ## Ready to Promote that has recurred 3+ times is appended to AGENTS.md immediately. The agent logs what it promoted under ## Auto-Promoted in .agents.local.md so you can review after the fact.
Because
AGENTS.md is version-controlled, any auto-promotion is reversible. If the agent promotes something you disagree with, delete the line from AGENTS.md and commit the removal.