AI Coding Agent Session Manager
for VS Code & Cursor

Manage AI coding agent sessions across git repositories and worktrees. Fork conversations, track changes, run quick actions. Supports Claude Code today — extensible for other agents.

Features

AI Session Management

Create, resume, rename, and organize AI coding sessions. Import existing sessions. Every session links to a Claude Code session ID for seamless resumption.

Git Worktree Integration

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

Session Forking

Branch your AI 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 Workflow

Task Without Agntree With Agntree
Switch AI sessions Find session IDs, run claude --resume <id> Click a session in the sidebar
Parallel branches Juggle terminals, manually create worktrees One-click worktree creation
Fork a conversation Copy session files, create worktree manually Right-click → Fork Session
Track changes Run git diff repeatedly Built-in changes panel with diffs
Common prompts Retype or search history One-click quick actions
Multi-repo management 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 provides a unified interface to manage AI coding agent sessions across git repositories and worktrees. It lets you create, resume, fork, and organize AI conversations alongside your git workflow.

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 AI coding?

Git worktrees let you check out multiple branches of the same repository into separate directories simultaneously. This is useful with AI coding agents because you can have separate AI sessions on separate branches, running in parallel, without conflicts. Agntree makes creating and managing worktrees effortless.

How is session forking different from starting a new session?

When you fork a session, the full conversation history is copied to the new session. The AI agent retains all context from the original conversation and can continue from that point. Starting a new session means the AI has no memory of previous work. Forking is ideal for exploring alternative approaches while keeping the original session intact.

Is Agntree free?

Yes. Agntree is free and open-source under the MIT license. You need your own Claude Code subscription to use the AI session features.