/octomux:add-agentfrom octomux
Attaches a new Claude Code agent (tmux window) to an existing octomux task, sharing its worktree and cwd. Use to add a reviewer, QA agent, or parallel helper to a running task.
Ships in octomux. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Attach a new Claude Code agent to an existing running task. The new agent is a fresh tmux window inside the task's tmux session, sharing the task's worktree/cwd. Each task can hold multiple agents working in parallel in the same worktree.
send-agent-messageadd-agent — creates a NEW agent (new tmux window, new Claude Code process) attached to an existing task. Use this to spin up an additional helper agent (e.g. a reviewer) alongside the original agent.send-agent-message — sends a message to an ALREADY-RUNNING agent via tmux send-keys. Use this to nudge or redirect an agent that is already working.If you want another voice in the task, use add-agent. If you want to talk to the voice already there, use send-agent-message.
Identify the task:
mcp__octomux__list_tasks()octomux list-tasks --jsonrunning status — add-agent will fail otherwiseCraft a focused initial prompt for the new agent. Keep it specific: the new agent lands in the same worktree but knows nothing about what the first agent has been doing.
Add the agent:
Prefer the MCP tool when available (you're in the orchestrator); otherwise fall back to the CLI.
MCP (preferred):
mcp__octomux__add_agent({
task_id: '<task-id>',
prompt: '<initial prompt for the new agent>',
label: '<optional label>', // optional — defaults to server-assigned "Agent N"
model: '<optional model id>', // optional — e.g. "claude-opus-4-8"
})
CLI fallback:
octomux add-agent \
--task <task-id> \
--prompt '<initial prompt for the new agent>'
Optional CLI flags:
--agent <agent-type> — use a Claude Code agent type (e.g. code-reviewer). Default: plain claude with no specific agent type.--label <label> — custom label for the new agent. Default: server-assigned "Agent N".Report: the command/tool returns the new agent's ID, label, and tmux window index on success. Pass the agent ID back to the user so they can send-agent-message to it later.
Add a reviewer to a running implementation task (MCP):
mcp__octomux__add_agent({
task_id: 'ABC123XYZ',
label: 'Reviewer',
prompt: 'Review the diff on this branch against main. Focus on correctness and edge cases, flag anything risky.',
})
Add a reviewer to a running implementation task (CLI fallback):
octomux add-agent \
--task ABC123XYZ \
--agent code-reviewer \
--label 'Reviewer' \
--prompt 'Review the diff on this branch against main. Focus on correctness and edge cases, flag anything risky.'
Add a second implementer to parallelize a subtask (MCP):
mcp__octomux__add_agent({
task_id: 'ABC123XYZ',
prompt: 'While Agent 1 finishes the API work, scaffold the frontend table in src/pages/tasks/. Do not touch server/ files.',
})
Add a second implementer to parallelize a subtask (CLI fallback):
octomux add-agent \
--task ABC123XYZ \
--prompt 'While Agent 1 finishes the API work, scaffold the frontend table in src/pages/tasks/. Do not touch server/ files.'
octomux start)running status; add-agent fails on draft, setting_up, closed, or error tasksmcp__octomux__get_task({ task_id }) (MCP) or octomux get-task <task-id> (CLI) or the dashboardWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub shreypaharia/octomux --plugin octomux20 skills in this plugin
/add-pluginUse when installing, disabling, enabling, or troubleshooting a third-party octomux plugin — the manifest row shape, octomux plugins list/disable/enable, reading octomux doctor output, and recovering a broken boot with --safe-mode./configure-harnessUse when configuring which coding-agent harness octomux launches — per-task --model, harness selection, settings.harnesses.<id>, resolveFlags/validateSettings, and registering an additional harness via a plugin./create-pluginUse when authoring a new octomux plugin package — package layout, the apply(ctx) export, choosing a registrar, shipping kind presets, testing locally, and confirming with octomux doctor./create-prUse when creating a pull request, opening a PR, or pushing and creating a PR for an octomux task/create-taskUse when creating an octomux task to dispatch autonomous Claude Code agents for building features, fixing bugs, or any code changes/implementImplement a Jira ticket — fetches ticket, checks for existing plan, creates worktree branch, runs implementation with verification. Usage - /implement IN-XXXOther plugins' skills for the same job