i built a personal operating contract for Claude Code and Codex
by aditya (@adxtyahq) · 2026-10-16
✓ Opened via the X API on 2026-10-16
Read the original ↗One standing contract both agents load automatically: Linear ticket first, Claude plans, Codex reviews, isolated worktrees, test-first, and independent review before any PR.
- 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. See the original for the full context.
Adapted by us from what the source described. Fill in the [BRACKETS].
The prompt
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.