Worktrunk
$ wt Community Med RiskRust CLI designed to manage parallel Git worktrees cleanly for multi-branch development and concurrent AI coding agents. Exposes structured worktree state via wt list --format=json and automates isolated workspace creation with wt switch --create.
brew install worktrunk Worktrunk (wt) manages local filesystem worktrees directly with wt list --format=json, making an MCP server unnecessary.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
First-class wt list --format=json output and flag-driven wt switch --create enable deterministic multi-agent worktree orchestration.
wt list --format=jsonemits structured branch and dirty-state JSON- Supports explicit branch/base flags on
wt switch --create
Scoped to local git worktrees with explicit branch creation flags, though removing worktrees can discard untracked state if forced.
- No remote writes by default; operates on local Git worktrees
Single Rust binary installable via Homebrew, Cargo, and GitHub Releases across macOS, Linux, and Windows.
- Zero-dependency native Rust binary
Purpose-built for parallel agent isolation, replacing boilerplate git worktree path management and status parsing.
- Combines worktree creation, status JSON, and cleanup in one binary
Actively maintained open-source project (max-sixty/worktrunk) under dual MIT/Apache-2.0 license.
- Open-source repo with frequent releases
Clear documentation at worktrunk.dev covering CLI subcommands, JSON schema, and agent workflows.
- Dedicated CLI docs at worktrunk.dev
Security, Auth & Guardrails
Operates on local Git repositories; optional PR status integration delegates to installed gh or glab CLI.
Dual MIT / Apache-2.0 open-source Rust CLI; free to use.
# Worktrunk (wt) Agent Rules - Inspect active worktrees with `wt list --format=json` before creating or removing workspaces. - Avoid running `wt switch` without a branch argument in non-TTY sessions, as omitting it opens an interactive picker. - Confirm with the user before removing worktrees with uncommitted changes.
Agent-Ready Command Recipes
Safe Read-Only Queries
wt list --format=json
Returns structured JSON containing worktree paths, branch names, ahead/behind counts, and change flags.
Controlled Writes & Previews
wt switch --create feat/agent-task --base main
Creates a new branch and isolated worktree directory based on main without prompting.
Strengths for Agents
- +
wt list --format=jsongives agents structured visibility into every worktree's ahead/behind and dirty state. - + Purpose-built for isolating concurrent agent branches into separate directories.
Caveats & Pitfalls
- ! Calling
wt switchwithout a target branch launches an interactive TUI picker that hangs non-TTY agent shells. - ! Shell
cdintegration hooks require shell wrapper setup; agents should read paths fromwt list --format=jsondirectly.