Rzemiosło · The Craft
What is The CraftLevelsGet startedChapters Search Download PLEN
Level 3 · Codex ~2 min read

In one sentence: The policy for driving the agent: when to plan, when to let autopilot run, which model for what, and how to split parallel work.

This chapter in plain terms

All the rest of the doctrine is about building; this chapter is about driving the assistant itself well. Claude Code has features that change the cost and pace of every task — the difference between a slow, “click-through” session and a fast one sits mostly here.

Match the model to the task. It’s a cost/quality dial, not a set-once setting: a cheap, fast model for mechanical things (renames, simple edits), a strong one for the hard 10% (architecture, nasty bugs). Don’t pay top price for git status; don’t skimp on a 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 → that could lose data.

Plan first, then move (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 →). For unclear or wide work — a migration, a rename across the whole project, anything hard to undo — put the assistant in plan mode: it reads and researches but doesn’t touch files, and comes back with a plan. You approve it, redirect it or throw it out — at the cost of reading, not reverting. A good plan also says how you’ll check it worked.

Play on autopilot by default. For low-risk work, let the assistant act on its own — you stay the architect of decisions, not a clicker of confirmations. What makes that safe? Guardrails set once in CLAUDE.md (never Deploy — Releasing a new version of the app “live”, where real people use it. It’s the moment a change reaches real people — which is why it happens only on an explicit “deploy”. more in the glossary → without “deploy”, Dry-run — A “dry” run — the script shows what it WOULD do but changes nothing. You see the effects before executing; a data change happens only after deliberate confirmation. more in the glossary → by default). Hard, irreversible things (deploy, deletion, publishing) still require an explicit “yes”. (Division of roles: plan mode to decide, autopilot to execute what you decided.)

Run long things in the background. Servers, builds, tests, scrapers — send them to the background so the conversation keeps going; you read the result when it arrives.

Fan work out when it pays off. A task that can be split (a broad search across many files, a review from several angles) can be sent to a few “subagents” at once — but that burns tokens, so not for a one-line fix.

Give each parallel session its own tree. Two Claude sessions in one Repository (repo) — A store of the whole project’s code together with its full history of changes — who changed what and when. The repo is the project’s memory: code, documentation and change history in one place. more in the glossary → folder fight over one Git state — one’s files land in the other’s 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 →, and the symptoms read like a haunting (a Branch — A separate working version of the project where you change something on the side, without touching what already works. On a branch you experiment safely; only what’s been checked reaches the main version. more in the glossary → you never switched to; someone else’s files in git status; your edits “vanishing”). Run the second session in a separate 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 → (its own working copy) — the cost is a directory, the gain is calm.

Example of a bad dial: the most expensive model to check git status is waste; a cheap model for a migration that could lose data is a gamble. Choose by outcome, not by habit.

Read more: Claude Code best practices · choosing a Claude model · slash commands.

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

  1. 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.
  2. Autopilot is the default — inside the permission map (→ 06). The middle and right columns still stop it; that is what makes autopilot safe.
  3. 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.
  4. Long work in the background; anything that must outlive the session — detached (→ 14).
  5. 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.
  6. 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).
  7. 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.
Chapter deep-dive 16Why these rules, examples and stories from projects — what the core deliberately leaves out.

The canonical doctrine is written in English.