Expand description
Shared renderers for the value surface. Subtle by construction: one dim line, no exclamation, nothing when there is nothing measured to say.
Structs§
- Style
- How a channel can render: colour (ANSI dim) and Unicode glyphs are independent — a Claude status line has colour but no TTY, a legacy Windows console has a TTY but no reliable glyphs.
Functions§
- brand_
line - The Claude Code status line in the Context Gateway’s terms:
◆ LeanCTX │ SELECT 12 files · 30 commands │ CONTROL ⛨ 3 enforced │ TOKENS −1.2M kept out · 60% leaner · 41 cached. SELECT is what reached Claude through the gateway, CONTROL what the rules enforced before the handoff, TOKENS what stayed out of context. A group with nothing measured is left out, and so is the line when all are. - compact
◆ −1.2M tok ⛨ 3for a shell prompt: the shortest honest form, never coloured (prompt escaping differs per shell, so the caller wraps it).- one_
line ◆ lean-ctx −1.2M tok · 41 cached · ⛨ 3— orNonewhen nothing measured happened yet (a zero would read like lean-ctx is not working).- security_
phrases - Human wording for a security tally, in the contract’s words: secrets are kept out of context, commands and paths blocked, injections flagged.