This repository was archived by the owner on Oct 15, 2026. It is now read-only.
Repository navigation
v1.0.0-alpha.10
Pre-release
Pre-release
·
54 commits
to master
since this release
Context budget & compaction (#64, #65, #66)
max_contextis now enforced as an input-context budget with 20% reserved for output. Session-backed chats compact old completed turns into a rolling summary once the budget is exceeded, retaining raw history in SQLite while preserving the newest completed turn and the current turn as real messages.GET /api/sessions/:id/usageestimates the full next prompt (summaries, system context, tools included) using the model's real tokenizer instead of a character-count approximation.- naru-shell caches and shows
ctx:used/limit (percent)next to the Git branch, refreshing it after every turn,/usage, and session/agent switches;/compacttriggers compaction manually while keeping the latest completed turn intact. - The stateless
/api/v1/chat/completionsendpoint is unaffected — it keeps supplied history as-is and returnscontext_length_exceededwhen it doesn't fit.
Provider/agent model selection rework (#69, #70)
- Providers no longer have a single global "active" one — every registered provider is always usable.
providers.activeand its unique index,ProviderActivate/ProviderActive, theprovider activateCLI subcommand, andPOST /api/providers/:id/activateare all removed. - An agent's
modelis now an explicit<provider>:<model>string (e.g.openai:gpt-4o-mini) instead of a bare model name. Agents created before this release needmininaru agent set <id> --model <provider>:<model>once — there's no way to infer which provider a bare model string meant. - Agents get a single "primary" cursor instead (
agents.selected, enforced unique by a partial index): the first agent you create becomes primary automatically, andmininaru agent primary <id-or-name>switches it. The REPL,-p, and a gateway's "+ new session" now actually default to the primary agent instead of the alphabetically-first one. - naru-shell's
/agent(switch agent on a new session) is removed./modelwith no arguments live-queries every configured provider's own/v1/modelsand lets you pick one by number;/model <provider>:<model>still sets one directly. - The CLI gains
agent add --pick-model/agent set --pick-model, the same numbered picker, so aprovider:modelstring doesn't have to be typed by hand from the command line either.