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
This commit was merged in pull request #2.
This commit is contained in:
2026-10-14 22:11:19 +02:00
parent 6d67f157a5
commit f8afd11679
106 changed files with 6583 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# Requirements
Set by schmidt.florian on 2026-10-14 ([#1](https://git.finalfactory.de/FinalFactory/FinalToken/issues/1)).
Each requirement has a stable ID. [Decisions](decisions.md) say how FinalToken meets them.
- **R1** NativeAOT on the newest .NET. Cross-platform: at least Windows 11 and CachyOS.
- **R2** No sign-in to an AI provider inside the app and no API key or OAuth token. Data comes
through the providers' command-line tools.
- **R3** Supported providers: at least Codex and Claude.
- **R4** Opening the app shows a comprehensive stats panel, history included.
- **R5** Small, non-intrusive popups remind the user when usage runs ahead of or behind the pace
of a limit.
- **R6** A Stream Deck plugin shows selected stats on its buttons.
- **R7** The app installs or updates the Stream Deck plugin automatically, as the user chooses.