Claude Code Session & Worktree Manager
for VS Code & Cursor

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.

Features

Claude Code Session Management

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.

Git Worktree Integration

Automatically detects git worktrees. Create new worktrees with one click. Organize parallel branches in a dedicated worktrees folder.

Fork Claude Code Sessions

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.

One-Click Quick Actions

Run Claude prompts or shell commands from the sidebar. Configure custom actions with play/stop controls and dedicated output channels.

Built-in Changes Tracking

View staged and unstaged changes without leaving the sidebar. Inline stage, unstage, and discard actions with side-by-side diffs.

Multi-Repo Management

Add and organize multiple git repositories in one sidebar panel. Switch between projects and AI sessions without losing context.

Supported AI Coding Agents

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

Agntree vs Manual Claude Code Workflow

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

Frequently Asked Questions

What is Agntree?

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.

Does Agntree work with Cursor?

Yes. Cursor is a fork of VS Code and supports VS Code extensions. Agntree works on both VS Code and Cursor without any modification.

Can I use Agntree with GitHub Copilot, Cline, or Aider?

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.

What are git worktrees and why use them with Claude Code?

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.

How is session forking different from starting a new Claude Code session?

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.

Is Agntree free?

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.