Repository navigation
v2.0.0 - Alerts, Insights, Auto-Log & Donate
What's New in v2.0.0
Alerts Dashboard
- Dedicated Alerts page with spend threshold monitoring
- Set daily, total, and per-session cost limits with visual progress bars
- ON/OFF toggle per rule with status dots (green/red/gray)
- Alarm mode: browser notifications + Web Audio sound when budgets are exceeded
- Sessions over limit table
Insights Dashboard
- New analytics page with file hotspots, activity heatmap, project breakdown, and pricing table
Start Fresh
- Reset all session data from the dashboard with one click
- "Start Fresh" button in sidebar with confirmation modal
POST /api/resetendpoint for programmatic reset
Auto-Log for Claude Code Hooks
cs auto-logcommand reads Claude Code hook transcripts and automatically logs token usage- Position-based de-duplication prevents double-counting across Stop events
- Tokens only saved after successful log (prevents token loss)
- TTY detection prevents hanging when run without piped input
- BOM stripping, position corruption recovery, transcript truncation handling
Donate Page
- Dashboard donate tab with GitHub Sponsors and Buy Me a Coffee links
- GitHub repo Sponsor button via FUNDING.yml
- npm
fundingfield
Claude Code Integration
- Full integration guide at
docs/integrations/claude-code.md - 3-hook automatic setup: SessionStart, Stop, SessionEnd
Bug Fixes
- AudioContext autoplay policy fix for silent alarms
- Web Audio scheduling fix for reliable alarm sound
- Alarms no longer fire on page load with existing exceeded thresholds
- Null reference fix in Alerts when threshold changes before data load
- Active session cleanup on reset (stops watchers/pollers before delete)
Full Changelog: https://github.com/brian-mwirigi/codesession-cli/blob/main/CHANGELOG.md