Ploba logo

Find the right AI tool for the job: apps, agents, APIs, MCP servers and datasets, explained plainly.

Get the AI Digest

Discover

  • Explore
  • Top Charts
  • Categories
  • Agents
  • MCP servers
  • Developer tools

Learn & community

  • Learn AI
  • AI Glossary
  • Blog
  • Hackathons
  • People
  • AI Digest

For makers

  • List your tool
  • Docs
  • Claim a listing
  • Advertise
  • Write for us

Company

  • About
  • Careers
  • Changelog
  • Trust
  • Security
  • Contact

© 2026 Ploba. All rights reserved.

  • Privacy
  • Terms
  • Cookies
  • Advertising
  • All policies
llms.txt
AI glossary
Generative AI

Context Engineering

Also called Context management

Deciding what information goes into an AI model's context window, and in what form, so it has what it needs and little else.

What is context engineering?

Context engineering is the work of choosing everything an AI model sees when it answers: the instructions, the conversation so far, retrieved documents, tool results, memory and examples. It grew out of prompt engineering as AI systems started running longer tasks, where the prompt a person writes is only a small part of what fills the context window.

How does it work?

Common techniques include:

  • Retrieval: fetching only the passages a task needs with RAG, rather than pasting in whole documents.
  • Summarising: replacing a long conversation or tool output with a short summary once its detail is no longer needed.
  • Note-taking: having an agent write progress notes to a file it can read later, a simple form of agent memory.
  • Loading on demand: giving the model a short list of what's available, and letting it pull in the full detail only when it needs it.
  • Clear structure: keeping the system prompt, documents and the question in clearly separated sections.

What is it commonly confused with?

  • Prompt engineering. That's about how you word instructions. Context engineering covers everything else in the window too, and much of it is done by software rather than typed by hand.
  • A bigger context window. More room helps, but models often get worse at finding details as the window fills up, so more context isn't automatically better.

Why does it matter?

When an AI system gives a poor answer, the cause is often missing, outdated or buried information rather than the model itself. Good context engineering makes answers more accurate and keeps costs down, because every token in the window is paid for. It's a large part of what an agent harness does.

Category
Generative AI
Last reviewed
Nov 3, 2026
Also called
Context management

Sources

  • Anthropic: Effective context engineering for AI agents

Related terms

  • Generative AIContext WindowThe maximum amount of information, measured in tokens, that a model can process within one interaction.
  • Generative AIPrompt EngineeringThe practice of designing, structuring, and refining inputs to get optimal outputs from AI models.
  • DevelopmentRetrieval-Augmented GenerationA technique that grounds AI responses in facts by retrieving relevant information from external sources before generating text.
  • AgentsAI Agent MemoryAn application-level system that stores and retrieves relevant information across steps or sessions for an AI agent.
  • AgentsAgent HarnessEverything around an AI model that turns it into a working agent: its instructions, tools, context handling, memory, sandbox, checks and permissions.
  • Generative AISystem PromptThe foundational set of hidden instructions that define an AI model’s persona, boundaries, and behavior.

Read more on Learn

All articles
  • A building under construction wrapped in scaffolding against a blue skyAI Concepts · Nov 3, 2026What Is Harness Engineering? The System Around an AI AgentHarness engineering is designing everything around an AI model so an agent works reliably: instructions, tools, memory, checks and permissions.
  • Abstract representation of an AI agent's memory systemAI Concepts · Jul 2, 2026How AI Agent Memory WorksHow AI agents remember: the context window, saved summaries, searchable long-term memory and instruction files, plus the risks and how to stay in control.
  • Illustration of a person typing a prompt into an AI interfaceAI Concepts · Sep 3, 2026What Is Prompt Engineering? A Practical Beginner’s GuideLearn the basics of prompt engineering. Discover practical tips for talking to AI models like ChatGPT and Claude to get better, more accurate results.