Commit Graph
8 Commits
Author SHA1 Message Date
Florian Schmidt 5b42cb8c98 docs: start forecasts early when a window is ahead (D7)
The developer saw reach dates, the dotted forecast and the popup
warning only for Claude. Codex had reset its week ten hours earlier
and stood at 39 %, ahead by 33 points, but D7 started forecasts only
after 10 % of a window, about 17 h of a week. The rule kept noise
out of quiet windows and hid the one warning that mattered.

Forecasts now also start as soon as a window is ahead, and until
they start the tile and the chart say when they will.

Refs #5
2026-10-15 18:48:14 +02:00
Florian Schmidt 15145f1cdc docs: instance boundaries come from resets (D7)
The agent review of ab8d245 found that a gap between two session
windows made the analysis invent a previous instance up to the current
start and drop the real one's samples, and that an early Codex reset
gave the old window tokens from before the new window's first sample.
D7 now takes boundaries from resets, keeps real instances, infers past
instances only without samples and never for short windows.

Refs #5
2026-10-15 09:43:42 +02:00
Florian Schmidt 06b358570c docs: cap estimates, start forecasts at 10 %, end instances early (D7)
On real data, estimates of past weeks passed 200 %, a Codex window one
hour old forecast 100 % within two days, and Codex windows that ended
early were labelled with reset dates in the future. D7 now caps
estimates at the limit, starts forecasts once 10 % of the window has
passed, and ends an instance when the next one begins.

Refs #5
2026-10-15 09:18:41 +02:00
Florian Schmidt d2ff67bb69 docs: estimate day use from tokens and chart one window instance (D7, D8)
The day chart stayed empty until the app had sampled a whole week,
although the token history covers it. D7 now scales price-weighted
tokens by the measured use of the instance to estimate spans without
samples, always marked as estimates. D8 replaces the long limit
history with a burn-up chart per window instance, an expandable
"Other" and one tooltip component. Developer feedback on the redesign.

Refs #5
2026-10-15 08:45:08 +02:00
Florian Schmidt c7086e9760 docs: window instances tolerate reset drift (D7)
Claude reports reset times to the minute and drifts between probes, so
an instance is the samples whose resets lie within 15 minutes.

Refs #5
2026-10-14 22:53:41 +02:00
Florian Schmidt fd4f6f1185 docs: note the partial days of a long window in D7
Refs #5
2026-10-14 22:43:32 +02:00
Florian Schmidt ab0e46d7df docs: record forecasts, week days and the panel layout (D7, D8)
D7 now shows the date of reaching 100 % from the first point over
pace, adds the use at reset and a recent-rate forecast, and defines
today's use, per-day use and the daily budget of a long window. D8
says what the panel leads with and fixes provider and status colours.
Developer feedback on v1.

Refs #5
2026-10-14 22:19:58 +02:00
schmidt.florian f8afd11679 feat: add FinalToken v1 for Claude and Codex usage (#2)
FinalToken v1: a NativeAOT tray app for Windows 11 and CachyOS that tracks
Claude Code and Codex usage and limits through their CLIs only, with no
provider sign-in and no tokens (R1-R7, D1-D11).

- Core: incremental collectors for Claude transcripts and Codex
  rollouts, limit probes through `claude -p /usage` and
  `codex app-server`, a journaled history store, the refresh engine,
  pace and popup decisions, and the snapshot.json contract.
- App (Avalonia): stats panel with limit bars, pace, projections, token
  totals, charts, limit history and breakdowns; tray, settings,
  non-activating pace popups, single-instance activation, start with
  the OS, and the Off/Ask/Automatic Stream Deck plugin install.
- Stream Deck plugin (SDK v2, NativeAOT) for Elgato and OpenDeck.
- finaltoken-cli, tools/publish.py, the documentation check and the
  agent review workflow.

Closes #1
2026-10-14 22:11:19 +02:00