← Back to Notes
· 4 min read / AI, Productivity, Engineering

Context Engineering: The Window Is Not the Bottleneck

Everyone is chasing a bigger context window. The real skill is deciding what the model should never see. Notes on attention, judgment, and the discipline of curation.

A few weeks ago I tried to make Jarvis smarter by giving it more to work with. More history. More documents. The whole pile, loaded in, everything it could possibly need to answer me well.

It got worse.

Slower. Vaguer. Confidently wrong about things it had nailed the week before, on far less. I had handed it a bigger brain and gotten a worse colleague.

That's when it clicked. The bottleneck was never how much the model could hold. It was how much I was asking it to hold at once. I had confused memory with attention... and the gap between those two words is where most AI systems quietly fall apart.

Context engineering

The Desk, Not the Warehouse

The context window is the model's working memory. Everything it can "see" in a single moment, so we're talking about your prompt, the documents, the history, its own answer forming... competes for the same finite space, measured in tokens.

People hear "window" and picture a warehouse. Bigger is better. Store more, know more.

It's not a warehouse. It's a desk.

A warehouse rewards volume. And a desk punishes it. Put three documents in front of someone and they reason. Bury those three under forty and they shuffle paper. The model is no different. The window isn't where knowledge lives it's where thinking happens. And thinking needs space, not clutter.

Lost in the Middle

Here's the part nobody selling you a million-token window wants to dwell on: models don't pay equal attention to everything you give them.

Feed one a long context and its recall traces a U shape. It holds the beginning. It holds the end. The middle blurs.

If that sounds familiar, it should. It's how you remember a meeting, a conversation, a book. The opening and the closing stay sharp, the middle dissolves into a vague sense that stuff was discussed. Primacy and recency. The machine inherited our shape.

So a bigger window doesn't buy you more understanding. It buys you more middle. More room for the one thing that actually mattered to sink to the exact spot where attention goes to die.

The Trap of More

This is the seduction, and it's the same one I wrote about with raw coding speed: the tool gets so capable that it invites you to stop doing the hard part.

Why curate what the model sees if you can just... give it everything? Why decide what matters when the window is big enough to skip the decision?

Because the bill always comes. Three ways:

  • Cost spirals. Every token you pass is a token you pay for, on every single call. "Just load it all" is a budget line that grows while you sleep.
  • Performance degrades. More noise, slower answers, the U-curve quietly swallowing your signal.
  • Trust erodes. The system gets vague in ways you can't reproduce, and you lose the ability to say why it answered the way it did.

A model with an enormous window and no curation is basically a junior with a photographic memory and zero judgment. Impressive at parties and pretty much dangerous in production.

Context Engineering Is Judgment

But the discipline that fixes this has a name now: context engineering the practice of deciding what enters the model's attention, and what never does.

It comes down to four moves:

  • Write: push information somewhere durable, outside the window, so it's there when you need it and gone when you don't.
  • Select: pull in only what this task needs. Not what might help. What it needs.
  • Compress: boil the long stuff down to its load-bearing meaning. Keep the signal, drop the rest.
  • Isolate: keep unrelated context apart, so the model isn't reasoning about your billing logic and your auth flow in the same breath.

Read those again and notice something. None of them are about plumbing. Write, select, compress, isolate... that isn't a RAG pipeline. That's what a senior engineer does with their own attention every single day (should be doing at least). It's what a good architect does to a team's focus. We spent decades learning to manage human context. Now the same judgment is the difference between an AI system that works and one that merely runs.

The Real Work Is Deciding What It Never Sees

Most of the tooling (as retrieval, ranking, chunking) exists to answer one question well: of everything I know, what does the model actually need to see right now?

That's it. That's the whole game. Retrieve the relevant, rank it so the best lands first, and put what matters at the edges, where attention actually lives. The techniques will change every quarter. The principle won't.

I learned this building a second brain. The hard problem was never storage, storage is cheap and solved. The hard problem was the one I flagged and walked past last time: knowing when to reach into history, and when to just work with what's in front of you. That decision is the engineering. Everything else is implementation.

Your veto over what the machine sees is not a setting. It's the job.

So a bigger window holds more. A better engineer shows it less.