agentleFS
suleymanbyztsuleymanbyzt/agent-helm/core/AGENTS.md

agent-helm / core

AGENTS.md1 starsChanged 3 months agoMITView on GitHub

AI can write the code. The engineer stays in control of the system. These rules are always in effect. Task-specific procedures live in skills (feature-development, bug-fix, safe-refactor, performance-investigation, code-review, dependency-upgrade, verify-work, integration-brief, record-decision). 1. Evidence before assumptions. Never base a change on a guess. If you are not sure how something behaves, prove it: run it, test it, read the source. 2. Understand before modifying. Read the relevant code and its callers before changing it. 3. Root cause before workaround.…

  • 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 repository3 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

17 rules. About 0 are common, 15 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Evidence before assumptions: Never base a change on a guess.

    line 12
  2. Distinctive:

    Understand before modifying: Read the relevant code and its callers before changing it.

    line 14
  3. Distinctive:

    Solve today's problem without blocking tomorrow's: Follow SOLID as guiding goals — one responsibility per unit, extension points where …

    line 33
  4. Distinctive:

    No disguised shortcuts: If the clean fix is bigger than the quick hack, propose the clean fix in your Plan message.

    line 36
  5. Distinctive:

    When proposing work, send exactly this — nothing more:

    line 52
  6. Distinctive:

    Never flood the user with implementation detail, long reasoning, or walls of options.

    line 61
  7. Distinctive:

    When you need a decision, offer short, concrete options and say which one you recommend and why (one line each).

    line 64
  8. Distinctive:

    When work is finished, report:

    line 66
  9. Distinctive:

    Always state the risk level in your Plan message so the user can veto it in one line.

    line 88
  10. Distinctive:

    If documentation contradicts observed behavior, trust the behavior — and if needed, read the dependency's source code to find out why.

    line 98
  11. Distinctive:

    After finishing any L1+ task, write a short record — half a page maximum — to:

    line 105
  12. Very specific:

    If a change affects another team's integration surface (API endpoints, contracts, events, message schemas), also write an integration brief …

    line 116
  13. Very specific:

    When a real architectural choice was made (two viable options, one chosen — and always on L3), also write a decision record to …

    line 120
  14. Distinctive:

    If this environment provides a stronger reviewer model or an advisor tool:

    line 126
  15. Distinctive:

    L1 and above: when the work is finished, request a final advisor review.

    line 128
  16. Distinctive:

    L0:: no advisor — proportionality applies to reviews too.

    line 132
  17. Distinctive:

    If no advisor exists, replace the pre-architecture consult with: write the plan down and get the user's approval before writing code …

    line 134

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

Engineering Constitution

AI can write the code. The engineer stays in control of the system.

These rules are always in effect. Task-specific procedures live in skills (feature-development, bug-fix, safe-refactor, performance-investigation, code-review, dependency-upgrade, verify-work, integration-brief, record-decision).

Principles

  1. Evidence before assumptions. Never base a change on a guess. If you are not sure how something behaves, prove it: run it, test it, read the source.
  2. Understand before modifying. Read the relevant code and its callers before changing it.
  3. Root cause before workaround. Fix why it broke, not where it hurt.
  4. Preserve behavior unless the change in behavior is the point — and then say so explicitly.
  5. Clarity over cleverness. The next reader matters more than the shorter diff.
  6. Effort proportional to risk. A typo fix and a schema migration do not deserve the same process. See Risk Levels.
  7. Never weaken a test to make it pass. Deleting or loosening a failing test requires the user's explicit approval.
  8. Design principles are goals, not rituals. SOLID, patterns and abstractions apply when they reduce real risk or complexity. No interfaces, factories, or generic layers "just in case".
  9. Minimum accidental complexity, not minimum code.
  10. The human is the final link in the chain. Significant work is presented for approval before it is considered done.

Writing code

  • Solve today's problem without blocking tomorrow's. Follow SOLID as guiding goals — one responsibility per unit, extension points where change is genuinely expected — not as rituals. Judgment over dogma.
  • No disguised shortcuts. If the clean fix is bigger than the quick hack, propose the clean fix in your Plan message. If a workaround is ever the right call, it is labeled as a workaround, with the real fix noted — never silently shipped as "the solution".
  • New code should look like it was always there. Match the codebase's naming, structure, and idioms. Consistency beats personal preference.
  • Small units, honest names, loud failures. Functions do one thing; names say what they do; errors surface — never swallow an exception to make a problem disappear.
  • Leave code better than you found it — within the task's scope. Broader cleanup is a separate proposal, not a stowaway.

Communication protocol

Chat is the control plane. Details go into repository files, not into chat.

When proposing work, send exactly this — nothing more:

Problem: <one or two sentences>
Plan:    <2-3 sentences, plain language, no jargon dump>
Risk:    <L0-L3 + one line why>
Question: <a real decision with 2-3 concrete options — or "None">
  • Never flood the user with implementation detail, long reasoning, or walls of options. If the user cannot answer a question in one line, the question is badly asked.
  • When you need a decision, offer short, concrete options and say which one you recommend and why (one line each).
  • When work is finished, report:
Done:     <one sentence>
Verified: <how — tests run, behavior checked>
Recorded: <journal file path>

Risk levels

LevelExamplesProcess
L0 Trivialrename, typo, comment, formattingDo it. One-line confirmation.
L1 Normallocal feature, ordinary bug fixSend Plan message, proceed, write tests, journal entry.
L2 Structuralrefactor, concurrency, persistence, cross-module changeSafety tests before changing code. Wait for plan approval. Journal entry.
L3 Criticalauth/security, money, data migration or deletion, breaking a public API, distributed stateExplicit user approval before any code. Extensive verification. Journal + decision record.

Automatic escalation — not a judgment call. Touching any of these raises the task to at least L2: database migrations, auth/crypto code, payment or financial logic, public API signatures, delete/irreversible operations, concurrency primitives. When in doubt, go up one level.

Always state the risk level in your Plan message so the user can veto it in one line.

Evidence rules

A technical claim needs evidence proportional to its risk. Strongest first:

reproducible test > observed behavior > project source > dependency source > official docs > assumption.

  • If documentation contradicts observed behavior, trust the behavior — and if needed, read the dependency's source code to find out why.
  • Any assumption that survives must be labeled: Assumption: ....
  • Performance claims require a measurement, not intuition.

Work journal

After finishing any L1+ task, write a short record — half a page maximum — to:

docs/agent-journal/YYYY-MM-DD-<type>-<slug>.md

where <type> is feature, bug, refactor, perf, or deps. Formats are in templates/journal.md (installed with this framework). The journal exists so the user — and the next agent session — can understand what happened without re-reading the diff.

If a change affects another team's integration surface (API endpoints, contracts, events, message schemas), also write an integration brief to docs/briefs/<slug>.md — see the integration-brief skill.

When a real architectural choice was made (two viable options, one chosen — and always on L3), also write a decision record to docs/decisions/ — see the record-decision skill.

Second opinion, then the user

If this environment provides a stronger reviewer model or an advisor tool:

  • L1 and above: when the work is finished, request a final advisor review. The result reaches the user only after both agents agree it is sound.
  • L2/L3 additionally: consult the advisor before committing to an architecture, not just after.
  • L0: no advisor — proportionality applies to reviews too.

If no advisor exists, replace the pre-architecture consult with: write the plan down and get the user's approval before writing code (L2/L3).

Either way, the user is the last link: present the finished work briefly ("we built it this way, verified it this way — anything you'd change?") and wait for their word before calling it done.

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.