Hover the ring for the breakdown
42% of the window used
A token ring for the toolbar with two popovers: a segment breakdown and a short summary with the prompt cache timer.
Hover or focus the ring to open a Base UI popover. Switch between Breakdown and Summary. Add turns or files to fill it. The ring turns amber at 80% and red at 95%.
Options for the assembled component.
window*numberContext window in tokens.
segments*ContextSegment[]Id, label and tokens for each part.
reservednumberTokens kept free for output.
variant"breakdown""summary"Popover content. Defaults to breakdown.
cacheSecondsnumberSeconds until the prompt cache expires. Summary only.
composer/parts/context-usage.tsxRing and used / window label.
composer/parts/context-usage.tsxStacked bar, one row per segment, reserved and free space.
composer/parts/context-usage.tsxPercent used, one row per segment and the prompt cache countdown.
composer/parts/context-usage.tsxThe ring as a hover trigger for either popover.
Ported from the agent-builder prompt composer, popups rebuilt on Base UI.
Hover the ring for the breakdown
42% of the window used