Delegating research with a coordinator
Divide a research brief into independent assignments and assemble a cited answer.
Design a research desk
A transit planner asks how timetable changes affected ridership and accessibility. Searching only for passenger counts would produce a well-cited answer to half the question. Write both requested outcomes on the coordinator’s checklist before assigning work.
1.2 · Allocate scope and close gaps
Use a hub-and-spoke design. The coordinator owns the brief, budget, assignment register, error handling, and synthesis. Assign station counts to one worker and accessibility evidence to another. Specify the period and geography once, and divide overlapping sources deliberately. A single timetable lookup can take a shorter route. A broad impact study warrants parallel collection, analysis, and a later synthesis pass.
Compare the first draft against the original brief. If ridership is covered but station access is missing, issue a targeted request for access records. Continue until each requested dimension has evidence, a documented conflict, or a named gap and reason. Route findings through the coordinator so every worker receives the same decisions.
Find the branch the coordinator never assigned
A transit board asks whether a new route improved travel time and access for riders using wheelchairs. Three workers return travel-time reports for different publishers. All three succeed. A draft announces that the route improved both outcomes. What belongs in the next assignment?
Check the assignment register
Start at the original brief. The assignments partitioned publishers but omitted the accessibility question. Record travel time as provisionally covered, deduplicate publishers citing the same timetable, and commission the missing investigation. Give that worker a time period, station set, definition of usable access, and a place to report missing evidence. The worker need not see every travel-time log.
Send the new findings back through the coordinator and rerun synthesis on both outcomes. If the access records never existed, report that limitation. A different strategy fits a question about a single scheduled departure, where one lookup can settle the entire request.
Video background · freeCodeCamp at 2:14:52 · How a narrow assignment loses part of a research question
1.3 · Give each worker an explicit contract
A subagent starts with its own context. Define its purpose, instructions, and tool permissions in its agent definition. Give the coordinator the subagent invocation tool. The exam guide uses Task for this tool. Current SDK examples also use Agent. Use the name supported by the installed SDK. Issue independent calls in the same turn. Hold synthesis until the inputs it needs are ready.
Assignment: compare weekday entries for the two study periods.
Return: station, period, count, source, page, limitations.
Tools: read the supplied ridership archive.
Success: identify comparable stations and disclose missing counts.
When invoking synthesis, supply the actual results, evidence locations, definitions, and dates. A message that merely says “use the previous findings” leaves an isolated worker without evidence. Keep quoted material separate from source metadata. Give the worker a goal and acceptance criteria so it can adapt how it searches.
Give an isolated worker enough information to do its job
A ridership worker returns “1,240 weekday entries, station S2, May, turnstile export r3, row 18.” Another worker has the station’s outage record. The proposed synthesis prompt says only “combine their findings.” Which tasks may run together, and what must cross the boundary before synthesis?
Inspect the coordinator’s dispatch
The ridership and outage reads are independent and can be requested together. Configure each specialist’s description, instructions and permitted reads. Permit the coordinator to invoke specialists through the tool exposed by its SDK version. Specify the research goal and acceptable evidence so the worker can adjust its search.
Wait for the required results. Send the actual counts, scope, uncertainty, outage interval and cited record locations to synthesis. A source URI by itself does not deliver the observation to a worker that cannot read that source. Forking from a common baseline can support competing interpretations, but subsequent work in one branch must be supplied explicitly to another.
Video background · freeCodeCamp at 4:37:56 · Independent calls in the same turn
Practice decision
A third worker proposes interviewing station staff after seeing the first draft. The coordinator first checks whether the missing claim needs firsthand evidence, assigns a distinct scope if it does, and gives the synthesizer the resulting evidence record.
Further reading · Building effective agents · Subagents in the Agent SDK
Delegating research with a coordinator quiz
Answer 6 questions. Check each answer for an explanation.