01Chapter 1: What a terminal coding agent isThis chapter assumes you can use a shell and run your project's tests and build from the terminal. You should know basic git (commit, branch, diff) and have Node.js and npm installed. You should also have a rough idea of what a large language model (LLM) is.2 min read
02Chapter 2: How the agent loop worksThis chapter assumes you can use a shell, run your project's tests, and know roughly what a large language model (LLM) is. It explains the loop that Claude Code, Codex CLI, and Copilot CLI share. The rest of the tutorial builds on it.2 min read
03Chapter 3: The tools an agent can callThis chapter assumes you know the agent loop (model call, tool call, observation) and are comfortable with a shell and git. It covers the built-in tools that Claude Code, Codex CLI, and Copilot CLI give the model, and how to reason about each one's risk.2 min read
04Chapter 4: Installing and signing inThis chapter covers installing the three tools and signing in to each. It assumes you can use a shell, have Node.js and npm installed, and know what a terminal coding agent is from the earlier chapters.2 min read
05Chapter 5: Working in an interactive sessionAn interactive session is a running conversation between you and the agent inside your terminal. This chapter assumes you have installed one of the tools, signed in, and can run your project's tests from the shell. It also assumes you know the agent loop from earlier chapters: model call, tool call,2 min read
06Chapter 6: Context, history, and keeping sessions focusedThis chapter assumes you can start a session in Claude Code, Codex CLI, or Copilot CLI and that you know the agent loop (model call, tool call, observation). It covers what the agent can "see" at any moment and how to keep that view useful.2 min read
07Chapter 7: Project instructions with CLAUDE.md and AGENTS.mdThis chapter assumes you can start an agent session in a repository (see the installation chapter) and understand that the agent's context window holds everything it can see at one time. You should also be comfortable with a project's build, test, and lint commands.3 min read
08Chapter 8: Slash commands for controlling a sessionThis chapter assumes you can start an interactive session in a project (see the earlier chapters on installing and working interactively) and that you know what the context window is. Slash commands let you steer the session itself instead of sending a prompt to the model.2 min read
09Chapter 9: Permissions and approval modesThis chapter assumes you can start a session in Claude Code, Codex CLI, or Copilot CLI, and that you know the built-in tools from earlier chapters: file edits, shell commands, and search. Here you learn how each tool decides whether an action runs or waits for you.2 min read
10Chapter 10: Sandboxing what the agent can touchThis chapter assumes you know how approval prompts work from the previous chapter, and that you are comfortable with shell commands and file paths. Approvals ask you before an action runs. A sandbox is different. It is a boundary enforced by the operating system, so a command cannot go outside it ev2 min read
11Chapter 11: Configuring each tool with settings filesThis chapter assumes you can edit JSON and TOML files, and that you know what permission prompts and sandboxes are from the previous chapters. Settings files make those choices repeatable. Instead of answering the same prompt every session, you write the decision down once.2 min read
12Chapter 12: A plan, implement, verify workflowThis chapter assumes you can run your project's tests from the terminal, use basic git (branch, diff, commit), and have started one of the three agents in a project. It also assumes you know that an agent calls tools in a loop. Here you will apply that loop to a repeatable workflow with three phases2 min read
13Chapter 13: Checking the agent's work with tests and reviewThis chapter assumes you can run your project's tests and linter from the shell, read a git diff, and have used an interactive agent session. An agent's summary says what it intended to do. Verification checks what it actually did.2 min read
14Chapter 14: Using git as a safety netThis chapter assumes you can commit, branch, and read a diff, and that you have started an agent session in a repository. Git is the tool that lets you undo an agent's work. Agents can edit many files in one run, so the safety net has to be in place before you start.2 min read
15Chapter 15: Running agents from scriptsThis chapter assumes you can write shell scripts, know how exit codes and pipes work, and have read the chapters on permissions and configuration files. An interactive session needs a person to answer approval prompts. A script has no person, so you must decide in advance what the agent may do.2 min read
16Chapter 16: Connecting external tools through MCPThis chapter assumes you know the agent loop, the built-in tools, and how permissions work. It also assumes you can read JSON and TOML.2 min read
17Chapter 17: Custom commands, hooks, and subagentsThis chapter assumes you know how instruction files, permissions, and slash commands work from earlier chapters. The examples use Claude Code. Codex CLI and Copilot CLI offer similar features, but file locations and names differ, so check each tool's documentation.2 min read
18Chapter 18: Comparing the three tools and choosing oneThis chapter assumes you have read the earlier chapters. You should know the agent loop, instruction files, approval modes, sandboxing, and non-interactive runs. Here you compare Claude Code, Codex CLI, and Copilot CLI and pick one for a task.2 min read