Get started in VS Code
The extension puts the AgentDuo chat in VS Code: each conversation is an editor tab, decisions and permission prompts appear above the composer, and the run’s changes open in VS Code’s diff editor.
On this page
Install
Install HaiTrieuThinh.agentduo-vscode from the Visual Studio Marketplace or the Extensions view, or from a terminal:
Terminal
code --install-extension HaiTrieuThinh.agentduo-vscode| Requirement | Details |
|---|---|
| VS Code desktop 1.95 or later | With a local, trusted folder, or no folder (then it works in your home folder). Remote SSH, WSL, containers and the web build are not supported. |
| Node.js 22.12 or later | VS Code’s own Node is not used. The extension takes the first suitable node on the PATH VS Code sees, or the path in the agentduo.nodePath setting. |
| Claude Code and Codex CLI, signed in | When VS Code’s PATH differs from your terminal’s (common on macOS when VS Code is opened from the Dock), set claude.bin and codex.bin in .agentduo/config.yaml. |
The extension carries its own engine: the npm package does not need to be installed.
Open a conversation
- Click the agentduo button in an editor’s title bar (beside Claude Code’s and Codex’s), or run agentduo: Open Chat from the Command Palette.
- Each conversation is an editor tab named after its first message. + in the tab’s title bar (or
/new) opens another one; tabs answer side by side, but a workspace runs one pipeline at a time. - After a reload or a restart, VS Code reopens the tabs: each shows what it showed, and its next question still carries what was said before.
- In a multi-root window, choose the folder first with agentduo: Choose Workspace Folder.
The composer
- The chip under the input says who a message goes to and on which model (Codex at first). Its menu switches between Codex and Claude, or makes the next message a Discuss question or a Pipeline task. A slash command typed in the composer wins over the chip.
- The mode chip opens Claude Code’s mode menu (Manual, Edit automatically, Auto). Shift+Tab in the composer moves to the next mode.
- The paperclip attaches files; you can also paste an image, or hold Shift while dragging files from Finder or Explorer onto the composer.
- Enter sends, Shift+Enter starts a new line. While something runs and the input is empty, the send button becomes Stop (Esc does the same). A stopped step continues with
/resumeor Resume.
Account & Usage and Conversations
The agentduo icon in the Activity Bar has two views:
- Account & Usage: both agents’ accounts and how much of each plan’s limits is used, with a meter per limit and when it resets. It asks the CLIs, not a model. Account & Usage.
- Conversations: the workspace’s conversations, newest first. Open a closed one to go on with it; + starts a new one; a badge counts the questions waiting for you.
Plans, changes and reports
- The ⋯ menu of a tab, and the links under each step, open the run’s plan, review, feedback and report in an editor.
- Changes lists the files the run changed and opens each in VS Code’s diff editor, from the run’s baseline snapshot to its latest one, so edits you made before the run are not included.
- Always allow on a permission prompt saves Claude’s rule to
.claude/settings.local.json, the same file Claude Code uses.
Note
Reloading the window or closing VS Code stops the current step, as Esc does. Pending decisions are deferred, unanswered permission requests are denied, and the run stays resumable. The extension never restarts a task on its own.
Doctor and configuration
- agentduo: Doctor checks Node, the CLIs, the configuration and the workspace, and writes the results to the agentduo output channel.
- agentduo: Open Configuration opens
.agentduo/config.yaml. The configuration is the same as the terminal’s and the desktop app’s: Configuration. - Settings in a tab’s title bar changes models, effort, mode and permissions, as the chat’s settings commands do, and can save them to the workspace or user configuration.