Repository navigation
/cheap: fix stale skill list, wasted keep-warm refreshes, per-message disk write - #31
Merged
Merged
Conversation
- The unused-skill list only refreshed when /cheap was typed, so it went stale: a skill you started using later stayed name-only. It now refreshes (at most daily, in the background) after claude messages. - Keep-warm reused the last launch even after /model, /effort or a setting changed the prompt, so it could refresh a cache the next message would not read. It now compares the launch the next message would make with the last one and skips the refresh when they differ (the model is compared as a model: "fable" vs "claude-fable-5-2"). The launch options are built in one place for both. - The skill list was rewritten to disk on every message; now only when it changes. Measured, no change needed: the daily skill scan reads 2.7 GB of transcripts in 3.3 s and never blocks the screen for more than 16 ms; changing which skills are trimmed keeps the cache (Haiku: full prefix read on the next two messages).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An audit of /cheap for slowdowns and bugs. Nothing in it slows replies; three bugs fixed.
Fixed
/cheapwas typed, so a skill you started using later stayed name-only. It now refreshes after claude messages, at most once a day and in the background./model,/effortor a setting change, the next message sends a different prompt start, so the refresh was wasted. Keep-warm now compares the launch the next message would make with the last one and skips the refresh if they differ. Models are compared as models, sofableandclaude-fable-5-2count as the same. The launch options are now built in one place for both.Measured, no change needed
HOME=/tmp/nxhome-full npm test: all suites pass (2 new tests).