06 — Collaboration and memory
Chapter 06 describes a relationship, not a technology: how the user and the assistant work together, where the line runs on what the assistant may do, and how to make sure nothing gets lost between sessions. It’s a chapter about trust — built through predictability, not promises. Below is what stands behind the rules.
Three first, then a hundred
Plan → sketch → scale. ↗
Before a hundred of anything exist, three do. In the reference project the share images (Open Graph (OG) — Tags that decide how a link looks when pasted into Facebook, LinkedIn or a messenger (image, title, description). A good link card means more clicks — a bad one can show what you don’t want (e.g. a price). more in the glossary → cards) were made exactly like this: 3 examples → fixes → 10 → fixes → 100. Each round of fixes on three items costs minutes; the same fix spotted on the hundredth means redoing a hundred. A sketch is also the cheapest way to find out the assistant misunderstood the task — before the mistake gets multiplied.
Your language, your level
Speak the user’s native language ↗
An idea described in the language you think in is more precise than one translated into English in your head. So the conversation happens in your language, and that language and your technical level are written down once in CLAUDE.md — so every session speaks to you properly from the first sentence instead of working it out again (07).
Conversation is one thing, code another: identifiers 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 in English whatever the conversation’s language, and names a tool prints (commands, flags, statuses) stay in the original inside any language — because someone will search for them in exactly that form (17).
Look before you delete
Look at the target before deleting or overwriting. ↗
The instruction “delete the old 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 → directory” describes an intention, not the state of the disk. Before anything disappears, the assistant looks at what’s really there. If what it sees contradicts the description (the “old” directory holds yesterday’s files), or it didn’t create it — it reports instead of deleting. A mistake in a description is a trifle; deleting someone’s work on the strength of a wrong description is not.
Consent doesn’t carry over to the next action
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 → the login fix” is consent for that deploy, not for “deploy whenever you see fit”. If one “yes” stretched to later actions, every consent would become a blank cheque — and the user would quickly learn to agree to nothing. For the same reason publishing is taken seriously: content sent to an external service may remain in a Cache — A temporarily remembered result, so the same thing isn’t computed again on every request. Speeds the app up, but can be a trap: a stale cache shows old data. more in the glossary → or a search 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 → even after you delete it.
The permission map — why three columns
deliberately wide ↗
The permission map gathers the doctrine’s whole boundary in one place — you approve it once, on Day 0, and the assistant reads it every session. The most important thing about it is what looks least important: the left column is wide. A doctrine that only forbids produces an assistant that asks permission to run the tests — and that teaches the user to click “yes” without reading. When approvals are rare, each one gets read. Autopilot is safe precisely because the middle and right columns are explicit (16).
The middle column (“ask and wait”) works per action and per session. The right one (“never”) isn’t a default to negotiate but a floor: inventing a tax number for the terms of service, weakening a test to turn it green, or reporting “it works” without proof don’t become acceptable because someone asked. The honest answer is: why not, and what the honest alternative is.
Memory: only what isn’t in the repo
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 ↗
The assistant’s memory across sessions is valuable because it’s small. What goes in is what can’t be read from the code or the history: who you are and how you like to work, your feedback together with the “why” (so it can be applied to a new situation, not just repeated), the business goal and constraints that aren’t visible in the code.
What doesn’t go in is what the repo already knows — the code structure, the change history, the contents of CLAUDE.md. A copy of a repo fact in memory is a second version of the truth that goes stale at the first change and then misleads with full confidence. Since version 1.1.1 the doctrine says to use the memory built into the tool rather than building your own system — the tool knows best when to load it anyway.
A summary instead of a wall of text
what changed ↗
When a piece of work ends, the report shouldn’t require reading an essay. Four elements, scannable at a glance: what changed (one line), proof (how many tests passed, response codes, numbers — not “it works”), the commit (short hash and message), and the next actions in order — with the deploy still behind an explicit “yes”. The depth is matched to the reader: a technical person will want hashes and file paths, a non-technical one a plain “what changed and what’s next”.
When the context runs out
A long session doesn’t end abruptly — it gets summarised and continued. The summary keeps what happened, but reliably loses two things: why this was chosen over that, and the half-finished state in the working tree. So treat the conversation window like a whiteboard someone may wipe at any moment.
Land work in commits, not in the conversation ↗
A commit survives any summary. A “nearly finished” edit in the tree whose reasoning exists only in the chat doesn’t; it comes back as an orphan the next session has to puzzle over (05). Small, frequent commits are a context-survival strategy, not just hygiene.
Write a decision where it lives the moment it’s made ↗
“I’ll document it at the end” assumes the end will come and that you’ll still remember why. A decision goes into CLAUDE.md, a plan in docs/plans/ or a directory map when it’s made (01).
Leave
git statusreadable ↗
No half-applied refactor without a note, nothing staged and forgotten. The state of the tree is the handover letter for the next session.
When the ceiling nears, finish the current unit before opening the next. ↗
Better to finish one thing (commit + summary) than to leave two half done. The final test: if this session vanished this second, could the next one pick the work up from the repository alone — commits, docs and git status — without access to this conversation? If not, the missing piece belongs in a file. Now.