DocsWorking with agents

Context and limits

An agent remembers a conversation only up to its context window. When the window is full, the agent compacts the conversation: it keeps a summary and drops the rest. Your subscription also has limits on how much you use in five hours and in a week. Allems shows both under the agent's name.

The context bar

The bar shows how full the agent's context is. Its ticks mark every 5%, its lines each quarter, and the window's size is at its right end, 1M or 200k.

CONTEXT210k250k500k750k1MFull so farA tick every 5%A quarterIts window: 1M

What is in the context

Click the bar to see what the agent's context is made of and how it grew:

Always there 51kThe conversation 187k15%9%40%13%16%238kClaude Code’s prompt and tools 37kYour instructions (CLAUDE.md…) 9kMCP servers and skills 5kSummary of the last compaction 22kCommand output 96kThe agent’s thinking 31kThe agent’s words and calls 38k
  • What it is made of now, one bar: what is always there (the agent's own instructions and tools, your instructions, its tool servers and skills) and the conversation (the last summary, command output, the agent's thinking, its words). Point at a part to see what it is and how much.
  • Your messages, a column each: how big the context was when the agent finished it. A gap is a compaction.
  • The message you point at: its first words, its steps, what it added, and what it took Of the week's limit.
  • The heaviest: the three messages that added the most.
  • Compact: tells the agent to compact now, and says what it would leave.

All of it is for Claude Code; Codex has the columns and Compact. The shares of your limit are worked out from what this computer's agents spent, so another computer's use is not in them.

The limits

The row under the context shows how much of your subscription's limits is used.