Glossary
Context Engineering
Prompt engineering asked how to phrase a request. Context engineering asks what the model should be looking at in the first place: instructions, retrieved facts, tools, memory and history, assembled fresh for every call.
General definition
Context Engineering is the practice of treating the whole context window as a designed artefact rather than a place to paste a question. The term spread in 2025, popularised by Shopify’s Tobi Lütke and endorsed by Andrej Karpathy, as teams building agents found that model quality depended less on the wording of a single prompt and more on the selection, ordering and freshness of everything around it. The model can only reason over what is in front of it, so what you put there is the product.
- Instructions: the system prompt, persona, rules and output format
- Knowledge: documents selected at run time through retrieval-augmented generation, trimmed to what the current turn needs
- Tools: the definitions the model may call and the results that come back, which are often the largest and noisiest part of an agent’s context
- Memory: facts carried across sessions, summaries of earlier conversations, user preferences
- History: the recent turns of the current conversation, compacted when they grow too long
- Examples: a few demonstrations of the desired behaviour, when format or tone matters
The craft lies in the trade-offs. Too little context and the model guesses; too much and quality drops even inside the nominal window, a pattern documented in the 2023 “Lost in the Middle” study by Liu and colleagues, where models attended poorly to information buried mid-prompt. Practical techniques include putting stable content first so it can be cached, placing the most important instructions at the start and end, summarising old turns instead of dropping them, filtering tool output before it re-enters the prompt, and isolating untrusted text so it cannot be mistaken for instructions.
Context engineering absorbs rather than replaces earlier ideas. Prompt engineering is the instruction layer, RAG is the knowledge layer, memory systems are the persistence layer, and agent frameworks are the plumbing that assembles them on each call. Judging the result requires evaluation on real conversations, because the right context for one task is noise for another.
Want to try it yourself? Build an AI agent that answers from your own pages and documents with the Ethora no-code AI agent builder. No coding is needed and it is free to start.
In the Ethora ecosystem
The Ethora AI SDK gives every agent the building blocks of a designed context without custom plumbing. Each agent has its own system prompt, its own knowledge base built from a website crawl, uploaded files and live web indexing, and a per-room transcript memory, so what the model sees in a given room is the persona, the relevant documents and that room’s own history rather than a global dump. Tool calling and the MCP server add actions and resources to the same context.
Two Ethora-specific layers extend the idea beyond a single request. The heartbeat scheduler lets an agent speak first on a schedule or after a room has gone idle, which means the context for that turn is assembled from the transcript and knowledge with no user message to anchor it, and the system prompt has to do more work. In multi-agent rooms, where agents answer each other under a response gate and an autonomous-turn cap, each agent’s context includes the other agents’ messages, so a well-scoped prompt, a trimmed transcript and shared agent memory are what keep the room coherent.