# Context engineering

Canonical page: https://www.theglitch.ai/ai-glossary/context-engineering

Deciding exactly what goes into a model’s context at each step: instructions, documents, tool results, memory and nothing extra.

[Context engineering, common card \#060 in The Glitch AI glossary: Deciding exactly what goes into a model’s context at each step: instructions, documents, tool results, memory and nothing extra.](https://www.theglitch.ai/images/cards/glossary/context-engineering.png?v=07e14f49a3e61539)

GLS 060 · common

For: Builders · Must know

## Why it matters

For agents, what the model sees matters more than how you word the prompt; it is the 2025-and-on version of prompt engineering.

## In practice

An agent keeps a short running summary instead of pasting the whole conversation into every call.

## Watch for

More context is not better context; irrelevant text lowers accuracy.

## Related terms

[Prompt engineering](https://www.theglitch.ai/ai-glossary/prompt-engineering) · [Context window](https://www.theglitch.ai/ai-glossary/context-window) · [Context rot](https://www.theglitch.ai/ai-glossary/context-rot)

## Guides that use it

[Start here: get good at AI, fast.](https://www.theglitch.ai/learn/start-here) · [Your first week with AI.](https://www.theglitch.ai/learn/first-week-with-ai) · [27 AI terms to know in 2027.](https://www.theglitch.ai/learn/ai-terms-2027) · [What is a forward deployed engineer? The ultimate guide to becoming one in 2027](https://www.theglitch.ai/learn/forward-deployed-engineer) · [Context engineering is the real job.](https://www.theglitch.ai/learn/context-engineering) · [AI coding agents for 2027, compared.](https://www.theglitch.ai/learn/ai-coding-agents-2027)

## Sources

- [Anthropic: Effective context engineering for AI agents](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents)

Definition updated 2026-10-29.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
