Research-worker dispatch
Use exactly one research worker; never create a chain of workers.
The coordinator supplies the research-worker model and the complete research task. Dispatch the worker as a read-only subagent with that model named on the dispatch and hosted web search and fetch tools allowed.
Before dispatch, the coordinator writes the exact complete research-task prompt
bytes to an immutable session-scratch file and passes that file's contents as
the worker's prompt. The worker receives no chat transcript or other
coordinator-session material. The prompt requires the worker to return a final
message beginning SOURCE_ACCESS_UNAVAILABLE: when hosted search or fetch is
refused, and to write no findings document in that case.
Only when that worker finished in a terminal, resumable session and its final
message begins with the exact SOURCE_ACCESS_UNAVAILABLE: prefix may the
coordinator fetch the required public sources. Create a unique
.research-sources.* directory under the worker cwd, store only fetched public
unauthenticated source files plus manifest.md mapping each file to its source
URL, and resume the same worker with the manifest's absolute path. This bounded
handoff is the sole narrow exception to the original-prompt-only rule and takes
precedence over it. The directory is removed after completion.
If the worker leaves no resumable session or the coordinator cannot obtain the
required primary sources, stop explicitly and write no successful findings
document. Never put transcripts, credentials, secrets, .env, patient data,
authenticated or private source material, or unrelated coordinator-session
content in the handoff.
The worker performs the research directly and returns source-cited findings to the coordinator. Never spawn another background agent or nested worker. If the worker fails or is interrupted, report the failure explicitly. Do not describe a successful dispatch as completed research. The coordinator writes the returned findings to the single Markdown file required below.
The research worker's job
- Investigate the question against primary sources — official docs, source code, specs, first-party APIs — not a secondary write-up of them. Follow every claim back to the source that owns it.
- Return the findings to the coordinator, citing each claim's source.
- The coordinator writes the returned findings to a single Markdown file. Save it where the repo already keeps such notes; match the existing convention, and if there is none, put it somewhere sensible and say where.


