The Context Breakdown page shows you exactly how your agent’s context window is being consumed — step by step, broken down by component. Use it to understand why a session is running out of context, which component is growing the fastest, and where you might be able to reduce token usage.Documentation Index
Fetch the complete documentation index at: https://claw-lens.com/llms.txt
Use this file to discover all available pages before exploring further.
This page requires cache trace data to be enabled. If cache trace is not active, the page displays an “Unavailable” banner with instructions on how to enable it.
Enabling cache trace
The cache trace status is shown as a colored dot at the top of the page: green when enabled, gray when not. Two ways to enable it: Option 1 — add to~/.openclaw/openclaw.json:
OPENCLAW_CACHE_TRACE to OpenClaw and let it enable the setting for you.
Selecting a session
Use the session picker to choose which session to inspect. The dropdown shows the session ID, agent name, model, cost, date, and number of steps for each session. Type to search by any of these fields. Click × to clear the current selection and return to the empty state.Per-step cost chart

| Color | Meaning |
|---|---|
| Red | ≥80% of the maximum step cost — the most expensive steps |
| Amber | ≥50% of the maximum step cost |
| Blue | Below 50% — normal cost |
Context composition chart

| Color | Component | Description |
|---|---|---|
| Blue | System | The system prompt and instructions |
| Cyan | History | Conversation history — previous messages between the user and agent |
| Amber | Tools | Tool call results and tool-related content |
Per-turn table
A detailed table breaking down the context window at each step:| Column | Description |
|---|---|
| Step | The step number in the session |
| System | Tokens consumed by the system prompt |
| History | Tokens consumed by conversation history |
| Tools | Tokens consumed by tool results |
| Total | Total tokens used at this step |
| Pressure | Context utilization as a percentage of the model’s context limit |
| Cost | Token cost for this step (shown only if cost data is available) |