spectra

Reviewed at commit 867b81f

KOZMOS Spectra: the context X-ray. The context window broken down by category as a heat grid with a ranked legend, context growth per turn, and an estimate of…

Made by
KOZMOS
What we checked

Shows how full the context window is in a sidebar that /spectra toggles: a heat grid by category, a ranked legend, growth per turn and an estimate of turns left before auto-compact. It uses the session's own context figures after each turn, makes no network calls, reads no files and runs no programs.

Review details

Static review of the source at the pinned commit; not run. Registers session.start (registers /spectra, optional autoOpen setting, restores the series of the same session), command.run for /spectra, a turn.complete hook that calls next(e) first and then refreshes figures for main-loop turns (errors swallowed), and ui.render for the Pane (Raster and Text on the terminal, Svg on the desktop). Runtime calls: $.session.usage({breakdown:'summary'}), a local estimate, $.clock.now, $.ui.open/close/panes/resolve, $.command.register and the $.state atom API. No $.http, $.process, $.fs, $.store or model calls. The snapshot holds category names and token counts plus counts of memory files and MCP tools, not their contents. Not reviewed: hooks/lib/probe.ts (not imported by any module).

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: yes
Hooked events

KOZMOS Spectra: the context X-ray. The context window broken down by category as a heat grid with a ranked legend, context growth per turn, and an estimate of how many turns remain before auto-compact. /spectra toggles the sidebar.

Made this mod? Add a badge to your README

modsforClaude badge for spectra

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/spectra.svg)](https://modsforclaude.com/mods/spectra/)

← All mods