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.
- CLAUDE.mdCLAUDE.md
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
- Distinctive: line 9
If multiple interpretations exist, present them - don't pick silently.
- Distinctive: line 10
If a simpler approach exists, say so.
- Distinctive: line 11
If something is unclear, stop.
- Distinctive: line 17
No features beyond what was asked.
- Distinctive: line 18
No abstractions for single-use code.
- Distinctive: line 20
No error handling for impossible scenarios.
- Distinctive: line 21
If you write 200 lines and it could be 50, rewrite it.
- Distinctive: line 23
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
- Distinctive: line 29
When editing existing code:
- Distinctive: line 30
Don't "improve" adjacent code, comments, or formatting.
- Distinctive: line 31
Don't refactor things that aren't broken.
- Distinctive: line 33
If you notice unrelated dead code, mention it - don't delete it.
- Distinctive: line 35
When your changes create orphans:
- Very specific: line 36
Remove imports/variables/functions that YOUR changes made unused.
- Distinctive: line 37
Don't remove pre-existing dead code unless asked.
- Very specific: line 72
Test that standard library functions work (e.g.
- Distinctive: line 73
Test simple passthrough/assignment with no branching or transformation
- Distinctive: line 78
Test shared helper functions directly instead of indirectly through every call site
- Distinctive: line 79
Verify error paths and boundary conditions
- Distinctive: line 80
Test business rules, precedence, and override logic
- Very specific: line 87
Prefer t.Parallel() when a test is safe to run concurrently, but do not add it blindly — not every test can run in parallel.
- Distinctive: line 116
Use your judgement — parallelism is a performance optimisation, not a correctness requirement
- Distinctive: line 117
When reviewing or writing tests, look for straightforward opportunities but don't force it
- Very specific: line 140
DO NOT RUN go build, go test, go vet, golangci-lint, or other tools directly
- Very specific: line 141
Always use the mise run wrapper commands above
- Distinctive: line 148
NEVER run git push or git pull - stealth mode only
- Distinctive: line 149
Only git commit is allowed
- Distinctive: line 152
NEVER run git push or git pull - the human will handle remote sync unless requested directly
- Distinctive: line 153
Only local commits are allowed
- Distinctive: line 154
All commit messages must follow the Conventional Commits standard
- Distinctive: line 155
Commit messages must not contain any reference or co-authorship to the agent or model, including names such as Claude, Codex, or Gemini
≈ “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.
Files
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.Getenvreturns a value,time.ParseDurationparses"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 witht.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 runcommands 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 suiteNEVER run tools directly:
- DO NOT RUN
go build,go test,go vet,golangci-lint, or other tools directly - Always use the
mise runwrapper 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 pushorgit pull- stealth mode only - Only
git commitis allowed
CRITICAL RULES:
- NEVER run
git pushorgit 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
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
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.

