launch

A command that starts a large coding task in a separate Git worktree and a background tmux session.

In plain words
What is it for?
Use it to create or select a branch, launch Claude Code or another specified agent command, and monitor or take over the task later.
Why use it?
It isolates the task from your current working copy so the agent can work independently while you continue elsewhere.

Command

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.

agentmods
npx agentmods add commands/ourines/worktree-task-plugin/launch
Clone the repo
git clone --depth 1 https://github.com/ourines/worktree-task-plugin
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 334 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00007 $0.00334
Opus 5 $0.00003 $0.00167
Sonnet 5 $0.00001 $0.00067
Haiku 4.5 $0.00001 $0.00033

Measured yesterday against content hash 4b78a9cb7eb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

launch scanned grade A with 0 findings 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 yesterday.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/launch.md · 43 lines

What it actually says

Launch Worktree Task

默认启动 Claude Code (claude --dangerously-skip-permissions),可选参数:--codex 快速切换到 Codex CLI,或用 --agent-cmd "codex --yolo -m gpt-5.1-codex-max -c model_reasoning_effort=\"high\"" 自定义命令;在单独的 git worktree 中自主执行大任务。

Usage

Provide:

  1. Branch name - The git branch for this task (e.g., feature/my-task)
  2. Task description - What the background Claude should do

Example

User: "Launch a worktree task on branch feature/auth to implement the authentication module"

Execution

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/launch.py "<branch-name>" "<task-description>"

Prerequisites

  • Git working directory must be clean (commit or stash changes first)
  • tmux must be installed
  • Branch name will be created if it doesn't exist

What Happens

  1. Creates a git worktree at ../<project>-<branch-name>
  2. Creates a tmux session named after the branch
  3. Launches Claude Code with --dangerously-skip-permissions
  4. Sends the task prompt with instructions to use Task tool for each phase

After Launch

Use /worktree:status to monitor progress or tmux attach -t <session> to take over interactively.

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. yesterday First seen · 43 lines · 7 tokens per session scan A 4b78a9cb7eb4

Subscribe to this mod's changes

launch is a command published in the GitHub repository ourines/worktree-task-plugin (39 stars, last pushed 8mo ago), licensed MIT. It adds 7 tokens to every session and 334 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.