Director dispatch protocol zh

From funnycups/Luker · View interactive version

Director dispatch protocol zh is an AI agent skill from the GitHub repository funnycups/Luker. Sub-agent dispatch protocol — task brief shape, parallel pattern, what sub-agents see, briefing discipline.

How to use this skill

Skill file

director-dispatch-protocol-zh

This skill is the director main-agent's sub-agent dispatch protocol for the default RP profile.

Your configured analysts

Twelve sub-agents are configured by id. Dispatch them with dispatch_subagent({ subagentId, task }). Their roles are fixed — you cannot rewrite their system prompts. Your only handle on what they do per dispatch is the task brief.

Three of them are SINGLE-SOURCE PRE-DRAFT SCOUTS that each scan one internal source (chat / memory / lorebook — orthogonal, fire them in parallel before drafting). One is a PRE-DRAFT NOTES SCOUT (notes_pickup_scout) that scans the OPEN notes block — your fellow author-self's plot threads — and picks the ones whose trigger conditions are ripe for THIS turn. Two are CROSS-SOURCE PRE-DRAFT SCOUTS: intent_scout joins the user's recent input against lorebook authoring-directive entries to surface what the user is asking for THIS turn (explicit + OOC asides + implicit signals) and what the lorebook demands of the writing (style / pacing / constraints / output spec); epistemic_scout maps each character's knowledge boundary by joining chat against lorebook / memory. One is an ON-DEMAND EXTERNAL SCOUT (canon_scout) for fanfiction / public-IP sessions where original-source context might matter. One is a MID-STAGE BRAINSTORMER for plot direction (dispatch SEVERAL in parallel with different angles to get genuinely different choices). Two are POST-DRAFT CRITICS that each scan a single dimension of the finished draft (orthogonal — fire them in parallel after drafting). Two are POST-DRAFT HOUSEKEEPERS — notes_curator is the ONLY mutation point for the notes substrate this round (closes notes the draft deployed; opens new ones rarely and conservatively); memory_curator is the ONLY mutation point for the memory graph this round and is dispatched every turn (it reads memory_* tools to decide what to write; on every turn it emits at least one event for timeline continuity).

Briefing the analysts

What sub-agents see / do not see

This is true for ALL sub-agents (configured or inline). Knowing the boundary lets you write briefs that fill the right slots:

Every sub-agent gets:

Sub-agents do NOT see:

Implication: you DO NOT need to verbatim-transcribe earlier sub-agent outputs into a later sub-agent's task. They already see them through the digest. The task brief is for the focal instruction (angle / dimension / question) — keep it tight.

Notes — anti-pollution policy

Notes is your plot-author thread store, NOT a turn diary. Do not open notes just to "have something recorded this round"; do not record every interesting moment as a foreshadow. A note belongs in the store ONLY if it represents a real commitment to a future payoff. If you (or your brainstormer) thought of a fun idea but did not actually commit to it in the draft, do NOT open a note for it. Closing is comparatively safe; opening is the expensive operation because every spurious open burdens every subsequent round.

In the default profile, you never call note_open / note_close directly. You dispatch notes_pickup_scout pre-draft to surface ripe notes, and notes_curator post-draft to apply opens and closes per its conservative rules. The principle above is the why behind those sub-agents' defaults — and the discipline you must follow if you ever dispatch an inline curator-style sub-agent instead.

Tools

Parallel dispatch pattern

To run N sub-agents in parallel, emit N dispatch_subagent tool calls IN THE SAME ASSISTANT MESSAGE. Each returns a handle immediately; all N run concurrently in the background. In your NEXT round, emit one await_subagents({ handles: [h1, ..., hN] }) to collect all outputs at once.

Sequential dispatch (one per round, await between each) wastes turn time. Use it only when a later sub-agent genuinely depends on an earlier one's output mid-stage — rare within one stage; different stages (scouts → brainstormers → critics) are inherently sequential because each stage awaits the previous.

Stage boundary discipline (hard rule). "Stages are sequential" means: dispatching scouts AND brainstormers in the SAME round to "save a round" is a bug, not an optimization. Same-round sub-agents are SIBLINGS — their context is frozen at dispatch time, so a brainstormer dispatched alongside scouts CANNOT read scout findings (even if the scouts return first), and will produce angles that aren't grounded in scout-established facts. The discipline:

Round R:    dispatch all of stage N
Round R+1:  await stage N → read returns → dispatch all of stage N+1
Round R+2:  await stage N+1 → ...

Inside ONE stage: parallel (N sub-agents in one round, await all next round). Across stages: sequential (one round of dispatch + one round of await + one round of dispatch ...). The director-turn-workflow-zh skill defines the stage list.

Task brief shape — per analyst

Each configured analyst has a task brief shape documented in the main agent's systemPrompt under its ### <name> section. Common slots:

Direct quotes of the brief slot lists belong inline in the main agent's systemPrompt — this skill is the protocol overlay (what / how / why), not the slot-shape reference.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.