01Chapter 1: What agent mode is and when it helpsAgent mode is a chat mode in your editor where an AI assistant works toward a goal over many steps. You describe the outcome. The agent searches your code, reads files, edits them, runs terminal commands, looks at the results, and keeps going until it decides the task is done or it needs your input.6 min read
02Chapter 2: Ask, edit, and agent modes comparedThis chapter assumes you can work in VS Code, use Git for commits and diffs, and run build or test commands in a terminal. It also assumes you have used a chat-based coding assistant before. The chapter compares the three chat modes, shows how to pick one, and covers the errors people hit when they 7 min read
03Chapter 3: How the agent loop worksThis chapter explains what happens between the moment you send a task and the moment the agent says it is done. It assumes you can edit and run projects in VS Code, use Git for commits and diffs, run build and test commands in a terminal, and have used a chat-based AI assistant before. The previous 5 min read
04Chapter 4: Giving the agent the right contextThis chapter assumes you have used chat in VS Code, you know what the agent loop is (plan, call tools, observe, repeat), and you are comfortable with Git and the terminal. It covers what the agent can see, how to add to it, and how to fix a session when it has the wrong picture.6 min read
05Chapter 5: What the agent can do: built-in toolsThis chapter assumes you know the agent loop from the earlier chapters: the model plans, calls a tool, reads the result, and repeats. It also assumes you can read a Git diff and run build and test commands in a terminal. Here you will learn what the tools are, which ones fit which jobs, and where ea7 min read
06Chapter 6: Approving tool calls and terminal commandsAgent mode edits files and runs commands on your machine. Tool approval is the checkpoint between what the model proposes and what actually happens. This chapter covers what the approval prompts mean, how to scope them, and how to loosen them without giving up control.6 min read
07Chapter 7: Teaching the agent your project with instructions filesAn instructions file is a Markdown file that your editor adds to the agent's context automatically. It holds the build commands and conventions you would otherwise retype in every prompt. This chapter covers where these files live, what to put in them, how to check that they load, and the errors tha5 min read
08Chapter 8: Writing prompts for multi-step tasksA multi-step task is one the agent cannot finish in a single edit. It has to read code, change several files, run commands, and react to the results. This chapter covers how to write a prompt that gives the agent a clear target and a way to check its own work.6 min read
09Chapter 9: Reviewing, accepting, and undoing changesThis chapter assumes you have used agent mode to edit files and run commands. It also assumes you know basic Git: git diff, git add, git commit, git restore, and branches. The examples use VS Code with GitHub Copilot. Other editors use different button names, but the working model is the sam5 min read
10Chapter 10: Adding tools with MCP serversThis chapter assumes you can run the agent in VS Code, know how built-in tools and tool approval work, and can read JSON and run commands in a terminal. You do not need to have written a server before.7 min read
11Chapter 11: Safety, permissions, and data handlingThis chapter assumes you have read the earlier chapters on the agent loop, built-in tools, and tool approval. It also assumes you use Git daily and can read a JSON settings file. Here you will learn what can go wrong when an agent edits files and runs commands for you, which controls limit the damag7 min read
12Chapter 12: Agent mode beyond VS CodeThis chapter assumes you have read the earlier chapters on the agent loop, built-in tools, tool approval, instructions files, and MCP servers. You should be comfortable with those ideas in VS Code. Here you will see how they carry over to JetBrains IDEs, Cursor, and similar editors, and where the di6 min read
13Chapter 13: Choosing a model for agent workThis chapter assumes you have used agent mode in VS Code, understand the agent loop (plan, call tools, observe results, repeat), and know how context and tool approval work from earlier chapters. It covers how to pick a model for agent tasks, what trade-offs to weigh, and what goes wrong when the ch7 min read
14Chapter 14: Troubleshooting and known limitsThis chapter assumes you have used agent mode in VS Code or a similar editor. It also assumes you know basic Git, can run build and test commands in a terminal, and have read the earlier chapters on the agent loop, context, tool approval, and model selection. Here you will learn to recognize common 7 min read