Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Worktrunk

$ wt Community Med Risk
Max Six · Code & DevOps · MIT / Apache-2.0 · macos / linux / windows

Rust 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.

FCRS-1.0 Score
88 /100
Good
Medium Confidence
Zero-Friction Install
brew install worktrunk
CLI vs MCP Decision CLI Only

Worktrunk (wt) manages local filesystem worktrees directly with wt list --format=json, making an MCP server unnecessary.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

First-class wt list --format=json output and flag-driven wt switch --create enable deterministic multi-agent worktree orchestration.

  • wt list --format=json emits structured branch and dirty-state JSON
  • Supports explicit branch/base flags on wt switch --create
Trust & Safety 20 / 25

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
Setup & Portability 14 / 15

Single Rust binary installable via Homebrew, Cargo, and GitHub Releases across macOS, Linux, and Windows.

  • Zero-dependency native Rust binary
Utility & Efficiency 14 / 15

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
Maintenance & Lineage 9 / 10

Actively maintained open-source project (max-sixty/worktrunk) under dual MIT/Apache-2.0 license.

  • Open-source repo with frequent releases
Docs & Verifiability 9 / 10

Clear documentation at worktrunk.dev covering CLI subcommands, JSON schema, and agent workflows.

  • Dedicated CLI docs at worktrunk.dev

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Operates on local Git repositories; optional PR status integration delegates to installed gh or glab CLI.

Side Effects
Read-Only Local Write Destructive
Cost & Quotas

Dual MIT / Apache-2.0 open-source Rust CLI; free to use.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List active worktrees and dirty state as JSON
wt list --format=json

Returns structured JSON containing worktree paths, branch names, ahead/behind counts, and change flags.

Controlled Writes & Previews

Create an isolated worktree for a new branch
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=json gives 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 switch without a target branch launches an interactive TUI picker that hangs non-TTY agent shells.
  • ! Shell cd integration hooks require shell wrapper setup; agents should read paths from wt list --format=json directly.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI