Permissions and the sandbox
Permissions set what the system may do without asking a person. A sandbox is a fenced area that limits what a mistake can reach.
- In the invoice task
- The system may read invoices and write drafts. It may not send. A person reads each draft and sends it, and that is the first line we would draw.
- The real names
- Claude Code has permission modes. In Manual mode it asks before most actions that edit files, run commands or reach the network. In auto mode a second model, called the classifier, reviews most actions instead of you and blocks the risky ones; as of October 2026 that is the starting mode in its command-line version. Codex has two comparable settings, a sandbox mode and an approval policy.
- The limit
- Claude Code’s sandbox is off by default and covers only the commands it runs on the computer; connections made through MCP run outside it. In the invoice task, accounting and email go through such connections, so the no-send rule does the work. A file edit can be reversed; a sent email cannot.
Context
Context is what the model is told about the job before anyone types a request. The harness adds it at the start of each session, a session being one working conversation from start to finish.
- In the invoice task
- Your payment terms, the tone you use with customers, the customers who never get an automatic reminder, and where the invoices are kept.
- The real names
- A file of written instructions. Claude Code reads one named CLAUDE.md at the start of every session. Codex reads one named AGENTS.md before doing any work.
- The limit
- The file guides the model and does not bind it. Anthropic’s documentation says Claude treats these instructions as context, not enforced configuration. Anything that must never happen belongs in permissions.
Memory
Memory covers two different problems: a conversation that gets too long, and a conversation that ends.
- In the invoice task
- A long list of invoices fills the conversation, so the harness summarises what came before and carries on. Next month the work starts from a blank conversation, unless something was written down, such as a note that one customer always pays in the second week.
- The real names
- Summarising a long conversation is called compaction: Claude Code clears the older results first, then summarises if needed. Notes kept between sessions are called auto memory: notes Claude writes itself from your corrections and preferences.
- The limit
- Compaction loses detail, and instructions given early in a conversation may be lost, which is why lasting rules go in the instruction file. Auto memory has a ceiling: at most the first 200 lines of its main note load when a session starts.
Verification
Verification means the work is checked against something other than the model’s own judgement. A model can write that an amount is correct without looking it up.
- In the invoice task
- Before a draft reaches a person, a fixed check, not the model, compares the amount and the due date in the email with the accounting record. A mismatch holds the draft back.
- The real names
- Claude Code describes a task as three phases: gather context, take action, verify results; not every task needs all three. A harness can also force a check with hooks, commands it runs automatically before or after an action.
- The limit
- A check catches only what it was written to catch. An email with the right amount and the wrong tone passes.