Pick a presentation on the toolbar
Each request is estimated while it is live, then counted. Pick a presentation on the toolbar.
How full a model's context window is, by part, as a map or a block grid, in an open card, a folded row or a compact card.
Each request is estimated while it is live, then counted. Hover a legend chip, a row, a tile or a cell to light what it stands for. Switch between the map and the grid, pick a part in the contents tabs, and fold the card to one line. Replay restarts the requests.
Options for the assembled component.
prompt*PromptWindow, tokens, parts with items, and whether the count is the vendor's.
livebooleanThe request is under way. Defaults to false.
layout"full""compact"Defaults to full.
titlestringCard title. Defaults to Context window.
agent / model{ name, icon } / { id, icon }Route shown in the head.
cache / liveCachePromptCachenullThis request's cache, and the last answered one shown dimmed while live.
session{ points, at, crumbs, onPoint }Session line, headroom and footer path.
foldable · collapsed / onCollapsedChangeboolean · boolean / (collapsed) => voidFolds the full card to one line. Omit collapsed to let the card keep it.
look / onLookChange"map""grid"Controlled or local, like tab.
tab / onTabChange"all"PartKindContents tab.
onSelectItem(part, item?) => voidMakes tiles, cells, chips and rows clickable. Omit it and nothing is.
_context-window/context-window.tsxHead, layout switch and the shared focus. Fold, look and tab can be controlled or local.
_context-window/context-stats.tsxTokens used, health, headroom and the prompt cache. The compact layout uses a figure row.
_context-window/context-viz.tsxThe tile map, the block grid and their tip.
_context-window/context-legend.tsxPart chips with the look switch, or one row per part in the compact card.
_context-window/context-contents.tsxTabs and the largest items first, with Show all.
_context-window/context-session.tsxCrumbs, turn notes and the session line against the window.
_context-window/context-model.tsPure layout of the tiles and the 400 cells, plus health, headroom and number formats.
_context-window/use-context-script.tsPlays the demo requests, each live and then counted, and holds on the last.
Recreated from the behavior of a reference routing page. Colors and spacing are the reference values.
Pick a presentation on the toolbar
claude-opus-5LiveCountedEstimatedresult87.9Kimage29.5KPi › reni14 turnsEach request is estimated while it is live, then counted. Pick a presentation on the toolbar.