dispatch-relay

Reviewed at commit 1b31380

dispatch-board 的搭檔:worker session 把回報寫進結果檔後以一行結束,由 mod 在 turn 結束時把新增內容與最終回覆轉送給指揮站(mission 檔寫了 station 才啟用;需 Claude Code ≥ 2.1.289)

Made by
Hangghost
What we checked

For worker sessions named in a dispatch-board mission file that has a station, sends the worker's result file changes and final reply to the station session on your machine at the end of each turn. While background tasks run it holds the reply for up to 10 minutes. It auto-allows only its own SendMessage calls and adds a short note to the system prompt.

Review details

Static review of the source at the pinned commit; not run. Full re-review of the new version (0.2.2). It stays off unless a mission file in the user-level missions directory (default ~/.claude/missions, refused if outside home or inside a git repo or the project; a custom path is only accepted from user-level settings) names this session as a node and sets a station. To find the session name it runs 'claude agents --json' with $.process.run (only after a mission file with a station exists). Hooks: session.start, prompt.submit and turn.start/turn.complete (state tracking), prompt.compose (adds an instruction section), tool.call (observes background Bash, Monitor, Agent, Cron and wakeup tools to count pending background work, plus SendMessage to note a self-send), session.send (observes only its own sends), tool.check for SendMessage (returns allow for sends originating from this plugin unless the recipient is explicitly another session id; the recipient is usually unverifiable, so only the sender plugin is checked), and session.end (flushes a held reply). On turn.complete it reads the result file (relative path in the session root, symlinks resolved and required to stay under the root, max 256 KB) and sends new content plus the final reply with $.session.send to the station's session id; failures fall back to a prompt asking the worker to SendMessage the content itself. New in this version: replies are held in $.store while background tasks are pending, a $.clock.after timer wakes the worker with a fixed prompt after 10 minutes so the held reply is sent, and best-effort flush on session end. It writes no files and makes no network calls. Not reviewed: the claude CLI and the dispatch-board plugin. The unresolved import ../types is the bundled types/index.d.ts (type-only).

What it uses
  • Reads your prompts: yes
  • Sees tool calls: yes
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for dispatch-relay

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/dispatch-relay.svg)](https://modsforclaude.com/mods/dispatch-relay/)

← All mods