The missing session manager for Claude Code CLI. Resume, fork, search, and organize your Claude Code sessions across git worktrees — all from a single VS Code sidebar.
Create, resume, rename, and organize your Claude Code sessions. Import existing sessions from ~/.claude/projects/. Every session links to a Claude Code session ID for seamless --resume.
Automatically detects git worktrees. Create new worktrees with one click. Organize parallel branches in a dedicated worktrees folder.
Branch your Claude Code conversations just like you branch code. Fork within the same worktree or to a new one with uncommitted changes carried over.
Run Claude prompts or shell commands from the sidebar. Configure custom actions with play/stop controls and dedicated output channels.
View staged and unstaged changes without leaving the sidebar. Inline stage, unstage, and discard actions with side-by-side diffs.
Add and organize multiple git repositories in one sidebar panel. Switch between projects and AI sessions without losing context.
Agntree currently supports Claude Code. The architecture is open-source and extensible — contributions to add other agents are welcome.
| Agent | IDE Support | Session Management | Status |
|---|---|---|---|
| Claude Code | VS Code, Cursor | Full support | Available |
| GitHub Copilot | — | — | Contributions welcome |
| Cline | — | — | Contributions welcome |
| Aider | — | — | Contributions welcome |
| Windsurf | — | — | Contributions welcome |
| Continue.dev | — | — | Contributions welcome |
| Task | Without Agntree | With Agntree |
|---|---|---|
| Resume a Claude Code session | Find the session ID, run claude --resume <id> |
Click a session in the sidebar |
| Find old Claude Code sessions | Browse ~/.claude/projects/ directories |
Search Sessions across all worktrees |
| Run Claude Code on a new branch | Manually create worktree, cd, run claude |
One-click worktree + session creation |
| Fork a Claude Code conversation | Copy session files, create worktree manually | Right-click → Fork Session |
| Track what Claude Code changed | Run git diff repeatedly |
Built-in changes panel with diffs |
| Manage Claude Code across repos | Separate windows per project | All repositories in one sidebar |
Agntree is a free, open-source VS Code extension that serves as a session manager for Claude Code CLI. It provides a visual sidebar to create, resume, fork, search, and organize your Claude Code sessions across git repositories and worktrees.
Yes. Cursor is a fork of VS Code and supports VS Code extensions. Agntree works on both VS Code and Cursor without any modification.
Agntree currently supports Claude Code. The architecture is extensible and open-source — contributions to add support for GitHub Copilot, Cline, Aider, Windsurf, Continue.dev, and other AI coding agents are welcome.
Git worktrees let you check out multiple branches of the same repository into separate directories simultaneously. This is powerful with Claude Code because you can run separate Claude Code sessions on separate branches in parallel, without conflicts. Agntree makes creating worktrees and launching Claude Code sessions on them effortless.
When you fork a Claude Code session, the full conversation history is copied to the new session. Claude retains all context from the original conversation and can continue from that point. Starting a new session means Claude has no memory of previous work. Forking is ideal for exploring alternative approaches while keeping the original Claude Code session intact.
Yes. Agntree is free and open-source under the MIT license. You need your own Claude Code subscription (Claude Pro, Max, or Team) to use the session management features.