opus-tuner/claude-skills

Context tracking and safe session handoffs for long Claude Code sessions on Windows, macOS and Linux.
Every request re-reads the whole context, so a long session spends most of its
tokens re-reading. This bundle keeps the model and effort level you chose, shows
the context against a ceiling you set, and prepares a verified handoff when you want
to continue in a fresh session. Nothing interrupts your session unless you ask for
it.
Seven hook events, seven skills per install, a handoff writer, four effort gears,
two profiles, and a measuring tool. No network calls, no API keys, no dependencies.
Whether it saves tokens on your work has not been measured yet: the comparison
harness is in benchmarks/, and its results are pending.
Status: 0.8.0. Windows PowerShell 5.1 and pwsh 7 are both supported; CI
runs the full suite on Windows, Ubuntu and macOS. Claude Code is the only
requirement — the terminal, the VS Code panel and the Desktop app all load the
same hooks. Plain claude.ai and Desktop (no hooks) use the portable
claude-skill instead.
What's new
- 0.8.0: install it as a Claude Code plugin with two
/plugin commands and nothing
to run by hand. See install. The installer still works,
and is the way to get the status line and the read guard.
- 0.7.4: the 0.7.3 fix now also holds when a
/clear starts its new session as
startup, as the Desktop app was seen doing. Nothing loads while a /clear with no
handoff is pending, and the handoff is listed.
- 0.7.3: a session with no handoff that ran
/clear could load the handoff another
session in the project had just claimed. Now nothing loads when two /clears overlap,
and the handoff is listed.
- 0.7.2: on Windows, session starts racing for one handoff could all load it. Now
only one can. A start that finds the handoff already taken also keeps its own
messages and profile note.
- 0.7.1: a handoff's Commands run list names only programs.
- 0.7.0: three modes with interruptions off by default, handoffs that belong to one
session, state that overlapping hooks cannot corrupt, and usage figures priced per
request.
Every release is in the changelog. To get a new one, see
upgrading.
Why this exists
In an audit of one heavy week of Opus sessions, cache reads were 98.7% of all
tokens and 78% of the API-equivalent cost. Output — the thing people
usually try to shorten — was 0.3% of tokens and 12% of cost. Two sessions
accounted for 69% of the spend, both by running at 300–450k context per request.
That was one person's week, measured with the audit from before 0.7, which counted
repeated records and priced a session at one rate. Read it as a shape, not a result.
That shape suggests where to look, in order:
- The context size. Every request re-reads all of it.
- Turns that did not need to happen. A gear change or a subagent costs one
extra request.
- The most expensive turns.
max effort is for when a wrong answer costs a
full turn.
The bundle shows those numbers, offers ways to act on them, and gives you the
instrument to check the result. It does not downgrade your model, silently
compact your session, or clear it for you.
What it does
The status line is the whole state at a glance — context against the ceiling, the
tier, the effort level, and both rate-limit windows:
Opus 5.5 | high | [#####.....] 78k/150k 52% | routine | 5h 34% | 7d 12%
From 70% it adds one line:
Opus 5.5 | high | [########..] 132k/150k 88% | routine | 5h 61% | 7d 22%
-> to continue in a fresh session later: /wrap when this unit is done
At the ceiling that line becomes
-> ceiling reached. To continue in a fresh session: /wrap, then /clear. That is the
real output of statusline.ps1 for a sample session, with the colour codes stripped.
The bar turns yellow at 70% and red at 90%.