What is context engineering?

Definition

Context engineering concerns the information a model receives when it makes a decision. It includes selecting useful evidence, organising task state and making relevant tool information available within practical input limits.

More input is not automatically better. Stale, contradictory or irrelevant material can obscure important evidence, while omitted information can make a task impossible. A useful context design preserves trust boundaries and tests whether the assembled information supports the intended work.

ELI5

Context engineering prepares the information an AI system needs before it answers or acts. This can include instructions, relevant documents, available tools, earlier decisions, permissions, and the current state of the work.

For example, an agent asked to update a company policy needs the current policy, the approved writing rules, and the audience. Giving it an entire unrelated document archive may add noise rather than improve the result.

Is context engineering only writing a prompt?

No. It also concerns evidence selection, retained state, retrieval and tool information supplied around the prompt.

Does a larger context always improve results?

No. Relevance, accuracy and organisation matter, and additional material can introduce distraction or conflicting information.

  1. Mike Chambers in a plain blue hoodie beside the headline Build the Harness in blue and true white on a black background.
    Harness Engineering for Production AI Agents
    AI Engineer20m 46s10 VIEWS
  2. Dominik Kundel beside the headline Inside the Codex Harness on a pure black background.
  3. Portrait of Alex Finn beside the words Grok Bot Runs Your Work
  4. Kwindla Hultman Kramer against a black background beside the headline “BEYOND AI AGENTS”.
  5. Sam Charrington and Ahmad Al-Dahle beside the words Company Brain on a black background.
  6. Portraits of David Ondrej, Alex Lieberman and Dan Zakon beside the words Context Is the System
    Context as Code for Agentic Engineering
    David Ondrej51m 54s2 VIEWS
  7. A stack of code windows compresses beside the blue and white headline Longer Agent Context.
  8. The headline MINIMAL CODING AGENT HARNESSES on a pure black background.
  9. Igor Pogany beside the words Teach Claude Your Work
  10. Blue CONTEXT and white THAT MATTERS headline beside three stacked blue and white instruction cards on black.
Definition card for context engineering: What is context engineering?

Context engineering designs how relevant instructions, evidence, state and tool information are assembled for a model's task.