WEBVTT

00:00:05.500 --> 00:00:11.861
An agent is writing a product comparison, and it needs to know whether product B has actually shipped.

00:00:12.488 --> 00:00:16.867
Settling that question can take many searches and conflicting documents.

00:00:17.165 --> 00:00:18.937
Where does all of it go?

00:00:21.500 --> 00:00:25.780
Every result lands in the agent's context, beside the comparison.

00:00:26.176 --> 00:00:32.834
Once the question is settled, the investigation fills most of the window, and every later call carries it.

00:00:34.400 --> 00:00:37.717
How much of it does the comparison actually need?

00:00:40.300 --> 00:00:46.038
It needs three things: the finding, its evidence, and what remains uncertain.

00:00:46.258 --> 00:00:50.189
The searches behind them matter little to the rest of the work.

00:00:51.700 --> 00:00:57.952
So what if we gave the investigation a context of its own, and brought back only those three lines?

00:01:00.700 --> 00:01:06.667
Then the comparison's context stays small: the task, the question, the answer.

00:01:07.063 --> 00:01:11.684
A separate agent run, started for one assignment, is called a subagent.

00:01:13.400 --> 00:01:17.812
But how does a subagent start, and how does its answer get back?

00:01:20.300 --> 00:01:25.808
The parent's model requests a tool called delegate, as it would request a search.

00:01:26.028 --> 00:01:32.598
The tool's implementation starts a child run with its own context, built from the assignment.

00:01:33.900 --> 00:01:36.329
The child works through its own loop.

00:01:36.551 --> 00:01:42.430
The searches pile up in the child's context, and the parent's context stays as it was.

00:01:43.800 --> 00:01:48.080
When the child finishes, it returns a result, and its run ends.

00:01:48.378 --> 00:01:53.250
For the parent, that result is one more observation in its next context.

00:01:55.000 --> 00:01:58.273
Suppose the parent sent only a role name, researcher.

00:01:58.494 --> 00:02:00.770
What would the child know to look for?

00:02:03.300 --> 00:02:08.786
The role does not say which product, under what constraints, or what counts as released.

00:02:09.007 --> 00:02:14.459
The child might return only "Research complete," a status with no findings.

00:02:16.100 --> 00:02:23.820
An assignment names the result to pursue: product B's release status, with sources and unresolved questions.

00:02:24.041 --> 00:02:29.669
It also supplies the product identifiers, the constraints, and what counts as released.

00:02:31.400 --> 00:02:34.553
The child's context holds the whole investigation.

00:02:34.598 --> 00:02:36.820
How much of it should we send back?

00:02:39.300 --> 00:02:46.647
The full history keeps everything, but it buries the claims under search attempts, back in the parent's context.

00:02:48.300 --> 00:02:52.833
A summary keeps the meaning in a few lines, but it chooses what to keep.

00:02:53.130 --> 00:02:59.634
If it drops "Release unverified," an announcement can pass for evidence that product B is available.

00:03:01.300 --> 00:03:07.574
A reference is smaller still, but the parent has to fetch the right revision before it can read the evidence.

00:03:07.872 --> 00:03:11.364
Each form keeps something and loses something.

00:03:13.100 --> 00:03:19.045
If a boundary keeps the parent's context this small, why not give every step its own agent?

00:03:21.600 --> 00:03:27.885
Each boundary adds handoffs, so it pays only when the investigation is large and its answer small.

00:03:28.106 --> 00:03:36.658
If every step needs the parent's latest conclusions, or the parent must replay the work to use the answer, one loop may be simpler.

00:03:38.400 --> 00:03:42.615
A task can also split where its parts do not depend on each other.

00:03:42.912 --> 00:03:46.897
Suppose the comparison needs to know how revenue changed, too.

00:03:47.119 --> 00:03:54.247
One child can read company filings while another reads product documentation, and both can run at once.

00:03:55.600 --> 00:04:03.396
The comparison needs both findings, so the parent collects both outcomes before it continues, a step called a join.

00:04:03.792 --> 00:04:07.865
Suppose the documentation worker stops early, with no evidence.

00:04:08.086 --> 00:04:09.574
Both runs are back.

00:04:09.587 --> 00:04:11.797
Can the comparison be written now?

00:04:14.500 --> 00:04:15.758
It cannot yet.

00:04:15.978 --> 00:04:25.791
Waiting for both runs did not supply the evidence: a coverage check finds the documentation evidence missing, so the parent requests a narrower follow-up.

00:04:27.500 --> 00:04:31.891
The follow-up can write its findings to a note and return only the path.

00:04:32.057 --> 00:04:36.950
When its run ends, its context goes with it, but the note remains.

00:04:38.500 --> 00:04:45.201
But separate contexts do not isolate shared files, and two runs can overwrite each other's changes.

00:04:45.696 --> 00:04:51.718
So where should work that outlives its runs be kept, and how can several agents change it safely?

00:04:51.939 --> 00:04:54.347
That is the subject of artifacts.
