All seven roles

Routers

The manager

Decides which brain and which worker gets each job, and how much to spend on it.

Every request has a cost in time and money. AI companies charge by the “token”, which is a piece of a word, and that includes everything sent along with the question, not only the answer.

So the manager’s job is to send each task to the cheapest brain that can do it properly, and to stop workers carrying far more than they need.

291,000 → 23,860

tokens for the same one-word request, before and after a fix

The managers I built

Open a card for the story behind it.

  • The task router

    Works out what kind of job it is, picks a brain and a worker, runs it, checks the result against what was asked, and tries again or passes it up to a stronger brain if it failed.

    It reads the request, decides what kind of job it is, and looks up in a table who does that by default and who is the fallback.

    The rule is local first. A paid model comes in after a local one has failed the same task twice, when a decision has real trade-offs, or before anything public or security-sensitive ships.

    local failures before a job is passed up
    2

    A curiosity

    Models I have retired are filtered out of its list, so an old default cannot quietly choose a brain that is no longer installed. A retired route refuses loudly instead of falling back to something else.

    The workstation as a whole
  • The size router

    Sends a simple message such as “thanks” to the small 8-billion model and everything else to a bigger one. Simple replies arrive in under a second instead of two.

    Once a conversation has moved to the bigger model it stays there for three hours. Switching back and forth would make the model re-read the whole conversation each time, which is slower than not routing at all.

    If anything inside the router fails, the message goes to the bigger model. A broken router gives me the old behaviour, never a silent assistant.

    the measurement that justified building it
    4 s vs 89 s
    a conversation stays on the bigger model
    3 h
    tests
    96

    A curiosity

    The first version did nothing at all, and its logs looked perfect. It sent a message to the big model whenever tools were “present”, and the assistant attaches its whole toolbox to every message. The rule now looks at tools actually used.

  • Tool profiles

    Six ready-made sets of tools: coding, code hosting, long runs, research, security practice, administration. A session starts with only the set its job needs.

    Every tool a worker can see has to be described to the model in every request. It costs tokens whether it is used or not, and it widens what the worker could do by mistake.

    So a session starts with a profile. A research job gets the research tools and cannot touch the administration ones.

    profiles
    6
    planned phases complete
    5 / 5

    A curiosity

    I expected that running the tools in separate containers would cut the cost. It does not: the descriptions cost the same once loaded. The documentation says so instead of claiming a saving.

    The profile launcher
  • The cost check

    At the start of every real task, the worker asks whether a cheaper model could do it, and says so in one line.

    There are three possible answers. Right fit: one line, then work. A cheaper model could do most of it: do only the hard part, then hand over a ready prompt. Too weak for this: say which stronger model is needed.

    The choice follows the hardest step still left, not the average. A five-minute job is not worth a switch, and a job nobody is watching never stops to ask.

    A curiosity

    A small script tells each worker which model it is running on when a session starts, because a model does not reliably know its own name.

  • The token diet

    One tool compresses what gets sent to the outside models. Another chooses which notes to include, so a worker reads the three that matter, not all of them.

    The compressor sits between my coding workers and the outside models and shrinks what is sent. The selector builds each task’s context: the safety rules always, and only the notes and skills that match the task.

    Usage is logged per call: which model, how long, how many tokens. Never the question, the answer or a key.

    tokens removed so far, by the compressor’s own counter (1 October 2026)
    186 million
    characters at most from one memory lookup
    2,600

    A curiosity

    Cutting the instructions given to my messaging assistant from 61,923 to 28,790 characters did more than save tokens. It also made it sound less like an assistant.

  • Switching in plain words

    I can write “use the big one for three hours” in a chat. The model changes, and changes back by itself when the time is up.

    It works typed or spoken as a voice note. The sentence is turned into the real command, so the change is a mechanism and not the model promising to behave differently.

    The same works for effort: I can ask for more or less thinking on the next job.

    A curiosity

    Changing model can need a restart, and a restart in the middle of an answer kills the answer. So the switch waits for a quiet moment: no job running, and nothing from me for five minutes.

What it taught me

  1. 1

    Measure before believing. One of my tools was sending 291,000 tokens to ask a one-word question, because dozens of unused tools were attached. After the fix it sent 23,860.

  2. 2

    Fewer tools in view is cheaper and safer at the same time.

  3. 3

    A small fast brain for small things makes the whole system feel quicker than one big brain for everything.