git-parsec-0.1.0 is not a library.
git-parsec
Git worktree lifecycle manager for parallel AI agent workflows
parsec manages isolated git worktrees tied to tickets (Jira, GitHub Issues), enabling multiple AI agents or developers to work on the same repository in parallel without lock conflicts.
The Problem
Git uses a single working directory with a single index.lock. When multiple AI agents (or developers) try to work on the same repo simultaneously:
git add/commitoperations collide on.git/index.lock- Context switching between tasks requires stashing or committing WIP
- Worktrees exist but have poor lifecycle management
- No connection between tickets and working directories
The Solution
# Create an isolated workspace for a ticket
# Start another ticket simultaneously (no conflicts!)
# See all active workspaces
# Check if any workspaces touch the same files
# Complete: push, create PR, and clean up in one step
)
# Remove all merged/stale workspaces
Features
- Ticket-driven workspaces — Create worktrees named after Jira/GitHub Issues tickets
- Zero-conflict parallelism — Each workspace has its own index, no lock contention
- Conflict detection — Warns when multiple workspaces modify the same files
- One-step shipping —
parsec shippushes, creates a PR, and cleans up - Agent-friendly output —
--jsonflag on every command for machine consumption - Status dashboard — See all parallel work at a glance
- Auto-cleanup — Remove worktrees for merged branches automatically
Installation
Or build from source:
# Binary at ./target/release/parsec
Configuration
# Interactive setup
# Or edit directly: ~/.config/parsec/config.toml
# ~/.config/parsec/config.toml
[]
# Where to create worktrees (relative to repo root)
= ".parsec/workspaces"
# Branch prefix for new worktrees
= "feature/"
[]
# "jira" | "github" | "none"
= "jira"
[]
= "https://yourcompany.atlassian.net"
# Auth via PARSEC_JIRA_TOKEN env var
[]
# Uses gh CLI authentication
[]
# Auto-create PR on ship
= true
# Delete worktree after successful push
= true
# PR draft mode
= false
Commands
| Command | Description |
|---|---|
parsec start <ticket> |
Create a new worktree for a ticket |
parsec list |
List all active worktrees |
parsec status [ticket] |
Detailed status of a workspace |
parsec ship <ticket> |
Push + create PR + cleanup |
parsec clean |
Remove merged/stale worktrees |
parsec conflicts |
Detect file conflicts across worktrees |
parsec switch <ticket> |
Print the workspace path (for cd) |
parsec config init |
Interactive configuration setup |
parsec config show |
Show current configuration |
Global Flags
| Flag | Description |
|---|---|
--json |
Machine-readable JSON output |
--quiet |
Suppress non-essential output |
--repo <path> |
Target repository (default: current dir) |
Comparison with Alternatives
| Feature | parsec | worktrunk | git worktree | git-town |
|---|---|---|---|---|
| Ticket tracker integration | Jira/GitHub Issues | No | No | No |
| Conflict detection | Cross-worktree | No | No | No |
| One-step ship (push+PR+clean) | Yes | No | No | Yes |
| JSON output for AI agents | Yes | Yes | No | No |
| Auto-cleanup merged | Yes | Yes | Manual | No |
| Status dashboard | Yes | Yes | No | No |
| Zero config start | Yes | Yes | No | No |
License
MIT