opencode-stats
A session activity log. Prompts and shell commands are recorded as short entries; the sidebar shows the session at a glance.
What it records
Every prompt (its size) and every shell command (truncated) is appended to a capped per-session log. Nothing leaves the machine. The log holds the 200 most recent entries; older ones fall off.
Session totals (tokens, steps, spend), token cache bar, pending and permission counts, and model info, all derived live from host data.
RPC
recent({ limit }) returns the tail of the activity log for dashboards. Never throws.