01Chapter 1: What agent mode is and when it helpsThis chapter assumes you can edit and run a project in an IDE such as VS Code. It also assumes you know basic Git (commits, diffs, branches), can run build or test commands in a terminal, and have used an inline or chat-based AI coding assistant before.3 min read
02Chapter 2: Ask, edit, and agent modes comparedThis chapter assumes you can work in VS Code, read a Git diff, and run build or test commands from a terminal. It also assumes you have used a chat-based AI coding assistant before. The goal is to help you pick the right chat mode for a task before you start typing.3 min read
03Chapter 3: How the agent loop worksThis chapter assumes you have used chat-based AI assistants in an IDE, can read a Git diff, and can run build and test commands in a terminal. It explains what the agent does between your prompt and its final answer, so you can predict its behavior and spot where it goes wrong.3 min read
04Chapter 4: Giving the agent the right contextThis chapter assumes you have used chat in VS Code, know the difference between ask, edit, and agent modes, and understand the agent loop from the earlier chapters. It covers how to control what the agent sees before and during a task.3 min read
05Chapter 5: What the agent can do: built-in toolsThis chapter assumes you know the agent loop (plan, call a tool, observe the result, repeat) and the difference between ask, edit, and agent modes. It also assumes you can run build and test commands in a terminal.3 min read
06Chapter 6: Approving tool calls and terminal commandsThis chapter assumes you can use VS Code, run commands in a terminal, and read a Git diff. It also assumes you have used a chat-based coding assistant. You should know the agent loop and the built-in tools from earlier chapters. Here you will learn how approval works and how to use it on purpose.3 min read
07Chapter 7: Teaching the agent your project with instructions filesThis chapter assumes you can run a project's build and test commands, you have used a chat-based coding assistant, and you know the basics of Git. It covers how an instructions file gives the agent standing knowledge about your project.3 min read
08Chapter 8: Writing prompts for multi-step tasksThis chapter assumes you have used chat-based AI assistants in VS Code, know basic Git, and can run build and test commands in a terminal. It also assumes you have read the earlier chapters on the agent loop, context, and instructions files.3 min read
09Chapter 9: Reviewing, accepting, and undoing changesThis chapter assumes you can use Git (diffs, commits, branches), you have run an agent task in VS Code, and you know the agent loop from earlier chapters. The agent edits files directly in your workspace, so reviewing its work is your main safeguard.3 min read
10Chapter 10: Adding tools with MCP serversThis chapter assumes you can edit and run projects in VS Code, you know the basic agent loop, and you have seen how the agent approves built-in tool calls. It covers how to add more tools to the agent with the Model Context Protocol (MCP).3 min read
11Chapter 11: Safety, permissions, and data handlingThis chapter assumes you have used agent mode in VS Code, can read a Git diff, and know how tool approval prompts work. It covers how to limit what the agent can do and what happens to your data.3 min read
12Chapter 12: Agent mode beyond VS CodeThis chapter assumes you have used agent mode in VS Code. You should know the agent loop, tool approval, instructions files, and MCP servers. Here you will see how those ideas carry over to JetBrains IDEs, Cursor, and similar editors, and what to check when you switch.3 min read
13Chapter 13: Choosing a model for agent workThis chapter assumes you have used agent mode in VS Code, know the agent loop (plan, call tools, observe, iterate), and can read a diff. It covers how to pick a model from the model picker and what to do when the choice goes wrong.3 min read
14Chapter 14: Troubleshooting and known limitsThis chapter assumes you have used agent mode in VS Code, know the agent loop, and can read a Git diff and run build or test commands in a terminal. It covers the failures you will meet most often and how to fix them.3 min read