The highest-leverage file in agent-assisted work is the one your agent
reads at the start of every session (CLAUDE.md in Claude Code; a
system prompt elsewhere). Most people fill it with project trivia. The
part that changes outcomes is a short section of working
agreements: one-line gates distilled from failures that have actually
cost you.
You’ve met this before. This is the blameless postmortem’s action-item list, made automatic: incident → written rule → the whole team reads it. The team here is you plus the agent, and “reads it” means literally every session.
Where this comes from: the Agent Workflow Failure List was distilled from 25 measured sessions containing 16 buggy-code incidents. The repeats didn’t stop because the model got better; they stopped when the incident classes were written down as gates the agent reads every session.
Why your incidents, not someone else’s
An agreement you copied doesn’t get enforced, because neither you nor the agent can tell when it matters. An agreement written from a failure you paid for is checkable: you know the exact moment it applies, and so does the agent, because the line says so concretely.
Use the workflow list as a menu, not a manifest: skim the 18 entries, mark the ones that have actually happened in your projects, and encode only those.
Try it
Do it by hand
- Skim the workflow list. Note which entries you’ve personally hit. (Most people recognize three to five immediately.)
- Open your
CLAUDE.mdand add a## Working agreementssection with one line per gate. - State each as behavior, not values. “Show the failing number before any fix” is a gate; “be careful with verification” is a vibe.
- Cap it at five to eight lines. A list the agent can hold in mind beats coverage. It’s the same rule the failure lists follow.
Or paste this into Claude
Read the Agent Workflow Failure List (I'll paste it, or fetch it from
https://github.com/chronick/lemon-agent). Then interview me, one
question at a time, about which of its 18 failures have actually
happened in my projects. Pick the three to five that have, plus any I
describe that aren't on the list, and write them into this project's
CLAUDE.md as a "## Working agreements" section: one line per gate,
stated as behavior ("show the failing number before any fix"), never as
advice ("be careful"). Show me the diff before writing anything.
Watch out
- Dense shorthand (AF-16): if the next human to read your agreements can’t parse them, neither can the agent, reliably. Plain sentences.
- Twenty gates: past ~8 lines the section becomes documentation and stops being a checklist. Cut to what you’d defend.