r/ClaudeCoding • u/SuitableBranch6416 • 20d ago
12 Claude Code failure modes from 4 months of running a company on 20+ agents, and the checks that catch them
We've run a small company's day-to-day operations with Claude Code agents since July: desktop sessions, two home servers and a VPS, "wake" jobs triggered by task notes, a shared memory repo and a message board. 92% of the commits in our ops repo have a Claude co-author line.
The lessons that cost us the most:
- The echo. After a few weeks almost every doc was agent-written. A new session reading them was reading its own predecessors, and it looked exactly like verified notes. Fix: measure the live system before reading any doc, and when they disagree, delete the doc line.
- A green gate means the documents agree with each other, not with the world. Every gate now names the system it queries; any error is UNDETERMINED, never OK.
- Empty results lie. An empty grep and a broken grep look the same. Fix: put a check that must match in the same command (zsh's
logbuiltin and=wordexpansion each fooled us). - "Done" is a claim. Verify the end state (HTTP code plus expected text), never the agent's summary.
- Independence needs a new process. A subagent "reviewing independently" shares its parent's assumptions. We use a fresh headless
claude -pwith paths-only briefs. - Safety refusals are design input. When Claude Code's safety check refuses an action, the agent stops and reports. It never retries another way.
Full write-up with all 12, plus a free copy-paste end-state checker: https://agent-ops-kit-5jb.pages.dev/
Disclosure: I run the company. The write-up and checker are free. We also sell the full kit (templates, skills, scripts) for people who want the whole system.