agentleFS
iamironziamironz/ai-config-bundle/.opencode/AGENTS.md

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.

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
  1. Distinctive:

    Treat natural-language requests as the primary UX.

    line 14
  2. Distinctive:

    Run autonomy-first by default: infer intent, execute, validate, and summarize without manual loop choreography.

    line 15
  3. Distinctive:

    Keep checkpoints, gates, overlays, traces, and eval scaffolding internal unless the user asks for details.

    line 21
  4. Distinctive:

    Follow the KB operational loop before planning or coding.

    line 34
  5. Distinctive:

    Prefer ck-first discovery when available.

    line 36

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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.
  • plan is the default root lane and should act as the orchestration-first team lead.
  • build is 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, and patch until 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 redelegation
  • build -> shared-state edits, tests, builds, and completion gates after delegated discovery
  • explore -> locate implementation details, logs, traces, and runtime evidence
  • summary -> merge lane output into a concise handoff or final response
  • compaction -> preserve continuity, memory, overlays, and unresolved work across compaction

KB Alignment

  • Canonical requirements in ai-kb/AGENTS.md, ai-kb/rules/**, ai-kb/commands/**, and ai-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.md and .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.js on 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.