Skip to content
This repository was archived by the owner on Oct 15, 2026. It is now read-only.

v1.0.0-alpha.11

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 16 Sep 10:42
· 51 commits to master since this release
b8286ae

Real context usage & prompt caching (#71)

  • GET /api/sessions/:id/usage now 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; limit is a plain 80% of max_context with no separate fixed-overhead subtraction.
  • naru-shell's ctx:used/limit (percent) gains a cyan cache:percent segment when the provider reports cached prompt tokens.
  • Requests mark an Anthropic-style cache_control breakpoint on the conversation's fixed leading system prefix so providers that support prompt caching can reuse it; a new --no-cache root 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.
  • /compact and automatic mid-conversation compaction now show a "compacting..." spinner in naru-shell instead of a silent pause.