rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
zhyunran/dsh-subagent-parent-message
DSH plugin: bidirectional subagent messaging - subagent_parent_message (child to parent; one-shot/workflow OK) + subagent_send_message (parent to direct continuable child). 子 agent 双向:直连父会话 + 父联系直接子。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zhyunran/dsh-subagent-parent-message
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English · 中文
Bidirectional messaging tools for delegated DSH subagents.
subagent_parent_message — child → direct parent. It reads the parent from the child's own Session header and delivers a durable peer-session message, so one-shot/workflow children can report without writing a file first.subagent_send_message — a namespaced alias for the core adjacent-agent channel (parent ↔ direct continuable child). Use it when the parent's send_message is shadowed by a team-scoped tool with a different schema.DSH core send_message only authorizes a resident continuable child to message its direct parent, and the parent often sees a different send_message ({target, message} from the experimental team tool) instead of the core one ({agent_id, message}). In practice:
subagent / subagent_fork children can reach the parent, but the parent cannot reply when its send_message is team-scoped.workflow agent() / pipeline() children are one-shot; they have no continuation activation, so core send_message fails.subagent "<id>" is unavailable).These two namespaced tools cover both directions without adding another send_message collision.
subagent_parent_message — child → parentsubagent_parent_message({ "message": "self-contained progress or result" })
subagent_parent_message({ "message": "...", "mode": "steer" })
followup (default): queue a new parent turn; wakes an idle parent.steer: inject at the parent's next step while it is running.session.header.parentSession; no parent id required.sessionController.resolveAgent cold resume, then agent.followup/steer + ctx.sessions.flush.subagent_send_message — parent ↔ direct continuable childsubagent_send_message({ "agent_id": "session-…", "message": "keep going" })
ctx.subagents.sendMessage().send_message is team-scoped (target schema), so the core channel is otherwise unreachable by name.subagent_parent_message in the child.[Subagent message from session-…]
This is a peer message from a delegated child, not the human user. Treat it as a task update.
---
<your message>
subagent_parent_message uses agent.followup(message) (or agent.steer) + ctx.sessions.flush(agent.session); subagent_send_message delegates to ctx.subagents.sendMessage().
subagent_parent_message: direct parent only, no attachments, no team mailbox; parent must be live or resumable.subagent_send_message: only direct parent/child with a resident continuable activation; it does not replace team send_message for teammates.dsh-cross-session; for teammates use agent_teams_send_message.Requires DSH 0.2.x.
dsh plugin --profile <profile> add C:\path\to\dsh-subagent-parent-message-0.1.4.tgz
# or
dsh plugin --profile <profile> add https://codeload.github.com/zhyunran/dsh-subagent-parent-message/tar.gz/<40-char-commit>
Restart DSH once after install; both tools are global and visible to subagents.
node --test test/*.test.mjs): live parent, cold resume, steer, missing parent, empty message, subagent_send_message delegation, missing service, and output-schema required placement.dsh-tools schema compile for both tools.subagent child → parent via core send_message; workflow one-shot child → parent via subagent_parent_message (followup and steer).@deepseek-ai/dsh-tools.MIT. See LICENSE.
Built for DeepSeek Harness.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。