● Free and open source · v4.0.0

Run every coding agent without leaving VS Code.

Agntree is a sidebar for your Claude Code, Codex, opencode, and Pi sessions and git worktrees. No separate app to install, no second window to keep an eye on. It works in VS Code and Cursor.

Install for VS Code ★ Star on GitHub

code --install-extension subhashkhileri.agntree

Every agent session, in every repository, in one sidebar.

Agntree in VS Code. Every agent session, in every repository, in one sidebar. Click a session. It opens as an editor tab, resumed in the agent’s own CLI. Claude Code, Codex, opencode, and Pi. Any repository, same window.

Your agents belong where your code is

Most agent managers are a separate desktop app: another install, another window, another set of shortcuts to learn. You already spend the day in your editor. Agntree is an extension, so nothing about how you work has to change.

Nothing new to install

One extension from the Marketplace. No desktop app, no account, and nothing to configure.

Your editor, untouched

Your theme, extensions, keybindings, and terminal stay as they are. Agents run in VS Code's own terminal, in each agent's own CLI.

Review where you write

The diff, the file tree, and source control are already here. Read what an agent changed in the same place you would fix it.

Everything around the agent, one click away

Agntree groups every session under the repository and branch it runs in.

Agents are editor tabs

Each session is an ordinary tab. Drag it, split it, and watch two agents work side by side like any two files. How sessions work →

Sessions are ordinary editor tabs. Drag one to the side.

Agntree in VS Code. Sessions are ordinary editor tabs. Drag one to the side. Watch two agents work side by side. Any agents, in any layout VS Code can make.

Review beside the agent

The Changes panel follows the worktree you select. Click a file and its diff opens next to the agent while it keeps working. Changes and files →

The Changes panel follows the worktree you select.

Agntree in VS Code. The Changes panel follows the worktree you select. The diff opens beside the agent, so you review while it keeps working.

Browse any worktree's files

All Files lists the worktree you select, even one VS Code doesn't have open. Open, create, rename, and delete files without switching windows. Browse and edit files →

All Files lists the worktree you select, not only the folder VS Code has open.

Agntree in VS Code. All Files lists the worktree you select, not only the folder VS Code has open. Select a session on another branch and the panel follows it. Open to the side, copy, rename, or delete from the right-click menu. Edit a file beside the agent that is working on it.

Know who needs you

A notification when a turn ends or Claude Code asks for permission, and one key to jump to the session that has waited longest. Notifications →

Keep working while your agents run.

Agntree in VS Code. Keep working while your agents run. Agntree tells you the moment an agent finishes or needs you. Open takes you straight to the agent that is waiting.

Run agents in parallel

One git worktree per task, created from a branch or a pull request, so agents never edit the same files. Parallel agents on git worktrees →

Give each task its own branch and directory.

Agntree in VS Code. Give each task its own branch and directory. Create a git worktree without leaving the sidebar. Then start an agent in it with one click. Agents in separate worktrees never edit the same files.

Fork a conversation

Try a second approach with the whole history, beside the original or in a new worktree with your uncommitted changes. Fork a session →

Want to try a second approach? Fork the session.

Agntree in VS Code. Want to try a second approach? Fork the session. The fork keeps the whole conversation and your uncommitted changes.

Find a session by describing it

"The one where we fixed the flaky cart test." An agent searches your history across every agent and folder. Find Session →

Forgot where a conversation went? Describe it.

Agntree in VS Code. Forgot where a conversation went? Describe it. An agent searches your history, across every agent and folder. Resume the match with one click.

Terminal or panel

Move a session between its terminal and the Claude Code or Codex chat panel, without two processes sharing it. Agent panels →

Prefer a chat panel to a terminal?

Agntree in VS Code. Prefer a chat panel to a terminal? Open the same session in the Claude Code or Codex extension, and back.

Local and yours: no telemetry and no servers. Sessions stay in each agent's own storage, so uninstalling loses nothing. Privacy →

Works with the agents you already use

Mix them freely: a Claude Code session and a Codex session can sit under the same branch.

AgentStart and resumeForkAuto-importFind SessionNotificationsVS Code panel
Claude Code✓✓✓✓Finished turns and "needs input"✓
Codex✓✓✓✓Finished turns✓
opencode✓✓✓SearchedFinished turnsTerminal only
Pi✓✓✓✓Finished turnsTerminal only

Comparing with standalone apps such as Orca and Paseo, or with running the CLIs by hand? See how Agntree differs →

Questions

What is Agntree?

Agntree is a free, open-source VS Code extension that manages coding-agent sessions. It lists every Claude Code, Codex, opencode, and Pi session in one sidebar, grouped by repository and git worktree, so you can start, resume, fork, find, and review agent work without juggling terminals or session IDs. See Getting started.

Which coding agents does Agntree support?

Claude Code (version 2.1.310 or newer), OpenAI Codex, opencode (version 2 or newer), and Pi. All four can be started, resumed, forked, and imported, and all four notify you when a turn finishes. Claude Code also reports when it is waiting on a permission prompt or a question. See the pages for Claude Code, Codex, opencode, and Pi.

How do I run multiple Claude Code agents in parallel?

Give each agent its own git worktree, which is a separate directory on a separate branch of the same repository. In Agntree, hover a repository and select Create Worktree…, then hover the new worktree and select New Session. Repeat for each task. The agents cannot overwrite each other's files, and the sidebar shows which are working and which have finished. The same steps work for Codex, opencode, and Pi. See Run multiple agents in parallel with git worktrees.

How do I resume a Claude Code session in VS Code?

Open the Agntree sidebar and click the session. Agntree runs claude --resume with the session's ID in the session's directory, so the conversation continues where it stopped. Sessions you started outside Agntree are listed too. See Resume a session.

Does Agntree replace Claude Code, Codex, opencode, or Pi?

No. Agntree is a front end for the agent CLIs you already use. Starting or resuming a session opens the agent's own terminal UI, and every session stays in the agent's own storage, usable from the command line with or without Agntree.

Does Agntree work in Cursor?

Yes. Agntree is a standard VS Code extension and runs in editors built on VS Code, including Cursor. Search for Agntree in the editor's Extensions view; if it is not listed there, install the .vsix file from the latest release. See Getting started.

Is Agntree free?

Yes. Agntree is free and open source under the MIT license, with no paid tier and no account. You still need your own subscription or API access for the agents you run.

Does Agntree send my code or conversations anywhere?

No. Agntree has no telemetry and keeps its state inside VS Code. The one exception is Find Session, which runs only when you ask a question: the agent you choose reads your session history and sends what it reads to its model provider, as any session with that agent does. See Privacy.

All questions and answers →

Keep your agents in your editor

Install Agntree, add a repository, and start a session. It takes about two minutes.

Install for VS Code Get started

Not ready to install? Star Agntree on GitHub to find it again later. It is a one-person project, and stars are how other developers come across it.