agentleFS
atrislabsatrislabs/atris/AGENTS.md

atris

AGENTS.md71 starsChanged 8 months agoMITView on GitHub

New here? Read FOR_AGENTS.md: open letter from an agent who tried it. Works with: Claude Code, Cursor, Codex, OpenClaw, Windsurf, and any AI coding agent. Talk like a person. This governs every message you send the operator: boot, status, summaries, everything. copy these shapes: - Status: "The reply check is built. I am running the final checks now, so the result is not ready yet." - Landing: "Replies now get a plain-language check before they reach you. The checks passed,…

  • 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 33,398 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 repository8 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

25 rules. About 0 are common, 15 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No task codes, branch names, commit hashes, PR numbers, or system nouns (worktree, verifier, projection, tick) in the message body.

    line 12
  2. Distinctive:

    No insider terms without defining them in the same breath.

    line 13
  3. Distinctive:

    No em dashes anywhere; use a comma, colon, or period.

    line 17
  4. Very specific:

    Run atris first. It prints repo state, the files to read, and the next command.

    line 35
  5. Distinctive:

    If there is no existing task, create one before editing:

    line 37
  6. Very specific:

    Run atris run logs to inspect autonomous plan/do/review phase logs.

    line 61
  7. Distinctive:

    Every agent should leave four artifacts another agent can trust:

    line 67
  8. Very specific:

    Do not rely on chat context.

    line 78
  9. Very specific:

    Do not write new operating doctrine here first.

    line 79
  10. Very specific:

    Always-on agents should move proof-backed work to Review, complete their native goal, then stop that task.

    line 89
  11. Distinctive:

    Default to the current checkout for small, clean, single-agent fixes.

    line 119
  12. Very specific:

    Use atris mission when work should survive this chat or run as an autonomous loop.

    line 136
  13. Very specific:

    Start current-agent work: atris mission start "<objective>" --owner <member> --runner codex_goal --lane code --verify "<cmd>" --stop …

    line 142
  14. Very specific:

    Start headless Claude work: add --runner claude --cadence "15m" --always-on, then use atris mission run <id> --max-ticks 4 …

    line 143
  15. Distinctive:

    Read it before writing code.

    line 158
  16. Distinctive:

    Real runtime over mocks: if you fixed live behavior, the regression test reproduces it against the real runtime, not a mock that can stay …

    line 178
  17. Distinctive:

    Don't explore codebase manually (use MAP.md)

    line 201
  18. Distinctive:

    Don't skip visualization step

    line 202
  19. Distinctive:

    Don't leave stale tasks

    line 203
  20. Distinctive:

    Don't hand-edit TODO.md for active task ownership

    line 204
  21. Distinctive:

    Don't write verbose docs

    line 205
  22. Very specific:

    Keep this voice in every reply: <!-- ATRIS_VOICE_CARD:START -->

    line 234
  23. Distinctive:

    Start with the answer, then give the reader only what helps them act.

    line 238
  24. Distinctive:

    Keep each paragraph to one or two sentences and leave a blank line between thoughts.

    line 240
  25. Very specific:

    After meaningful work, save fresh notes: atris brain compile --root .

    line 249

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

AGENTS.md: Universal Agent Instructions

New here? Read FOR_AGENTS.md: open letter from an agent who tried it.

Works with: Claude Code, Cursor, Codex, OpenClaw, Windsurf, and any AI coding agent.

The way of talking (every reply, no exceptions)

Talk like a person. This governs every message you send the operator: boot, status, summaries, everything.

  • Plain words. Say what happened and what it means for the reader, cause and effect. Not the machinery.
  • No task codes, branch names, commit hashes, PR numbers, or system nouns (worktree, verifier, projection, tick) in the message body. If the reader needs a command, put ONE copyable line at the end.
  • No insider terms without defining them in the same breath. A sharp non-engineer must follow it on first read.
  • Lead with the outcome. Complete sentences, one or two per paragraph, blank line between. No headers, bullet stacks, or tables in chat replies; those belong in files.
  • Detail lives in files and receipts. Offer "want the detail?" instead of dumping it.
  • Say the outcome and what it means for the reader. Keep plumbing and engineering detail out unless the reader asks to dig deep, then give the full technical view. Atris exists to take 80 to 90 percent of the technical headache off a business and give it a system to run on.
  • No em dashes anywhere; use a comma, colon, or period.
  • The test before sending: read it fried at 2am. If decoding takes work, rewrite it.

copy these shapes:

  • Status: "The reply check is built. I am running the final checks now, so the result is not ready yet."
  • Landing: "Replies now get a plain-language check before they reach you. The checks passed, and the change is ready."
  • Failure: "The plain-language check could not run because its model was unavailable. Your reply still went through, so no work was blocked."

