Compactor Stats

SkillSearch

Stats display — context savings, session metrics, compactions, sandbox and recall/search counters.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Compactor Stats skill

What this skill tells your AI

The instructions your AI receives, as published by neuron-mr-white/unipi in packages/compactor/skills/compactor-stats/SKILL.md and read by ahel’s review.

Display and interpret compactor statistics.

Commands and Tools

  • /unipi:compact-stats — user-facing dashboard
  • compactor_stats tool — agent-callable stats
  • ctx_stats tool — deprecated alias

Metrics Explained

MetricDescription
Session eventsEvents tracked for the current session in the compactor session DB
CompactionsNumber of compaction events recorded
Tokens savedEstimated tokens freed by compaction, using Pi token counts when available and DB fallbacks otherwise
Compression ratioApproximate before/kept ratio from stored compaction stats
Sandbox runsAgent sandbox executions recorded in runtime counters/DB
Search queriesSession recall/search queries recorded in runtime counters/DB

Health Indicators

  • Compactions > 0 on long sessions = compaction is happening.
  • Tokens saved > 0 after compaction = savings were recorded.
  • Sandbox runs increasing = sandbox tool usage is tracked.
  • Search queries increasing = recall/search activity is tracked.

Reading Stats

📊 Compactor Stats
Session events: 42
Compactions: 3
Tokens saved: 15000
Sandbox runs: 7
Search queries: 15

This means:

  • 42 events are tracked for the session.
  • 3 compactions saved roughly 15K tokens.
  • 7 sandbox executions and 15 recall/search queries were recorded.

Project content indexing stats are not owned by compactor; use read/bash (rg) for file search.

Signals

GitHub stars
64
Forks
15
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
compactor-stats
Source
github.com/neuron-mr-white/unipi