agentleFS
a-Figa-Fig/Accordion/AGENTS.md

Accordion

AGENTS.md245 starsChanged 4 months agoMITView on GitHub

Read the entirety of @CLAUDE.md Before making any changes to the code, always open a dedicated worktree — never edit in the main checkout.

  • 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

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the entirety of @CLAUDE.md

    line 1
  2. Distinctive:

    Before making any changes to the code, always open a dedicated worktree — never edit in the main checkout.

    line 5
  3. Very specific:

    Only one worktree may run the UI server on port 1420 at a time (npm run dev / tauri dev).

    line 22
  4. Very specific:

    If the branch is abandoned without merging, still git worktree remove it so .pi/worktrees/ doesn't accumulate stale trees.

    line 23

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

Read the entirety of @CLAUDE.md

Worktree convention

Before making any changes to the code, always open a dedicated worktree — never edit in the main checkout.

  1. Create a worktree off the latest devmain, placed under .pi/worktrees/ (already gitignored):
    git fetch origin
    git worktree add .pi/worktrees/<short-descriptive> -b <branch> origin/devmain
    cd .pi/worktrees/<short-descriptive>
  2. Do all work in the worktree — edits, npm install (deps are per-worktree), verification (npm run check, npm run test, node smoke.mjs, npm pack --dry-run as applicable), commits, and the PR to devmain.
  3. Delete the worktree and its folder once the branch is merged into devmain (or promoted to main):
    cd <main checkout>
    git worktree remove .pi/worktrees/<short-descriptive>
    git branch -d <branch>   # safe once merged; use -D only if the branch was abandoned
  4. Notes:
    • The main checkout stays on main (the stable, registered-binary surface). Never branch from or PR into main directly — see CLAUDE.md → Branching & PR workflow.
    • Only one worktree may run the UI server on port 1420 at a time (npm run dev / tauri dev). Other concurrent worktrees should rely on npm run check / npm run test / node smoke.mjs, which claim no port.
    • If the branch is abandoned without merging, still git worktree remove it so .pi/worktrees/ doesn't accumulate stale trees.

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.