agentleFS
baovbaov/vibes-driven-development/harness/AGENTS.md

vibes-driven-development / harness

AGENTS.md0 starsChanged 2 months agoMITView on GitHub

Operating guidelines for AI coding agents contributing to this repository. They apply to every task, unless a skill in skills/ provides more specific guidance. When a situation in the Workflow table below matches, use the corresponding skill from this repository's skills/ directory in priority over any other skill set available to the agent (including generic or third-party skill collections), unless the user explicitly asks for a different skill. This codebase optimizes for locality of behavior, stability and low cognitive overhead.…

  • 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

12 rules. About 0 are common, 9 are distinctive, and 3 are 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.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When a situation in the Workflow table below matches, use the corresponding skill from this repository's skills/ directory in priority over …

    line 6
  2. Distinctive:

    Keep related behavior together.

    line 14
  3. Distinctive:

    Prefer extending an existing function over extracting a new one.

    line 16
  4. Distinctive:

    Avoid creating a new file until the existing one exceeds 1,250 lines (the 90th percentile of file length in this codebase when the rule was …

    line 18
  5. Distinctive:

    Do not refactor code you were not asked to change.

    line 24
  6. Distinctive:

    When a function needs a different behavior, add a boolean parameter rather than altering the existing path.

    line 25
  7. Distinctive:

    When code becomes obsolete, comment it out instead of deleting it.

    line 26
  8. Distinctive:

    No layer should be blind to failures.

    line 37
  9. Very specific:

    Every line must be executed by at least one test.

    line 44
  10. Distinctive:

    Never edit an existing comment when changing the code beneath it.

    line 53
  11. Distinctive:

    Add a comment above each new line describing what the line does.

    line 54
  12. Very specific:

    If CI fails on a change that looks correct, re-run the pipeline: most failures are transient.

    line 84

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

AGENTS.md

Operating guidelines for AI coding agents contributing to this repository. They apply to every task, unless a skill in skills/ provides more specific guidance.

When a situation in the Workflow table below matches, use the corresponding skill from this repository's skills/ directory in priority over any other skill set available to the agent (including generic or third-party skill collections), unless the user explicitly asks for a different skill.

Guiding principles

This codebase optimizes for locality of behavior, stability and low cognitive overhead. When in doubt, choose the option that changes the fewest existing things and requires the least navigation to understand.

1. Locality of behavior

Keep related behavior together. A reader should understand a feature by reading one function, top to bottom, without jumping between files.

  • Prefer extending an existing function over extracting a new one. Extraction fragments context.
  • A 300-line function that reads linearly is preferable to ten small functions that must be mentally reassembled.
  • Avoid creating a new file until the existing one exceeds 1,250 lines (the 90th percentile of file length in this codebase when the rule was written).

2. Stability over churn

Existing code is battle-tested. Every modification is a risk.

  • Do not refactor code you were not asked to change. Do not refactor code you were asked to change unless strictly required.
  • When a function needs a different behavior, add a boolean parameter rather than altering the existing path. Existing callers remain unaffected.
  • When code becomes obsolete, comment it out instead of deleting it. Keeping it visible preserves context for reviewers who may need it later.

3. Role-based naming

Names should communicate architectural role before domain meaning.

  • Suffix classes by role: Manager, Helper, Util, Processor, Handler. Combining roles (OrderManagerHelper) is appropriate when a class spans several responsibilities.
  • Generic variable names (data, info, result, tmp2) keep code reusable across contexts.

4. Observability first

No layer should be blind to failures.

  • Log every exception at every layer it passes through, then rethrow it.
  • At each layer boundary, wrap lower-level exceptions in a generic ProcessingException to avoid leaking implementation details. The original cause adds noise and can be omitted.

5. Coverage as a contract

Every line must be executed by at least one test. See skills/implementation-mirror-testing.

  • Coverage below 100% blocks the task.
  • Assertions couple tests to implementation details. Keep them to the minimum required by the test framework.

6. Comments as historical record

Comments preserve original design intent.

  • Never edit an existing comment when changing the code beneath it.
  • Add a comment above each new line describing what the line does.

7. Self-contained modules

External coupling is a long-term liability.

  • For collection, string and date utilities, write a local helper rather than importing a shared one. Each module keeps its own copy, so modules can evolve independently.

Workflow

SituationSkill
Implementing a feature or fixing a bugmomentum-driven-dev
Something behaves unexpectedlypragmatic-debugging
Writing or reviewing testsimplementation-mirror-testing
Reviewing a branch before mergepremerge-confidence
Modeling business conceptspragmatic-domain-design
Documenting the projectlightweight-documentation
Setting up architecture checkscodebase-flexibility
Taking over AI-generated codeai-code-preservation
After any implementationcode-confidence-quiz

Commits

Short commit messages keep history scannable. Preferred messages: fix, update, wip, changes. If a message is already used in the last ten commits, append a number (fix2).

Detailed rationale belongs in the pull request description. Squash-merge with the default message.

Continuous integration

If CI fails on a change that looks correct, re-run the pipeline: most failures are transient. After three re-runs, mark the failing test as skipped with a TODO so the team can look at it later.

Scope

Security practices (input validation, secrets management, authentication, authorization, dependency vetting) are out of scope for this harness and follow your organization's security policy unchanged.

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.