Canonical source: atris/atris.md ## voice. This block is a copy for tools that only read AGENTS.md; if they differ, atris.md wins.

Quick Start

atris
atris task list --status open
atris task claim <id> --as <agent>

Run atris first. It prints repo state, the files to read, and the next command.

If there is no existing task, create one before editing:

atris task new "<small concrete title>" --tag <area>
atris task claim <id> --as <agent>

Core Files

Atris is the source of truth. This file is only an adapter for tools that read AGENTS.md; do not turn it into a parallel brain. Durable policy, workflow, task truth, proof, review, and backend/cloud sync all flow through Atris.

FilePurpose
atris/atris.mdProtocol/backbone for this workspace
atris/PERSONA.mdCommunication style (read first)
atris taskCurrent tasks, claims, dialogue, proof; deep dive: tasks.md
.atris/state/tasks.projection.jsonReadable task projection for UIs/agents
atris/TODO.mdRendered/legacy task view only
atris/MAP.mdNavigation (where is X?)

Proof Surfaces

Run atris run logs to inspect autonomous plan/do/review phase logs. Use atris run search, stats, export, diff, and prune-logs when proof needs to be found, compared, shared, or kept concise.

Agent Contract

Every agent should leave four artifacts another agent can trust:

ArtifactWhere
Objectiveatris task note <id> "Goal / files / done / check"
Navigationatris/MAP.md when a new route or file location is learned
ChangeSmall git diff in declared files only
Proof readyatris task ready <id> --proof "<commands or receipt>"
Acceptatris task accept <id> by a human, or autoland lands certified work when the owner flipped atris autoland on (protected lanes still wait)
Land or reapmerge your branch or delete it before you stop; atris land shows limbo, atris land --reap clears it

Do not rely on chat context. Put the task, file pointers, and proof on disk. Do not write new operating doctrine here first; add it to Atris policy, skills, wiki, or atris/atris.md, then regenerate this adapter if needed.

Native goals and task approval are separate gates:

Agent proof ready -> native goal can complete
Human accept      -> task Done + AgentXP awarded

Always-on agents should move proof-backed work to Review, complete their native goal, then stop that task. The next goal or recurring monitor starts in a new dedicated task. They must not run atris task accept or claim AgentXP themselves; acceptance comes from a human or from the owner's standing atris autoland policy, never from the agent.

Mission-shaped user intent wins before normal task selection. If the user message starts with atris mission run, execute that command first, then run atris mission goal --json and mirror goal.visible_goal into the native chat goal. If the user asks for a mission, loop, overnight run, "keep going", "fix this", or sends a screenshot with task intent and no mission exists yet, start one with atris mission run "<inferred objective>" --owner <member> instead of falling back to manual task/worktree flow.

Codex agents with native goal tools should run atris mission goal --json before choosing work. If the payload includes goal.visible_goal, mirror goal.objective when this active task has no goal yet or its goal already matches; never reuse a completed task or complete unrelated active goals just to make room.

Workflow

PLAN  → atris plan   (break ideas into tasks)
BUILD → atris do     (execute tasks)
CHECK → atris review (verify + cleanup)

Parallel Member Worktrees

Default to the current checkout for small, clean, single-agent fixes. Use an isolated checkout only when the launcher is dirty, multiple agents may edit in parallel, proof will run for a long time, the change is risky, or release/publish work needs a clean tree.

atris worktree guide
atris worktree start --member <member> --task "<short task>" --claim
atris worktree start --agent <subagent> --task "<short task>"
cd <printed path>
atris worktree ship --message "<commit summary>" --verify "<test command>" --merge

This ties member/agent identity, mission/member state, branch name, isolated checkout, optional Swarlo claim, verification, push, PR, and merge together. Use atris worktree status before broad staging and atris worktree cleanup / atris worktree cleanup --apply to remove clean merged worktrees.

Mission Autonomy

Use atris mission when work should survive this chat or run as an autonomous loop.

member -> mission start --verify -> status --status active -> one bounded step -> mission tick --verify -> receipt -> complete|run|stop
  • Start current-agent work: atris mission start "<objective>" --owner <member> --runner codex_goal --lane code --verify "<cmd>" --stop "<condition>"
  • Start headless Claude work: add --runner claude --cadence "15m" --always-on, then use atris mission run <id> --max-ticks 4 --complete-on-pass.
  • Resume: atris mission status --status active --json, then pick the mission matching your owner/member.
  • Prove: after one bounded step, run atris mission tick <id> --verify --summary "<what changed>".
  • Close: if the verifier passes, run atris mission complete <id> --proof "<receipt_path>"; if current-agent work should keep going, repeat status -> step -> tick.
  • Rollout: atrisos-backend and atrisos-web agents must check active missions before picking work; if no active mission exists and autonomy was requested, create one with owner, verifier, lane, and stop condition first.

