Sub topic 12
Agent mode beyond VS Code
This 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.
The same ideas, different names
Most editors with an agent mode share one structure. A chat panel sends your prompt and context to a model. The model calls tools to search, read, edit, and run commands. You approve or reject the results. What changes between products is the menu labels, where settings live, and which file names the agent reads.
The following table maps VS Code concepts to what you will usually find elsewhere. Treat the right-hand column as a guide to what to look for, not as exact names. Product names and settings change often, so confirm them in each editor's current documentation.
| Concept | VS Code with GitHub Copilot | JetBrains IDEs | Cursor and similar editors |
|---|---|---|---|
| Mode choice | Ask, edit, and agent in the chat panel | A chat or agent selector in the AI tool window, depending on the plugin | A mode picker in the chat or composer panel |
| Project instructions | `.github/copilot-instructions.md` | A project rules or guidelines file, depending on the plugin | A rules file or rules folder in the project |
| Tool approval | Confirmation prompts for terminal commands and some tools | Per-action confirmation, with settings to allow more | Per-action confirmation, with an auto-run option |
| MCP servers | `.vscode/mcp.json` | MCP settings in the plugin | An MCP settings file or panel |
| Undo | Keep or undo edits, plus Git | Local history, rollback, and Git | Accept or reject changes, plus Git |
What stays the same
Four habits transfer to any editor.
- Keep a clean Git state before a run. A commit or branch is your checkpoint when the editor's own undo is limited.
- Put build commands and conventions in the instructions file. Every editor has some equivalent, even if the file name differs.
- Write prompts with a goal, acceptance criteria, and a verification step. The agent loop depends on being able to check its own work.
- Read each terminal command before approving it.
What changes
Check these before you trust a new setup.
- Instructions file name and location. A
.github/copilot-instructions.mdfile helps only editors that read it. If your team uses several tools, you may need one file per tool with the same content. Some tools read a shared file such asAGENTS.md. Verify which ones yours supports. - MCP configuration format. The server definition, meaning the command and its arguments, is usually the same. The wrapper around it is not. VS Code uses a top-level
serverskey. Other editors commonly use a different key, such asmcpServers. - Default approval level. Some editors ask before every command. Others offer an auto-run setting. Start with the strictest setting and loosen it only for commands you understand.
- Model list. Available models depend on your plan and the plugin. A model that works well in one editor may be missing in another.
- Undo behavior. Some editors keep a per-session history of agent edits. Others rely on your version control. Find out which one you have before a large task.
Example: the same MCP server in another editor
The filesystem server from the VS Code chapter on MCP can be reused. Only the outer key and the workspace variable change in many editors. The sketch below shows a common layout. Check your editor's documentation for the exact file path and variable syntax.
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/absolute/path/to/your/project"
]
}
}
}Some editors do not expand ${workspaceFolder}, so this example uses an absolute path. Limiting the server to one folder keeps its reach small, just as it does in VS Code.
Choosing between editors
Exercises
Exercise
Your team uses both VS Code with Copilot and another editor. The build and test commands are in .github/copilot-instructions.md, but the other editor's agent keeps forgetting to run tests. What is the likely cause, and what are two ways to fix it?
Show answer
The other editor probably does not read .github/copilot-instructions.md. You can create that editor's own rules file with the same content, or use a shared file such as AGENTS.md if both tools support it. Verify in each tool's documentation which file it reads.
Exercise
You copy the VS Code mcp.json filesystem entry into another editor and the server does not start. Name two things to check.
Show answer
Check whether the editor expects a different top-level key, such as mcpServers instead of servers, and whether it expands ${workspaceFolder}. If it does not, use an absolute path. Also confirm the config file location.