clawbridge-codex
AGENTS.md1 starsChanged 6 months agoMITView on GitHub
These principles govern how the AI assistant behaves when working on this codebase.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,439 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository42 other files it gives its agents.
- container/AGENTS.mdAGENTS.md
- add-atomic-chat-toolSkill
- add-dashboardSkill
- add-discordSkill
- add-emacsSkill
- add-gcal-toolSkill
- add-gchatSkill
- add-githubSkill
- add-gmail-toolSkill
- add-imessageSkill
- add-karpathy-llm-wikiSkill
- add-linearSkill
- add-macos-statusbarSkill
- add-matrixSkill
- add-ollama-providerSkill
- add-ollama-toolSkill
- add-parallelSkill
- add-resendSkill
- add-signalSkill
- add-slackSkill
- add-teamsSkill
- add-telegramSkill
- add-vercelSkill
- add-webexSkill
- add-wechatSkill
- add-whatsapp-cloudSkill
- add-whatsappSkill
- clawSkill
- convert-to-apple-containerSkill
- customizeSkill
- debugSkill
- get-qodo-rulesSkill
- init-first-agentSkill
- manage-channelsSkill
- manage-mountsSkill
- migrate-from-openclawSkill
- migrate-clawbridgeSkill
- qodo-pr-resolverSkill
- setupSkill
- update-clawbridgeSkill
- update-skillsSkill
- x-integrationSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
21 rules. About 0 are common, 17 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
If something goes sideways, STOP and re-plan immediately — don't keep pushing
- Distinctive: line 10
Use plan mode for verification steps, not just building
- Distinctive: line 11
Write detailed specs upfront to reduce ambiguity
- Distinctive: line 14
Use subagents liberally to keep main context window clean
- Very specific: line 20
After ANY correction from the user: update tasks/lessons.md with the pattern
- Distinctive: line 21
Write rules for yourself that prevent the same mistake
- Distinctive: line 26
Never mark a task complete without proving it works
- Distinctive: line 28
Ask yourself: "Would a staff engineer approve this?"
- Distinctive: line 29
Run tests, check logs, demonstrate correctness
- Distinctive: line 33
If a fix feels hacky: "Knowing everything I know now, implement the elegant solution"
- Distinctive: line 38
When given a bug report: just fix it.
- Distinctive: line 44
Never pivot or pause a running task when a new request comes in
- Distinctive: line 45
Treat new instructions as additive, never as replacements
- Distinctive: line 46
When a new task arrives mid-work: spawn a subagent to handle it in parallel — do not touch the original task
- Distinctive: line 47
Never say "pivoting," "switching to," or "I'll come back to this"
- Distinctive: line 49
Default to parallel. Run tasks sequentially only when one truly depends on another's output
- Distinctive: line 50
When unsure, assume independence and parallelize
- Very specific: line 56
Plan First: Write plan to tasks/todo.md with checkable items
- Distinctive: line 57
Verify Plan: Check in before starting implementation
- Very specific: line 60
Document Results: Add review section to tasks/todo.md
- Very specific: line 61
Capture Lessons: Update tasks/lessons.md after corrections
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ClawBridge Agent — AI Operating Principles
These principles govern how the AI assistant behaves when working on this codebase.
1. Plan Node Default
- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
- If something goes sideways, STOP and re-plan immediately — don't keep pushing
- Use plan mode for verification steps, not just building
- Write detailed specs upfront to reduce ambiguity
2. Subagent Strategy
- Use subagents liberally to keep main context window clean
- Offload research, exploration, and parallel analysis to subagents
- For complex problems, throw more compute at it via subagents
- One task per subagent for focused execution
3. Self-Improvement Loop
- After ANY correction from the user: update
tasks/lessons.mdwith the pattern - Write rules for yourself that prevent the same mistake
- Ruthlessly iterate on these lessons until mistake rate drops
- Review lessons at session start for relevant project
4. Verification Before Done
- Never mark a task complete without proving it works
- Diff behavior between main and your changes when relevant
- Ask yourself: "Would a staff engineer approve this?"
- Run tests, check logs, demonstrate correctness
5. Demand Elegance (Balanced)
- For non-trivial changes: pause and ask "is there a more elegant way?"
- If a fix feels hacky: "Knowing everything I know now, implement the elegant solution"
- Skip this for simple, obvious fixes — don't over-engineer
- Challenge your own work before presenting it
6. Autonomous Bug Fixing
- When given a bug report: just fix it. Don't ask for hand-holding
- Point at logs, errors, failing tests — then resolve them
- Zero context switching required from the user
- Go fix failing CI tests without being told how
7. Parallel Execution Directive
- Never pivot or pause a running task when a new request comes in
- Treat new instructions as additive, never as replacements
- When a new task arrives mid-work: spawn a subagent to handle it in parallel — do not touch the original task
- Never say "pivoting," "switching to," or "I'll come back to this"
- Briefly confirm: "Parallel subagent started for [new task]; [original] continues"
- Default to parallel. Run tasks sequentially only when one truly depends on another's output
- When unsure, assume independence and parallelize
Task Management
- Plan First: Write plan to
tasks/todo.mdwith checkable items - Verify Plan: Check in before starting implementation
- Track Progress: Mark items complete as you go
- Explain Changes: High-level summary at each step
- Document Results: Add review section to
tasks/todo.md - Capture Lessons: Update
tasks/lessons.mdafter corrections
Core Principles
- Simplicity First: Make every change as simple as possible. Impact minimal code.
- No Laziness: Find root causes. No temporary fixes. Senior developer standards.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

