Every AI conversation runs inside limits most people never see. There’s the model’s context window, which caps how much it can consider at once. There’s the plan’s allowance, which caps how much someone can use. And for developers, there’s billing, which counts tokens in and out. All three can stop work, so people tend to blur them together, and products often show them in ways that make that worse.
This article covers how to design for those limits: when a context meter earns its place, how to warn without causing anxiety, what should happen near capacity, and how to present usage limits so people learn about them before a message fails rather than after.
What a context window means to people
Technically, the context window is all the text a model can refer to when it generates a reply, including the reply itself (Anthropic docs). In a chat product that means the conversation so far, any attached files, tool results, and the instructions the product adds behind the scenes.
To the person using the product, a simpler description works better: it’s how much the assistant can keep in mind at once. That framing explains the behaviour people actually notice. Long conversations get forgetful. An early instruction stops being followed. A big file crowds out the discussion around it.
Why the limit matters before it’s reached
A context window isn’t a cliff that’s only a problem at 100%. Research on long inputs has repeatedly found that models use information unevenly. Liu and colleagues found that accuracy was highest when the relevant information was at the start or end of a long input and dropped when it was in the middle (Liu et al., 2023). Chroma’s evaluation of 18 models found performance became less reliable as input length grew, even on simple tasks (Chroma, 2025). Anthropic’s guidance on context engineering calls this context rot and recommends keeping the context to the smallest set of useful information (Anthropic).
For interface design, the implication is that a full context isn’t only a hard stop. It’s a quality problem that grows gradually, which is why the right moment to show it is usually well before the end.
Context, usage and billing are different limits
The most useful thing an interface can do is keep these apart. They have different causes, different fixes and different audiences.
| Context window | Usage allowance | Billing | |
|---|---|---|---|
| What it limits | How much one conversation can hold | How much someone can use in a period | What it costs |
| Resets when | The conversation is compacted or restarted | The period ends | The invoice closes |
| The fix | Compact, remove files, start fresh | Wait, or change plan | Budget, alerts, spend limits |
| Where it belongs | In the conversation, near the composer | Settings, plus a notice when low | Billing pages and developer consoles |
Tokens are the shared unit, which is where the confusion starts. A conversation near its context limit hasn’t necessarily cost much, and a team can run out of monthly allowance with every conversation comfortably short. Name each limit by what it limits, never just “tokens”, and don’t combine them into one bar.
When to show a context meter
Show a context meter when people can do something about it:
- Conversations regularly run long, as in coding agents, research and document work.
- People attach files or the product adds large amounts of context.
- There is an action that frees space, such as compacting.
For short question-and-answer products, a meter is noise. Handle the rare long conversation with a notice when it matters instead.
When you do show one, keep it small at rest. Context Meter sits in the composer toolbar as a 16px ring, unfolds to the exact count on hover or focus, and opens a breakdown on click. The detail is there for people who want it without asking everyone to watch a number.
Thresholds without anxiety
A meter that turns amber at 50% teaches people to worry about something they can’t yet act on. Use few thresholds, tie each to an action, and say what will happen rather than just showing a colour.
Nothing to say yet. The ring is there for anyone who looks.
Open the meter to see the breakdown and the Compact action.
A workable pattern has three bands:
- Normal: the ring alone. No message.
- High: from 80% in Context Meter. A quiet line explaining what will happen soon and offering a choice.
- Full: from 95%. A clear message with the actions that keep work going.
The words matter more than the colour. “Older turns will be summarised soon” is calm and specific. “Context limit approaching!” is alarming and vague.
Compaction and summarisation
The usual way to free space is to summarise older parts of the conversation and keep recent turns in full. Anthropic’s API offers server-side compaction that does this automatically once input passes a threshold, and recommends it as the main strategy for long-running conversations and agents (Anthropic docs). Whether it happens automatically or on request, the interface has the same jobs:
- Say it happened. A quiet marker in the conversation, such as “Earlier messages summarised”, explains why the assistant now recalls them less precisely.
- Make the summary inspectable where you can, so people can check that what mattered survived.
- Keep the original. Summarising what the model sees shouldn’t delete what the person sees. The full history stays readable and searchable.
- Report failure plainly. Context Meter’s compact action shows “Couldn’t compact” and offers to try again, and nothing is lost.
What happens near capacity
Decide this deliberately, because the default behaviour of many systems is the worst one: the oldest content silently falls out and quality drops with no explanation. Better options, from least to most disruptive:
- Compact automatically and say so.
- Offer to compact, with a clear explanation of what changes.
- Offer to start a new conversation that begins with a summary of this one.
- Stop and explain, for products where summarising would be unsafe, such as reviewing a contract clause by clause.
Whichever you choose, never let a send fail because of context without saying so. The person’s message should stay in the composer, with the reason and the way forward next to it.
Show what’s using the space
A percentage tells people how full the context is. It doesn’t tell them what to remove. Context Meter’s breakdown lists each part against the whole window, such as conversation, files and instructions, so the biggest cost stands out.
It also helps to show what the assistant is working from as named items people can open and check. Workspace Context lists a task’s sources in a side panel:
Named sources make the abstract concrete. “brand-guidelines.pdf is in context” is something a person can act on in a way that “82% used” isn’t.
Presenting usage limits
Usage allowances are a business limit, not a technical one, and people feel them as a judgement on how much they work. Present them plainly and early.
Messages this session
36% used
18 of 50 messagesResets at 14:00
Weekly messages
86% used
Running low428 of 500 messagesResets Monday at 09:00
Research runs this month
Limit reached
20 of 20 runsResets 1 December
- Always say when it resets. “Resets Monday at 09:00” turns a wall into a wait.
- Warn once, early. Usage Limit says “Running low” from 80%. In the conversation, its companion Usage Notice rises behind the composer at the same point, so people learn before a message fails.
- Explain what happens at the limit. Does work stop, slow down or switch to another model? Say which, before it happens.
- Keep upgrades secondary. Offer the option at the reached state. A limit message that leads with a sales pitch reads as a trap.
- Let people dismiss a warning, but not a reached limit, which still applies.
Warning and recovery states
Each limit needs a full set of states, written in advance:
| State | Context window | Usage allowance |
|---|---|---|
| Approaching | Older turns will be summarised soon. | You’ve used 80% of this week’s messages. |
| Reached | No room for more. Compact or start a new conversation. | Limit reached. Resets Monday at 09:00. |
| Action failed | Couldn’t compact. Nothing was lost. Try again. | Your message wasn’t sent. It’s still in the box. |
| Recovered | Compacted. Recent messages kept in full. | Your allowance has reset. |
Avoid misleading precision
Token counts look exact but rarely mean much to people. Different models count text differently, the product adds instructions people can’t see, and the reply itself takes space. A few rules keep numbers honest:
- Round for display: “171k of 200k” rather than “171,384 tokens”. Keep the exact figure for developer tools.
- Show measured numbers only. Context Meter is designed to display counts from your application and never estimates or animates towards a number it doesn’t have.
- Don’t translate tokens into pages or words unless you can do it reliably for the content in question.
- Prefer an outcome over a figure in messages: “room for a few more long replies” is only useful if it’s true, so when in doubt, use the percentage.
Accessibility
- Give meters an accessible name and value. Context Meter labels its trigger with the percentage and both counts. Usage Limit uses the ARIA
meterrole with a text value such as “428 of 500 messages” (WAI-ARIA 1.2). - Announce threshold changes once, as status messages, without moving focus (WCAG 4.1.3). Don’t announce every token.
- Pair colour with words. “Running low” and “Limit reached” carry the meaning; the amber and red only reinforce it.
Limits are one part of a wider set of states. The guide to chat interface design covers the composer they sit beside, and the article on design systems for AI-native apps explains why usage belongs in the system.