Launch agent worktree for a specific task
Creates git worktrees with task-specific PROMPT.md files for agent execution.
/plugin marketplace add cyotee/cyotee-claude-plugins/plugin install cyotee-backlog-plugins-backlog@cyotee/cyotee-claude-plugins<task-number>Create a git worktree and PROMPT.md for a task, ready for agent execution.
Task to launch: $ARGUMENTS
Extract task number from arguments.
Read UNIFIED_PLAN.md and find the specified task.
Determine worktree location based on task Layer:
lib/daosys/lib/crane submodulelib/daosys submoduleGet branch name from the task's "Worktree:" field.
Create the worktree:
cd <appropriate-location>
git wt <branch-name>
Write PROMPT.md in the worktree root containing:
<promise>TASK_COMPLETE</promise><promise>TASK_BLOCKED: [reason]</promise>Record worktree in UNIFIED_PLAN.md:
| Task N | `<branch-name>` | π In Progress |
| Task | Worktree | Status |
|------|----------|--------|
Output launch instructions:
# Launch Agent for Task N: <title>
Worktree created at: <full-worktree-path>
Recorded in UNIFIED_PLAN.md
## Start the agent:
cd <full-worktree-path>
claude --dangerously-skip-permissions
## Then in Claude, run:
/ralph-loop:ralph-loop "Read PROMPT.md and execute the task described in it." --completion-promise "TASK_COMPLETE" --max-iterations 10
# Task N: [Title]
[Full task content from UNIFIED_PLAN.md]
---
## Agent Instructions
1. Read this PROMPT.md and CLAUDE.md to understand the task
2. Perform inventory checks listed above
3. Implement the user stories
4. Verify completion criteria are met
5. Output your completion promise
## Completion
When done, output: `<promise>TASK_COMPLETE</promise>`
If blocked, output: `<promise>TASK_BLOCKED: [reason]</promise>`
The table in UNIFIED_PLAN.md should follow this format:
## Worktree Status
| Task | Worktree | Status |
|------|----------|--------|
| 1 | `feature/v3-mainnet-fork-tests` | β
Complete (merged to `crane/main`) |
| 2 | `feature/slipstream-utils` | β
Complete (merged to `crane/main`) |
| 3 | `feature/uniswap-v4-utils` | π In Progress |
Status values:
π In Progress - Worktree active, agent workingβ
Complete (merged to <branch>) - Task done, worktree can be deletedβΈοΈ Paused - Worktree exists but agent not runningβ Blocked: <reason> - Agent encountered blockerlib/daosys/lib/crane/../crane-wt/feature/<branch>