---
title: "Context engineering vs prompt engineering"
description: "Prompt engineering shapes instructions; context engineering manages all the model sees, including instructions, tools, retrieved data, history and memory."
image: "https://bombos.ai/assets/og-en-v2.png"
---

# What is the difference between context engineering and prompt engineering?

Short answer

Prompt engineering is writing and organizing the instructions you give a model. Context engineering is curating everything the model sees at inference time, including those instructions but also tools, retrieved data, message history and memory, and keeping that set right over many turns. Prompt engineering is a part of context engineering, not its rival.

*Piet Baudoin · published November 16, 2026 · November 16, 2026*

## The two definitions side by side

Anthropic’s engineering team drew the line in September 2025. Prompt engineering is “methods for writing and organizing LLM instructions for optimal outcomes”. Context engineering is “the set of strategies for curating and maintaining the optimal set of tokens” during inference, which includes everything that lands in the window, not only the instructions.

| Aspect | Prompt engineering | Context engineering |
| --- | --- | --- |
| Unit of work | One instruction or system prompt | Everything in the window, turn after turn |
| Time span | Instructions reused across one or many calls | Context assembled for each call and maintained across turns |
| Main question | How do I phrase this? | What should the model see right now, and what not? |
| Typical tools | Wording, examples, role, format | Retrieval, tool design, compaction, notes, sub-agents, memory |
| Typical failure | Vague or contradictory instruction | Right instruction drowned in irrelevant history or stale data |
| Who owns it | The person typing | Whoever builds or configures the agent, and the team that feeds it |

## Why the shift happened

A chat answer is one call: you write a prompt, the model answers. An agent loops. It calls a tool, reads the result, calls another tool, and every result is added to the window. After an hour of work the original prompt might be a few hundred tokens in a window of hundreds of thousands. Whether the agent stays on track then depends far more on what else is in there than on how well the first instruction was phrased.

That is why the techniques in context engineering are about flow rather than wording: load files only when needed, clear old tool output, summarize history when it gets long, write notes to a file outside the window, and hand side tasks to a sub-agent with its own clean window. The Manus team adds a practical one: keep the start of the context stable so the model provider’s cache can be reused, because rewriting the top of the context on every turn costs both speed and money.

## The common misunderstanding

The mistake is treating the two as competitors, or treating context engineering as “a longer prompt”. Pasting your whole handbook into the system prompt is a context choice too, just a poor one: it buries the instructions that matter under material the task does not need. Claude Code’s documentation is explicit: keep each CLAUDE.md under about 200 lines, because longer files use more context and are followed less reliably, and contradicting rules may be applied arbitrarily.

An example makes the line visible. A support agent answers a return question wrongly. If it has the right facts but the wrong format or tone, that is a prompt problem: improve the instructions. If it follows the instructions but quotes last year’s return policy, that is a context problem: inspect what was retrieved and why the old version was in there.

Good context engineering often makes the prompt shorter. The handbook moves out of the prompt into a place the agent can search, and only the part that matters for this task comes in.

## What changes for a team

When one person writes prompts, the knowledge lives in their head and their chat history. When a team does context engineering, the knowledge has to live somewhere shared: instruction files in the repo, a team knowledge base, rules that apply in certain situations. The prompt is still personal. The context becomes shared infrastructure.

