Context engineering

An agent is only as good as what it can see: the brief, the house rules, the right files and nothing else.

What is context engineering?

Context engineering is deciding what an agent sees before it starts: the brief, the house rules of the project, the files that matter and one good example. It is the next step after prompt engineering. The prompt is one message; the context is everything the model reads to do the job.

Like onboarding a new teammate. A clever person with no context still guesses. Give them the rules, the relevant files and one good example, and they stop guessing.

Why it matters

Most bad agent output is not a model problem but a context problem. The agent guesses rules nobody told it, or drowns in files that do not matter. A short rules file and a hand-picked set of files fix more than any clever wording.

How I work with it

Every project gets a short rules file the agents read first. For each task I hand over the files that matter and leave out the rest, because a crowded context makes agents worse, not better.

Rules of thumb

  1. Write the house rules down once
  2. Hand over the files that matter
  3. Leave out the noise

An example

In a shop project, a one-page rules file names the framework, the coding style and the folders an agent must not touch. Every agent reads it first, so it stops inventing its own patterns, and reviews get shorter.

Try it yourself

Drag the slider to give the agent more context and watch the result change.

Want this in your team?

Get in touch