MiniCTRM - Build Tutorial 504: Managing the context: the conductor, subagents and compaction
→ to begin · N for the speaker notes
On a phone: Next or a swipe left to begin, Notes for the words.
What you'll learn
A practice repository set up for long sessions - a status file a fresh session resumes from, shared names, compact instructions in CLAUDE.md and an earlier compaction setting - and one run of the conductor pattern with two workers, each in its own worktree.
Why the context matters – Three costs that grow with it: time and money, attention, and compaction risk.
What you can and cannot control – The levers, who pulls each, and a look at your own window.
State on disk – Every fact the work needs later written to a file, and a fresh session resuming from the files alone.
The conductor pattern – A main session that builds nothing, workers with contexts of their own, and short reports.
Compacting earlier – A smaller window for automatic compaction, and why not smaller still.
Smaller habits – The everyday habits that keep a context lean.
If you are watching – When a compaction by hand helps, and how to tell it what to keep.
Where the course does this – Lesson 811's run and the fresh check of lesson 525.
Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.
Welcome
The scarcest thing in a long session
1 / 15Why the context matters
Three costs that grow with the context
2 / 15What you can and cannot control
The levers, and who pulls each
3 / 15What you can and cannot control
Look at your own window
4 / 15State on disk
A compaction is harmless when nothing lives only in the conversation
5 / 15State on disk
Write the state down
6 / 15State on disk
The test: a fresh session resumes from the files alone
7 / 15The conductor pattern
A main session that builds nothing
8 / 15The conductor pattern
Conduct two workers
9 / 15Compacting earlier
Compact earlier, but not too early
10 / 15Compacting earlier
Set the window, and commit
11 / 15Smaller habits
Smaller habits that keep the context lean
12 / 15If you are watching
Compact by hand, at a boundary, with focus
13 / 15Where the course does this
Where the course works this way
14 / 15What you have now
What you have now
15 / 15
You have finished lesson 504, Managing the context: the conductor, subagents and compaction.