Add token count caching

Cache token counts to avoid O(n) rescans on each message update. Scope: state.py and token_counter integration.

tools-only Updated 7 repo stars

File contents

Add token count caching

Cache token counts to avoid O(n) rescans on each message update. Scope: state.py and token_counter integration.

Acceptance Criteria

Token count is recomputed only when message content changes; cached values are reused on subsequent updates; no new type errors.

tools-only/X-Skills/tree/main/daily-assistant/541-tun-2e7e_0639ea14 commit 601405aa07

Frequently asked questions

npx skillmds@latest add tools-only/add-token-count-caching