Stable first
Instructions and the parts that do not change between turns lead; the page, recent actions and the conversation follow.
A model knows what it is shown. Context engineering decides what that is — every turn, for every agent, the same way.
On Botminds the context for each turn is built, not typed: from named sources — who is asking, the project, the page, the conversation, the tools and data that exist — checked against the workspace, held to budgets you set, put in a cache-friendly order, and open to preview before any model reads it.
You set each budget per agent. Over it, the lowest-priority piece leaves first — and is logged.
Context engineering is the practice of deciding exactly what a language model is given on each turn — instructions, facts about the user and the situation, conversation memory, retrieved material and tool descriptions — and in what order and amount. Prompt engineering tunes one piece of text; context engineering builds the whole input as a system: from sources, within budgets, checked for safety, and the same way every time.
Prompt engineering asks “how should I word this?”. Context engineering asks “what should the model know right now — and what should it not?”. An agent working on live business data needs the second question answered on every turn.
One string, written by hand. The same for every person and every turn. It grows until something important falls out of the window.
A build, run fresh for every turn — the same way every time, and open to preview before the model sees it.
Each kind of context has one provider that writes it. Switch a provider on or off per agent, give it a tier and a priority, and configure it.
Priya Nair · reviewer · Claims Opsalways on90Motor Claims 2026 · 4 collections · 2 tablesalways on80Claims › CLM-20931 › Documentsalways on · per turn75message 14 · summary of messages 1–8always on · per turn70uploaded 3 files · moved 1 to Reviewalways on · per turn60skill: claim triage — “sorts new claims…”on demand50{{user.name}} → Priyain place—Instructions and the parts that do not change between turns lead; the page, recent actions and the conversation follow.
A person’s own words enter as quoted data, with template syntax and forged system tags stripped — never as instructions.
The platform assistant adds its own: honesty rules about system health, the contract for each kind of request, and its build steps.
A context window is a budget, and every token in it competes with the answer. Each tier of context gets its own allowance, and when a tier runs over, a rule — not chance — decides what goes.
The context every turn depends on. If it cannot fit, the build is flagged as a configuration error — never cut quietly.
Lowest priority goes first; between equals, the one added later. Optionally, a short note of what was dropped is left in its place.
Room kept for what the agent’s own searches bring back — see agentic RAG.
Over budget, the lowest priority goes first — so “who is asking” outlasts “recent activity” on a crowded turn.
A strange answer can be traced to what the model did not see on that turn.
Choose to leave a short note of what was dropped, so the agent knows it exists.
Context is assembled fresh on every turn, by every replica of the runtime, from each agent’s profile. Add replicas and the build scales with them — on Azure, AWS, Google Cloud or on-premises.
every agent, every person, every channel
the same build, from each agent’s profile, on every replica
cached stable opening · fresh each turn
An agent with many skills, tool servers and tables carries a name and one line for each, and fetches a full body only when it decides it needs one. The always-on part stays small however much the agent can use.
Each skill, prompt, sub-agent, tool server, table and dashboard appears as a name and one sentence.
The model decides one of them fits this request.
It asks for that resource’s full body by reference.
The body is served to a turn in the same project that listed it.
Long conversations break naive memory two ways: the transcript outgrows the window, or summaries of summaries drift until they say something nobody said. Botminds keeps two kinds of memory and never summarises a summary.
“Priya is reconciling the Q3 supplier invoices. Two vendors disputed; Arden’s credit note is still missing…”
replaced each time, never summarised again on top of itselfExactly as they were said — the part a follow-up question usually depends on.
how many: your choice, per agentAutomatic, keep-the-latest, or summarise-and-compact — per agent.
The agent’s own model, or a lighter one picked for summaries.
The summary survives restarts and is read for its own conversation.
A person types /compact to fold the conversation down at once.
Instructions carry variables filled in at run time from the right scope — so one agent serves every team with their own names, thresholds and wording, without a copy per team.
You are the claims assistant
for {{org_name}}.
You are helping {{user.name}},
a {{user.role}}.
Project: {{project.name | truncate: 40}}
On screen: {{page.section | default: "home"}}
Email: {{user.email | mask}}Every choice above lives in one profile on the agent. Pick one of five templates in the Context tab — the sixth, Extraction, is set by the agent’s type — and change only what this agent needs; a profile you change is saved as Custom.
Who is asking, the project, the page, the conversation, recent activity and the names of everything the agent can use.
The same, for chat inside one project, with a narrower set of variable scopes.
Who is asking, the project and the conversation; the document arrives through the agent’s tools.
Who is asking and the project — set by the agent’s type for extraction, classification and standardisation agents.
Who is asking and the conversation, for agents being tried out.
No providers — for an agent whose instructions stand alone.
Precedence. A profile set on the agent wins; with none, the agent’s type picks the template. Switch on more: collapse a block unchanged since the last turn, or have the agent show a plan and wait before it acts.
Most agent failures are context failures, and most context failures are invisible. On Botminds the context is something you can look at — before a run, and after one.
Whatever enters the context reaches the model. So the checks run on each block as it is built — before the model, not after it has already read something it should not have.
And on the actions. Approvals on actions and tool grants complete the picture — see the agent harness and AI agent security.
The three are often confused, and an agent needs all of them. They answer different questions.
| Prompt engineering | RAG | Context engineering on Botminds | |
|---|---|---|---|
| The question it answers | How should the request be worded? | Which passages are relevant? | What should the model know on this turn, in what order and amount? |
| Unit of work | One piece of text | A search | A build from many sources, every turn |
| Knows who is asking | If typed in | If the search filters by it | Always — and drops what they may not see |
| Memory | Not its concern | Not its concern | Latest messages word for word, one rolling summary |
| Size control | By hand | Top results | Budgets per tier; lowest priority dropped first, recorded |
| At scale | Copied per team | Per index | One profile per agent, built the same way on every replica |
| Visible before a run | The text itself | Rarely | A preview with every block and its token count |
And harness engineering? Context is one part of the harness — the software around the model that also grants tools, asks people for approval and recovers from failures. See the agent harness; retrieval has its own article.
More from the platform: the full architecture, and how security works at Botminds.
Context engineering is deciding exactly what a language model is given on each turn — instructions, facts about the user and situation, memory, retrieved material and tool descriptions — and in what order and amount. It treats the model’s input as something built by a system, not typed by hand.
Prompt engineering improves the wording of a request. Context engineering decides everything else the model sees: who is asking, what is on screen, what was said before, which tools exist and how much of each fits. On Botminds the prompt is one input to that build.
No. RAG finds relevant material in your sources. Context engineering decides the rest of what the model sees and how it fits a budget. On Botminds search runs as the agent’s own tool calls, under the read rules of the person asking — see agentic RAG.
Two kinds: the latest messages, kept word for word, and one rolling summary of everything older. When the conversation grows past its history budget, older messages are folded into a fresh summary that replaces the last one. You choose the strategy and the summary model per agent.
Split the context into tiers, give each a budget, give every block a priority, and drop the lowest first when a tier runs over — recording what was dropped. Keep stable parts first so they can be cached, and load long instructions only when needed.
Yes. Each agent carries one profile, and every replica of the runtime builds context from it the same way on every turn. Memory is stored with the conversation, so any replica can take the next turn, and replicas scale out as conversations grow.
Harness engineering improves an agent by changing what surrounds the model — tools, context, checks and recovery — rather than the model. Context engineering is one part of it. See the agent harness.
Yes. The Context tab of every agent has a preview that builds the context for a sample request and lists every block with its tier and token count, without calling a model. Earlier turns can be replayed too.
It includes what the agent needs, such as the name and role of the person asking. Blocks from another workspace are dropped. Switch on masking for an environment and email addresses, phone numbers and card numbers are masked in every block.
A claims adjuster on a claim page asks “why is this one stuck?”. The context carries who she is, the project, the claim on screen, her last few actions and the conversation so far — so the agent knows which claim “this one” means without being told.
Bring one agent your team relies on. We’ll open its context, turn by turn, and show you what it was given — and what it was not.