Skip to content
xsemanPublic

About

Run AI coding agents side by side in git worktrees and review their changes, all in one terminal UI

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Repository files navigation

🌳 pando

A terminal workspace for AI agent sessions.
Run Claude, Codex or any shell across several projects and git worktrees at once,
and review what they changed with VS Code's diffs, all in one TUI.

Latest release CI status Runs on Linux and macOS Apache 2.0 license

Install · Quick start · Usage · Keys · Docs

pando with Explorer on the left and Sessions on the right, two projects and their claude sessions in it, one working, one waiting for a yes, one done; between them two editor groups side by side, store.go and the claude session that just changed it


Why pando

I wanted to run several coding agents at once, each on its own branch, and review what they changed without leaving the terminal. pando takes one idea from each of three tools:

  • Zed: its agent panel runs agent sessions beside the code; pando runs them side by side over many projects, each in a git worktree.
  • herdr: a terminal multiplexer for coding agents; pando borrows its design, not its code: a daemon that holds the sessions and a socket API that drives them.
  • VS Code: Source Control, its diffs and an editor, right next to the session.

Named after Pando, the aspen colony with thousands of trunks on one root: many sessions, one daemon.

Every GIF below is pando itself, recorded by make demo.

Agents in worktrees

Projects → worktrees → sessions, one agent per branch. Sessions shows each one's state as it changes: working, waiting for a yes, done. Subagents and recurring jobs list under their session; an unused one sleeps until opened. More

three claude sessions, each in a worktree of its own, come to life; one finishes (✓), one waits for a yes (×, pulsing), and the finished one's diff is reviewed and committed without leaving pando

Pick up where you left off

q closes the TUI and leaves every agent running. Stop the daemon, start pando again: every session comes back and its agent continues the same conversation. More

a claude conversation, pando closed and its daemon stopped; the next pando brings the session back and claude continues the same conversation

Review and commit in place

VS Code's Source Control beside the session: diffs inline or side by side with word-level highlights, line-level staging, AI commit messages, GitLens-style history, merge conflicts with VS Code's accept actions. More

a diff inline and side by side, staging part of it, then a conflicting merge continued with git's message

GitHub without the browser

Pull requests with their checks, issues and notifications through gh. A pull request opens as its rendered description or a diff, or checks out in a worktree of its own. More

pull requests with their checks, one opened as its rendered description and as a diff, then checked out in a worktree of its own

An editor, not a pager

Find & replace, format on save, folding, git blame, drafts that survive a restart, and any language server you configure. More

Language servers
the references peek, a code action, rename and completion, answered by gopls
Untitled buffers
a sloppy Go file typed into an untitled buffer, saved with path completion, and tidied by gofmt on the way to disk
Vim mode · vim_mode = true
a method yanked in V-LINE, put above itself, and changed into another one in INSERT
Markdown
a README as source, rendered in place, then both side by side scrolling together

Tables in a grid

SQLite, Postgres, MariaDB and MySQL: filter, sort, edit, then submit the pending SQL in one transaction. More

a SQLite table sorted, filtered and edited in a grid, the pending SQL submitted in one transaction, then sqlite3 in the terminal and the form that adds a server

Never hit a limit blind

Plan limits of every claude and codex sign-in, a meter per limit window. Near a limit pando offers the profile with the most room. More

the Usage tab with claude's default and work profiles and codex, a meter per limit window; the default near its weekly limit, work made the profile new sessions start with, then the profile picker with each one's room

Laid out like VS Code

Editor groups, a bottom panel, draggable views, VS Code's themes and remappable keys. More

Editor groups
store.go split off into an editor group on the right, maximized and restored, then a shell session moved into a group under it, beside main.go
Quick open · ctrl+p
quick open listing changed files, then files and lines for a word, the lines under their files on the Text tab, the Sessions tree and the commands

Everything else

Explorer the worktree's files with git decorations
Search workspace search & replace through rg
Revisions a file's history stepped through as diffs
Customizations an agent's skills, instructions, hooks, MCP servers and plugins in this worktree
Saved prompts alt+i picks one from ~/.config/pando/prompts/
CLI and API JSON over a unix socket; pando skill prints the guide an agent reads first
Instances pando --instance work runs a separate pando
Self-update verified against the release's checksums, on Linux and macOS

How it works

pando (TUI) ──┐
pando (CLI) ──┼── unix socket, JSON ──▶ daemon ──▶ sessions (PTY) in worktrees
agents      ──┘

One daemon owns the sessions; the TUI and the CLI are its clients, so closing the TUI leaves every agent running, and every attached TUI follows a change made anywhere.

Install

curl -fsSL https://raw.githubusercontent.com/xseman/pando/master/install.sh | sh

Linux and macOS. The script verifies the binary against CHECKSUMS.txt and installs it to ~/.local/bin (PANDO_VERSION pins a release, PANDO_INSTALL_DIR moves it). From source: make install (Go 1.26).

Needs git, and the agents you run in sessions (claude, codex, gemini, agy, grok, opencode) or a shell. Optional, each for one feature:

Tool For
gh GitHub
rg search
sqlite3 (3.37+), psql, mariadb or mysql databases
gopls or another language server the editor
claude, codex, gemini or opencode commit messages
a Nerd Font; Symbols Nerd Font Mono is enough icons

Quick start

pando ~/code/app   # add a project and open it; plain `pando` reopens the last
pando main.go:42:5 # the project holding main.go, the file open at line 42
Key Does
3 Sessions: your projects, worktrees and sessions
w a new worktree for the selected project
n a new session in the worktree: an installed agent or a shell
ctrl+] move focus out of the session; inside it every key goes to it
2 Source Control for the session's worktree: review and commit
? every key of every view
q close pando, asking first; the sessions keep running

pando again brings the TUI back where it was. pando stop stops the daemon and every session in it; the next pando starts them again.

Docs

Doc For
Usage the user guide: sessions, review, editor, CLI, files
Settings config.toml, every setting, colors, keys
Keys every key, per view and in a file
Agent guide driving pando from an agent; pando skill prints it
Architecture daemon, socket protocol, sessions, packages

Contributors: UI layout · views · preview · git · testing · release.

Development

make build builds ./pando, make test and make lint check it as CI does; AGENTS.md and the contributor docs above describe the code.

Related

Other readers of the same agent files, worth a look when an agent changes its format:


Found a bug or have an idea? Open an issue.

About

Run AI coding agents side by side in git worktrees and review their changes, all in one terminal UI

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages