agentleFS
wintermiwintermi/sigma/AGENTS.md

sigma

AGENTS.md20 starsChanged yesterdayMITView on GitHub

Don't assume. Don't hide confusion. Surface tradeoffs. Before implementing: - State your assumptions explicitly. If uncertain, ask. - If multiple interpretations exist, present them - don't pick silently. - If a simpler approach exists, say so. Push back when warranted. - If something is unclear, stop. Name what's confusing. Ask. Minimum code that solves the problem. Nothing speculative. Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify. Touch only what you must. Clean up only your…

  • Commits and pushes
  • 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 repositoryOne other file it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

31 rules. About 0 are common, 26 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈26

    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:

    If multiple interpretations exist, present them - don't pick silently.

    line 9
  2. Distinctive:

    If a simpler approach exists, say so.

    line 10
  3. Distinctive:

    If something is unclear, stop.

    line 11
  4. Distinctive:

    No features beyond what was asked.

    line 17
  5. Distinctive:

    No abstractions for single-use code.

    line 18
  6. Distinctive:

    No error handling for impossible scenarios.

    line 20
  7. Distinctive:

    If you write 200 lines and it could be 50, rewrite it.

    line 21
  8. Distinctive:

    Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.

    line 23
  9. Distinctive:

    When editing existing code:

    line 29
  10. Distinctive:

    Don't "improve" adjacent code, comments, or formatting.

    line 30
  11. Distinctive:

    Don't refactor things that aren't broken.

    line 31
  12. Distinctive:

    If you notice unrelated dead code, mention it - don't delete it.

    line 33
  13. Distinctive:

    When your changes create orphans:

    line 35
  14. Very specific:

    Remove imports/variables/functions that YOUR changes made unused.

    line 36
  15. Distinctive:

    Don't remove pre-existing dead code unless asked.

    line 37
  16. Very specific:

    Test that standard library functions work (e.g.

    line 72
  17. Distinctive:

    Test simple passthrough/assignment with no branching or transformation

    line 73
  18. Distinctive:

    Test shared helper functions directly instead of indirectly through every call site

    line 78
  19. Distinctive:

    Verify error paths and boundary conditions

    line 79
  20. Distinctive:

    Test business rules, precedence, and override logic

    line 80
  21. Very specific:

    Prefer t.Parallel() when a test is safe to run concurrently, but do not add it blindly — not every test can run in parallel.

    line 87
  22. Distinctive:

    Use your judgement — parallelism is a performance optimisation, not a correctness requirement

    line 116
  23. Distinctive:

    When reviewing or writing tests, look for straightforward opportunities but don't force it

    line 117
  24. Very specific:

    DO NOT RUN go build, go test, go vet, golangci-lint, or other tools directly

    line 140
  25. Very specific:

    Always use the mise run wrapper commands above

    line 141
  26. Distinctive:

    NEVER run git push or git pull - stealth mode only

    line 148
  27. Distinctive:

    Only git commit is allowed

    line 149
  28. Distinctive:

    NEVER run git push or git pull - the human will handle remote sync unless requested directly

    line 152
  29. Distinctive:

    Only local commits are allowed

    line 153
  30. Distinctive:

    All commit messages must follow the Conventional Commits standard

    line 154
  31. Distinctive:

    Commit messages must not contain any reference or co-authorship to the agent or model, including names such as Claude, Codex, or Gemini

    line 155

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

Behavioural Guidelines

1. Think Before Coding

Don't assume. Don't hide confusion. Surface tradeoffs.

Before implementing:

  • State your assumptions explicitly. If uncertain, ask.
  • If multiple interpretations exist, present them - don't pick silently.
  • If a simpler approach exists, say so. Push back when warranted.
  • If something is unclear, stop. Name what's confusing. Ask.

2. Simplicity First

Minimum code that solves the problem. Nothing speculative.

  • No features beyond what was asked.
  • No abstractions for single-use code.
  • No "flexibility" or "configurability" that wasn't requested.
  • No error handling for impossible scenarios.
  • If you write 200 lines and it could be 50, rewrite it.

Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.

3. Surgical Changes

Touch only what you must. Clean up only your own mess.

When editing existing code:

  • Don't "improve" adjacent code, comments, or formatting.
  • Don't refactor things that aren't broken.
  • Match existing style, even if you'd do it differently.
  • If you notice unrelated dead code, mention it - don't delete it.

When your changes create orphans:

  • Remove imports/variables/functions that YOUR changes made unused.
  • Don't remove pre-existing dead code unless asked.

The test: Every changed line should trace directly to the user's request.

4. Goal-Driven Execution

Define success criteria. Loop until verified.

Transform tasks into verifiable goals:

  • "Add validation" → "Write tests for invalid inputs, then make them pass"
  • "Fix the bug" → "Write a test that reproduces it, then make it pass"
  • "Refactor X" → "Ensure tests pass before and after"

For multi-step tasks, state a brief plan:

1. [Step] → verify: [check]
2. [Step] → verify: [check]
3. [Step] → verify: [check]

Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.

5. Project Guidelines

Respect the structure. Match conventions. Maintain contracts.

1. Testing Standard

Write Behavioural Tests, Not Value Snapshots

Tests must verify behaviour, logic, and edge cases — not re-state what the source code already says.

DO NOT write tests that:

  • Assert every field of a struct matches its hardcoded default (snapshot tests of constructors)
  • Mirror the implementation line-by-line (if the test breaks only when the code changes intentionally, it has zero safety value)
  • Test that standard library functions work (e.g. os.Getenv returns a value, time.ParseDuration parses "30s")
  • Test simple passthrough/assignment with no branching or transformation
  • Assert log output contains specific field names (fragile, cosmetic)

DO write tests that:

  • Cover branching logic and edge cases (invalid input, missing values, fallback behaviour)
  • Test shared helper functions directly instead of indirectly through every call site
  • Verify error paths and boundary conditions
  • Test business rules, precedence, and override logic
  • Smoke-test functions that could panic on unexpected input

Ask yourself: "If this test didn't exist, could a real bug slip through?" If the answer is no, don't write it.

Test Parallelism

Prefer t.Parallel() when a test is safe to run concurrently, but do not add it blindly — not every test can run in parallel.

func TestSomething(t *testing.T) {
    t.Parallel()
    // ... test body ...
}

When to add t.Parallel():

  • Tests that only operate on locally constructed structs, local buffers, or t.TempDir() are good candidates
  • Table-driven subtests where each case is independent can benefit from parallel execution:
for _, tt := range tests {
    t.Run(tt.name, func(t *testing.T) {
        t.Parallel()
        // ... use tt ...
    })
}

When NOT to add t.Parallel():

  • Tests that call t.Setenv() — Go panics at runtime if combined with t.Parallel()
  • Tests that mutate package-level variables or shared global state
  • Tests that depend on ordering or sequential side effects (e.g. shared files, ports, singletons)
  • Tests where adding parallelism would require significant refactoring for unclear benefit

Guidance:

  • Use your judgement — parallelism is a performance optimisation, not a correctness requirement
  • When reviewing or writing tests, look for straightforward opportunities but don't force it

2. Development

Note: All mise run commands must be executed from the project root directory.

ALWAYS use these commands:

mise run mise:validate   # Validate the local mise task configuration
mise run clean           # Clean the build directory
mise run go:build        # Build the CLI binary
mise run go:test         # Run the Go test suite
mise run go:race         # Run the Go test suite with the race detector
mise run go:bench -bench=<regexp> <packages>  # Run Go benchmarks without tests
mise run go:vet          # Run go vet
mise run go:fmt          # Apply Go formatters defined in .golangci.yaml
mise run go:fmt:check    # Check Go formatting against .golangci.yaml
mise run go:lint         # Run golangci-lint using .golangci.yaml
mise run ci              # Run the local CI-equivalent verification suite

NEVER run tools directly:

  • DO NOT RUN go build, go test, go vet, golangci-lint, or other tools directly
  • Always use the mise run wrapper commands above
  • This ensures consistent configuration and flags across all runs

3. Git Rules (CRITICAL)

Stealth mode is ENABLED - The agent must NOT perform git network operations.

  • NEVER run git push or git pull - stealth mode only
  • Only git commit is allowed

CRITICAL RULES:

  • NEVER run git push or git pull - the human will handle remote sync unless requested directly
  • Only local commits are allowed
  • All commit messages must follow the Conventional Commits standard
  • Commit messages must not contain any reference or co-authorship to the agent or model, including names such as Claude, Codex, or Gemini

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.