Context Engineering

Design What the Model Sees

The quality of an AI answer depends mostly on what you put in front of the model. Choosing that input on purpose is called context engineering.

Ranjit Nethi

·

Context Engineering

The short version

  • A model’s answer is only as good as the information in front of it.
  • Context engineering means choosing, ordering and trimming that information on purpose.
  • Build context in layers: who the model is, the task, the business rules, the data and the history.

The idea

Prompt engineering is about how you ask. Context engineering is about everything the model sees when it answers: instructions, retrieved documents, tool results, memory and conversation history. As systems grow from single prompts into agents that run many steps, the main design question becomes “what should be in the window at this step?”

A useful structure has five layers:

  1. Identity. The role and standing rules.
  2. Task. The goal of this request and what done looks like.
  3. Business rules. Policies, definitions and limits that apply.
  4. Knowledge. The specific records and documents needed now.
  5. History. What has already happened in this conversation or task.

Before an important meeting, a good assistant prepares a briefing pack. It holds the right five pages. It does not hold the whole filing cabinet. Context engineering is preparing that pack for the model, every time.

  1. Identity
  2. Task
  3. Business rules
  4. Knowledge for this step
  5. History

The goal is the smallest set of high-value information that lets the model do the step well. Extra text is not harmless. It costs money, slows the answer and distracts the model.

An example

An assistant helps inside sales staff answer price questions. A poor design sends the full price book, all customer contracts and the entire chat history. A designed context sends the role and rules, the customer’s own contract terms, the price rows for the parts in question, and a two-line summary of the conversation so far. The answer is faster and cheaper, and it is more often right, because the model is not searching through noise.

Common mistakes

  • Treating context as a dump of everything that might help.
  • Mixing instructions and data with no clear separation.
  • Carrying the full history forward when a summary would do.
  • No owner for the business rules layer, so the rules go out of date.

What to do this week

  1. For one AI feature, print the full input the model receives for a typical request.
  2. Mark each part with its layer. Cross out what the answer did not need.
  3. Name an owner for the business rules text.

The terms, in plain language

TermWhat it means
Context engineeringDesigning what information the model sees at each step
Context layersThe parts of the input: identity, task, rules, knowledge, history
Signal and noiseUseful information and distracting information

Section 3.1 of the AI Engineering Guide · Last reviewed November 2026

All parts of the guideChecklists and templates

About the author

Ranjit Nethi leads AI and data for commercial operations at a global industrial manufacturer. He writes about the operating model that turns AI pilots into results finance will sign. Kellogg Executive MBA; MS in Computer Science. This site is his own perspective and view, with no affiliation with any organization.