agentleFS
wilbeibiwilbeibi/catchup/AGENTS.md

catchup

AGENTS.md74 starsChanged 3 months agoMITView on GitHub

For changes adding more than 400 lines, apply the complexity guide. Count added lines across the whole PR, including tests, fixtures, and docs. Reduce maintenance cost, not readability or required behavior. Follow the test-writing guide. - Prefer another fixture row over another harness or test file. - Derive expected results independently. For JSON contracts, assert wire keys independently of production serialization types. - Make the test fail by reverting the fix or breaking the protected behavior. If an existing test…

  • 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,773 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

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

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

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the benefit is uncertain, compare against removing or simplifying the mechanism.

    line 7
  2. Distinctive:

    Keep format-specific behavior in its provider.

    line 18
  3. Distinctive:

    Keep session reads read-only and compatible with concurrent writers.

    line 20
  4. Distinctive:

    Verify native launch flags against the agent.

    line 29
  5. Distinctive:

    Follow the test-writing guide.

    line 33
  6. Distinctive:

    Prefer another fixture row over another harness or test file.

    line 35
  7. Distinctive:

    If an existing test catches the same break on the same input, extend it instead of keeping a duplicate.

    line 38
  8. Distinctive:

    Keep another test layer only for a distinct risk, such as CLI wiring versus parser semantics.

    line 39
  9. Distinctive:

    Check behavior directly instead of scanning source for helper calls or requiring phrases in comments.

    line 41

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

Contributing to catchup

Complexity must earn its cost

  • Optimize the complexity-to-benefit ratio. Explain the concrete user benefit and why existing composition is insufficient.
  • Be very conservative with added lines, including tests, fixtures, and documentation. A new provider does not justify unrelated infrastructure.
  • When the benefit is uncertain, compare against removing or simplifying the mechanism. Show which behavior or measured performance suffers.
  • Discuss substantial growth with the maintainer before implementation. Propose shared frameworks and cross-provider redesigns separately from provider additions.
  • Report additions and deletions separately for runtime code, tests/fixtures, and docs. Unrelated deletions do not pay for new complexity.

For changes adding more than 400 lines, apply the complexity guide. Count added lines across the whole PR, including tests, fixtures, and docs. Reduce maintenance cost, not readability or required behavior.

Preserve the existing boundaries

  • Adding a provider must not change existing providers' behavior. Verify shared-code changes preserve their behavior. Propose intentional changes separately.
  • Keep format-specific behavior in its provider. Reuse common CLI selection and rendering instead of adding provider-specific alternatives.
  • Reuse session.Failure, query/summary helpers, root resolution, and internal/sqlitedb before adding equivalents.
  • Keep session reads read-only and compatible with concurrent writers. Use the shared SQLite opener to preserve WAL visibility.
  • Normalize failures, stop events, and compaction into existing entry kinds. Preserve retained context through Retained.
  • Preserve real user turns. Filter injected context using format evidence, and keep subagent metadata from replacing main-session metadata.

Provider evidence

  • Base parsers and fixtures on real session files or upstream schemas/source. Record the version, source, and unverified assumptions.
  • Identify the authoritative transcript. Report material fallback losses through existing warnings, including lost pre-compaction history.
  • Preserve relevant record shapes and ordering in sanitized fixtures. A fixture invented from the parser cannot establish compatibility.
  • Verify native launch flags against the agent. For unsupported launch modes, return an actionable error instead of inventing a command.

Tests must earn their place

Follow the test-writing guide.

  • Prefer another fixture row over another harness or test file.
  • Derive expected results independently. For JSON contracts, assert wire keys independently of production serialization types.
  • Make the test fail by reverting the fix or breaking the protected behavior. If an existing test catches the same break on the same input, extend it instead of keeping a duplicate.
  • Keep another test layer only for a distinct risk, such as CLI wiring versus parser semantics.
  • Discard exploratory tests unless they protect a distinct contract or reproduced bug.
  • Check behavior directly instead of scanning source for helper calls or requiring phrases in comments.

Repository caveat

docs/ is ignored except release notes. Verify new shipped documentation is tracked before linking to it.

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.