DEV Community

Nadeem Ur-Rehman
Nadeem Ur-Rehman

Posted on

Stop Blaming the Model: Your Context Window Is the Bug

Stop Blaming the Model: Your Context Window Is the Bug

Two engineers ask the same AI the same question. One gets a senior-level design review. The other gets confident nonsense with a smile. The model didn't change between them. The fuel did.

This is context engineering, and it is the entire game. Everyone is busy debating which model is smarter while shipping production prompts that read like a sticky note found in a parking lot. The model is a reasoning engine. Reasoning about what? About whatever you bothered to put in front of it. If you hand it vibes, it will return vibes.

Why it actually matters

Here is the non-obvious part: most teams have this problem exactly backwards. They think bigger context windows solved the problem, so they dump the whole repo into the prompt and wonder why the answer got worse. More context is not better context. It is a bigger haystack. Models degrade on long inputs the same way humans do: attention thins out, the critical detail drowns between your boilerplate and your architecture decision records, and the answer drifts. A 200K-token window is not an excuse to skip curation. It is a trap for people who refuse to curate.

The real skill is not writing clever prompts. It is acting like an evidence clerk for a very fast, very literal junior who has never seen your codebase, never sat in your standups, and will not ask clarifying questions. Your job is to decide what counts as evidence.

The 5-minute context packing checklist

Before you hit send, run through this. Copy-paste friendly:

  1. The failing input, verbatim. The exact error, the exact query, the exact complaint. Not your summary of it. Your summary already destroyed information.
  2. The relevant code, not the whole repo. Three files max. If you cannot name which three, you do not understand the bug well enough to delegate it.
  3. What you already tried. Two lines. This stops the model from re-running your dead ends and charging you tokens for the privilege.
  4. The constraint. One sentence that defines "done." Target latency, supported browsers, the API you are not allowed to touch. This is the line most people forget and then complain the answer was wrong.
  5. Nothing else. Read your prompt once more. If a paragraph cannot change the answer, delete it. You just saved money and improved accuracy in one move.

Watch the short above for the 40-second version: Your AI Is Only As Smart As What You Feed It

The uncomfortable truth: the engineers getting magical results from AI coding tools are not using a secret model. They are just better at feeding it. That is a learnable skill, and it is free. The model upgrade you are waiting for is already sitting in your prompt box.

Top comments (0)