agentleFS
EthanonEthanon/developer.ai/toolconfigs/AGENTS.md

developer.ai / toolconfigs

AGENTS.md9 starsChanged 3 months agoMITView on GitHub

Every other AI-tool config file the installer writes is a pointer to this one, so the rules exist once. Replace <PROJECT> and trim rows for capabilities that were not installed. Leave a row out rather than pointing at a file that is not there. --> This file is the entry point for any AI coding tool working in this repo. The real content lives in focused documents under docs/engineering/. Read this in full once, then read the document for the…

  • Reads credentials
  • 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 33,398 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

10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Every other AI-tool config file the installer writes is a pointer to this one, so the rules exist once.

    line 4
  2. Distinctive:

    Every line is a liability.

    line 41
  3. Distinctive:

    No interim implementations: If the design picked a shape, build that shape.

    line 54
  4. Distinctive:

    Tests are deterministic, offline, and fast: No real-time waits, no real network.

    line 57
  5. Distinctive:

    Do not use the language's escape hatch to bypass a type error.

    line 69
  6. Very specific:

    Do not commit secrets. .env and .env.secrets are gitignored.

    line 70
  7. Distinctive:

    Do not inline timeout, interval, TTL, or retry-count literals outside the config module.

    line 71
  8. Distinctive:

    Do not trust a tenant or account id that arrived in a path, body, or query.

    line 72
  9. Distinctive:

    Do not substitute fake or placeholder data when a critical-path operation fails.

    line 74
  10. Distinctive:

    Do not push commits directly to the default branch.

    line 75

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
<!-- The spine. Installed at the target repo root as AGENTS.md. Every other AI-tool config file the installer writes is a pointer to this one, so the rules exist once. Replace <PROJECT> and trim rows for capabilities that were not installed. Leave a row out rather than pointing at a file that is not there. -->

<PROJECT>: Agent Guide

This file is the entry point for any AI coding tool working in this repo. The real content lives in focused documents under docs/engineering/. Read this in full once, then read the document for the task you are about to do.

Installed from developer.ai.


Read first, by task

TaskRequired reading
Any code changedocs/engineering/ENGINEERING_PRINCIPLES.md
Writing or reviewing testsdocs/engineering/TESTING_PRINCIPLES.md
Anything touching auth, input, secrets, logging, or promptsdocs/engineering/SECURITY_PRINCIPLES.md
Logging, tracing, or debuggingdocs/engineering/OBSERVABILITY_PRINCIPLES.md
Building an agent that calls a modeldocs/engineering/AI_AGENT_PRINCIPLES.md
Architecture and data flowdocs/ARCHITECTURE.md
Project context, every agent reads thisdocs/PROJECT_CONTEXT.md
Security modeldocs/SECURITY.md
PR lifecycledocs/engineering/PR_WORKFLOW.md
Backlog and issue lifecycledocs/engineering/BACKLOG_WORKFLOW.md
Debugging this systemdocs/DEBUGGING.md

The Prime Directive

The preferred number of lines of code is zero.

Every line is a liability. Write the minimum that correctly solves the problem. When in doubt, delete. The full anti-patterns and the design-review checklist are in docs/engineering/ENGINEERING_PRINCIPLES.md under "Default to Less" and "Design Review Checklist".


Headline rules

Each one is a pointer to the full text in docs/engineering/ENGINEERING_PRINCIPLES.md.

  • Fail loud, never fabricate. Critical-path errors surface. No placeholder data, no synthetic results, no "graceful degradation" that hides a real failure.
  • No interim implementations. If the design picked a shape, build that shape.
  • Default to zero comments. A comment is usually a symptom of an unclear name.
  • Timeouts and intervals never inline. They come from a config module.
  • Tests are deterministic, offline, and fast. No real-time waits, no real network.
  • Write so anyone can read it. Plain language is a rule, not a preference. It applies to names, documents, and user-facing text alike.
  • Names never leak a technology. A name says what a thing is for, not what it is built on.
  • Facts before fixes. Reproduce it before you change code for it.
  • Two failed attempts, look it up. Three, step back.

What not to do

  • Do not use the language's escape hatch to bypass a type error.
  • Do not commit secrets. .env and .env.secrets are gitignored.
  • Do not inline timeout, interval, TTL, or retry-count literals outside the config module.
  • Do not trust a tenant or account id that arrived in a path, body, or query. Identity comes from the session.
  • Do not substitute fake or placeholder data when a critical-path operation fails.
  • Do not push commits directly to the default branch. Every change opens a pull request.

<!-- Keep this section only when reviewer, audit, or backlog agents were installed. -->

The agent specs

The reviewer, audit, and backlog specs live in .claude/agents/.

That directory name is Claude Code's requirement, not a statement about which tool you use. The files are plain markdown. Read them from any tool. The pipeline that runs them on a schedule uses Claude Code, because that is what the runner action is, and it is independent of whatever you have open in your editor.

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.