chorus
AGENTS.md0 starsChanged 5 months agoMITView on GitHub
This file defines principles and contracts that remain stable while implementations change. importance level: Critical enforcement: Mandatory agent workflow
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 35,337 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.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
20 rules. About 1 is common, 14 are distinctive, and 5 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Prefer short paragraphs and small lists.
- Distinctive: line 13
Avoid repeating the request, process narration, and unnecessary background.
- Distinctive: line 21
Never use em-dash characters anywhere: prose, docs, code comments, commit messages, or PRs.
- Distinctive: line 22
Use Subagent-Driven execution for multi-step work with independent tasks, broad reviews, or high-risk changes.
- Distinctive: line 25
Use Serena's refactoring and symbolic editing tools for renames, safe deletes, symbol body edits, insertions, and related changes whenever …
- Distinctive: line 27
Treat bypassing Serena for code exploration without one of those reasons as a process violation.
- Distinctive: line 28
Prefer simple, robust, maintainable solutions.
- Distinctive: line 29
When writing commit messages, NEVER auto-add your agent name as co-author.
- Distinctive: line 30
Never manually modify CHANGELOG.md files or any files that are marked as auto-generated.
- Distinctive: line 31
When writing or substantially editing long Markdown files, put each full sentence on its own line.
- Distinctive: line 34
When end-to-end testing a product, inspect the UI carefully and maintain pixel-level quality within the task's scope.
- Very specific: line 48
Read messages from unknown errors with getErrorMessage().
- Very specific: line 49
Only src/providers/ may import or call ai or @ai-sdk/* packages.
- Distinctive: line 52
Do not restore removed legacy model listing or provider inference paths.
- Very specific: line 62
Treat package.json and CI configuration as the source of truth for Bun and dependency versions.
- Common: line 71
Do not hardcode API keys or other secrets.
- Very specific: line 72
Do not use any.
- Distinctive: line 73
Do not use plugin model identifiers in consensus configuration.
- Distinctive: line 74
Do not treat derived documentation as authoritative over specs or hand-written prose.
- Very specific: line 78
Import consensus contracts directly from @/types/consensus.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
Purpose
This file defines principles and contracts that remain stable while implementations change.
Response style
- Be concise and technically precise.
- Lead with the answer or outcome.
- Include only details needed to understand or act.
- Prefer short paragraphs and small lists.
- Avoid repeating the request, process narration, and unnecessary background.
- Expand only when safety, ambiguity, or correctness requires it.
Collaboration Notes
importance level: Critical enforcement: Mandatory agent workflow
- Never use em-dash characters anywhere: prose, docs, code comments, commit messages, or PRs. Use commas, colons, parentheses, or separate sentences instead.
- Use Subagent-Driven execution for multi-step work with independent tasks, broad reviews, or high-risk changes. Handle simple, tightly coupled tasks directly.
- Continue without confirmation when scope is clear and actions are safe. Ask only when blocked by material ambiguity, missing authority, or irreversible risk.
- Serena MCP is mandatory for code understanding and code changes. Start investigation with Serena's semantic tools, such as symbol overviews, symbol search, references, declarations, implementations, diagnostics, and pattern search, before reading source files directly or using raw grep, regex, or ad hoc exploration.
- Use Serena's refactoring and symbolic editing tools for renames, safe deletes, symbol body edits, insertions, and related changes whenever applicable.
- Direct file reads and basic file edits are allowed for small non-code files, configs, generated files, or cases Serena cannot handle. State the reason whenever bypassing Serena.
- Treat bypassing Serena for code exploration without one of those reasons as a process violation.
- Prefer simple, robust, maintainable solutions. Treat implementation cost as secondary, but keep effort proportional to the problem and expected value.
- When writing commit messages, NEVER auto-add your agent name as co-author.
- Never manually modify CHANGELOG.md files or any files that are marked as auto-generated.
- When writing or substantially editing long Markdown files, put each full sentence on its own line.
- Preserve normal Markdown structure, but avoid wrapping multiple sentences onto one physical line.
- For bug fixes, reproduce the failure through the closest practical user-facing path. If E2E reproduction is unavailable, use the highest realistic integration level and document the limitation.
- When end-to-end testing a product, inspect the UI carefully and maintain pixel-level quality within the task's scope.
- Report unrelated defects discovered during testing. Fix them only when they block verification, are clearly safe and local, or the user authorizes broader scope.
PROJECT KNOWLEDGE
CORE CONTRACTS
- TypeScript uses strict mode with bundler module resolution.
- Runtime validation uses Zod v4 schemas.
- Biome formats and checks the project.
- Expected operational failures use
Result<T, ToolError>. - Read messages from
unknownerrors withgetErrorMessage(). - Only
src/providers/may import or callaior@ai-sdk/*packages. - Provider registry code stays catalog-stateless.
- Model resolution uses broker flow,
loadCatalogplusresolveRoute. - Do not restore removed legacy model listing or provider inference paths.
- Catalog data is validated, normalized, cached, and may serve safe stale data after fetch failure.
- Custom API URLs reject credentials, fragments, private and loopback targets, and IPv4-mapped IPv6 bypasses.
resolveAndValidateHostnameprotects connection-time DNS resolution.createSafeCustomFetchvalidates every custom request, pins resolved IPs at connection time, and blocks all HTTP redirects.- API keys come from environment variables or
$ENV_VARconfiguration references. - Config directory and file permissions are repaired to
0700and0600.
TESTING AND BUILD
- Treat
package.jsonand CI configuration as the source of truth for Bun and dependency versions. - Tests run in isolated processes.
RELEASE
- Releases are driven by GitHub Actions. Pushing a
v*tag triggersrelease.yml: it checks the tag againstpackage.jsonand requires the installerCLI_VERSIONto be empty for stable releases, runsci.yml, builds and smoke-tests each binary on a native runner, then creates a draft release that a maintainer publishes.RELEASING.mdis the runbook, andscripts/release.sh(bun run release) wraps the phased local maintainer steps (prepare,tag,finish,cleanup-rc,status).
AVOID
- Do not hardcode API keys or other secrets.
- Do not use
any. - Do not use plugin model identifiers in consensus configuration.
- Do not treat derived documentation as authoritative over specs or hand-written prose.
NOTES
- Import consensus contracts directly from
@/types/consensus. src/types/index.tsintentionally omits consensus contract exports.
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.

