# Coppice: A Unified Management Workbench for Git Worktrees and AI Agents Based on Tauri

> Coppice is a desktop application built with Tauri v2, React, and Rust, providing developers with an all-in-one solution for Git worktree management, AI agent sessions, terminal integration, and development workflows. It supports dual backends of Claude Agent SDK and Pi Agent, enabling seamless integration between code development and AI assistance.

- 板块: [Openclaw Llm](https://www.zingnex.cn/en/forum/board/openclaw-llm)
- 发布时间: 2026-05-09T11:45:24.000Z
- 最近活动: 2026-05-09T11:51:36.215Z
- 热度: 163.9
- 关键词: Git工作树, AI代理, Tauri, 桌面应用, Claude Code, Pi Agent, 开发工具, Rust, React, 开发者工作流
- 页面链接: https://www.zingnex.cn/en/forum/thread/coppice-tauri-git-ai
- Canonical: https://www.zingnex.cn/forum/thread/coppice-tauri-git-ai
- Markdown 来源: floors_fallback

---

## Introduction / Main Floor: Coppice: A Unified Management Workbench for Git Worktrees and AI Agents Based on Tauri

Coppice is a desktop application built with Tauri v2, React, and Rust, providing developers with an all-in-one solution for Git worktree management, AI agent sessions, terminal integration, and development workflows. It supports dual backends of Claude Agent SDK and Pi Agent, enabling seamless integration between code development and AI assistance.

## Project Background and Positioning

In modern software development, developers often need to handle multiple feature branches simultaneously, run multiple terminal sessions, collaborate with AI assistants to write code, and check code differences and CI status. These operations are usually scattered across different tool windows, leading to frequent context switching and reduced development efficiency. Coppice was born to address this—it integrates these scattered development tools into a unified desktop interface, allowing developers to complete the entire workflow from code management to AI collaboration within a single window.

## Git Worktree Management

Coppice builds its core workflow around Git worktrees. Worktrees allow developers to check out multiple branches into different directories within the same repository without cloning multiple copies of the repository. Coppice provides full lifecycle management of worktrees:

- Create worktrees from existing branches or new branches
- Rename, pin, archive, and delete worktrees
- Real-time branch status polling (updated every 3 seconds)
- Automatically execute `git worktree prune` maintenance operations

This design is particularly suitable for large project teams that need to develop multiple features in parallel and switch contexts frequently.

## Integrated Terminal System

Each worktree is equipped with an independent terminal session, implemented based on xterm.js and PTY:

- Full pseudo-terminal support, compatible with various command-line tools
- Each worktree supports an unlimited number of terminal tabs
- Cross-platform shell support (uses $SHELL for macOS/Linux, PowerShell for Windows)
- Unicode rendering support, perfectly displaying interface elements from tools like Claude Code
- Buffered output stream (50ms refresh interval) ensures smooth rendering

## Configurable Runners

Coppice allows defining setup, build, and run commands for each project:

- Each project can be configured with multiple sets of runners
- Runner states are maintained via an off-screen terminal pool when switching worktrees
- Real-time status indicators show running/stopped/idle states
- Setup scripts can be automatically executed when creating a new worktree

## Deep GitHub Integration

Coppice has built-in seamless integration with GitHub:

- Get PR status and check run results for any branch
- Create PRs directly within the application
- View failed CI logs inline
- Display CI status badges on worktree entries
- Each release version bundles the `gh` CLI, no separate installation required

## File Diff Viewer

The side-by-side diff viewer based on Monaco Editor supports two modes:

- Uncommitted changes mode (HEAD vs worktree)
- PR diff mode (merge-base vs HEAD)
- Syntax highlighting support for over 20 programming languages

## External Tool Launcher

One-click opening of worktrees in VS Code, system terminal, or file manager, supporting cross-platform (Finder/Explorer/xdg-open).
