agentleFS
zahergzaherg/chorus/AGENTS.md

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.

  • In this repository2 other files it gives its agents.

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

    Prefer short paragraphs and small lists.

    line 12
  2. Distinctive:

    Avoid repeating the request, process narration, and unnecessary background.

    line 13
  3. Distinctive:

    Never use em-dash characters anywhere: prose, docs, code comments, commit messages, or PRs.

    line 21
  4. Distinctive:

    Use Subagent-Driven execution for multi-step work with independent tasks, broad reviews, or high-risk changes.

    line 22
  5. Distinctive:

    Use Serena's refactoring and symbolic editing tools for renames, safe deletes, symbol body edits, insertions, and related changes whenever …

    line 25
  6. Distinctive:

    Treat bypassing Serena for code exploration without one of those reasons as a process violation.

    line 27
  7. Distinctive:

    Prefer simple, robust, maintainable solutions.

    line 28
  8. Distinctive:

    When writing commit messages, NEVER auto-add your agent name as co-author.

    line 29
  9. Distinctive:

    Never manually modify CHANGELOG.md files or any files that are marked as auto-generated.

    line 30
  10. Distinctive:

    When writing or substantially editing long Markdown files, put each full sentence on its own line.

    line 31
  11. Distinctive:

    When end-to-end testing a product, inspect the UI carefully and maintain pixel-level quality within the task's scope.

    line 34
  12. Very specific:

    Read messages from unknown errors with getErrorMessage().

    line 48
  13. Very specific:

    Only src/providers/ may import or call ai or @ai-sdk/* packages.

    line 49
  14. Distinctive:

    Do not restore removed legacy model listing or provider inference paths.

    line 52
  15. Very specific:

    Treat package.json and CI configuration as the source of truth for Bun and dependency versions.

    line 62
  16. Common:

    Do not hardcode API keys or other secrets.

    line 71
  17. Very specific:

    Do not use any.

    line 72
  18. Distinctive:

    Do not use plugin model identifiers in consensus configuration.

    line 73
  19. Distinctive:

    Do not treat derived documentation as authoritative over specs or hand-written prose.

    line 74
  20. Very specific:

    Import consensus contracts directly from @/types/consensus.

    line 78

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

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

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 unknown errors with getErrorMessage().
  • Only src/providers/ may import or call ai or @ai-sdk/* packages.
  • Provider registry code stays catalog-stateless.
  • Model resolution uses broker flow, loadCatalog plus resolveRoute.
  • 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.
  • resolveAndValidateHostname protects connection-time DNS resolution.
  • createSafeCustomFetch validates every custom request, pins resolved IPs at connection time, and blocks all HTTP redirects.
  • API keys come from environment variables or $ENV_VAR configuration references.
  • Config directory and file permissions are repaired to 0700 and 0600.

TESTING AND BUILD

  • Treat package.json and 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 triggers release.yml: it checks the tag against package.json and requires the installer CLI_VERSION to be empty for stable releases, runs ci.yml, builds and smoke-tests each binary on a native runner, then creates a draft release that a maintainer publishes. RELEASING.md is the runbook, and scripts/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.ts intentionally omits consensus contract exports.

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.