Ravilution logo
Back to writing

August 2026

The Chief: One Claude Code Session That Runs All the Others

One session, the chief, routes the work of every other agent session. How it works, the two files behind it, and the rules it runs on, each with the reason it exists.

By Ravi AutarNovember 3, 20265 min read

The chief is a Claude Code skill that turns one session into the router for all the others. This post covers what the chief is, how it moves work across a handful of long-lived agent sessions, and the rules it runs on, each one written down after breaking it cost something. For anyone who runs more than one agent at a time, it is a setup to copy and a list of mistakes to skip.

The problem it solves is the one from the post on comprehension debt: three or four problems at once, with context rebuilt at every switch. Agents make that worse, not better. Every problem gets its own session in its own terminal tab, and a person becomes the switchboard between them.

What is the chief?

The chief is the one Claude Code session the operator talks to. Every other session is either a box or a runner, and the chief decides which.

A box is a long-lived session for one workstream, in its own tmux window: a product’s vision, its user-facing screens, a line of research, a website. The operator can jump into any box and type, and it’s still there the next day. A runner is a background subagent for a single task, like a sweep, a review or one research question. It reports back, and then it’s gone.

Box or runner

The chief decides which one gets the work.

A box

One workstream

Lives for weeks in a tmux window

Open to jump in and type

Resumed by its session id

A runner

One task

Runs in the background

Reports back once

Then it’s gone

The chief itself is meant to do almost nothing. It reads, routes, relays and presents. The closest job is the expo in a restaurant kitchen: it doesn’t cook, it calls the tickets and checks every plate before it leaves the pass.

How it works

Two plain files hold it together. The registry says what exists right now: one row per box, with its tmux window, its session id, the folder it starts from and a one-line status. After a reboot, the chief reads it and brings every box back to its prompt.

The ledger says what happened. It’s an append-only file per month, and every entry is a decision, a change or an incident, with a pointer to where the full story lives. It’s also how the boxes talk. An entry can be addressed to a box, each box reads what’s addressed to it before it starts a task, and the chief reads its own inbox at every turn.

How work moves

Work comes back through the ledger.

Chief

routes in seconds

Box or runner

does the work

Ledger

records what happened

↺ read next turn

The chief drives a box the way a person would: read the pane, type, read it again, press Enter. And it never waits by polling. A small script watches a pane or the ledger and exits the moment something changes, which wakes the chief up. A script costs nothing while it waits; a model checking on a timer pays for every tick and still misses the moment.

The rules, and why each one exists

  1. Parallel execution, serial presentation. The central rule. A person’s attention is serial; the chief’s isn’t. Everything that can run in parallel does, but the operator gets one item, one decision, one question per message. When two things wait on the operator, the less urgent one waits a bit longer.
  2. Nothing types into the chief. Text a box types into the chief’s window arrives looking like the operator, mid-thought, and the chief acts on it as if the operator had said it. So boxes write to the ledger instead. The one exception is the operator’s explicit word, in that box, for that one message.
  3. Delegate by default. A chief that does the work itself is a chief everyone waits on. Anything beyond routing, relaying or a one-line command goes to a box or a runner, and the chief’s turns stay seconds-short.
  4. Coordinate through the ledger, not an outbox. The first version gave each box an outbox that the chief relayed from. The outbox only existed to keep boxes out of the chief’s window, and the ledger does that too, with the history attached. Without it, boxes hand work to each other without waiting on the chief.
  5. Window name and session name change together. A forked session that is repurposed as a new box keeps its old title, because nothing renames the two together. The chief sets both and checks that they match.
  6. Every session starts from the workspace folder. Claude Code files a transcript under the folder a session started in, and resume looks for it there. A box that starts inside a repo is hard to move later, so nothing starts inside one. A box may step into a repo to run a command.
  7. A relay is the operator’s only when it is their literal words. When the chief adds its own steps to an instruction, a box can’t tell the difference unless the chief labels them. A box treats “the operator said” as a decision, and it should never act on a decision that was not made.
  8. One chief at a time. Two sessions that both believe they are the chief, each with its own watchers, will both route the same work. One live process per session is not enough; there has to be exactly one chief.

Where it falls short

It only knows what it last read. The chief reads the ledger when it gets a turn, so an idle chief is an unread inbox. The watchers cover most of this, but not all of it, so a wake word makes the chief sweep everything live before it answers.

Rules said in chat don’t travel. A rule told to one box reaches that box, until its next compaction. The chief can’t fix that. Only writing the rule into a skill or the global instructions does.

tmux is the glue, and glue is fragile. Driving a session by typing into its pane works, but it’s screen-scraping. The idle watcher looks for the line Claude Code shows while it’s busy, and that line can change in any release.

A person is still the end of the line. Serial presentation means a queue, and on a busy day the queue is long. The chief makes the waiting orderly. It doesn’t make it shorter.

How to try it

A generic version of the chief is public in Architect in the Loop, next to plain-english, teach and goal-alignment. It holds the model, the two files and the rules with their reasons.

  1. Start a tmux session called chief and open Claude Code in the first window.
  2. Install the skill and tell that session to be the chief.
  3. Give it one workstream. It proposes a box for it, opens the box in its own window, adds a row to the registry and starts the ledger.
  4. Add a second workstream only when the first one runs without being watched.

The open question is the one the chief can’t answer: several boxes ship more than one person can read. The ledger is the best answer so far, because the ledger stays readable when the transcripts are not.

Say hi.