agentlane
AGENTS.md9 starsChanged 12 days agoMITView on GitHub
This codebase will outlive you. Every shortcut becomes someone else's burden. Every hack compounds into technical debt that slows the whole team down. You are not just writing code. You are shaping the future of this project. The patterns you establish will be copied. The corners you cut will be cut again. Fight entropy. Leave the codebase better than you found it. Always talk and write documentation in ASD-STE100 Simplified Technical English. - Check each requested change against the final…
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 31,700 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 repository5 other files it gives its agents.
- code-change-verificationSkill
- docs-portalSkill
- docs-syncSkill
- releaseSkill
- vhsSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
20 rules. About 0 are common, 12 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Always talk and write documentation in ASD-STE100 Simplified Technical English.
- Distinctive: line 20
If something goes sideways, STOP and re-plan immediately – don't keep pushing
- Distinctive: line 21
Use plan mode for verification steps, not just building
- Distinctive: line 26
Use subagents liberally to keep main context window clean
- Very specific: line 33
After ANY correction from the user: update docs/plans/lessons.md with the pattern
- Distinctive: line 34
Write rules for yourself that prevent the same mistake
- Distinctive: line 40
Check each requested change against the final diff.
- Distinctive: line 42
Read every changed method, including moved code, against the design and readability rules before handing work back.
- Distinctive: line 44
Verify the final code after fixes.
- Very specific: line 48
After code changes: spawn the docs-keeper agent to detect and update affected READMEs and tech specs
- Very specific: line 52
Keep documentation source in root docs/.
- Distinctive: line 56
Before changing a public API or a component's responsibility, put the use case, behavior owner, and existing code to reuse in the task plan.
- Distinctive: line 65
When given a bug report: just fix it.
- Very specific: line 72
Plan First: Write plan to docs/plans/<task_name>.md with checkable items
- Very specific: line 77
Document Results: Add review section to docs/plans/<task_name>.md
- Very specific: line 78
Capture Lessons: Update docs/plans/lessons.md after corrections
- Distinctive: line 88
Follow Single Responsibility Principle for modules
- Distinctive: line 100
Put a blank line before a block comment and no blank line between the comment and its code.
- Very specific: line 104
Follow the examples and review checklist in docs/code-style/README.md and Python comments.
- Very specific: line 122
Run Python scripts with uv run python ...
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
Agent Guidelines
Philosophy
This codebase will outlive you. Every shortcut becomes someone else's burden. Every hack compounds into technical debt that slows the whole team down.
You are not just writing code. You are shaping the future of this project. The patterns you establish will be copied. The corners you cut will be cut again.
Fight entropy. Leave the codebase better than you found it.
Language
Always talk and write documentation in ASD-STE100 Simplified Technical English.
Workflow Orchestration
1. Plan Mode Default
- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
- If something goes sideways, STOP and re-plan immediately – don't keep pushing
- Use plan mode for verification steps, not just building
- Record design decisions before implementation; scale detail to the change.
2. Subagent Strategy
- Use subagents liberally to keep main context window clean
- Offload research, exploration, and parallel analysis to subagents
- For complex problems, throw more compute at it via subagents
- One task per subagent for focused execution
3. Self-Improvement Loop
- After ANY correction from the user: update
docs/plans/lessons.mdwith the pattern - Write rules for yourself that prevent the same mistake
- Ruthlessly iterate on these lessons until mistake rate drops
- Review lessons at session start for relevant project
4. Verification Before Done
- Check each requested change against the final diff. Mark a finding resolved only when the change is present and verified. Record unresolved items and why.
- Read every changed method, including moved code, against the design and readability rules before handing work back.
- Verify the final code after fixes. Check affected public examples when their API or behavior changes. Report passed, failed, and skipped checks; distinguish mocked verification from live verification. Do not claim completion while required checks fail.
- After code changes: spawn the
docs-keeperagent to detect and update affected READMEs and tech specs - For public documentation updates, use
.agents/skills/docs-sync/SKILL.md. Applydev-docsto changed prose, then use.agents/skills/docs-portal/SKILL.mdto rebuild and check the website. Keep documentation source in rootdocs/.
5. Design and simplification
- Before changing a public API or a component's responsibility, put the use case, behavior owner, and existing code to reuse in the task plan. Include a small client example for API changes. Routine fixes need no separate design.
- Apply the design and review rules before implementation and before handoff. Justify additions with required behavior or reachable failures; preserve useful extension points and validation.
6. Autonomous Bug Fixing
- When given a bug report: just fix it. Don't ask for hand-holding
- Point at logs, errors, failing tests – then resolve them
- Zero context switching required from the user
- Go fix failing CI tests without being told how
Task Management
- Plan First: Write plan to
docs/plans/<task_name>.mdwith checkable items - Verify Plan: Respect requested design review points. Continue already authorized work without asking for the same approval again.
- Track Progress: Mark items complete as you go
- Explain Changes: High-level summary at each step
- Document Results: Add review section to
docs/plans/<task_name>.md - Capture Lessons: Update
docs/plans/lessons.mdafter corrections
Core Principles
- Simplicity First: Make every change as simple as possible. Impact minimal code.
- No Laziness: Find root causes. No temporary fixes. Senior developer standards.
- Minimal Impact: Changes should only touch what's necessary. Avoid introducing bugs.
Architecture
- Follow Single Responsibility Principle for modules
- Favor composition over inheritance
- Modular design with reusable components
- Nested packages for organization (shared dependencies at common level)
Required code readability
- Separate logical steps inside methods with blank lines. Keep statements that perform one step together.
- In multi-step methods, put a short comment immediately above each block whose purpose, condition, or order needs context. Explain the step's role in the operation so the reader can follow the method without tracing every call.
- Put a blank line before a block comment and no blank line between the comment and its code. Separate the final return from the preceding work.
- Preserve useful block-purpose comments during simplification. A comment can explain application logic; it does not need an external protocol justification.
- Follow the examples and review checklist in
docs/code-style/README.mdandPython comments.
Local workflow
For code, tests, or build/test changes, follow the code-change-verification skill:
bash .agents/skills/code-change-verification/scripts/run.shThe script runs formatting, lint, type checks, and tests. Documentation-only changes use the documentation workflow above; they do not require runtime tests.
For a focused test, use uv run pytest -s -k <test_name>.
Run Python scripts with uv run python ... and Python tools with uv run.
Detailed References
The sections above define the working model. Use the docs under
docs/code-style/ for implementation details and language-specific rules.
docs/code-style/README.md: index of the detailed coding standards.docs/code-style/workspace-packages.md: how to add and register a new workspace package.docs/code-style/python/README.md: Python conventions, imports and typing, comments, modules, tests, and first-party tool design.docs/code-style/typescript/README.md: TypeScript conventions, strictness, exports, tooling, and package scripts.
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.

