agentleFS
nuncaeslupusnuncaeslupus/doc-control/claude-arsenal/AGENTS.md

doc-control / claude-arsenal

AGENTS.md0 starsChanged 11 days agoMITView on GitHub

This file is in context on every turn, so it holds only what a session needs before it knows what kind of session it is. The rest lives in claude-arsenal/references/: plain paths, opened on demand (table at the end). Paths starting arsenal/ are the host-owned tree; setting ARSENAL_HOME relocates all of them. claude-arsenal/ is the vendored bundle and never moves. - Helmwork is the method. The person decides; the AI builds, verifies, and brings what is doubtful with evidence; every…

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. nuncaeslupus/literary-critic★ 0100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • 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 35,117 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 repository22 other files it gives its agents.

The file

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

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Reports lead with the outcome: Add sections (done / not done / questions / next) only when they have content, and keep the whole report …

    line 25
  2. Very specific:

    Name tasks by label: When you mention a task to the user, write its label followed by the id, e.g.

    line 30
  3. Very specific:

    Every ACTION: line is yours, because it needs your own GitHub tools: on rest/none write the issue files it names, then run it again with …

    line 52
  4. Very specific:

    Every change reaches the default branch through a PR, ad hoc work included.

    line 117
  5. Very specific:

    Before merging, run bash claude-arsenal/bin/merge_ready.sh <pr>: it checks what the host's merge-policy requires against the head SHA.

    line 123

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

Claude Arsenal

<!-- claude-arsenal v5.33.1 — imported via @claude-arsenal/AGENTS.md -->

This file is in context on every turn, so it holds only what a session needs before it knows what kind of session it is. The rest lives in claude-arsenal/references/: plain paths, opened on demand (table at the end).

Paths starting arsenal/ are the host-owned tree; setting ARSENAL_HOME relocates all of them. claude-arsenal/ is the vendored bundle and never moves.


How to work

  • Helmwork is the method. The person decides; the AI builds, verifies, and brings what is doubtful with evidence; every correction leaves a test, check or rule. → claude-arsenal/references/helmwork.md
  • Finish the task. On an unattended run, carry the work through to its end; put status notes alongside the next tool call rather than ending the turn on them. Stop only when blocked or before a risky or irreversible action. When the request is a question or a problem description, the assessment is the deliverable — answer it before changing code.
  • How often to ask is autonomy in arsenal/config.toml: ask-often (confirm each step), ask-when-blocked (default), autonomous (never wait on the user for reversible work).
  • Reports lead with the outcome. Add sections (done / not done / questions / next) only when they have content, and keep the whole report short.
  • Batch independent tool calls into one response; sequence only calls that depend on each other.
  • Edit surgically. Change the lines that need changing rather than rewriting a file.
  • Name tasks by label. When you mention a task to the user, write its label followed by the id, e.g. tag only green CI (t-1a2b3c4d); a bare id tells them nothing.

Session-start protocol

At the start of every session (fresh start, context compaction, or cold restart):

  1. Run the script — bash claude-arsenal/bin/session_start.sh. It refreshes the bundle (check_update.sh --check-only, init.py --silent), prints the capability map, detects the GitHub channel, fetches the task issues itself on gh (no body: the arsenal-id:<id> label pairs issue to task), and prints the board from query_status.py. Report everything it flags. Exit 1 means a fetch or step failed: say so and treat the counts as unverified.
    • UNTAGGED UPSTREAM RELEASE is fixed upstream (make tag), not here. INERT on a non-subtree install is the expected answer: say so once and open no work on it.
    • Each NEW SETTING line: report once (config-acknowledged in arsenal/config.toml silences them). SETUP INTERVIEW PENDING: ask the init skill's setup interview with AskUserQuestion before picking up work. If the installed bundle is newer, report it and update the plugin; never pass --allow-downgrade.
    • A section this repo did not install that squarely covers the task: say so once, then do what was asked. → claude-arsenal/references/capability-map.md
    • Every ACTION: line is yours, because it needs your own GitHub tools: on rest/none write the issue files it names, then run it again with --board; create the handle issues it prints; apply the filed-issue import changes and commit the new task files. → claude-arsenal/references/queue-seeding.md
  2. Read handover — read arsenal/session/handover.md if it has real content; it is a snapshot, so re-read the board before resuming anything it names. Also status/ideas.md when the board's ideas: line counts exploring rows. After compaction mid-task, the task's tmp/<id>-notes.md and git status are the state. So keep that file on any work longer than a few steps, queue task or not (tmp/<id-or-slug>-notes.md): a ## Resume section with Decided / Ruled out / Next step, refreshed after each decision. A hook re-injects that section after compaction.
  3. Pick up work — claude-arsenal/references/worker-loop.md. If the selector returns nothing and a plan exists, seed the queue from it (claude-arsenal/references/queue-seeding.md); otherwise report done or ask the user. Pass each dispatch the model from arsenal_config.py --get models.workers as its own model argument; if models.orchestrator names a different model than yours, say so once. → claude-arsenal/references/worker-loop.md § Credit guards
  4. Before ending a session with open work — audit every claimed task and open PR (CI, reviews, mergeability), print the table, then write arsenal/session/handover.md (/session-end, where installed, writes it only if handoff is yes). → claude-arsenal/references/github-automation.md

