/octomux:send-agent-messagefrom octomux
Sends a message or instruction to a specific agent running inside an octomux task. Useful for nudging stuck agents, providing mid-task context, or redirecting approach.
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.
Send a message or instruction to a specific agent within a running task.
Identify the task:
mcp__octomux__list_tasks()octomux list-tasks --json
Find the matching task from the list.Resolve agent number to agent ID:
The send-message command/tool requires the agent's nanoid, not its label. Get task details to map "Agent N" to the actual ID. Prefer MCP when available; otherwise fall back to the CLI:
mcp__octomux__get_task({ task_id: '<task-id>' })octomux get-task <task-id> --json
Parse the agents array. Each agent has:
id — the nanoid (use this as the agent identifier)label — display name like "Agent 1", "Agent 2"status — running, stopped, etc.window_index — tmux window indexIf the user says "Agent 2", find the agent with label: "Agent 2" and use its id.
If the task has only one agent, use that agent's ID without asking.
Check agent status:
status is stopped, do NOT send the message. Inform the user that the agent is stopped and suggest resuming the task first.status: "running".Send the message:
Prefer the MCP tool when available (you're in the orchestrator); otherwise fall back to the CLI.
MCP (preferred):
mcp__octomux__send_message({
task_id: '<task-id>',
message: '<message>',
})
CLI fallback:
octomux send-message "<message>" --task <task-id> --agent <agent-id>
The message is sent via tmux send-keys to the agent's terminal window. It appears as typed input in the agent's Claude Code session.
Confirm delivery:
Report success to the user. If needed, follow up with mcp__octomux__get_task({ task_id }) (MCP) or octomux get-task <task-id> (CLI) to check agent status after sending.
Direct agent reference (MCP):
"Send a message to Agent 2 of task abc123def456"
mcp__octomux__get_task({ task_id: 'abc123def456' })
// Find agent with label "Agent 2" -> id = "xyz789abc012"
mcp__octomux__send_message({
task_id: 'abc123def456',
message: 'Focus on the API routes first, skip the UI for now',
})
Direct agent reference (CLI fallback):
octomux get-task abc123def456 --json
# Find agent with label "Agent 2" -> id = "xyz789abc012"
octomux send-message "Focus on the API routes first, skip the UI for now" --task abc123def456 --agent xyz789abc012
Task by title (MCP):
"Nudge the stuck agent on the login bug task"
mcp__octomux__list_tasks()
// Find task with title matching "login bug" -> id = "abc123def456"
mcp__octomux__get_task({ task_id: 'abc123def456' })
// Single agent -> id = "xyz789abc012"
mcp__octomux__send_message({
task_id: 'abc123def456',
message: 'Try checking the auth middleware — the session token might be expired',
})
Task by title (CLI fallback):
octomux list-tasks --json
# Find task with title matching "login bug" -> id = "abc123def456"
octomux get-task abc123def456 --json
# Single agent -> id = "xyz789abc012"
octomux send-message "Try checking the auth middleware — the session token might be expired" --task abc123def456 --agent xyz789abc012
mcp__octomux__list_tasks() (MCP) or octomux list-tasks (CLI) and ask the user to confirm which task they mean.octomux start)What 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-agentUse when you need to attach a new Claude Code agent (new tmux window) to an existing running octomux task, sharing the task's worktree and cwd/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 changesOther plugins' skills for the same job