Skip to content

Releases

tokendoctor 0.8.0

Choose a tag to compare

@rsaryev rsaryev released this 01 Dec 01:06
d069be8

A full audit of tokendoctor: one serious bug fixed in the slide, an undo that covers every fix, and an audit that agrees with Claude Code's docs again.

  • The slide no longer touches a call that has not run. It could replace a long input, such as a Bash heredoc or a message to a subagent, with its pointer text while the call was still waiting, and then that text ran instead of your command. Inputs are now shortened only after their result is in the conversation, and a second "yes" typed in a row is no longer dropped as a copy.
  • tokendoctor-undo puts back every fix. Deny rules, removed hooks and installed files are journalled too, a status line script and the setting that runs it go back together, and a write that fails halfway leaves nothing behind.
  • The audit reads what Claude Code reads. It honours skillOverrides, follows CLAUDE_CODE_SUBAGENT_MODEL for agents without a model, reads managed, local, project and user settings in that order, and counts AGENTS.md, CLAUDE.local.md and unscoped rules. Advice the docs contradict is fixed (Explore's model, advisor pairs, fast mode, /compact under DISABLE_COMPACT), and there are five new checks.
  • The reports add up. Sessions kept their id again, so the keepalive estimate no longer treats all your sessions as one. Mythos is counted, fast mode and 5 minute and 1 hour cache writes are priced as the pricing page lists them, and /tokendoctor:sessions and the dashboard now give the same totals.
  • Safer by default. The status line never evaluates text from its input, tokendoctor-org-install prints the sudo commands for you to run instead of running code from your user folder as root, the dashboard writes only into its own folder (0600), and secrets in settings env stay out of tokendoctor-audit --json.

Update: claude plugin marketplace update tokendoctor. Full notes in CHANGELOG.md.

tokendoctor 0.7.0

Choose a tag to compare

@rsaryev rsaryev released this 26 Nov 14:39
70baadc

The prompt cache can stay warm through a break.

  • Keep the cache warm (/tokendoctor keepalive on, off by default). Come back after the prompt cache's hour and the next message writes the whole conversation into it again, at twice the input price. Six minutes before the hour runs out, tokendoctor sends a one-word fork of the conversation, which reads it from the cache and starts the hour again. Only for conversations of 200K tokens or more, and only when it knows the cache is still warm; anything it cannot read, a ping that had to write the conversation back, a rate limit or an error, and it stops until your next message. Checked on a live session on Sonnet 5.5: a message 70 minutes after the one before it, with a ping at minute 54, still read the whole conversation from the cache.
  • /tokendoctor:sessions says what it would have saved you (keepalive-would-save), replaying the same rules over your past pauses.
  • Docs: tokendoctor.localix.ai/docs/keepalive, and every docs page now has a Copy page button.

Update: claude plugin marketplace update tokendoctor. Full notes in CHANGELOG.md.

tokendoctor 0.6.1

Choose a tag to compare

@rsaryev rsaryev released this 20 Nov 21:41

Counting fixes: forked and resumed sessions, the --days period, and prices for the new models.

  • A forked or resumed session counts once. A fork's transcript starts with a copy of the one it came from; every report read each copy in full, so a session forked twice counted three times (on one machine the total was 49% over). Each copy now counts only what it added.
  • --days counts what happened in those days, not whole transcripts whose file changed in the period.
  • Fable 5.2 and Mythos 5.2 have prices. Their responses were counted as unpriced and left out of every report.
  • The repository moved to github.com/localixai/tokendoctor. The old address redirects.
  • A shorter README that starts from the replay of your own last 30 days.

Update: claude plugin marketplace update tokendoctor. Full notes in CHANGELOG.md.

Thanks to @ximi for the fixes in #1 and #2.

awake 0.3.0

Choose a tag to compare

@rsaryev rsaryev released this 03 Dec 09:46
  • Work that sends no event keeps the computer awake too, in Claude Code: a model turn still
    running, a tool call that takes long, and background work the agent waits on after it answered
    (a build started with run_in_background, a background subagent, a monitor). While any of these
    lasts, the plugin marks the activity once a minute; when it ends, the hold runs out as before.
    Waiting for a person does not count, and neither do scheduled wakeups.
  • The status line says what the hold waits on: awake: waiting: 1 task while it is held for
    background work, so a server left running in the background is seen.
  • The plugin still changes no setting: the mark is one file's time in its own folder, written only
    when the hook has made that folder, with no process started. AWAKE=off turns it off too.

Claude Code after the agent started a command in the background and answered: the status line reads awake: waiting: 1 task

Update in Claude Code:

claude plugin marketplace update awake
claude plugin update awake@awake

awake 0.2.0

Choose a tag to compare

@rsaryev rsaryev released this 03 Dec 09:45
  • The status line shows how long the computer stays awake in Claude Code: awake: 14m while it
    is held, awake: not held when the system refused the hold, and nothing once no agent has worked
    for the window. It reads two files' times when the label would change (the next minute down, the
    end of the hold), at least every 30 seconds, and a second after each prompt; it starts no
    process. AWAKE=off hides it too.

Update in Claude Code:

claude plugin marketplace update awake
claude plugin update awake@awake

awake 0.1.0

Choose a tag to compare

@rsaryev rsaryev released this 03 Dec 09:45
  • The computer stays awake while an agent works. Every prompt, tool call, subagent, compaction
    and answer marks the activity. One keeper process per user holds the computer awake
    (caffeinate -dims on macOS, systemd-inhibit on Linux) and ends 15 minutes after the last
    activity, taking the hold with it. AWAKE_SECONDS sets the window, AWAKE=off turns it off.
  • One hold for every agent. Sessions, clients and parallel tool calls share the one keeper. The
    hook is a short shell script: it marks the activity and starts a keeper only when none runs.
  • Claude Code and the Agent Plugins core. The plugin carries both manifests and both hook
    files, so the same folder loads in Claude Code and in any client of the core.
  • awake status says whether the computer is held awake and, when it is not, why.

Install in Claude Code:

claude plugin marketplace add localixai/awake
claude plugin install awake@awake