worktree-list

SkillDev tools

List all git worktrees with status info (branch, clean/dirty, deps)

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the worktree-list skill

What this skill tells your AI

The instructions your AI receives, as published by the-agency-ai/the-agency in .claude/skills/worktree-list/SKILL.md and read by ahel’s review.

List Worktrees

Show all git worktrees under .claude/worktrees/ with their status.

Instructions

Step 1: Gather worktree info

Run git worktree list. For each worktree under .claude/worktrees/:

  1. Agent — read .claude/worktrees/<name>/.agency-agent if it exists (the bound agent identity). If missing, show (unbound).
  2. Branchgit rev-parse --abbrev-ref HEAD (in the worktree)
  3. Dirtygit status --porcelain (in the worktree)
  4. Dependencies — check if dependency artifacts exist (node_modules/, vendor/, .venv/, etc.)

Step 2: Format output

Worktrees (.claude/worktrees/):

Name              Agent         Branch                  Status    Deps
──────────────────────────────────────────────────────────────────────
hello-world       hello-world   hello-world             clean     yes
mdpal             mdpal-cli     mdpal                   clean     yes
fix-auth          (unbound)     fix-auth                dirty     no

If no worktrees, say "No worktrees found."

Step 3: Show instructions

To switch to a worktree, start a new Claude Code session:
  cd .claude/worktrees/<name>/ && claude

Signals

GitHub stars
55
Forks
8
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
worktree-list-the-agency-ai
Source
github.com/the-agency-ai/the-agency