Repository navigation
Description
Goal
Let a subagent send the human a message directly through the to-human plugin's message tool (mcp__to-human__message), so a blocker only the human can clear (an expired login, a missing permission, an environment stall) reaches them without passing up the dispatch chain: task-executor → plan-executor → main session → human.
Where it stands
The message tool shipped in the to-human message-tool PR (spec docs/doperpowers/specs/2026-10-20-to-human-message-tool-design.md) with subagents kept away from it twice over:
- the tool refuses any call carrying an
agentId(to-human/hooks/mods/message.tsx); disallowedToolswithholds it from every agent definition inagents/*.mdand from the owner's~/.claude/agents/astra.mdandsol-xhigh.md, as is done for compact and the ask.
Lifting it means removing both.
The design, as far as it got
The tool is a fit for telling the human, not for asking them. A subagent that tells the human what to fix can then see the fix itself when it retries. A decision or a value the agent needs back still travels up the chain, because only the main session's ask tool carries an answer back; letting a subagent ask the human directly is a separate, larger change.
What lifting the refusal needs:
- The tool's description carries when to use it. A subagent does not run under the to-human output style, so the description is all it reads.
- Each message is labeled with the agent that sent it in the view and the notification, so the human can tell which of several parallel agents is writing.
- The parent session learns the message went out, so it does not relay the same blocker again once the escalation reaches it.
- The sminos export carries subagent messages. Today
bridge-rows.tsxand the record path export only the main loop's.
Open: where a subagent's message draws in the to-human view (the subagent's calls are in its own transcript, not the main one), and whether the agent definitions that escalate today (plan-executor, task-executor) should name the tool.
Raised by the human on 2026-10-20; not to be built until they pick it up.
Sminos-Session: doperpowers-88#df0b714b (doperpowers on macbook)
Board state before the relabel: in-design.
Activity
spec: the message tool, M1 ticked, M2's decisions folded, subagents w…
to-human: the message tool's short copy, offered under the to-human s…
doperpowers 7.201.0: the style sends mid-turn messages through the me…