Task format

A task is a file — arsenal/tasks/<id>.md — with front matter (id, title, optional label, priority, deps, requires, tags, workspace, max-attempts) and an ## Acceptance gate section. /queue-add writes one; a full example is in claude-arsenal/references/state-layout.md § Task format.

Task files are read from the default branch, so every agent computes the same order. deps is the build order; priority encodes task size only (S=10, M=5, L=1, larger runs sooner). The gate must be a fenced ```bash block — prose and inline commands never run — and it is fixed for the life of the task: a task's own PR cannot amend it. → claude-arsenal/references/evidence-gates.md


Claiming — the contract

GitHub decides a claim: creating a ref is a compare-and-swap, so exactly one caller wins.

bash claude-arsenal/bin/claim_task.sh <task-id>
#   won <ref>   → yours; proceed
#   lost        → someone else has it; take the next task (normal, not an error)
#   manual …    → no scriptable channel: make that exact call with your GitHub tools;
#                 201 = won, 422 = lost
#   error:      → misconfiguration; stop and surface it

Obey the result: claiming another ref, pushing -u, or bumping the attempt number to win recreates the double-claims this prevents. After winning, self-assign, add arsenal:claimed, and comment with the session id from CLAUDE_CODE_REMOTE_SESSION_ID (falling back to CLAUDE_CODE_SESSION_ID); never invent one. → claude-arsenal/references/claiming-internals.md


Completion — merging is the update

Every change reaches the default branch through a PR, ad hoc work included; never push to it directly. Open a task's PR with open_task_pr.sh: it writes Closes #<issue> and archives the task file in the same diff, so the merge alone finishes the task. If it refuses for want of an issue, pass ARSENAL_TASK_ISSUE=<n> or run handle_sync.py — not ARSENAL_ALLOW_UNLINKED_PR=1.

Before merging, run bash claude-arsenal/bin/merge_ready.sh <pr>: it checks what the host's merge-policy requires against the head SHA. Exit 0 means merge, without asking the user a question the host already answered. → claude-arsenal/references/github-automation.md


Specs and plans

With the workflow skills installed, idea work goes through explore-idea, spec work through specify, plan work through design, not another plugin's brainstorming or planning skill. No plan precedes the approved annotated spec. Hand every spec or plan to the user as the HTML from create_reader.py. Draw a diagram as a fenced spec where the host renders one, never hand-drawn SVG or ASCII art → claude-arsenal/references/diagrams.md.


References — read the one you need, when you need it

FileRead it when
references/worker-loop.mdDispatching workers
references/orchestrator-tick.mdRunning the board unattended
references/queue-seeding.mdThe queue is empty, or filed issues need importing
references/evidence-gates.mdWriting or trusting a gate
references/claiming-internals.mdA claim misbehaves
references/github-automation.mdCompleting work or ending a session (Actions minutes short → references/ci-minutes.md)
references/quota-governance.mdThe loop stopped before dispatch
references/pre-pr-review.mdAbout to open a PR
references/lean-code.mdImplementing a task, or reviewing a diff for code it did not need
references/digest.mdA PR opened or got a new head; ending a session; digest decisions came back
references/performance-tuning.mdThe loop feels slow, or an ARSENAL_* knob is needed
references/state-layout.mdLooking up where a file lives, what a task state means, or the task-file format
references/repo-housekeeping.mdChoosing a license, or publishing a package
references/annotatable-reader.mdHanding over a spec or plan
references/capability-map.mdA task looks like something a skill would do
references/helmwork.mdPlanning a milestone, building a tool, or after the person corrects something

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.