DOSSIER · PRJ_03 · AUTOMATION

CSM

Claude Session Manager — spends leftover Claude Pro quota automatically. Queue coding tasks and csm runs them through Claude Code's headless mode during your quiet hours, until the usage limit or a weekly budget stops it. One static Go binary, CLI plus interactive TUI.
Role
Creator
Year
2026
Status
v0.1.0
CSM — automation project screenshot

csm turns idle Claude Pro subscription quota into finished work. You queue tasks — features, reviews, refactors, even slash commands and skills — and a scheduled nightly job (Task Scheduler on Windows, cron on macOS/Linux) drains them through Claude Code's headless mode while you sleep, running highest-priority first until the plan's usage limit hits or a weekly token budget is spent. No money is ever spent: csm strips every API-key and billing environment variable from the claude subprocess, so it physically cannot fall back to pay-per-token billing — if the CLI isn't logged in, the run aborts instead of charging.

Continuity is the hard part, and csm solves it with session rotation: it resumes the last session per project while estimated context stays under 40% of the window, then starts fresh — every task reads and updates a ./context.md so state survives the cut. Safety is structural too: work happens on csm/<slug> git branches with push, reset, and rebase blocked via disallowed tools, so morning review is one git log away. A rolling 7-day token ledger keeps the bot from eating capacity you'll need later in the week, and the whole thing ships as a single binary with a Bubble Tea TUI — live run heartbeats, real plan-usage bars pulled free from claude /usage, and in-place config editing — over a scriptable Cobra CLI.