Your Agent Needs a Thalamus

Always-on agents hit a compute and latency wall long before they hit an intelligence wall.

Perception and attention ยท anatomy study
Routes, colours and activity are illustrative, drawn on an anatomical atlas; they are not measured neural activity.

Let me be clear: I know the model is going to devour the harness. With enough compute, quality data, and the right training recipe, the big monolith wins a lot of fights. I believe in The Bitter Lesson1.

But complex organisms didn't evolve as one undifferentiated blob of tissue doing everything at once. Under a fixed energy budget and jobs that pull in different directions, they evolved specialized organs, hierarchies of control, and dedicated systems for narrow tasks. An always-on personal agent faces the same two pressures: a finite compute budget, and jobs that conflict, like watching continuously, answering right away, and reasoning slowly in the background.

Architecture note from building GHN (my local interaction prototype) and Myelin (the decision-graph harness it grew into). The skull above is an illustrative orientation map, not live telemetry. I separate what already runs in code from what still needs benchmark numbers.

1. Why not one always-on full-duplex model?

Think about what it actually takes to run an always-on, full-duplex agent the monolithic way. You have to stream every token straight into one giant model: live audio, screen frames, cursor motion, notifications, tool logs, and long-term memory. Even as inference gets cheaper, streaming every raw input into one window fails twice. Compute and latency blow up, and the model's internal attention gets flooded with noise.

If I want an agent aware of what I'm doing in real time, the monolithic approach means either evaporating a small lake or hearing "Let me check" 897 times before lunch while I copy and paste like it's 2025.

Two structural problems sit right behind the compute problem:

The lock-in problem. A personal, always-on agent is going to become one of the most important pieces of software in people's lives, on the order of email, the phone, and the personal computer. When you've spent years with an agent that knows your preferences, habits, and private history, what happens when you want to switch providers? You should be able to keep your agent's behavior intact even when you buy inference somewhere else. That means making the steering and memory layer portable, inspectable, and yours.

The incentive problem. Frontier labs can afford products that stream every input to massive hosted models, and their business model pushes in that direction. Inference keeps getting cheaper, sure. Still, it is a hard sell inside a company with billions in compute commitments to launch a product designed to send less inference to its own servers.

Running everything locally doesn't make it free either. A local model has no API bill, yet encoding redundant frames, managing queues, and fighting other apps for unified memory will still cook a laptop if the loop is sloppy.

2. Cortico-thalamic control as a software loop

The title borrows from Wimmer and colleagues' work on thalamic control of sensory selection2. In the brain, cortex doesn't drink raw sensory firehoses directly. Top-down signals from prefrontal cortex tune the thalamus to suppress irrelevant streams, pass goal-relevant inputs through, and hold active working memory steady while other work runs.

Translated into an agent harness, that splits into two jobs:

  1. Selective input routing. Don't stream every raw frame, audio chunk, or event into the big model. Cheap local checks watch the stream and only wake a heavier model when an active goal cares and the evidence clears a bar.
  2. External token-cache steering. Keep a small, salience-weighted cache of high-signal tokens outside the model (active constraints, recent corrections, distilled facts, relevant spans). When the main model is about to act, the gate pulls just the right slice from that cache and injects it into context to bend the model's trajectory.

Loosely speaking, it behaves the way an attention head inside a transformer attends over a KV cache to nudge what the next layers produce, except the gate and the cache sit outside the weights. Because the steering surface is plain tokens rather than hidden vectors or model-specific adapters, you can inspect what fired, fix a bad memory directly, and carry the exact same steering layer across models.

3. A harness of Tiny Lessons

The prototype is built as a chain of specialized models sharing one structured state. In harness form, it borrows ideas from Mixture of Architectures (from a Thinking Machines talk at Stanford) and Liquid Neural Networks6. The bet is simple: hand-drawn boundaries plus small learned specialists work on a laptop today, and learning replaces the hand-tuned parts as real data accumulates. That broader learning bet lives in Tiny Lessons.

I landed on this split after months of failed prototypes on an M3 Pro with 18GB of memory. Even before worrying about long-term scaling, breaking the loop into four jobs bought something immediate: debuggability.

  • Perception: Record observations and where they came from (window images, cursor movement, speech, device deltas).
  • Shared state: Connect active tasks, entities, constraints, and time-indexed observations in one place.
  • Model decisions: Decide what deserves closer attention, pull the relevant cached tokens, and interpret the evidence.
  • Action timing: Track pending work and decide whether a response belongs now, later, or not at all.

If the agent gets "this" wrong, I want one clean place to look. Did perception miss the pixels? Did retrieval pull stale context? Did the gate misread the evidence? Or did a good answer arrive ten seconds after we moved on? Those four bugs need completely different fixes.

Rui Qian and colleagues' Dispider3 takes a similar split for streaming video, separating perception, interaction timing, and reply generation so watching continues while an answer is produced. Same engineering pressure, applied here to a general desktop and coding agent.

4. What comes in

