---
title: "What Is Context Management? | Dawiso"
description: "Context management is how an AI agent decides what to keep, compress, drop, and persist in its context. Learn the core strategies and why it matters."
url: "https://www.dawiso.com/glossary/context-management"
language: "en"
---

June 15, 2026

context managementcontext engineeringcontext windowAI agentscontext rot

# What Is Context Management?

**Context management** is the practice of deciding what information lives in an AI agent's [context window](https://www.dawiso.com/glossary/context-window) at any moment, and how it changes over the course of a task - what to add, what to keep, what to compress, what to drop, and what to persist outside the window for later. Because the context window is finite and because models suffer [context rot](https://www.dawiso.com/glossary/context-rot) as it fills, an agent cannot simply accumulate everything it encounters. It has to actively manage a limited, valuable resource.

Where [context assembly](https://www.dawiso.com/glossary/context-assembly) is the act of building the context for a single call, context management is the broader, ongoing discipline of curating context across many calls and a whole agent session. It is one of the central engineering problems in building reliable [agents](https://www.dawiso.com/glossary/agentic-ai): a long-running agent that does not manage its context well will drift, slow down, and degrade as the window fills with stale and irrelevant material.

TL;DR

**Context management** is how an agent curates its [context window](https://www.dawiso.com/glossary/context-window) over time - selecting, compressing, persisting, and evicting information so the model always works from a tight, relevant context. Core strategies include writing context to external memory, selecting what to bring back, compressing history into summaries, and isolating context across sub-agents. It exists because windows are finite and because more context causes [rot](https://www.dawiso.com/glossary/context-rot). The decisive question - *what is worth keeping* - depends on knowing what is trusted and relevant, which is a governance problem. Dawiso lets agents manage context against a governed source of truth, pulled on demand via MCP rather than hoarded in the window.

## Context Management Defined

An agent working on a multi-step task accumulates information continuously: user messages, tool results, retrieved documents, intermediate reasoning. If all of it stayed in the context window, the window would fill, costs would climb, and quality would rot. Context management is the set of decisions that prevent that - continuously shaping the working context so it stays small, relevant, and useful from the first step to the last.

The key insight is that the context window is best treated like working memory, not storage. Valuable information that is not needed right now should live *outside* the window - in a database, file, or governed source - and be brought back in only when relevant. Management is the orchestration of that flow between the limited window and the larger world of information around it.

## The Core Strategies

Practitioners have converged on a handful of complementary context-management strategies.

- **Write.** Persist information outside the window - to memory, files, or a database - so it is available later without occupying the context now.
- **Select.** Bring back into the window only the stored context that is relevant to the current step, the same discipline as [assembly](https://www.dawiso.com/glossary/context-assembly).
- **Compress.** Summarize long histories and verbose tool outputs into compact representations that preserve meaning while saving space.
- **Isolate.** Split work across sub-agents or scopes so each operates with its own focused context rather than one bloated shared window - a common pattern in [multi-agent systems](https://www.dawiso.com/glossary/multi-agent-systems).

Used together, these keep the working context tight and relevant - which is precisely what prevents [confusion](https://www.dawiso.com/glossary/context-confusion) and [context rot](https://www.dawiso.com/glossary/context-rot).

## Why It Matters

Context management is what separates a demo agent from a production one. In short interactions, naive accumulation works. But in long-running, multi-step tasks - the ones agents are increasingly asked to do - unmanaged context fills the window, drives up token cost, slows responses, and triggers the quality decline of context rot. Good management keeps an agent fast, affordable, and reliable over long horizons by ensuring the model always reasons from a focused context rather than an ever-growing pile.

## The Governance Dimension

Every context-management decision reduces to one question: *what is worth keeping?* Answering it well requires knowing what information is trustworthy, current, and relevant - and that is a governance question, not a purely technical one. An agent that compresses away an authoritative definition, or persists a stale value as if current, manages its context efficiently but wrongly. Sound context management therefore depends on a governed foundation that distinguishes the trusted and current from the noisy and obsolete. Managing context without governing the underlying information just curates the wrong things efficiently.

## How Dawiso Helps

Dawiso supports context management by being the governed source agents manage *against*. Rather than hoarding definitions and data inside the window, an agent can leave that knowledge in the [Context Layer](https://www.dawiso.com/context-layer) - a single governed source of truth built from your [glossary](https://www.dawiso.com/glossary/business-glossary), [catalog](https://www.dawiso.com/glossary/data-catalog), and [lineage](https://www.dawiso.com/glossary/data-lineage) - and pull exactly what it needs, when it needs it, through the Dawiso [MCP Server](https://www.dawiso.com/product/mcp). This makes the "write" and "select" strategies trivial and trustworthy: the durable knowledge lives in governed storage, and the window stays tight. And because that source distinguishes trusted, current information from the rest, the agent's keep-or-drop decisions are made against authoritative ground truth rather than guesswork.

## Conclusion

Context management is the ongoing discipline of keeping an agent's context window tight, relevant, and current across a whole task - writing, selecting, compressing, and isolating so the model never drowns in its own accumulated history. It is essential for agents that work over long horizons, and its hardest decisions are really governance decisions about what is worth keeping. Manage context against a governed source of truth, served on demand, and an agent stays fast, affordable, and reliable instead of slowly rotting under the weight of everything it has seen.

[See it in action](https://www.dawiso.com/context-layer)

Dawiso Context Layer

Manage context against a governed source of truth - pull trusted definitions and data on demand via MCP instead of hoarding everything in the window.

### Table of contents

Context Management DefinedThe Core StrategiesWhy It MattersThe Governance DimensionHow Dawiso Helps

## Related Terms

### [What Is Context Rot?](https://www.dawiso.com/glossary/context-rot)

Context rot is the measurable decline in LLM output quality as input grows longer - well before the context window is full. Learn the causes and how to fix it.

Read more →

### [What Is Context Engineering?](https://www.dawiso.com/glossary/context-engineering)

Context engineering is the practice of designing and managing the information delivered to an AI model's context window to maximize output quality. Learn why it matters more than prompt crafting and how governed data makes it tractable.

Read more →

### [What Is Context Assembly?](https://www.dawiso.com/glossary/context-assembly)

Context assembly is the step of selecting, ordering, and formatting the right information into an AI's context window before a call. Learn how it works and why it matters.

Read more →

### [What Is Context Confusion?](https://www.dawiso.com/glossary/context-confusion)

Context confusion is when irrelevant information in an AI's context sways its answer. Learn why more context hurts, and how governed, relevant context fixes it.

Read more →

### [What Are Context Packs?](https://www.dawiso.com/glossary/context-packs)

Context packs are reusable, curated bundles of definitions, data, and tools that give AI agents the context for a domain or task. Learn the emerging pattern.

Read more →

### [What Is Agent Harness Engineering?](https://www.dawiso.com/glossary/agent-harness-engineering)

Agent harness engineering is the discipline of building and tuning the infrastructure around an LLM so it works reliably. Learn what harness engineers do and why context is the hardest part.

Read more →
