tuitree is a terminal dashboard inspired by LazyGit that brings Git worktrees and GitHub Pull Requests together into one table per repository, making it easy to manage branches produced by multiple coding agents at the same time.
Purpose and background: when running multiple coding agents simultaneously, each agent typically occupies its own worktree and branch. After a while, multiple worktrees tend to accumulate, making it hard to tell which are ahead, which are behind main, which merges will conflict, and which squash-merged PRs have landed. tuitree presents this information in one place and supports batch-syncing or deleting completed worktrees.
Main capabilities:
- Worktree view: lists each local worktree and its branch, the number of commits ahead of/behind origin/default branch, whether it can be synced, and the files and lines changed since the merge base with origin/default branch; opening a single worktree shows a per-file list of added/deleted lines.
- Pull Request view: shows open PRs from GitHub (number, title, branch, author, draft status, file count, line count); opening one shows a per-file list and the conversation, including comments and review summaries (approved, changes requested), ordered from oldest to newest.
- Background refresh: runs git fetch origin --prune in the background on startup and refresh so the numbers match the remote, without the UI waiting on git or the network.
- Sync check: the Sync column shows the result of running git merge origin/default branch for each worktree, including statuses such as up to date, ready, ready (ff), conflicts N, dirty, merged #123, or merged; the check is performed in the background via git merge-tree --write-tree without touching branches, the index, or files.
- Merged detection: marks merged branches in two ways—by content comparison (the merge changes nothing) or by merged PR (no new commits on the branch since that PR's head)—and shows ↑0.
- Batch operations: press s to run git merge origin/default branch on marked or selected worktrees (merge only, no rebase); press x to delete marked or selected worktrees and their local branches, with a confirmation dialog listing risks such as uncommitted/untracked files, unpushed commits, and unmerged branches.
- Background task queue: deletions and syncs are queued and executed in the background; tasks for the same repository run serially (due to the git lock), while different projects run in parallel; press Q to view queue status and the full errors of failed tasks.
- Mouse operations: you can click a project, tab, or row to select it, click again or double-click to open it, click the marker column to mark a row, click a PR number to jump, click dialog buttons, and use the scroll wheel to scroll lists or PR comments.
Usage:
- Requirements: git 2.38 or newer; the PR view and PR column require the GitHub CLI with gh auth login already performed.
- Installation: download a prebuilt binary from the latest release (Linux x86_64/aarch64, macOS Apple Silicon/Intel), or use Homebrew (macOS or Linux), or use cargo install (current stable Rust), or run cargo install --path . from the cloned directory; after installation, tuitree is located at ~/.cargo/bin.
- After startup, press a to add a repository. The project list is saved in $XDG_CONFIG_HOME/tuitree/config.toml, or ~/.config/tuitree/config.toml when XDG_CONFIG_HOME is not set.
- Removing a project only removes it from tuitree and does not touch the contents on disk.
- You can use demo/setup.sh to build a temporary repository containing four agent worktrees and a mock gh for trial use.
Use cases: developers who run multiple coding agents at the same time, need to quickly grasp the status of each worktree and PR, and want to batch-clean completed branches; users who prefer a terminal interface and want to avoid manually checking repositories one by one.
Limitations and notes:
- The project is in an early stage (version 0.1.0); the primary target platform is Linux, and it can also be built on macOS.
- The PR column only matches PRs from the repository itself (not forks), matched by head branch; when multiple PRs exist for the same branch, the latest one is shown; the column is empty when gh is not installed, not logged in, or origin is not on GitHub.
- PR conversations do not show inline code comments, and reviews containing only inline comments are skipped; the body is displayed as raw Markdown without HTML comments.
- Sync onlyperforms merges, not rebases; if conflicts still occur during the merge, it runs git merge --abort and reports it.
- The delete operation does not ask a second time after confirmation; the main worktree and the default branch are not deleted, and remote branches are not touched.
- Tests require tmux; end-to-end tests use the real binary in tmux against temporary git repositories and a mock gh.
- The project is licensed under the MIT License.