Skip to content

afk-compact 0.1.14

Choose a tag to compare

@RuslanTar RuslanTar released this 15 Nov 07:26
· 76 commits to main since this release

afk-compact 0.1.14 moves keep-warm's first request, in an idle gap where Claude Code's own idle compaction can run, to after that compaction, so the request is no longer wasted. The one-line install needs 2.1.292 or newer. Requires Claude Code 2.1.287 or newer; tested against 2.1.325.

Changed

  • In an idle gap at Claude Code's idle minimum (200,000 tokens by default) or more on the one-hour cache, keep-warm's first request now comes at about minute 55, not 50. Claude Code compacts such a gap at about minute 54, and a request at 50 did not stop that.
  • Keep-warm now sends that first request only when Claude Code did not compact; when it did, keep-warm stops (compacted) without a request. A failed request is still tried again a minute later, at minutes 56 and 57.
  • The later timing needs the plugin to have seen the gap's last request; after a reload during the turn, the first request stays at minute 50.
  • With the later timing, a machine put to sleep between minutes 50 and 55 of such a gap loses the cache, and the status line meter shows no keep-warm mark until that first request. With "idleCompaction": false in settings.json, the first request still comes at minute 50.
  • The log's keep_warm_start row and a refused keep_warm_stop row now say which timing applied, in first_due_s and first_why (native-window or default).