How instructions reach an agent

An agent knows only what is in its context. Loading every rule into every session wastes that space and buries the rule that matters. The layout this page explains keeps a short bootstrap in every session and lets it tell the agent which other instructions to open, and when.

Five layers

The bootstrap, the repository’s own instructions and the list of available skills are present from the start. Cards, runbooks, skill bodies and lessons arrive when the work calls for them.

LayerLoadsStarted byHolds
BootstrapFrom the startThe harnessRules for nearly all work, and an index of standards and runbooks, each with a read_when phrase.
Repository instructionsFrom the start, in that repositoryThe harnessThe repository’s AGENTS.md: how this codebase builds, tests and lands.
SkillsThe listing from the start; a body when startedThe agent or the humanThe listing names each available skill and what it is for. A skill’s body, its packaged instructions, loads when the skill starts.
Standards cards and task runbooksWhen the index matches the workThe agentA card holds the rules for one activity, such as testing or commits. A runbook walks through a recurring procedure, such as a code review.
LessonsWhen a runbook’s task asks for themThe agentEvidence-backed notes from earlier runs of the same task, found by search.

One instruction does most of the routing

In measurements, this instruction moved card selection on four cases from none to all (Opus from 0 of 8 samples to 8 of 8, Haiku from 0 of 8 to 12 of 12), though agents still miss cards whose moment they do not recognize.

Your next action in every task whose activity an entry in the standards indexes below names, however small, such as writing, reviewing or brainstorming code or prose, running tests or gates, creating a branch or watching a pull request, is one overwing standards show <name>... call naming every entry that fits the work. Do it before you read or edit the files the task concerns, and choose again as the scope becomes clear; a task being small is not a reason to skip it.

The bootstrap

The index is what the agent matches

Each index entry pairs a card’s name with a read_when phrase. The agent never sees a card’s rules until it opens it, so the phrase is the only thing it can match against the task in front of it.

A card is reachable only if its read_when phrase names a moment an agent would recognize. “Writing tests” is a moment. A topic such as “quality culture” is not, and a card indexed that way is rarely opened, however good its rules are. A good phrase is necessary but not sufficient.

standard-testing — writing tests, or judging test evidence in a review

standard-commits — writing a commit message

standard-comments — writing or changing code, or cleaning up or reviewing its comments

Standards index lines, from the bootstrap

Step through a session

Demo An invented session in an invented repository. The index lines and the testing rules are quoted verbatim; the task, files and output are made up.

Step 1 of 6

Session starts

The harness loads the bootstrap before any task arrives. Its standards index lists every card with a read_when phrase naming the moment it applies.

loadbootstrap loaded: rules for nearly all work, then the standards index
…
- `standard-comments` — writing or changing code, or cleaning up or reviewing its comments
- `standard-dependencies` — adding, upgrading or reviewing a third-party dependency
- `standard-testing` — writing tests, or judging test evidence in a review
- `standard-commits` — writing a commit message
…

What the rules look like

Rules are short, specific and checkable. These excerpts are quoted verbatim.

Measure before you adopt. These rules were tuned against specific models, and the routing sentence’s wording came from measurements: it moved card selection from none to all on four cases. A rule that works here may not transfer to your model, so measure it there rather than assume it does.

Before calling a change done, prove every surface it changes with that surface's own evidence: behavior with a test that fails without the change, a CLI with the installed candidate run for real, a service with its real surface exercised, performance with measured numbers, prose by reading it as its audience would, and UI by screenshotting the running app and judging it by eye, which tests or a source review never replace.

The bootstrap: what done means

Brevity means fewer ideas, not fewer words per idea: cut the least useful point, never the articles, verbs, pronouns or connectives.

Clipped: "Fixed cache test. Flaky b/c TTL race → bumped timeout."

Complete: "I fixed the flaky cache test. It failed because of a TTL race, so I raised the timeout."

The bootstrap: how replies are written

1. Every sentence must be useful to the reader; true but useless is still noise. Cut it.

2. Delete filler: "basically", "essentially", "it's worth noting", "in order to". Say the thing.

3. Make claims falsifiable. "Completes in under 200ms at p99" beats "fast".

4. Active voice, and the subject acts: "the store validates input", not "input is validated".

5. One idea per sentence. Answer first, reasoning after.

6. State what is, not what is not. Name where the capability lives instead of listing where it does not.

standard-writing, rules 1 to 6

3. Give each description one useful home. Repetition earns its place only when a different context requires it; adjacent headings, captions and body text should contribute distinct information. A heading of "Faster deployments" followed by "Deploy faster" repeats the promise; the body should explain how the product delivers it or what evidence supports it.

standard-product-presentation, rule 3

Where a new rule goes

Put a rule in the narrowest home that still reaches every session that needs it.

The bootstrap

It applies in most sessions and fits in a sentence or two.

For example: Proving a change with the evidence its surface needs.

A standards card

It governs one activity that an index phrase can name.

For example: How tests are named and what they cover.

A task runbook

It is a recurring procedure with steps in order.

For example: Reviewing a change, or writing a ticket.

The repository’s AGENTS.md

It is true of one codebase only.

For example: Which command runs this repository’s tests.

A gate or hook

It must never fail.

For example: A secret scan on every commit, or a byte budget for the bootstrap.

Instructions make a behavior likely; only a check makes it certain. When a rule must hold every time, write the check, and keep the instruction for the reasoning behind it.

Evals measure how likely “likely” is