This is one foundational lesson in the twelve-lesson course.
The question to explore
Invite a few helpers
When does more help save time?
Compare four workers with five. Here, the fifth adds coordination cost without removing a batch. Before adding AI helpers, ask which tasks can actually happen at the same time. Splitting work among AI helpers can reduce waiting while adding coordination. Compare four and five workers: here, the fifth adds cost without removing a batch. Use that comparison to ask which tasks can actually overlap before adding another helper.
Local teaching illustration / No AI model call / About 10 minutes / No account needed
Try the experiment
First step: Start with one worker and read the estimated time and cost.
Predict first: Will moving from 4 workers to 5 always finish the work sooner?
Toy assumptions: 8 independent tasks of 10 units each, 6 serial units, plus 2 coordination units per additional worker. Because 8 tasks split into batches of at most the worker count, 4, 5, 6 and 7 workers all require 2 batches while adding coordination overhead. These are not measured performance or prices.
Workers: 1 Elapsed time: 86 toy units Total cost: 86 toy units Speedup: 1.00× Task work: 80 Coordination: 0
Change a control to explore the example when JavaScript is enabled.
- Start with one worker and read the estimated time and cost.
- Move Workers to 4, then 5. Compare time and cost; the extra worker does not remove a task batch in this case.
- Try 8 workers. Explain why the calculated speedup is less than eightfold and why total cost has increased.
The idea
Independent jobs can overlap. Jobs that depend on an unfinished decision still have to wait. More helpers do not remove those dependencies. One helper might check a character note while another checks a setting note. Independent tasks can overlap. But a helper cannot check the ending against a decision that has not been made yet. Dependencies limit which work can start together, and the part that must run in order caps the speedup. Amdahl’s law states the cap: if a fraction s of the work is serial, no number of workers makes the job more than 1/s times faster.
This calculation assumes eight jobs taking ten units each, six units that cannot overlap, and two extra coordination units per additional worker. These are made-up units, not measured AI performance. Finishing sooner and doing less total work are different goals. This simulator assumes eight independent tasks of ten units each, six serial units and two coordination units for every worker beyond the first. Change Workers and inspect the calculated time and cost. Here the serial part is 6 of 86 units, so Amdahl’s cap is about 14 times. The ten-unit tasks cannot be split, so even unlimited workers with no coordination could not finish in less than 6 + 10 = 16 units, a speedup of about 5.4. With coordination counted, the best this model reaches is 2.87 times, at 8 workers. These are idealized estimates, not measurements from people, processors or AI agents. Actual coordination, uneven workloads and waiting can change the result. More helpers may shorten the schedule without reducing the amount of work, and extra coordination can make a real project slower.
Worked example: run it yourself
The simulator’s formula in eight lines. It prints the time, total cost and speedup for 1, 2, 4, 5 and 8 workers, so you can see the fifth worker make the job slower. time = 6 serial units + ceil(8 / workers) batches × 10 units + 2 × (workers − 1) coordination units. cost adds the same coordination to the fixed 86 units of work. Four and five workers both need two batches, so the fifth worker only adds 2 units of coordination. Speedup is 86 / time. This is the same formula the experiment above uses.
Save it as schedule.js and run node schedule.js in a terminal (Node.js 18 or later), or paste it into your browser’s developer console. Download schedule.js
function schedule(workers) {
const batches = Math.ceil(8 / workers);
const coordination = 2 * (workers - 1);
const time = 6 + batches * 10 + coordination;
const cost = 80 + 6 + coordination;
return `workers ${workers}: ${batches} batches, time ${time}, cost ${cost}, speedup ${(86 / time).toFixed(2)}x`;
}
for (const workers of [1, 2, 4, 5, 8]) console.log(schedule(workers));
Output, as printed by Node.js 25.3.0 on 3 December 2026:
workers 1: 8 batches, time 86, cost 86, speedup 1.00x
workers 2: 4 batches, time 48, cost 88, speedup 1.79x
workers 4: 2 batches, time 32, cost 92, speedup 2.69x
workers 5: 2 batches, time 34, cost 94, speedup 2.53x
workers 8: 1 batches, time 30, cost 100, speedup 2.87xTry it
Predict the time for 3 workers, then run console.log(schedule(3)). Which worker count from 1 to 8 gives the shortest time, and which gives the lowest cost?
Check your answer
workers 3: 3 batches, time 40, cost 90, speedup 2.15x. The shortest time is 8 workers (30 units); the lowest cost is 1 worker (86 units). No count wins both, so you choose by which matters more.
Take this with you
What changed?
Faster completion and less total effort are different outcomes.
Try explaining it.
Could two helpers write consecutive chapters independently if chapter two depends on an unresolved choice in chapter one?
Open a possible explanation
They could explore alternatives, but a consistent final version needs that choice to be settled or shared. Adding workers does not remove the dependency.
Choose a next step
Continue the course in order, or open the course map.