Agent Limits Card
The agent budget widget - a context window usage bar segmented by token bucket with a used / max readout, and plan usage limits with reset times and progress bars. Expanding the context window grows the whole card to reveal the per-bucket breakdown, free space, deferred buckets, and collapsible member lists.
Installation
Agent Limits Card is part of BoardUI Pro.
Dark mode ready - this component follows BoardUI semantic tokens automatically. Set up theme switching.
Expanded
defaultExpanded opens the breakdown on mount; the groups (context.groups) each collapse independently. Deferred segments are listed with a dash and left out of the bar and the total.
<AgentLimitsCard context={{ max: 1_000_000, segments: [ { label: "Messages", tokens: 520_000 }, // palette colours from blue… { label: "System tools", tokens: 96_000 }, { label: "MCP tools", tokens: 68_000 }, { label: "Skills", tokens: 54_000, color: "var(--color-chart-8)" }, // …or your own { label: "MCP tools (deferred)", tokens: 69_900, deferred: true }, // listed, not counted ], groups: [ // collapsible member lists { label: "MCP tools", tokens: 137_900, items: [{ label: "browser", tokens: 54_200 }, /* … */] }, ], }} plan="Max (5x)" planHref="/settings/plan" limits={[ { label: "5-hour limit", used: 0.38, resets: "Resets in 2 hr 46 min" }, { label: "Weekly · all models", used: 0.03, resets: "Resets Tue 3:00 PM" }, { label: "Weekly · Pro", used: 0.05, resets: "Resets Tue 3:00 PM" }, ]} defaultExpanded onExpandedChange={(open) => track("context_breakdown", { open })}/>