Repository navigation
Description
Parent
What to build
plotkeeper detects the plan ("The plan"). plotkeeper statusline saves only the 5-hour and weekly percentages and their reset times, in one file in the data folder, replaced on each call. /usage is read through claude -p only right before and after a run Daniel started (at most once per run and once in 10 minutes) and on a Detect again command, never on a timer or on page open. No rate_limits reads as an API key, weekly rows with no session row as Ultra, and Pro or Max is guessed from the first three runs' change against the engine's factor. Detection writes plan with confirmed: false and never over a confirmed plan. Under the spec's fallback (the trial found /usage unusable), detection and Detect again read only the status-line file. The command to confirm or change the plan is on the wire; the Settings row is the next ticket.
Acceptance criteria
-
server/tests/statusline.rsgains rows with and withoutrate_limits; only the four numbers are saved - A table test of the
/usageparser over the fixtures: the trial's captured ones, plus hand-written Ultra, no-rate_limitsandnull-report ones from the documented shape - Tests that detection never overwrites a confirmed plan and never starts a
claudecall on page open -
server/tests/wire.rscovers the new command's reply
Reading
- Studio: Run cost — what a background run takes from your plan, before and after #1056, "The plan", and "Made without Daniel" (the status line's four numbers, which Daniel passed in the veto summary).
docs/studio/settings.md:26: "opening the page spends nothing".docs/studio/research/run-cost.md: the trial's findings on/usage.
Touches
- Files:
server/src/statusline.rs,new server/src/plan.rs,server/src/settings.rs,server/src/runner.rs,server/src/api.rs,ui/types.ts,server/tests/statusline.rs,server/tests/fixtures/usage/,server/tests/wire.rs - Session: auto mode, with blocked commands (a real
/usageread to check by hand) - Route: strong · effort high — persistence (a new file, a settings write) and a trust boundary (parsing the CLI's output)
Activity
Studio: plotkeeper detects your Claude plan (#1061)
Studio: the snap base answers set_plan and detect_plan (#1061)
Merge #1061: plotkeeper detects your Claude plan
danielrispler commentedon Dec 2, 2026
Built on the integration branch
issue-1056-run-cost, PR #1071 (closes on merge).Route outcome: strong·high claude/opus → pass | 36m