Session Analytics — Insight Dashboard
The ctx insight command now includes session intelligence powered by 23 event categories.
New: Category Analytics Engine
- 90 metrics across 2 API endpoints
- 37 insight patterns with severity-based prioritization (critical → warning → positive → neutral)
- 4 composite scores (0-100): Productivity, Quality, Delegation, Context Health
- 8 analytics sections: Category Distribution, Error Intelligence, Delegation, Governance, Git Productivity, Context Health, File Intelligence, Composite Scores
- Show all toggle — top 8 insights shown by default, expand for full list
Insight Highlights
- KILLER patterns: Session failure detection (errors + 0 commits), CLAUDE.md + error correlation, retry storm alerts
- Error Intelligence: Resolution rate, P95 latency, slowest tool identification, top error sources
- Delegation Metrics: Agent completion rate, parallel burst detection, time saved estimation
- Governance: Rejection tracking, plan approval rate, constraint discovery
- Context Health: Rule freshness, skill diversity, work mode distribution, blocker resolution
Windows Hook Fixes
- fix(#369):
process.execPathinstead of barenode— prevents PATH resolution failures on Windows + Git Bash - fix(#372): Forward-slash paths + quoting prevents MSYS path mangling on non-C: drives
- fix(#371):
ensure-deps.mjsno longer skipsbetter-sqlite3install on Node v24. Only the SIGSEGV-prone probe is skipped - New
buildNodeCommand()utility — cross-platform, MSYS-safe, space-safe - All 8 hook-building adapters updated
README Updates
- What gets captured: 14 → 23 event categories
- Session Guide: 5 new sections
- ctx_insight description: 90 metrics, 37 patterns, 4 composite scores
Upgrade
ctx upgrade
# or
npm update -g context-mode