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

In one sentence: Plan → sketch → scale, approval for each action separately and one permission map — and memory only for what the repo can’t hold.

This chapter in plain terms

A chapter about how to work well with the assistant and how not to lose context between conversations.

The most important rhythm: plan → iterate → review. Before the AI does something at scale, it should show a plan or a small sketch (three examples, not a hundred), you give feedback, and only then do you scale up. That saves producing hundreds of things to throw away.

The second rule: confirm what’s irreversible or “external” — sending an email, publishing, deleting data, deploying live. And remember that approval in one place doesn’t extend to the next: “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 → this” doesn’t mean “always deploy everything”.

There’s also memory — the assistant’s built-in memory (no home-made notes system). Only what the 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 → can’t hold goes there: who you are, your feedback together with the “why”, constraints invisible in the code. You don’t copy in things the repo already knows (code structure, git history).

Finally — close a piece of work with a scannable summary (what changed, proof it works, next steps), not a wall of text. You match the depth to the reader: a technical one gets hashes and numbers, a non-technical one a plain “what changed and what’s next”.

The whole boundary in one table (permission map). Instead of gathering rules from six chapters, the boundary sits in one place, in three columns: allowed (read, test, 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 → locally, 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 →), ask first (deploy, Push / pull — Push sends your commits to the remote repository; pull fetches changes from there into your copy. A push is an “outward” action — in The Craft it needs explicit consent, like a deploy. more in the glossary →, Environment (dev / prod) — Separate places where the app runs: “dev” for safe tests, “prod” for real users. Dev is a playground, prod is where real users are — the rules for each are completely different. more in the glossary → 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 →, emails to people), never (invent legal data, commit secrets, weaken tests, report “it works” without proof). The left column is deliberately wide — that’s what makes autopilot safe.

Handing over the baton when context runs out. A long session doesn’t end — it gets summarised, and the summary loses the why you chose this over that, and the half-finished state in the tree. So ship in commits, not in the conversation; record a decision the moment you make it (CLAUDE.md/ADR (decision record) — A short note: what we chose, why, and which alternatives we rejected (Architecture Decision Record). Six months later nobody has to guess whether a decision was deliberate and whether it’s safe to change. more in the glossary →); durable facts about you and the project go to the assistant’s memory; leave a readable git status — that’s the handoff to the next session. The test: would it pick the work up from the repo alone, without this conversation?

Example of iterating: you make social-media graphics 3 → fixes → 10 → fixes → 100. Never the other way round — because a fix on three is free, on a hundred it hurts.

Read more: Claude Code best practices · project memory in Claude Code.

06 — Collaboration and memory

Commandments VI and X: how the user and the agent work together, where the boundary runs, and how nothing is lost between sessions.

Rules

  1. Plan → sketch → scale. Show 3 examples, gather feedback, then make 10, then 100 — never the reverse.
  2. Speak the user’s native language and record it (and their technical level) in CLAUDE.md once (→ 07). Code and 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 → messages stay English; names a tool prints stay English in any language (→ 17).
  3. Look at the target before deleting or overwriting. If it contradicts the description or you didn’t create it — report, don’t delete.
  4. Consent is per action. “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 → X” is not “deploy whenever”. Anything published may stay cached or indexed after deletion.
  5. Memory holds only what the 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 → can’t — who the user is, their feedback with the why, constraints not visible in code. Use the agent’s built-in memory; never copy repo facts into it.

The permission map

The whole boundary in one place — approved once on Day 0, read every session:

✅ Free — just do it⏸️ Ask, wait for a “yes”⛔ Never — whoever asks
Read/grep anything in the repoDeploy to Environment (dev / prod) — Separate places where the app runs: “dev” for safe tests, “prod” for real users. Dev is a playground, prod is where real users are — the rules for each are completely different. more in the glossary →, in any form (→ 05)Invent legal/identity data — tax ID, address, company name (→ 09)
Run tests, linters, buildsPush / pull — Push sends your commits to the remote repository; pull fetches changes from there into your copy. A push is an “outward” action — in The Craft it needs explicit consent, like a deploy. more in the glossary →/publish to a remoteDeclare a practice the code doesn’t implement (→ 09)
Commit locally, often, smallMigration (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 → or DB Database swap — Replacing the whole production database with a new version, carrying over user accounts and data. The hardest operation in The Craft — it has its own runbook and needs explicit consent. more in the glossary → on prod (→ 04)Commit secrets (→ 08)
Create/delete your own 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 →Send mail/messages to real peopleDelete a Backup — A copy of your data saved earlier, which you return to when something goes wrong. It’s the only way to undo a change to data — code comes back from git, data only from a backup. more in the glossary → that is somebody’s Rollback — Reverting a change to the previous, working state — “Ctrl+Z” for a deployment. When a new version breaks production, a rollback restores the previous one in seconds instead of fixing in a panic. more in the glossary → (→ 04)
Run any script in 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 →Delete/overwrite what you didn’t createWeaken a test or Guard — A test that enforces a project rule (e.g. “every module is in the AI_README”) and stops the commit when it’s broken. A rule without a guard is only a wish — a long session will break it in good faith. more in the glossary → to make it green (→ 03)
Write/update docs, AI_README — A map file in every code directory: what’s here, what it’s for and what to watch out for — written for search. The assistant finds the right file with one search instead of reading the whole directory. more in the glossary →, plansAdd a paid service or dependency (→ 14)Report “it works” without proof (→ 00 III)
Refactor inside the agreed scopeChange scheduler/cron or server config (→ 14)Sweep another session’s uncommitted work into a commit (→ 05)
Long jobs in the background, locallyTouch real user data (→ 00 VII)Deploy a migration with no backup taken (→ 00 V)

The left column is deliberately wide — that is what makes autopilot safe instead of rubber-stamped. A yes in the middle column is spent on that one action. The right column doesn’t move: “the user asked” is not an argument there — say why, offer the honest alternative.

Close a unit of work with a summary

A scannable summary, not prose — ideally a widget matched to the user’s level: what changed · proof (test counts, HTTP codes, numbers) · the commit (hash, message) · next actions in order (docs → plans → deploy, the deploy still behind its explicit “yes”).

Handoff when the context runs out

A long session gets summarized, and the summary drops the why and the half-finished state in the tree.

  1. Land work in commits, not in the conversation — a commit survives compaction, a half-done edit becomes an orphan.
  2. Write a decision where it lives the moment it’s made (CLAUDE.md, ADR (decision record) — A short note: what we chose, why, and which alternatives we rejected (Architecture Decision Record). Six months later nobody has to guess whether a decision was deliberate and whether it’s safe to change. more in the glossary →, docs/plans/, AI_README).
  3. Leave git status readable — it is the handoff to the next session.
  4. When the ceiling nears, finish the current unit before opening the next.

Test: could the next session pick this up from the repo alone, without this conversation?

Anti-patterns

  • 🚫 Scaling before review.
  • 🚫 Deleting or overwriting without looking at the target.
  • 🚫 Treating one-time consent as standing.
  • 🚫 Memory as a dump of repo facts.
  • 🚫 Ending a change with a wall of prose instead of status + commit + next steps.
Chapter deep-dive 06Why these rules, examples and stories from projects — what the core deliberately leaves out.

The canonical doctrine is written in English.