Skip to content

Metrics and Observability

TokenPilot provides the following observability surfaces from the source repository:

  • lightmem2 report — shows the latest available report across hosts
  • lightmem2 visual — opens the shared browser visual and lets you switch hosts and sessions
  • lightmem2 <host> doctor — adapter self-check

Runtime state files are persisted under host-specific state directories:

FileDescription
ux-effects/latest.jsonLatest session runtime effects
ux-effects/sessions/<session>.jsonPer-session effect history
event-trace.jsonlStream of runtime events
session-state/latest.jsonCurrent session state snapshot

State roots by host:

  • OpenClaw: ~/.openclaw/tokenpilot-plugin-state/tokenpilot/
  • Codex CLI: ~/.codex/tokenpilot-state/tokenpilot/
  • Claude Code: ~/.claude/tokenpilot-state/tokenpilot/

Released under the MIT License.