That raises questions a prompt never had: who updates it, how do you keep it from contradicting itself, and how does what one colleague corrected reach the AI of the next. See [how to set up context engineering for a team](https://bombos.ai/en/questions/context-engineering/how-to-set-up-context-engineering-for-a-team/) for a practical setup, and [what is context engineering](https://bombos.ai/en/knowledge-base/what-is-context-engineering/) for the full list of techniques.

## Where Bombos fits

Bombos sits on the context side of this line. It is a plugin that gives every AI tool a team uses, from Claude and ChatGPT to Copilot, Cursor and your own agents, one shared memory with team knowledge, learned rules and what already lives in mail, documents and repos. Your people keep writing their own prompts; the context behind them is the same for everyone, and you can trace what an answer was based on. It runs in the cloud or on your own server, and one person can start with their own agents.

## Related questions

Is prompt engineering dead?

No. The system prompt is still part of the context and still needs care. What changed is that for agents the prompt is a small share of what the model sees, so it is no longer the only lever.

Which one should a team learn first?

Both are quick to learn at a basic level. For a team, the bigger gain is usually in context: shared instructions, shared knowledge and a habit of keeping sessions focused.

Is a CLAUDE.md file prompt engineering or context engineering?

It is written like a prompt, but deciding what goes in it, how long it is, and when it loads is context engineering. Claude Code loads it at the start of every session.

## Sources

1.  [Anthropic: Effective context engineering for AI agents](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents)
2.  [Claude Code docs: How Claude remembers your project](https://code.claude.com/docs/en/memory)
3.  [Manus: Context Engineering for AI Agents, Lessons from Building Manus](https://www.manus.im/blog/Context-Engineering-for-AI-Agents-Lessons-from-Building-Manus)

## What does your AI forget?

1.  01You tell us which AI you use and where it keeps starting over.
2.  02We show what a shared memory changes there, on your own examples.
3.  03You keep the plan, with or without Bombos.

![Piet Baudoin](https://bombos.ai/assets/team/piet-klein.jpg)

**Piet Baudoin**You talk to Piet, from the Bombos teamDutch team from Utrecht and Nijmegen · data in Europe

## More questions about Context engineering

-   [What is harness engineering, and how does it differ from prompt and context engineering?](https://bombos.ai/en/questions/context-engineering/what-is-harness-engineering/)
-   [What is Context Engineering 2.0?](https://bombos.ai/en/questions/context-engineering/what-is-context-engineering-2-0/)
-   [How does LangChain approach context engineering?](https://bombos.ai/en/questions/context-engineering/how-does-langchain-approach-context-engineering/)
-   [What is agentic context engineering (ACE)?](https://bombos.ai/en/questions/context-engineering/what-is-agentic-context-engineering/)
-   [What is advanced context engineering for coding agents?](https://bombos.ai/en/questions/context-engineering/advanced-context-engineering-for-coding-agents/)
-   [How do you set up context engineering for a team using AI tools?](https://bombos.ai/en/questions/context-engineering/how-to-set-up-context-engineering-for-a-team/)
-   [RAG vs context engineering: is RAG still needed?](https://bombos.ai/en/questions/context-engineering/rag-vs-context-engineering/)
-   [What did Manus learn about context engineering for AI agents?](https://bombos.ai/en/questions/context-engineering/what-did-manus-learn-about-context-engineering/)

[All questions about Context engineering →](https://bombos.ai/en/questions/context-engineering/)


---

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://bombos.ai/#organization","name":"Bombos","url":"https://bombos.ai/","logo":"https://bombos.ai/assets/bombos-bee.png","description":"Bombos is the memory layer under every AI your team uses. One shared memory for Claude, ChatGPT, Copilot, Cursor and your own agents, that learns how you work.","sameAs":["https://www.linkedin.com/company/bombos-ai","https://www.youtube.com/@truebombos","https://www.instagram.com/truebombos/","https://bsky.app/profile/bombostrue.bsky.social","https://www.threads.com/@truebombos","https://mastodon.social/@Bombos","https://www.tiktok.com/@truebombos","https://t.me/truebombos","https://www.pinterest.com/truebombos/","https://github.com/bombos-ai","https://linktr.ee/bombos.ai","https://bombosai.substack.com","https://hashnode.com/@bombosai","https://hackernoon.com/u/bombos","https://dev.to/bombos"],"email":"info@bombos.ai","areaServed":["NL","Europe"],"knowsLanguage":["nl","en"],"contactPoint":{"@type":"ContactPoint","email":"info@bombos.ai","contactType":"sales","url":"https://bombos.ai/en/contact/","availableLanguage":["nl","en"]}},{"@type":"WebSite","@id":"https://bombos.ai/#website","name":"Bombos","url":"https://bombos.ai/","inLanguage":["nl-NL","en"],"publisher":{"@id":"https://bombos.ai/#organization"}}]}

{"@context":"https://schema.org","@type":"Article","headline":"What is the difference between context engineering and prompt engineering?","description":"Prompt engineering shapes instructions; context engineering manages all the model sees, including instructions, tools, retrieved data, history and memory.","abstract":"Prompt engineering is writing and organizing the instructions you give a model. Context engineering is curating everything the model sees at inference time, including those instructions but also tools, retrieved data, message history and memory, and keeping that set right over many turns. Prompt engineering is a part of context engineering, not its rival.","datePublished":"2026-11-16T00:00:00.000Z","dateModified":"2026-11-16T00:00:00.000Z","author":{"@type":"Person","name":"Piet Baudoin"},"publisher":{"@type":"Organization","@id":"https://bombos.ai/#organization","name":"Bombos","logo":{"@type":"ImageObject","url":"https://bombos.ai/assets/bombos-bee.png"}},"image":"https://bombos.ai/assets/og-en-v2.png","mainEntityOfPage":"https://bombos.ai/en/questions/context-engineering/context-engineering-vs-prompt-engineering/","inLanguage":"en-US","isPartOf":{"@type":"CollectionPage","name":"Context engineering","url":"https://bombos.ai/en/questions/context-engineering/"},"citation":[{"@type":"CreativeWork","name":"Anthropic: Effective context engineering for AI agents","url":"https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents"},{"@type":"CreativeWork","name":"Claude Code docs: How Claude remembers your project","url":"https://code.claude.com/docs/en/memory"},{"@type":"CreativeWork","name":"Manus: Context Engineering for AI Agents, Lessons from Building Manus","url":"https://www.manus.im/blog/Context-Engineering-for-AI-Agents-Lessons-from-Building-Manus"}]}

{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Bombos","item":"https://bombos.ai/en/"},{"@type":"ListItem","position":2,"name":"Questions","item":"https://bombos.ai/en/questions/"},{"@type":"ListItem","position":3,"name":"Context engineering","item":"https://bombos.ai/en/questions/context-engineering/"},{"@type":"ListItem","position":4,"name":"What is the difference between context engineering and prompt engineering?","item":"https://bombos.ai/en/questions/context-engineering/context-engineering-vs-prompt-engineering/"}]}

{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Is prompt engineering dead?","acceptedAnswer":{"@type":"Answer","text":"No. The system prompt is still part of the context and still needs care. What changed is that for agents the prompt is a small share of what the model sees, so it is no longer the only lever."}},{"@type":"Question","name":"Which one should a team learn first?","acceptedAnswer":{"@type":"Answer","text":"Both are quick to learn at a basic level. For a team, the bigger gain is usually in context: shared instructions, shared knowledge and a habit of keeping sessions focused."}},{"@type":"Question","name":"Is a CLAUDE.md file prompt engineering or context engineering?","acceptedAnswer":{"@type":"Answer","text":"It is written like a prompt, but deciding what goes in it, how long it is, and when it loads is context engineering. Claude Code loads it at the start of every session."}}]}
```
