What the source did
- Wrote a personal operating contract that syncs across machines and loads into Claude Code and Codex automatically.
- Rules: Linear ticket before every task; Claude plans, Codex reviews; isolated git worktrees; test-first; independent reviews before PRs; feature flags for production; model choice by task complexity.
- Goal: stop re-explaining how you work at the start of every session.
“stop repeating instructions and build a system that gets better with every task”— aditya (@adxtyahq), X
Summary written by Agent Cookbook from the original post. See the original for the full context. How we source recipes
Our notes
- What it takes
- One contract file both tools load, synced across machines, plus a ticket tool.
- Where it breaks
- Agents skipping the ticket and inventing scope, and the same agent reviewing its own work.
- Human checkpoint
- You merge PRs and flip feature flags.
- Tools involved
- Claude Code, Codex, Linear (or any ticket tool)
✓ Verified Source link checked and still live. Notes by Thomas, editor. How we verify
Copy the prompt
Ours Our version, based on what aditya described. Not their wording. Fill in the [BRACKETS].
Approval rule
Set it up
- Save the contract in a file both tools read (for example `OPERATING_CONTRACT.md` plus a one-line include from `CLAUDE.md` / `AGENTS.md`).
- Sync that file to every machine you code on.
- Start one small ticket and force the full path: plan → worktree → tests → other-agent review → PR.
Common failures
- Agents skip the ticket and invent scope; keep the refuse-to-start rule.
- Reviews rubber-stamp the same agent's work; swap agents for the review gate.
Variations
- Drop Linear and use GitHub Issues only.
- Add Grok Bot as the ticket intake / status reporter, still no merge rights.
Get the 10 best agent setups. Free.
Plus new recipes every week. One email, no spam.
Unsubscribe anytime. Privacy