16 — Driving Claude
The agent’s features are documented by the agent itself; this chapter only sets project policy for using them — when they are required, and where the limits are.
Rules
- Plan mode — A mode where the assistant first reads and presents a plan but changes no files — execution comes only after your approval. For wide or hard-to-undo work: you review the decision, not the diff. A good plan also says how you’ll check it worked. more in the glossary → is required when the shape of the work is open, the blast radius is wide (Migration (database) — A controlled change to the database layout — adding a column, a table or moving data — step by step. Like a renovation to plan: rebuilding data in a set order so nothing “collapses”. more in the glossary →, tree-wide rename, URLs/redirects) or the change is hard to undo. The plan names the files, the trade-off and how the result will be verified. Skip it for a bounded fix.
- Autopilot is the default — inside the permission map (→ 06). The middle and right columns still stop it; that is what makes autopilot safe.
- Model by stakes: a cheaper model for mechanical work, the strongest for architecture, hard bugs and anything that can lose data. Never economize on a data-losing operation.
- Long work in the background; anything that must outlive the session — detached (→ 14).
- Fan out to subagents when breadth, parallel independent edits or adversarial verification genuinely help — keep the conclusion, not the dumps. Not for a one-line fix.
- One concurrent session = one git worktree — A separate working copy of the same repository, so a second parallel session works in its own folder and doesn’t clash with the first. Two sessions in one folder overwrite each other’s work; a separate working tree prevents it. more in the glossary →. Two sessions in one checkout share an Index (database) — A lookup in the database that makes searching instant instead of scanning everything in order. The first move for slow queries — like an index at the back of a book instead of reading 400 pages. more in the glossary →: they stage each other’s files and sweep half-done edits into Commit — A saved, labelled point in the project’s history — a confirmation of a specific batch of changes. Small, described commits make a history you can return to any working state from. more in the glossary → (→ 05).
- Repeated procedures become skills; “always do X after Y” becomes a Hook — Automation in the tool’s configuration that always fires on a specific event (e.g. after a file edit). Anything that must happen “always after something” shouldn’t depend on the assistant remembering. more in the glossary → (→ 02).
Anti-patterns
- 🚫 A wide or irreversible change without plan mode — you review the Diff — A list of the differences between two versions: what was added and removed, line by line. Reviewing the diff before merging is the last chance to see what’s really going to production. more in the glossary → instead of the decision.
- 🚫 Hand-confirming every safe edit — slow, and it trains rubber-stamping.
- 🚫 A cheap model on a migration that can lose data.
- 🚫 Two sessions in one checkout.
- 🚫 A job that must outlive the session left in the session background.