worktrunk

worktrunk is a skill for Claude Code, Codex from jjmartres/ai-coding-agents. It costs 135 tokens per session (1,876 once invoked), scanned B, original, MIT.

Guidance for Worktrunk, a command-line tool that manages Git worktrees. A worktree is a separate working directory connected to the same repository, useful for isolated branches and parallel agents.

In plain words
What is it for?
Use it to create feature worktrees, launch Claude in them, list or switch worktrees, merge changes, remove worktrees, and commit staged changes.
Why use it?
It gives agents a consistent way to create, switch between, merge, and remove isolated branches without manually managing worktree commands.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Use it to create feature worktrees, launch Claude in them, list or switch worktrees, merge changes, remove worktrees, and commit staged changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jjmartres/ai-coding-agents/worktrunk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jjmartres/ai-coding-agents --skill worktrunk
Clone the repo
git clone --depth 1 https://github.com/jjmartres/ai-coding-agents

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for worktrunk

README.md
[![agentmods](https://agentmods.dev/badge/skills/jjmartres/ai-coding-agents/worktrunk/github.svg)](https://agentmods.dev/skills/jjmartres/ai-coding-agents/worktrunk)
Your own site
<a href="https://agentmods.dev/skills/jjmartres/ai-coding-agents/worktrunk"><img src="https://agentmods.dev/badge/skills/jjmartres/ai-coding-agents/worktrunk/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for worktrunk

Your own site · 80×15
<a href="https://agentmods.dev/skills/jjmartres/ai-coding-agents/worktrunk"><img src="https://agentmods.dev/badge/skills/jjmartres/ai-coding-agents/worktrunk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,876 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00135 $0.01876
Opus 5.5 $0.00054 $0.00750
Sonnet 5.5 $0.00027 $0.00375
Haiku 4.5 $0.00014 $0.00188

Measured 1mo ago against content hash b76c420bb1bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

worktrunk scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Add to `~/.claude/settings.json` for statusline:
shared/.ai-agents/skills/worktrunk/SKILL.md · 253 lines

How it starts

The opening of the file, as written. The whole thing — 253 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Worktrunk Skill

Worktrunk (wt) is a CLI for git worktree management designed to run AI agents (like Claude Code) in parallel across isolated branches. Think of it as making git worktree as easy as git branch.

Quick Reference

Task Command
Create worktree + switch wt switch --create feat
Create worktree + launch Claude wt switch --create feat -x claude
List all worktrees wt list
Merge & clean up wt merge main
Remove current worktree wt remove
Commit staged changes wt step commit

Installation

# macOS/Linux (recommended)
brew install worktrunk && wt config shell install

# Cargo
cargo install worktrunk && wt config shell install

# Windows
winget install max-sixty.worktrunk
git-wt config shell install

Shell integration (wt config shell install) is required so that wt switch can actually change the shell's directory.

Core Workflow

1. Create and Switch

wt switch --create feature-auth         # New branch + worktree
wt switch --create feature-auth -x claude  # + launch Claude in it
wt switch existing-branch               # Switch to existing worktree
wt switch -                             # Previous worktree

Worktrees are placed at ../repo.branch-name by default (configurable).

2. Inspect Status

wt list                    # All worktrees with status, commits, CI
wt list --full --branches  # Include remote branches without worktrees
wt list --format=json      # Machine-readable output

Key indicators in wt list:

  • @ = current worktree
  • + / - = staged / unstaged changes
  • ↑ / ↓ = ahead / behind remote
  • ⇡ / ⇣ = ahead / behind default branch
  • 🤖 = Claude is working (Claude Code plugin)
  • 💬 = Claude waiting for input

Read the full file on GitHub · 253 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 253 lines · 135 tokens per session scan B b76c420bb1bb

Subscribe to this mod's changes

worktrunk is a skill published in the GitHub repository jjmartres/ai-coding-agents (48 stars, last pushed yesterday), licensed MIT. It adds 135 tokens to every session and 1,876 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

audit-pr

Audit a whole PR against the delivery contract and return MERGE-READY or evidenced blockers with the full URL. Consumes the current review-change REVIEW-PASS receipt instead of re-running review axes; posts a SHA-bound ready comment; never edits or merges. Triggers: "audit-pr", "is this PR ready", "merge gate".

gtrabanco/agentic-workflow · 71 tokens

execute-phase

Step executor for units whose triage (unit-lane) decided which steps the unit needs. Implements one triaged step (or all remaining steps), with frozen acceptance, step-local gates, commits, red-gate repair, and diff-size guard. BREAKING: replaced PLAN.md/TASKS.md/progress.md/ACCEPTANCE.md with the unit doc's Tasks…

gtrabanco/agentic-workflow · 106 tokens

resolve-repository-state

Resolve an explicit Normalized Repository State contradiction. This is the sole writer allowed to update frozen repository facts or accepted decisions. Triggers: "resolve repository state", "resolve contradiction", "update a frozen repository fact".

gtrabanco/agentic-workflow · 48 tokens

project-release-maintainer

Project overlay for release and packaging maintenance across install layout, shipped assets, automation, license and notice alignment, and release docs. Not for content-only documentation or publishing without explicit authorization.

n-n-code/n-n-code-skills · 41 tokens

pod-init

Initialize CocoPlus project bundle in the current directory. Creates .cocoplus/ directory structure, copies all templates, initializes AGENTS.md, project.md, flow.json, and creates the initial git commit. Run this once per project before using any other CocoPlus command.

Snowflake-Labs/cocoplus · 57 tokens

changelog

Update per-package CHANGELOG.md files for a Ratel release. Drafts entries with git-cliff (scoped per package), lets you curate, then writes the CHANGELOGs. Handles both RC entries and GA-graduation collapse (merging X.Y.Z-rc. sections into a single X.Y.Z section). Invoke before tagging a release.

ratel-ai/ratel · 74 tokens