Perception only observes. In GHN's computer-perception layer, window metadata and cursor state stay separate from captured pixels. The cursor supplies a candidate for where to look; a fresh window image supplies the visual evidence. The label of a window alone cannot establish what I meant.

Nothing is stored uniformly either. Goals, schedules, constraints, and files the agent touched persist until superseded or forgotten. Camera frames expire in ten seconds and disappear without being summarized. When I start talking, the system takes one glance: the newest frame, where my pointer rested, and a picture of the front window. When I stop, it assembles one moment from all of that.

It also has to figure out whether I'm the one talking. Three clues go into that call: voice similarity, whether local media is playing, and whether a mouth on camera moves with the sound. (Those rule weights are in code today and still need measurement on real recordings.)

5. What gets through

Something still has to decide what deserves a closer look. Get that wrong and the agent is cheap, quiet, and useless.

In GHN, inputs only get scored if an active goal can use them. If no goal needs the camera, frames aren't scored at all. When watches are active, camera checks batch into one call twice a second. Deterministic facts like a finished background worker or a due clock reminder skip the evidence step and go straight through.

Camera readings are noisy, so a goal accumulates evidence before grabbing attention. A small model on the laptop scores each frame at roughly 0.125 seconds per frame. One blip can't cross the line on its own, and the threshold is tuned around how many false alarms an hour I can live with. Only then does a bigger model take a real look.

Apple's Hey Siri detector4 used a narrower version of this cascade years ago: an always-on tiny detector waking a heavier checker. What changes here is turning a one-way filter into a feedback loop. Observations land on one shared timeline. The gate picks what enters a decision packet, and the typed decision updates what the gate watches next. A new request raises gain on a stream; a correction redirects it; completing or cancelling the task releases it. Between changes, that gain stays put, so you don't burn a model call just to confirm that nothing changed.

6. From one decision to several actions

One decision packet can trigger several actions at once: answer what the agent already knows, write a constraint to memory, and dispatch a worker to investigate the rest. Code composes those actions and their dependencies. Speech has to wait its turn in the conversation; silent background work doesn't.

Trace one concrete request: you're mid-conversation talking through a code change while an older watch is waiting for a build or calendar update. Perception logs the change. The gate checks active goals, pulls the small cached slice needed for that moment, and emits one coordinated plan. Code enforces authority, freshness, cancellation, and dependencies before anything runs.

Three rules keep the loop honest:

  1. An alarm only says something deserves a look; it never proves the event is confirmed.
  2. Recalling an old request can never quietly grant permission to run it again.
  3. Nothing counts as done until a receipt comes back: the line played, the file exists, or the worker returned.

I also split the live speaking loop from slower reasoning and tool work. A persistent thinker runs in the background and reports findings back to the speaker. Sending a result back is only half the job: is the finding still relevant, did I correct the question, or did we move to another project? The thinker sees live status from sibling dispatches so it won't double-acknowledge or barge in with stale progress. Thinking Machines' interaction-model work5 explores a related split between continuous interaction and asynchronous background reasoning.

7. Where it breaks today, and counting what it misses

Keeping this grounded means recording where the early build actually failed. An internal audit of the GHN prototype surfaced concrete bugs:

  • A seeded detector could alarm when the watched condition flipped false, proving downstream confirmation can't be skipped.
  • Cancellation and late worker results needed one shared, versioned lifecycle so stale updates stop leaking back into the conversation.
  • Picking a line to say was being confused with actually saying it.
  • Across five recorded turns, median latency from final transcript to first audio was 2.92 seconds (an observation from that recording, not a target).

Those bugs directly drove the next rebuild (Myelin) toward an event-sourced effect ledger, receipt-based settlement, and a reproducible evaluation harness.

The engineering bet is simple: selective routing plus a tiny external token cache lets an always-on agent stay fast and affordable at matched quality. I haven't proved a fraction-of-the-cost result yet.

To test it cleanly, I want three setups looking at the exact same stream and outcome check: an explicit deterministic rule, a learned gate, and a strong general model. Count compute and latency right beside missed events and false interruptions. And keep a full log of what the gate threw away. Otherwise it is too easy to fake efficiency by hiding the evidence the gate quietly dropped. If the general model catches events my gate keeps throwing away, I want to see those misses on one clean benchmark before building anything bigger on top of it.

Footnotes
  1. - Richard Sutton, The Bitter Lesson - why general methods that scale with compute keep winning, and the benchmark this harness has to answer to.
  2. - Wimmer et al., Thalamic control of sensory selection in divided attention - top-down prefrontal-thalamic control of sensory selection under divided attention.
  3. - Rui Qian et al., Dispider - disentangling perception, interaction timing, and reply generation in streaming video.
  4. - Siri Team, Hey Siri: An On-device DNN-powered Voice Trigger for Apple's Personal Assistant - an always-on cascade separating cheap sensing from heavier checking.
  5. - Thinking Machines Lab, Interaction Models: A Scalable Approach to Human-AI Collaboration - continuous interaction paired with asynchronous background reasoning and tool work.
  6. - Liquid AI, Liquid Neural Networks - inspiration for continuous-time, context-adaptive routing behavior.