NeuralCodeDOCS
Core workflow

Token meter

A live context-window gauge in the workspace header shows how full the agent's context is right now. Click it for session token stats, a per-model breakdown, and a one-click Clear context.

NeuralCode
2xlabs / add-dark-mode code-agents/add-dark-mode156k/200k Running
Context window78% · 156k / 200k
Context is filling up.
1.2M
input + cache
84k
output
$2.14
cost
9
runs
Opus 4.81.1M · $1.92 · 7 runs
Sonnet 4.6180k · $0.22 · 2 runs
The token meter in the workspace header, with its session-stats popover open — context %, input/output/cost/runs, a per-model breakdown, and Clear context.

What it measures#

The meter sits in the header of every workspace, next to the status chip. It's reconstructed from the token usage NeuralCode already records on each run: input + cache-read + cache-creation tokenson the most recent turn is how full the model's context window is. The label reads used / window — e.g. 156k/200k — and the bar fills to that percentage.

Note
The meter only appears once something has run in the workspace. A brand-new workspace with no runs shows no meter.

Fill levels#

The bar changes color as the window fills, so you can see at a glance when it's time to reset:

LevelRangeMeaning
GreenBelow 75%Plenty of headroom.
Amber75–89%Context is filling up.
Red90% and upNearly full — clear it to reset.

Session stats#

Click the meter to open a popover scoped to the current context session (everything since the last /clear):

StatMeaning
input + cacheTotal input, cache-read, and cache-creation tokens this session.
outputTotal output tokens this session.
costDollar cost across the session.
runsNumber of agent runs since the last clear.

Below the stats, a per-model list ranks each model used this session by token count, with its cost and run count.

Clear context#

The Clear context (/clear) button at the bottom of the popover resets the conversation — it runs the same /clear you can type in the composer. The agent starts the next turn with a fresh context window, and the meter resets to empty. Use it between unrelated tasks so stale context doesn't crowd out the work that matters (and inflate cost).

Meter vs. Usage
The token meter is about the here and now— one workspace's live context. For totals, daily charts, and a spend budget across all workspaces, see Usage & spending.