This repository was archived by the owner on Oct 15, 2026. It is now read-only.
Repository navigation
v1.0.0-alpha.11
Pre-release
Pre-release
·
51 commits
to master
since this release
Real context usage & prompt caching (#71)
GET /api/sessions/:id/usagenow reports the provider's own real usage (prompt_tokens + completion_tokens, plus a cached-token count when the provider reports one) once a session has a completed round, instead of always estimating;limitis a plain 80% ofmax_contextwith no separate fixed-overhead subtraction.- naru-shell's
ctx:used/limit (percent)gains a cyancache:percentsegment when the provider reports cached prompt tokens. - Requests mark an Anthropic-style
cache_controlbreakpoint on the conversation's fixed leading system prefix so providers that support prompt caching can reuse it; a new--no-cacheroot flag (REPL and-p) disables this for a single run without persisting anything. - Past (already-completed) turns' tool call results are no longer replayed into every subsequent request verbatim — they're replaced with a short placeholder, since resending large tool outputs on every turn was the main way a tool-heavy session burned through its context budget.
/compactand automatic mid-conversation compaction now show a "compacting..." spinner in naru-shell instead of a silent pause.