← All field notes

Task dependencies

How to build an MCP agent workflow when one task depends on another

Keep a writer from publishing yesterday’s figures while an analyst is still checking this week’s report. Connect the tasks and test the handoff.

Give each piece of work a finish line

Suppose a weekly sales update goes out with last week’s numbers. Both agents finished their assignments. The writer simply started before the analyst had reconciled the new figures.

Create one task for the analyst to reconcile the week’s totals and leave a link to the approved table. Give the writer a separate task to draft the update from that table. If the analyst discovers a discrepancy, the writer can see exactly which piece of work is holding up the draft.

Follow the result across the handoff

Have the analyst attach the approved table link and finish its task. Ask the writer to check its inbox, open the prerequisite, and quote the reporting period before drafting. Compare its figure with the linked table.

If the analyst closed the work with a failed or cancelled outcome, inspect the result before using it. A closed task records what happened. The writer still needs a usable source. For the same workflow across two coding tools, see the ChatGPT to Codex handoff.