01Chapter 1: How a coding agent acts: the model, the tools, and the loopA coding agent is a language model connected to tools and run in a loop. The model never touches your files or terminal itself. Every effect on your system comes from a tool call that the surrounding program carries out. This chapter explains that mechanism, because every permission control in the l6 min read
02Chapter 2: Sorting actions by risk: read, write, execute, network, destructiveThis chapter assumes you can use a terminal and git, and that you have seen an AI coding assistant edit files or run commands. It also assumes you know the basic loop from the previous chapter: the model proposes a tool call, the agent runtime runs it, and the result goes back to the model.5 min read
03Chapter 3: Allow, ask, or deny: the permission decisionThis chapter assumes you know the agent loop from earlier in the tutorial. The model proposes a tool call, the harness (the program that runs the model and its tools) executes it, and the result goes back to the model. It also assumes you can read short Python and use a shell. Here we look at the st6 min read
04Chapter 4: Approval modes from read-only to fully autonomousThis chapter covers approval modes: the preset policies that decide how much a coding agent can do before it stops and asks you. It assumes you have read the earlier chapters on the agent tool loop, action risk categories, and the allow, ask, and deny decision. You should be comfortable in a termina6 min read
05Chapter 5: Writing allow and deny rules, and where patterns breakThis chapter assumes you know the allow, ask, and deny decisions from the earlier chapters. It also assumes you can read basic Python and shell syntax. You will write rules for shell commands and file paths. Then you will see the ways simple pattern matching fails.5 min read
06Chapter 6: Scope and duration: once, this session, or alwaysThis chapter assumes you know the allow, ask, and deny decision from earlier chapters. It also assumes you have seen glob-style command rules such as git diff*. Here the question is how long an approval lasts and how much it covers.6 min read
07Chapter 7: Sandboxing: limits the agent cannot talk its way pastThis chapter assumes you have read the earlier chapters on the permission decision (allow, ask, deny) and on approval modes. You should be comfortable with a terminal, basic shell commands, and git.6 min read
08Chapter 8: Prompt injection: when files and web pages give ordersThis chapter assumes you know how the agent loop works (the model proposes a tool call, the harness runs it, the result goes back to the model). It also assumes you know the allow, ask, and deny decisions from earlier chapters. Here you will learn how untrusted text can steer an agent, and which con6 min read
09Chapter 9: Approval fatigue: why more prompts can mean less safetyThis chapter assumes you have read the earlier chapters on the allow, ask, and deny decision, approval modes, and allow and deny rules. You should be comfortable reading short Python and shell snippets.6 min read
10Chapter 10: User, project, and organization settings: who winsThis chapter assumes you know allow, ask, and deny decisions, approval modes, and how allow and deny patterns match commands. It also assumes you know grant scopes (once, session, always). Here the question is what happens when several configuration files say different things about the same action.5 min read
11Chapter 11: Permissions for external tools and serversThis chapter assumes you know the allow, ask, and deny decision, how rules match commands with patterns, and why prompt injection (instructions hidden in content the agent reads) undermines human approval. It applies those ideas to tools the agent did not ship with.6 min read
12Chapter 12: Keeping secrets and credentials out of reachA coding agent works inside your account. It can read your files, inherit your environment variables, and run commands with your network access. Anything you can reach, it can usually reach too. This chapter covers how credentials leak through an agent session and how to layer defenses so one mistak6 min read
13Chapter 13: Running agents without a human: scripts and CIThis chapter assumes you have read the earlier chapters on approval modes, allow and deny rules, and sandboxing. You should be comfortable with shell scripting and have seen a CI pipeline such as GitHub Actions or GitLab CI.6 min read
14Chapter 14: Reviewing what the agent did: diffs, logs, and version controlThis chapter assumes you know the allow, ask, and deny decisions and the approval modes from earlier chapters. It also assumes you are comfortable with git status, git diff, and git commit, and can read a short Python script.5 min read
15Chapter 15: Choosing a mode: a decision checklistThis chapter assumes you have read the earlier chapters on risk categories, the allow/ask/deny decision, approval modes, rules, and sandboxing. You should be comfortable in a terminal and with git. Here you turn that material into a repeatable way to pick a mode for a real task.5 min read