Agents, MCP and skillsLoading progress…

Task decomposition

Choose when to delegate independent work and define handoffs, shared-state rules and evaluation.

Task decomposition

Delegating to several agents only pays off if the work really splits. Look at outputs and dependencies. Three research tasks of 2, 5 and 3 minutes are independent, and merging them takes 1 more minute and needs all three. One worker needs 11 minutes; one worker per task needs 6, because the merge waits for the slowest. Dependent steps, such as editing what another step produces, need an order and a contract about what is handed over.

task A (minutes)2task B (minutes)5task C (minutes)3merge (minutes)1
A 2B 5C 3merge 1
one worker, one after another: 11 minutes parallel where the dependencies allow: 6 minutes speed-up 1.833 A, B and C are independent: the slowest one sets the pace

Split work by outputs and dependencies. Independent research can run at the same time; dependent steps need an order and a contract about what the earlier step hands over.

Change durations and add a dependency.

Predict first. Can task B safely consume an unfinished artifact from task A without a contract?

Chapter context

Delegation can divide a task into focused work units, but coordination creates costs and new failure paths. Add helpers when their independent contributions can be integrated and checked more clearly than one agent can do the work alone.

Chapter reference: math, worked example & code

This section belongs to the whole chapter, so it is the same on every lesson in it and may cover a different lesson's topic. The code for the experiment you just ran is inside the experiment itself.

Math and notation

With independent parallel task durations t1,…,tnt_1,\ldots,t_n and merge time m, an ideal lower-bound schedule is max⁡iti+m\max_i t_i+m, excluding orchestration overhead. If independent tasks each succeed with probability p, all n succeed with probability pnp^n; correlated failures invalidate that simple model.

Worked example

Three tasks take 2,5 and 3 minutes; integration takes 1. Ideal sequential duration is 11 minutes, while fully independent parallel duration is 6. Separately, three independent 90%-reliable components all succeed with probability 0.9^3=0.729. The latency gain does not itself establish a reliability gain.

Reference code

The following example uses the Python standard library and does not call a remote service.

from math import isclose
times,merge=[2,5,3],1
assert sum(times)+merge == 11
assert max(times)+merge == 6
assert isclose(.9**3,.729)

Python examples are provided for study and local execution; this page does not execute Python.

Common mistakes

Parallel workers need explicit ownership of shared artifacts. Agreement can reflect correlated failure. More agents can increase token usage and integration work even when wall-clock time falls.