agentleFS
yasikyasik/agentlane/AGENTS.md

agentlane

AGENTS.md9 starsChanged 2 months 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. - Never mark a task complete without proving…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,736 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 repository6 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

20 rules. About 0 are common, 13 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always talk and write documentation in ASD-STE100 Simplified Technical English.

    line 13
  2. Distinctive:

    If something goes sideways, STOP and re-plan immediately – don't keep pushing

    line 20
  3. Distinctive:

    Use plan mode for verification steps, not just building

    line 21
  4. Distinctive:

    Write detailed specs upfront to reduce ambiguity

    line 22
  5. Distinctive:

    Use subagents liberally to keep main context window clean

    line 26
  6. Very specific:

    After ANY correction from the user: update docs/plans/lessons.md with the pattern

    line 33
  7. Distinctive:

    Write rules for yourself that prevent the same mistake

    line 34
  8. Distinctive:

    Never mark a task complete without proving it works

    line 40
  9. Distinctive:

    Ask yourself: "Would a staff engineer approve this?"

    line 42
  10. Distinctive:

    Run tests, check logs, demonstrate correctness

    line 43
  11. Very specific:

    After code changes: spawn the docs-keeper agent to detect and update affected READMEs and tech specs

    line 44
  12. Very specific:

    Keep documentation source in root docs/.

    line 48
  13. Distinctive:

    If a fix feels hacky: "Knowing everything I know now, implement the elegant solution"

    line 53
  14. Distinctive:

    When given a bug report: just fix it.

    line 59
  15. Very specific:

    Plan First: Write plan to docs/plans/<task_name>.md with checkable items

    line 66
  16. Distinctive:

    Verify Plan: Check in before starting implementation

    line 67
  17. Very specific:

    Document Results: Add review section to docs/plans/<task_name>.md

    line 70
  18. Very specific:

    Capture Lessons: Update docs/plans/lessons.md after corrections

    line 71
  19. Distinctive:

    Follow Single Responsibility Principle for modules

    line 81
  20. Very specific:

    All python commands should be run via uv run python ...

    line 103

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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

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
  • Write detailed specs upfront to reduce ambiguity

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.md with 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

  • Never mark a task complete without proving it works
  • Diff behavior between main and your changes when relevant
  • Ask yourself: "Would a staff engineer approve this?"
  • Run tests, check logs, demonstrate correctness
  • After code changes: spawn the docs-keeper agent to detect and update affected READMEs and tech specs
  • For public documentation updates, use .agents/skills/docs-sync/SKILL.md. Apply dev-docs to changed prose, then use .agents/skills/docs-portal/SKILL.md to rebuild and check the website. Keep documentation source in root docs/.

5. Demand Elegance (Balanced)

  • For non-trivial changes: pause and ask "is there a more elegant way?"
  • If a fix feels hacky: "Knowing everything I know now, implement the elegant solution"
  • Skip this for simple, obvious fixes – don't over-engineer
  • Challenge your own work before presenting it

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

  1. Plan First: Write plan to docs/plans/<task_name>.md with checkable items
  2. Verify Plan: Check in before starting implementation
  3. Track Progress: Mark items complete as you go
  4. Explain Changes: High-level summary at each step
  5. Document Results: Add review section to docs/plans/<task_name>.md
  6. Capture Lessons: Update docs/plans/lessons.md after 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)

Local workflow

  1. Format, lint and type‑check your changes:

    /usr/bin/make format
    /usr/bin/make lint
  2. Run the tests:

    /usr/bin/make tests

    To run a single test, use uv run pytest -s -k <test_name>.

All python commands should be run via uv run python ...

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.

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.