Repository navigation
Releases
v1.0.0-alpha.14
Bug fix batch (#81)
- Deny dangerous tools when no approval channel is wired (core).
- Add safe HTTP timeouts and graceful shutdown to the server.
- Drop a whole rune on Backspace instead of one byte (client), and truncate by rune count instead of byte index (util).
- Close the db handle when migrations fail in NewDatabase.
- Guard provider/web provider update against empty field sets.
- Extract prependSystemContext helper in SendChatMessage; make the update-check background test deterministic.
Provider fix (#82)
- Read Anthropic cache stats correctly when streaming through OpenRouter.
v1.0.0-alpha.13
feat(tools): add ask_user_question for mid-turn question prompting
v1.0.0-alpha.12
Web client support, and a license change to GPL-3.0-only (#75)
mininaru serve --cors-origin <origin>(repeatable) lets a web page or desktop client on another origin call the API. Preflight requests are answered before the key check and only for listed origins; nothing is allowed by default./wsalso accepts the api key as abearer.<key>websocket subprotocol, so a browser can authenticate without the key appearing in a URL or in the server's request log. REST requests ignore it.mininaru serve --web-dir <dir>serves a built web client at/, falling back to itsindex.htmlfor unknown paths;/apiand/wsare never shadowed.- License: mininaru is now
GPL-3.0-only(it wasGPL-3.0-or-later). Every SPDX header and the README, CONTRIBUTING and COPYRIGHT wording changed; theLICENSEtext itself is the same. ./configurewrites aconfig.mk(PREFIX,BINDIR) that the Makefile includes.
Dependencies
v1.0.0-alpha.11
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.
v1.0.0-alpha.10
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.
v1.0.0-alpha.9
- Avoid session lock deadlocks and use the target session context for delegated execution.
- Preserve failed Bash tool output for model recovery, bound output collection, and stop canceled turns before further work.
v1.0.0-alpha.8
/api/mcp(#55) — the same config CRUD asmininaru mcp:GET /api/mcplists every server with its live connection status,GET/DELETE /api/mcp/:name,POST /api/mcp(body is anmcp.jsonserver object),POST /api/mcp/:name/enable/disable,POST /api/mcp/reload. Every mutation reconnects the pool./api/skill(#56, read-only) —GET /api/skilllists what's on disk,GET /api/skill/:namereturns the text a skill puts in front of the model,GET /api/skill/usesthe load counts./api/agents/:id/memory(#56) — that agent's persistent store:GET(theMEMORY.mdindex + file list),GET/PUT/DELETE /:file.
Chat is no longer text-only (#57, #58).
POST /api/sessions/:id/attachmentstakes a multipart image (≤20 MiB), stored under.mininaru/attachments/with a row in the newattachmentstable;GET /api/attachments/:idstreams it back.- Reference the ids with an
images: ["<id>", …]field onPOST /api/sessions/:id/messagesor the/wschat frame; they're base64-inlined as data URIs for the model. /api/v1/chat/completionsaccepts the standard OpenAI content-parts array (contentas[{type:"text"},{type:"image_url"}]).- The client does the upload for you:
mininaru -p "…" --image a.png(repeatable) and/img <path>in the REPL (queued, sent with your next message).
Adds migration 0004_attachments.sql.
v1.0.0-alpha.7
mininaru gateway add|list|show|set|remove saves a name → websocket URL + api key in .mininaru/gateways.json (file mode 0600, keys in the clear, same trust model as .mininaru/mininaru.key). --gateway <name> then stands in for --url/--api-key anywhere the REPL or -p accepts them. With no --gateway, nothing changes — the client still uses ws://127.0.0.1:8223/ws and the local SQLite DB.
mininaru agent|provider|session list / show, plus session remove, provider remove, and provider activate, run against a --gateway (or a bare --url) endpoint's /api instead of the local database. --url/--api-key are now persistent flags so they work on subcommands too. add and set stay local; mcp and skill have no remote API and are always local.
A new /gateway command opens an arrow-key picker (↑/↓ or j/k, Enter, Esc to cancel, 10-row scrolling viewport): choose a saved gateway, then a session on it — or + new session — and the shell re-points its connection and reconnects in place. No restart.
v1.0.0-alpha.6
What's Changed
- feat(client): Shift+Enter multiline input in the REPL by @devproje in #48
- feat(cli): -p --format for json/xml one-shot output by @devproje in #49
- feat(client): render markdown tables, restyle inline code by @devproje in #50
- feat(client): surface session_send rounds at the REPL prompt by @devproje in #51
Full Changelog: v1.0.0-alpha.5...v1.0.0-alpha.6
v1.0.0-alpha.5
Fifth alpha. Still not compatible with the pre-1.0 0.x line.
Changes:
- client:
mininaru shelland thenarushalias are gone.mininaruis now a single-mode REPL — every line goes to the agent, and/bash//!bashrun one shell command in a shared bash context (only/bashshares the output with the agent). Esc or Ctrl+C interrupts a turn mid-stream. - client:
mininaru -p "<prompt>"is a stateless one-shot prompt — attach, send one message, print the reply, exit; it no longer opens the interactive shell - client: streamed replies render markdown, and file edits show as a colored diff with line numbers and +/- counts
- cli: new
mininaru daemon install|restart|uninstallrunsmininaru serveas a per-user background service — systemd --user on Linux, launchd on macOS, a logon Scheduled Task on Windows — replacing scripts/register-daemon.*.installalso pins NARU_PATH into your shell rc so an interactivemininarushares the daemon's data directory. - install: README now has a Windows PowerShell one-liner; scripts/install.sh offers
mininaru daemon installrather than editing your shell rc itself - docs: ARCHITECTURE.md rewritten for the REPL client and the daemon command