02Chapter 2: Sorting actions by risk: read, write, execute, network, destructiveThis chapter assumes you are comfortable in a terminal, know basic git, and have used an AI coding assistant that edits files or runs commands. It builds on the tool loop from the previous chapter. The model asks for a tool call, and the agent runs it. Before deciding which calls need your approval,2 min read
03Chapter 3: Allow, ask, or deny: the permission decisionThis chapter assumes you are comfortable with 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 tool loop: the model proposes a tool call, and the agent runs it and returns the result.2 min read
04Chapter 4: Approval modes from read-only to fully autonomousThis chapter assumes you know the allow, ask, and deny decisions and the five risk categories (read, write, execute, network, destructive) from earlier chapters. It covers approval modes, which are presets that set a default decision for each category.2 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. Here you will write rules that match commands and learn why matching text is weaker than it looks.2 min read
06Chapter 6: Scope and duration: once, this session, or alwaysThis chapter assumes you know the allow, ask, and deny decisions and have seen how allow rules use patterns. Here you will learn how long and how widely an approval applies.2 min read
10Chapter 10: User, project, and organization settings: who winsThis chapter assumes you know the allow, ask, and deny decisions, and that you can write simple allow and deny rules. It covers what happens when several settings files give different answers for the same action.3 min read
11Chapter 11: Permissions for external tools and serversThis chapter assumes you know the allow, ask, and deny decisions, how allow and deny rules match commands, and what prompt injection is. It covers tools that come from outside the agent, such as servers that expose extra tools to the model.2 min read
12Chapter 12: Keeping secrets and credentials out of reachThis chapter assumes you know how allow, ask, and deny decisions work, and that you have read the chapters on sandboxing and prompt injection. It covers how secrets reach an agent and how to keep them away from it.2 min read
13Chapter 13: Running agents without a human: scripts and CIThis chapter assumes you know the allow, ask, and deny decision, approval modes, and allow and deny rules from earlier chapters. It also assumes you can read a shell script or a CI workflow file.2 min read
14Chapter 14: Reviewing what the agent did: diffs, logs, and version controlThis chapter assumes you can use git on the command line, know the allow, ask, and deny decisions from earlier chapters, and have run a coding agent that edits files. Permissions limit what an agent may do. Review checks what it actually did. You need both, because rules can be too loose and approva3 min read
15Chapter 15: Choosing a mode: a decision checklistThis chapter assumes you know the risk categories (read, write, execute, network, destructive), the allow, ask, and deny decisions, and the difference between prompts and sandboxes. It turns those into a repeatable way to pick a mode.2 min read