Build Craft: what decides acceptance

Mined from this repo's receipts (803 receipts, 1711 episodes): proofs naming a runnable verify command were accepted 670/674 at the gate; 24 of 28 bounces named none. These rules are the difference, in priority order:

  1. Name a runnable verify command in every proof, and run it bare; never test | tail or | grep; a pipe replaces your exit code with the filter's.
  2. A task naming a spec file (atris/features/<name>/idea.md) is a contract. Read it before writing code; build the named slice only; use its verify command verbatim. Do not improvise adjacent improvements.
  3. Zero new dependencies. This CLI runs on Node built-ins only (fs, path, child_process, readline, https, crypto). A package.json dependency change is an automatic bounce.
  4. New CLI command = router entry too. A commands/<name>.js branch is dead until the name is in knownCommands in bin/atris.js. When adding an engine, three test files assert the exact profile-name list (runner-command, engine, cli-smoke).
  5. Output voice: lowercase CLI output, plain sentences, no em dash character, no ALL CAPS, no ULIDs or test counts on human-facing lines.
  6. Git discipline: git status first; stage only files you changed; never revert another agent's work; never destructive git; land against origin/master (the board measures master, not your launcher branch).
  7. Final report = files changed + verify command + its exact exit/output. Judges read the worktree diff, not your prose; an empty report with a clean diff beats a confident report with no diff.
  8. Update the map sections you touched: routing rows in atris/MAP.md, file:line refs in atris/refs/MAP-NOTES.md (refs drift on their own clock; stale refs contradict closed lessons for months).
  9. Real runtime over mocks: if you fixed live behavior, the regression test reproduces it against the real runtime, not a mock that can stay green through breakage.
  10. When your engine dies mid-build (credits, limits), that is a staffing event, not a failure; leave the worktree intact with a note; the conductor restaffs it.

Rules

  • 3-4 sentences max per response
  • Use ASCII visuals for planning
  • Check MAP.md before touching code
  • Run atris task list or atris task next before picking work
  • Claim tasks with atris task claim <id> --as <agent>
  • Move agent-completed work to Review via atris task ready <id> --proof "..."
  • Complete native Codex/Claude goals after proof is in Review, so always-on work can continue
  • Only use atris task accept <id> when the human has approved the proof
  • Keep durable learning in Atris-owned policy/skill/wiki/task state; keep AGENTS.md as a generated/pointer layer
  • Treat atris/TODO.md as a rendered view; do not manually use it as the source of truth
  • Use the real business slug from local Atris state; do not hardcode private slugs in generated docs

Anti-patterns

  • Don't explore codebase manually (use MAP.md)
  • Don't skip visualization step
  • Don't leave stale tasks
  • Don't hand-edit TODO.md for active task ownership
  • Don't write verbose docs

Protocol: See atris/atris.md for full spec.

<!-- ATRIS_BRAIN_COMPILE:START -->

Atris start-up notes

This folder keeps notes that give every agent the same starting context.

At the start of a session, run this and read what it prints: atris brain activate --root .

Then read these files in order:

  • atris/now.md
  • atris/brain/STATUS.md
  • atris/brain/self_improvement_ledger.md
  • .atris/state/chat_scan.latest.json
  • atris/wiki/concepts/agent-activation-contract.md
  • atris/skills/atris/SKILL.md
  • atris/PERSONA.md
  • atris/MAP.md
  • atris/TODO.md
  • atris/wiki/index.md

First reply: open with the one thing most worth doing today. Then say why, what is already prepared and where to look for more. Shape: <name>, today is about <the one thing> -> I picked this because <why now> -> Ready: <what is prepared> -> Go deeper: <2 to 4 paths>.

Keep this voice in every reply:

<!-- ATRIS_VOICE_CARD:START -->

Voice card

Start with the answer, then give the reader only what helps them act. Name the exact thing in plain words, like you are talking to a person.

Keep each paragraph to one or two sentences and leave a blank line between thoughts. Use a comma or period instead of an em dash.

Status example: The reply check is built. I am running the final checks now, so the result is not ready yet.

Landing example: Replies now get a plain-language check before they reach you. The checks passed, and the change is ready.

<!-- ATRIS_VOICE_CARD:END -->

After meaningful work, save fresh notes: atris brain compile --root . --yes

<!-- ATRIS_BRAIN_COMPILE:END -->

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.