원클릭으로
send-agent-message
Use when you need to send a message or instruction to a specific agent running inside a task
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when you need to send a message or instruction to a specific agent running inside a task
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use 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
Use when you want to update the workflow status of an octomux task, add a note, post a progress summary, or link external references (e.g. Jira tickets)
Use when creating an octomux task to dispatch autonomous Claude Code agents for building features, fixing bugs, or any code changes
Use when creating a pull request, opening a PR, or pushing and creating a PR for an octomux task
| name | send-agent-message |
| description | Use when you need to send a message or instruction to a specific agent running inside a task |
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)