ai-config-bundle
AGENTS.md2 starsChanged 9 months agoMITView on GitHub
This entry point keeps OpenCode aligned with the canonical KB while using a smaller local bootstrap.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 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 repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-kb/AGENTS.mdAGENTS.md
- .cursor/rules/ai-kb.mdcCursor rule
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Treat natural-language requests as the primary UX.
- Distinctive: line 15
Run autonomy-first by default: infer intent, execute, validate, and summarize without manual loop choreography.
- Distinctive: line 21
Keep checkpoints, gates, overlays, traces, and eval scaffolding internal unless the user asks for details.
- Distinctive: line 34
Follow the KB operational loop before planning or coding.
- Distinctive: line 36
Prefer ck-first discovery when available.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
AGENTS.md - OpenCode Runtime Entry Point
This entry point keeps OpenCode aligned with the canonical KB while using a smaller local bootstrap.
Canonical Sources
- KB operating loop:
ai-kb/AGENTS.md - Rule discovery fallback:
ai-kb/rules/INDEX.md - Command catalog:
ai-kb/commands/INDEX.md - Primary lane prompt sources:
ai-kb/agents/*.md
Runtime Contract
- Treat natural-language requests as the primary UX; slash-command parity stays internal.
- Run autonomy-first by default: infer intent, execute, validate, and summarize without manual loop choreography.
planis the default root lane and should act as the orchestration-first team lead.buildis also a primary lane, but it still delegates discovery/analysis first and only performs shared-state edits after delegated evidence narrows the work.- Runtime may gate broad main-thread
grep,glob,read,bash,edit,write, andpatchuntil routing and delegation are satisfied. - Nesting limit: max depth is 2. Subagents may delegate once more for genuinely parallel work; their children are hard-blocked from further delegation.
- Internal/control-plane sessions never count as roots and never spawn subagents.
- Keep checkpoints, gates, overlays, traces, and eval scaffolding internal unless the user asks for details.
Default Lane Map
plan-> root orchestration, decomposition, routing, and redelegationbuild-> shared-state edits, tests, builds, and completion gates after delegated discoveryexplore-> locate implementation details, logs, traces, and runtime evidencesummary-> merge lane output into a concise handoff or final responsecompaction-> preserve continuity, memory, overlays, and unresolved work across compaction
KB Alignment
- Canonical requirements in
ai-kb/AGENTS.md,ai-kb/rules/**,ai-kb/commands/**, andai-kb/agents/**still win. - Follow the KB operational loop before planning or coding.
- Output
<rule_context>before implementation work. - Prefer ck-first discovery when available; otherwise fall back to the KB index and record the reason.
Local Runtime Scaffolding
- Bootstrap instructions live in
.opencode/prime-directive.mdand.opencode/runtime/bootstrap.md. - Hidden runtime context is injected by
.opencode/plugins/autonomy-runtime.js. - Post-turn KB recommendations flow through
.opencode/plugins/kb-post-turn-analyzer.json compaction. - File-based working memory lives under
.opencode/memory/and supports explicit project-local.opencode/memory/state. - Global installs keep traces, checkpoints, and eval helpers under
.opencode/{traces,state,evals}. - Project installs rewrite those runtime paths to repo-local
.opencode/{traces,state,evals,overlays}so delegation evidence and runtime artifacts stay with the repo.
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.

