sleepwell-telemetry
Installation
SKILL.md
sleepwell-telemetry (v2)
Lockfile guard. Before operating, check
.sleepwell/ci-lock: if it exists and contains a live pid DIFFERENT from the current pid, refuse (sleepwell-telemetry: lock owned by pid <X>). If absent or pid is dead, ok. Seelib/ritual.md §10.
Collects usage telemetry (tokens consumed, cost derived in USD) from the
active runtime where the sleepwell loop is running. Updates
.sleepwell/state.json at the end of each iteration — before the cost
abort gate (§8.1 in lib/ritual.md).
State output:
state.tokens_used.{input, output, cache_read, cache_creation}(cumulative)state.cost_so_far_usd(cumulative, computed from tokens)