Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Changelog

All notable changes to this project. Versions follow Semantic Versioning; before 1.0, a minor version may break compatibility. New entries go under Unreleased as pull requests land in develop.

[Unreleased]

[0.8.4] - 2026-11-24

Changed

  • One WithNav server owns the conversation database and serves every client. The first client (the editor’s nav lsp, nav tui, nav web or nav run) starts nav serve in the background; the others connect to it, so a conversation started in VS Code is live in the terminal and the browser, and the reverse. The server keeps running when its clients leave; nav serve stop (--force to end running turns) stops it and nav serve status reports it. nav lsp connects the editor to the server’s language server, so several editors share it and closing one leaves the others working. nav permissions and nav doctor ask the server instead of opening the database. Session lists match a workspace reached through a symbolic link.
  • Security of the shared server: loopback only (--allow-non-loopback and --bind are removed; --port sets the port), a token always required, written with the port to <data dir>/server/owner.json (owner-only); a client checks the server proves it holds that token before sending it; foreign Host/Origin headers are refused; requests never go through a configured proxy or follow a redirect; the token-less bypass special cases are gone.
  • nav web no longer puts a token in the address: it opens a single-use pairing code that the page exchanges for its own 12-hour browser credential, and exits at once. --port other than 0 is refused (use nav serve --port).
  • --models on a client now names the catalogue the shared server must use; a running server with another one is reported instead of silently used.
  • The discovery file nav lsp published under $XDG_RUNTIME_DIR/withnav-servers/ is gone.
  • The permission decision order is now stated once, in ADR 0015 (“Decision order”), and the code comments of src/permission/decide.rs, ARCHITECTURE.md and the book’s permissions page all describe that same order — the one the code applies: yolo, a written deny rule, the fixed floor, the protected check, the loop check, free reads and temporary writes, bypass, an allow rule on a call other than bash, then the permission flow and the Captain.
  • A conversation whose stop is slow (a tool that ignores cancellation) no longer holds up the others: slash commands, stop, resume, delete and archive of a conversation wait only for its own tree (the conversation and its subagents), not for every conversation of the server.

Fixed

  • A resumed conversation no longer presents its tail as the whole history when the stored history cannot be read. Before, the in-memory ring of a resumed session answered any subscription cursor (including “everything, from the start”) because it was born empty with no floor, so a client received only the events since the resume, labelled as the full conversation, with no error. Now the ring is born with the conversation’s stored head as its floor: a request it cannot serve gaplessly — the whole history, or any cursor below that floor — is refused with a resync signal, so the client reloads instead of silently missing every turn from before the resume. A client already at the conversation’s head keeps replaying the events since and following live.
  • Every durable event is stored before any client sees it. Before, events were written in the background after being shown, and one failed history write (a deleted session, a busy database past its timeout, a full disk) was remembered for the whole process: every conversation then ended at its next turn and every resume failed until WithNav restarted. Now a failed write ends only the conversation it belongs to, with a session.end whose reason names the failure, and the other conversations keep running.
  • The session service’s test seams (pause points, injected failures, watchdog doubles) live in one registry compiled only under the new test-support cargo feature, instead of being spread across the service under debug_assertions. Release builds no longer depend on the build profile to leave them out, and CI checks the release profile with and without the feature. Run the test suite with cargo test --workspace --features test-support.

Fixed

  • Permission flows: an Instinct outage is remembered, so the tool calls that follow the first failure no longer each wait out the flow deadline. A decision that times out or fails against the endpoint opens a 30-second window in which every further decision fails at once instead of dialling again: the rules, the local flows and each flow’s configured failure policy still decide, the runs are still recorded, and the “Instinct unavailable” notice is sent once per outage rather than once per call. After the window, the next decision tries the endpoint again; an answer clears the outage, another failure renews the window. A tool call that needs the compiled protected check records and honours the same window.
  • Permissions: a call other than bash that an allow rule covers runs at once, without asking the permission flow. The rule is the Captain’s own answer to the question Instinct would put, so a saved Always on a file, search, fetch or MCP tool no longer waits for a model evaluation on every call. bash keeps the flow, which judges the line a prefix rule cannot foresee. Everything above stays: a written deny is still final, the fixed floor still asks, and a protected write still needs the compiled-in check. A validated skill with no matching rule now runs as validation without the flow too.

Fixed

  • Navigator: a cancelled editor flow evaluation no longer erases the in-flight marker of the evaluation that took its place. An edit cancels the running evaluation and frees its slot immediately, so the cancelled trigger’s own cleanup used to wipe the marker a successor had just registered; a third evaluation could then start while the successor still ran, and the next edit had no handle left to cancel it. A trigger now clears the slot only if its own cancellation token is still live. A predecessor that hands the slot to a remark while keeping a live token can still clear a successor’s marker: closing that one needs an explicit owner on the slot and is not part of this change.
  • Permissions: the decision table now records the decisions that were made instead of every tool call. A read inside the readable roots that no rule touches, and anything run under yolo, no longer insert a row; the row of a call that something did decide (a rule, the fixed floor, the permission flow, the Captain, bypass) is written off the call path, so a tool no longer waits for SQLite before it starts. A row can be lost if the process dies right after a call starts; nav permissions history therefore lists permission evaluations and interventions, not every invocation.
  • Permissions: the built-in permission flow asks its questions in one Instinct request instead of one after the other. Without an allow rule it asks together whether the call was requested, only reads, or is a recoverable change; under an allow rule, whether it is dangerous and whether it was requested. Decisions are unchanged; a call that needed two or three round trips now needs one, at the cost of asking questions that were previously skipped.

[0.8.3] - 2026-11-11

Added

  • Project skills: WithNav discovers .skills/ alongside the existing project skill folders. skills.paths adds relative folders within the worktree or absolute user-level folders; the existing validation and discovery limits still apply.

  • Reasoning kept across tool calls on OpenRouter-style gateways: when a model’s stream carries reasoning_details (signed reasoning.text, reasoning.summary, reasoning.encrypted), WithNav assembles the entries and sends them back with the assistant message on the next step of the turn, to the same model at the same endpoint only. Entries from the OpenAI Responses format (openai-responses-v1) are kept but not sent back yet. A malformed stream frame no longer quotes the frame in its error message.

  • Permissions: the other git worktrees of the workspace’s repository (git worktree list) count as the project. An agent working on a parallel branch in ../<repo>-wt/<name> reads, searches and writes there without an external-directory question, with the same rule and provenance as in the workspace. The list is read when a call falls outside the workspace, so a worktree created mid-session works on its first use. A worktree of another repository, a plain folder or a link leading out of a worktree still asks; WithNav’s configuration and database, credential files, written deny/ask rules and yolo behave as before.

  • nav tui joins the server an editor’s nav lsp runs for the same workspace, so a conversation started in VS Code (or another editor) is listed and usable in the terminal client, and the reverse. The LSP publishes its port and token in an owner-only file (0600, in a 0700 directory) under $XDG_RUNTIME_DIR/withnav-servers/ and removes it when it exits; the terminal client ignores and removes a file whose process, port or token is gone. Without an editor, with --models, without a private $XDG_RUNTIME_DIR or on Windows, nav tui starts its own server as before. Requests from nav tui to a loopback server no longer go through HTTP_PROXY or ALL_PROXY, which could otherwise receive its bearer token.

  • MCP: an idle session now refreshes its MCP tools between two turns, never during one (nor while a question or permission request is held). A server that becomes ready after the session started, one that sends notifications/tools/list_changed, and one that disconnects are all picked up, and the conversation gets a short note listing the tools added and removed. When a new tool’s name is already held by another server’s tool, the existing one is kept and the note says so. A subagent keeps the tools it was created with; a new subagent is created from its parent’s current tools.

  • MCP resources: a server that offers resources gets two agent tools, mcp__<server>__list_resources (resources and URI templates) and mcp__<server>__read_resource (one resource by URI; several pieces come back as a numbered list). Results are untrusted text, redacted of the server’s configured secrets and limited to 64 KiB; both tools are decided by the ordinary permission rules, like any MCP tool. See MCP servers.

  • MCP prompts: each prompt of a server is a /<server>:<prompt> command in the terminal client, the WebUI and VS Code, listed with its arguments. Running it checks the arguments, asks the server for the prompt and sends its messages as your message, inside a block marked as the server’s untrusted text, redacted and limited to 64 KiB. See MCP servers.

  • Subagents: a child that uses its step budget (50 by default) no longer waits only for you. It pauses, and its parent is woken with a notice giving the steps used, the top-ups used and left, and the last tool call and result. The parent can continue it with one more budget, up to three times per child, or stop it (keeping its partial output) and start a new subagent. A fourth top-up is refused; your Continue always works and is not counted. decide_subagent accepts a budget park as well as a watchdog doubt; it still cannot approve a permission.

  • Secrets: an agent can ask the Captain for a secret (an API key, a token) with the new request_secret tool. The turn pauses and a dedicated card asks for the value (VS Code, the browser client; a prompt in nav tui), with availability (1 h, 24 h, session) and scope (this session, this workspace). The value goes to POST /v1/sessions/{id}/secrets/{request_id}, never through the chat; the model reads only stored as $NAME (expires …, scope …) or declined by the Captain. Commands the agent runs with bash (subagents included) get it as an environment variable, and every exact occurrence of a value of 8 characters or more is replaced by [secret NAME] in tool output, model text, Captain messages, events and the stored history. Live-streamed text is redacted piece by piece, so a value split across two pieces of a live stream can appear there while it streams; the stored response is redacted. GET /v1/sessions/{id}/secrets lists them (name, scope, expiry, use count, last four characters), DELETE /v1/sessions/{id}/secrets/{name} revokes one; the key icon of the conversation header (VS Code, browser) and /secrets in nav tui do the same. Session secrets stay in memory; workspace secrets are also kept, in plain text, in <data dir>/credentials/secrets.json (mode 0600) until they expire or are revoked. Security: the model never sees the value in the chat, but an agent able to run commands can still read it from its environment and exfiltrate it in transformed form; redaction reduces this, it does not prevent it. MCP servers do not receive secrets. See the book’s Secrets page.

  • MCP Apps and media in the WebUI and VS Code extension:

    • MCP tool calls returning images (image/png, image/jpeg, image/webp, image/gif, inline SVG, or board previews in structuredContent) render inline thumbnails in the transcript with click-to-zoom, while keeping the model’s tool output text compact.
    • Tools declaring a ui:// resource (_meta.ui.resourceUri / text/html;profile=mcp-app) or an app URL show an Open App button on the tool row that opens a sandboxed interactive MCP App view (in a dedicated App tab of the WebUI right panel, or in a Beside editor group in VS Code) with a JSON-RPC 2.0 postMessage bridge (ui/initialize, ui/notifications/tool-input, ui/notifications/tool-result, ui/open-link, tools/call, resources/read).
    • scripts/package-vsix.sh now names branch builds withnav-<variant>-<version>-<branch>+<sha>.vsix, matching nav --version.
  • Images in conversations, from the terminal client: /attach <path> adds a PNG, JPEG, GIF, WebP or SVG image (at most 3.75 MiB and 8,000 px a side) to the next message. A model sees it when models.json says "images": true or, without that field, when the gateway’s model list reports image input; any other model gets a short note saying an image was shown. GET /v1/models reports images and where it came from.

  • Images from tools: read on a PNG, JPEG, GIF, WebP or SVG file returns the picture instead of text, and image blocks in MCP tool results (browser or canvas screenshots) are kept rather than reduced to a size note. They are stored with the session’s other images (at most four per call) and a model with image support sees them in the next request. An SVG, uploaded or read, is turned into a PNG first; it may not load external files or declare a DTD.

  • A conversation saved before image support was known, or while the gateway could not tell, learns it from the gateway’s model list when it resumes, instead of keeping images unsent.

  • Images in the browser client and the VS Code extension: paste or drop images into the message (both also have an attach button, a multi-select file chooser in VS Code; at most eight per message, a message may be images only). In VS Code, each file left out (not an image, empty, too large, unreadable, over the limit, or refused by the server when sending) is named with its reason and stays listed until dismissed; a drop that carries links instead of files names the images it left out and fetches nothing. The Captain’s images and those returned by tools show as thumbnails in the conversation, also after a reload; a click opens one at full size, in the Image tab of the browser’s session panel or in an editor panel beside the VS Code chat.

  • Images in the terminal client beyond /attach: dropping an image file on the terminal attaches it, /paste-image attaches the clipboard image, every image of the conversation (also after a resume) is listed with a number, and /image [n] opens it in the system viewer.

  • MCP servers over Streamable HTTP: "type": "http" with a url and optional static headers ({env:NAME} expands in header values). Header values are redacted from tool results, descriptions, statuses and logs like env values. Timeouts, tool naming, schemas, results and permissions work as for stdio servers; nav doctor reports whether the server was reached and its tool count. No OAuth. (#42)

Changed

  • VS Code extension: the chat panel is redesigned.
    • It lives in the secondary side bar, next to the other chat extensions (VS Code 1.106 or later; engines.vscode is now ^1.106.0).
    • Several conversations run at once as tabs, each with its own session, agent, model and transcript.
    • A session list offers search, All / Active / Waiting for you / Errors filters and marks the sessions open in a tab. From 900 px wide it stays open as a left sidebar, shown or hidden with one toggle pinned at the top left.
    • Header, transcript and composer share one centred column (760 px by default). Each conversation has a header with a context ring and an agent strip: primary agent, three subagent chips and a dropdown listing every subagent by state.
    • Captain messages sit in a labelled bubble; Nav answers have a crew-coloured header and rule. A turn with several runs of actions shows one “Activity” line that expands to the steps.
    • Markdown is styled (headings, tight lists, tables, quotes, inline code, code blocks); a
    • Chat text uses the editor text colour at 14 px by default, set with the new withnav.chat.fontSize (11 to 22) and updated live.
    • The composer is a single box: context chip, attach button, model button, an agent picker (search, current mark, favourites kept under withnav.favoriteAgents) and send/stop.
    • The composer grows with its text, from about three lines up to 40% of the view height.
    • New commands: WithNav: Show Sessions and WithNav: New Conversation.
  • VS Code extension: new picker shortcuts. Ctrl+Alt+F adds or removes the highlighted agent or model from favourites (it was Ctrl+F, which also opened VS Code’s search), and Ctrl+Alt+A folds or unfolds every model group (it was Alt+A, also a VS Code binding). The pickers no longer handle Ctrl+F or Alt+A; the stars and group headers still work with the mouse. With AltGr held the keys type as usual. On macOS the combination is Control+Option, which VoiceOver also uses.
  • Dependency updates: rusqlite 0.41, base64 0.23, vscode-languageclient 11, jsdom 31, the web UI’s minor and patch releases and the CI actions.

Fixed

  • Attachments uploaded to an archived conversation are refused with the message route’s session_archived error before anything is stored. Stopped conversations still accept images for a later resume.

  • Model-only reasoning that contains a configured secret is dropped as a whole item before it enters the transcript; clean items keep their original bytes and order. Existing stored rows are not rewritten, and encrypted data can only be checked for literal occurrences.

  • nav tui: a secret paste is ignored while submission is in flight, Backspace removes a whole grapheme, and clearing hides the next value again. Putting the prompt aside focuses the editor; a failed submission names the requested secret.

  • Deleting a conversation now ends its conversation-lifetime secrets, including workspace-scoped ones. Timed workspace secrets survive, and deleting a child leaves its parent’s secrets intact.

  • MCP Apps: a resource read selects the one text/html;profile=mcp-app item instead of assuming the first item is HTML. Missing, ambiguous or empty app items are refused; raw text is bounded before redaction, and blobs must be valid base64 within encoded and decoded size limits.

  • nav tui: secret input refuses a paste or keystroke that would exceed 16 KiB without changing the value already entered. Pasting removes at most one trailing line ending, preserving leading and additional trailing newlines. Revealed values are sanitized for display without changing the submitted bytes.

  • nav tui: an /attach or /paste-image still being checked when you run /attach clear no longer adds its image back to the next message.

  • nav tui: when sending a message with images fails after some of them were stored, the retry reuses the stored images instead of uploading them again, so a failed send no longer adds copies to the conversation’s attachment quota (an upload whose answer never came back can still leave one).

  • Model-only reasoning kept in the transcript (signed thinking, encrypted reasoning) is now bounded: 1 MiB per item, 4 MiB and 64 items per message, when it is captured and when a stored conversation is read. An item past a limit is dropped whole, never cut; the items kept are unchanged byte for byte. (#157)

  • VS Code chat: closing a conversation tab removes its window resize listener. Closed tabs no longer stay in memory through it, nor resize a composer that is no longer shown.

  • reveal no longer opens the wrong place or claims a cursor move it did not make: a file whose real path is not valid UTF-8 is refused instead of being sent under a lossy name that could match another file; VS Code opens the path it checked, not a link retargeted since; a line past the end of the file is refused before any tab opens when it would place the cursor, instead of silently landing on the last line (with a symbol found, it still only picks the nearest occurrence); a missing symbol puts the cursor on the requested line, else line 1, and the result says which.

  • Tool images: one tool result keeps at most 4 images and 16 MiB of image bytes together. An MCP result also keeps at most 8 MiB beyond its text, structured content (itself at most 4 MiB), previews and images together. An MCP image past a limit is no longer decoded; the model reads that it was not kept, and at most 8 such notes plus a count close the output.

  • MCP previews are typed from their bytes, not from the server’s declared mimeType, and only standard base64 is accepted, so a PNG declared as JPEG no longer shows as a broken image. Text counts as an SVG preview only when it is one well-formed <svg> document.

  • MCP Apps: a tool call whose arguments are nested deeper than 64 levels or larger than 1 MiB is refused (400 mcp_invalid_request) before anything reaches the server, and a response larger than 8 MiB, before or after redaction, is refused (502 mcp_response_too_large).

  • Secrets: a session whose recorded parents form a chain longer than 16, or a cycle, gets an explicit error instead of having its secrets filed under whichever session the lookup stopped at.

  • Subagents: a step-budget notice whose evidence lacks a valid top-up or step count is skipped and logged instead of reporting zero.

  • MCP Apps: a failed resource read or tool call from an app no longer comes back as a 400 that blames the request. A bad request is 400, an unknown server or tool 404, a server error 502, a disabled, misconfigured or disconnected server 503 and a timeout 504, each with its own reason. The server’s own error text reaches the app redacted, on one line and cut to 256 characters; the longer diagnostic goes to the log. A malformed app request or an unreadable image upload gets a fixed message instead of the request quoted back.

  • Images: an SVG uploaded to an unknown conversation, or to one already holding its 64 attachments, is refused before it is rendered, so it no longer waits for (and holds up) the one-at-a-time SVG renderer. A step waits at most 30 s for the bytes of its images; past that they are sent as [image … unavailable] and the turn goes on. A failed image-loading task is now logged instead of silently sending every image as unavailable.

  • Secrets file: on Windows, <data dir>/credentials/secrets.json and its directory now carry a protected DACL (current user, SYSTEM, Administrators), applied on save and at start. A secrets file over 4 MiB is refused without being read, and a save that would exceed it fails.

  • A workspace secret that cannot be written now answers 500 secret_not_saved with a fixed message instead of a 400 carrying the OS error; an attachment store failure (upload, download, or an image in a message) answers 500 attachments_failed without the SQLite text. The details go to the server log.

  • Subagents: when the notice that a child used its step budget could not be saved (a failed history write), the child stayed paused and its parent was never asked to continue or stop it. The notice is now retried until it is saved, and the parent receives it once.

  • VS Code images: a message no longer leaves without an image that was still loading, and an image no longer rides along with the next message after a send (including the first message of a new conversation). Send waits until every attached image has loaded; only the images a message carried leave the composer. Picking more than 8 images names the ones not attached, and an image that cannot be read is reported instead of vanishing.

  • VS Code: the keyboard reaches three controls that only took a mouse click. An MCP tool’s image preview is a button that zooms on Enter or Space and reports whether it is enlarged; Ctrl+F in the agent picker’s search adds or removes the highlighted agent from favorites, as it already did in the model picker, and both search boxes describe that shortcut to screen readers; an attached image’s thumbnail is announced as “Open beside”.

  • Attachments: a PNG, JPEG, GIF or WebP is now decoded in full before it is stored, so a truncated or corrupt image is refused at upload instead of failing at the provider on every later turn. Repeated tool images are found by an indexed content hash rather than by comparing stored images. read returns a file named *.svg as an image only when it is a well-formed SVG document; anything else is returned as text.

  • The version stamped into nav binaries now marks uncommitted work: 0.8.2+dirty at a release tag, 0.8.2-develop+abc1234.dirty on a branch, 0.8.2+abc1234.dirty on a detached head. A clean tree still builds the bare version, so release binaries are unchanged. The stamp is recomputed whenever the worktree becomes dirty or clean again, and ignores a Git environment inherited from an IDE terminal (GIT_DIR, GIT_WORK_TREE, GIT_INDEX_FILE). A source tree unpacked inside an unrelated repository falls back to the plain version instead of adopting that repository’s identity, and a branch whose name is all digits (like 001) no longer produces an invalid prerelease.

  • The HTTP user-agent of nav’s fetch tool reports the build version instead of the Cargo package version, so requests can be traced to a concrete build.

  • A VSIX packaged locally now carries the bundled binary’s version in its manifest. The version appeared only in the file name before; the manifest kept whatever package.json said, so a dirty or branch build could install as a version it was not. Source manifests and the lockfile stay untouched.

  • Providers: keep-alive comments between two events no longer end a streamed answer once they add up to 4 MiB; the 4 MiB limit now applies to each SSE block, and every blank line starts a new one. Events received in the same chunk before an oversized block are still delivered. A dropped connection during the stream is reported as a transport error with its cause instead of a malformed SSE frame.

  • nav tui: the session event stream now bounds one SSE frame to 4 MiB, as the provider stream does. A body that never closes a frame (a broken proxy, an endless line) ends the subscription with a protocol error instead of growing the client’s memory without limit; nothing of that frame is delivered. Keep-alive comments reset the count, so a long-idle stream is never cut. (#156)

  • SVG attachments: filter cost is now counted on the document as it will be drawn. A filtered element repeated through <use>, or filtered by a style rule, is charged at each copy, weighted by its primitives and the share of the image its filter region covers; a document past 32 full-image filter passes is refused instead of rendering for minutes. A malformed order or numOctaves, or a second order value above the limit, is refused instead of read as zero.

  • Secrets: a workspace secret whose save fails is no longer left active (a secret it would have replaced stays as it was). Saving now syncs the folder after the rename, so a power cut cannot bring the previous file back. At start-up, saved entries that are expired or invalid (name, value, time) are removed from the file too, and a permissive file is tightened before it is read (Unix).

  • nav tui /paste-image: a clipboard that holds only a JPEG, WebP or GIF is attached (PNG is still asked for first; on Linux the clipboard’s offered types are listed otherwise). A clipboard helper that hangs, or leaves a process holding its output, is killed with its process group at the 5 s deadline instead of blocking the paste.

  • VS Code: an MCP App with inline scripts now runs. Its page was embedded in the panel and inherited the panel’s script policy, which only allows the panel’s own script, so the app’s scripts were blocked and ui/initialize never arrived. The server now serves the app from a single-use http://127.0.0.1 address (POST /v1/mcp/{server}/app, then GET /mcp-app/{token}, valid for one load within 60 seconds) under a Content-Security-Policy of its own: inline scripts and styles run, and connect-src, frame-src, images, fonts and further scripts are limited to the domains the resource declares in _meta.ui.csp (none by default). The panel embeds it with sandbox="allow-scripts allow-forms", so the app cannot reach the panel, VS Code’s API or local files, and the panel may embed that one origin only.

  • VS Code: the tab strip and the session list work from the keyboard and expose standard structures to screen readers. Tabs: Left/Right move between tabs, Home/End jump, Enter or Space opens the focused tab, Delete closes it; the close button is for the mouse. Sessions: the arrows skip the sessions of a collapsed group, Enter opens the selected one and Delete (with nothing after the cursor in the search field) deletes it after confirmation; a right click also offers Delete. The sessions are plain list options with no buttons inside, and the search field controls both lists.

[0.8.2] - 2026-11-05

WithNav 0.8.2 lets Cognition open code in your editor, names development builds by branch and commit, and stops a corrupt conversation from overwriting its stored history.

Added

  • Editor: when Cognition points to a place in the code, it opens the file in the editor and puts the cursor, centered, on the function or line (new reveal tool). It can open the file beside the current one, reusing a neighboring editor group, to keep two files visible. (#96)
  • The stored transcript can keep reasoning that only the model that wrote it can read back (signed thinking blocks, encrypted reasoning), with the identity of that model, and sends it back only to the same endpoint and model. No provider fills it yet; conversations already stored read back unchanged. (#88)

Changed

  • nav --version, nav lsp --version and nav doctor name the build: 0.8.2-<branch>+<sha> on a branch, plain 0.8.2 on its release tag. (#97)
  • Dependency updates: Rust crates, the extension, the web UI and the CI actions.

Fixed

  • A conversation whose stored transcript cannot be read no longer resumes empty (its next save overwrote the stored history): the resume fails and names the session, and the row is left as it was.

[0.8.1] - 2026-10-16

WithNav 0.8.1 shows the MCP servers’ status in the terminal client and the browser, reworks the terminal client’s right panel, opens the terminal client when nav is run alone, and moves the code to the Rust 2024 edition.

Added

  • MCP server status: a live-only mcp.status event on every open conversation’s stream and GET /v1/mcp report each server’s state (starting, ready, failed, disabled), tool count, skipped tools, error and a short redacted stderr tail. The web UI fills its MCP SERVERS section with them; the TUI’s right panel groups them with the skills under SKILLS · MCP · PLUGINS, with a coloured dot per server and the skills the model loaded in the conversation. (#44)

Changed

  • nav with no subcommand opens the terminal client, and takes its flags (nav --session <id>); nav tui still works.
  • TUI: typing a letter or a digit while the transcript has the focus (copy mode) goes back to the message editor and types it. A selected block is copied with ctrl+shift+c; plain y no longer copies.
  • TUI right panel: the Agents section shows the agent, its model and variant (no assignment line or role text), and the lower layers become one coloured dot each (green ready, red unavailable with the reason); Reflex is not listed, it needs the editor. Nav’s dot follows the conversation (orange while it runs).
  • The code moves to the Rust 2024 edition; the minimum Rust version stays 1.89.

Fixed

  • A shell line WithNav cannot split, such as one with a heredoc, no longer asks the Captain because a long quoted word “cannot be resolved”: a word that cannot name a file names none. (#71)
  • An MCP server’s startup timeout counts from its launch, and nav doctor waits one second past it, so a server that hangs is reported failed instead of still starting on a slow host. (#64)

[0.8.0] - 2026-10-15

WithNav 0.8.0 runs natively on Windows x64, connects to stdio MCP servers, and redesigns permissions: written rules decide tool calls, a flow judges the rest, and you answer Once, Always or Reject. See ADR 0015 and the Permissions chapter of the guide.

Added

  • Permission rules. A rule says what happens to a tool call (tool, resource pattern with *, allow / ask / deny) in one project, every project or for one agent. The most precise rule wins, a deny always stops the call, and there are no default rules. With no matching rule, the default is ask; the permission flow may still allow the call, for example when the Captain asked for it. Without a flow that answers, WithNav asks. Rules live in withnav.db and are revoked, never deleted.
  • nav permissions: list, add, revoke and history for rules and decisions; validate, validations and revoke-validation for flows and skills.
  • Decision history. Every permission decision is recorded with the call (secrets redacted, size limited), the matching rule, the flow’s verdict, your answer and the outcome (allowed, denied, pending, cancelled, expired).
  • Once / Always / Reject. Always saves the rule shown on its button, for example bash / cargo test * for this project, and releases the waiting calls of the turn it covers. Reject carries an optional message the model reads; every waiting call of the turn is rejected with it. Always is not offered for credentials, WithNav’s own configuration or a shell line WithNav cannot split.
  • Shell commands are checked one by one. A bash line is split into its commands; each is matched by its prefix (git push, cargo test, npm run build), and the strictest answer wins.
  • The permission flow. The built-in permission-default flow asks Instinct whether you, or a skill you validated, asked for the call, or whether it is a read or a recoverable change in the project; under an allow rule it asks whether this exact call is destructive and, if so, whether you asked for it. It runs in the Studio like any flow and can be tuned there. If Instinct is unavailable, your rules apply.
  • Validation of flows and skills. A global or workspace flow, and a skill, run only once you have validated their current content; a changed file asks again. A validated flow, a workspace flow included, can allow tool calls: read it before validating it.
  • A yolo setting turns off all permission control. Set "yolo": true in config.json and sessions started or resumed afterwards run every tool call without any check: no prompt, no rule, no flow, no protection of credentials or WithNav’s configuration. Each call records approved_by: yolo, and YOLO stays visible in the terminal, the browser and VS Code; nav doctor warns. It is off by default and unsafe: use it only on a machine you can afford to lose.
  • Native Windows x64. nav.exe runs on Windows: CLI, TUI, web client and LSP, sessions, settings, private auth.json, the permission database, flows and the file tools. The bash tool uses Git Bash from Git for Windows, with each call’s processes in a job object. Paths are shown as C:\...; tool output lists relative paths with / on every platform. Release assets: an MSVC nav.exe ZIP with licenses and a win32-x64 VSIX bundling nav.exe, with checksums. The test suite runs natively on Windows in CI.
  • Stdio MCP servers. Declare external tool servers in config.json under mcp; ready tools appear as mcp__<server>__<tool> in new sessions and go through your permission rules like any other tool. With no matching rule, the default is ask; the permission flow may still allow the call, for example when the Captain asked for it. Without a flow that answers, WithNav asks. Always saves a global rule. Calls are cancellable, have deadlines and bounded results. Servers are shared, restarted after crashes and cleaned up on shutdown. nav doctor reports configuration and startup diagnostics, without empty skipped: or stderr: fields. On Windows, servers receive the Windows runtime variables, commands such as npx or uvx (.cmd files) are found through the server’s Path, and each server runs in a job object, so stopping it stops everything it started.

Changed

  • Every tool call goes through one decision, in a fixed order: yolo, the fixed checks (credentials always ask; a write to WithNav’s own configuration or database needs your explicit request), reads inside the project, your rules, bypass, the permission flow, then you. MCP tools and tools of agents without a role are decided too.
  • Bypass now answers only questions raised by a rule ask or the permission flow; a deny rule still denies, and credentials, WithNav’s configuration and skill validation still ask.
  • An agent’s limits are rules with that agent’s scope. WithNav seeds none: plan writes are decided like any other call, and its prompt still tells it to write Markdown only.
  • A subagent’s permission flow sees your messages in the parent conversation; text the parent agent wrote, in the delegation or in steering, is a separate request source for ordinary calls, never for protected configuration writes. Your answers to an ask count as your words.
  • A write or edit to a file in the system temp directory (such as /tmp) or a scratch folder runs without a question, unless one of your rules denies or asks about it; credentials still ask.
  • A shell command that only names WithNav’s database or configuration (sqlite3 withnav.db "SELECT …", a script given the path) is no longer blocked by a fixed exception list: the check on WithNav’s own files asks whether the command only reads them or you asked for the change. A read-only query runs, with or without -readonly; a DELETE, a script UPDATE or a .save over the database asks you unless you requested it.
  • WithNav’s scratch folders (/tmp/withnav, $XDG_RUNTIME_DIR/withnav, or your permissions.scratch_dirs) are a free zone for shell commands, deletions included. The rest of the temp directory is not: creating a new file there runs, but deleting or overwriting an existing one is judged like any other deletion. The permission flow now knows where a shell command acts (project, scratch, temp, elsewhere or unknown) from its literal paths.
  • A message that names a change to WithNav’s configuration or rules (“remove permission 3”, “set yolo to false”) now counts as your request for it; a vague goal or “apply this file” still does not. The check’s verdict and score are recorded with the decision and shown with the question, so a refusal can be explained.
  • Each permission decision names the flow runs behind it and their scores: nav permissions history prints them, --json gives the run ids that find the full run in the flow run log, and a question shows the scores in its reason.
  • Always is no longer offered for a shell command that deletes, moves, overwrites, changes permissions, kills or rewrites history (rm, mv, cp, sed -i, sqlite3 without -readonly, git push, git reset, kill, a > redirection to a file, and others). A rule such as rm * would have allowed every future deletion.
  • The permission flow judges better. Its “read or recoverable change” question is split in two plain questions: does the call only read, and is it a recoverable change (files in the project, its scratch folders or the temp folder, or building, testing, formatting, linting). Replayed on a real test session, project and temp writes and requested deletions now run, and unrequested destructive commands still ask. Under an allow rule, a call judged dangerous now runs when you asked for it and asks otherwise, as it would without the rule.
  • The permission flow, and the check on WithNav’s own configuration, read the last four messages of the conversation with yours, up to your last message. A short “yes, go” accepts the proposal the agent just made and counts as your request; an agent message alone never does. What the agent wrote after your last message is left out: asked to “apply” a file, it could otherwise repeat a command from that file and have it read as your request (a recorded rm of a file in your home directory ran this way; replayed with the cut, the flow asks).
  • An allowed file write is bound to the path you were shown: if a link is put in its place before it runs, nothing is written and the call is decided again.
  • If the permission database cannot open, the session starts with a visible warning. Every call gets no rule; the floor and flow still apply, and the flow may allow even though deny rules are invisible. Bypass and Always are disabled and decision history is unavailable.
  • In the terminal client, the quit confirmation names the key you pressed: after ctrl+c it said “ctrl+q again to quit”, although only a second ctrl+c quit.
  • The README is a short front page; the full user guide is an mdBook at withnav.dev/docs, with install, configuration, permissions and troubleshooting rewritten for clarity.

Removed

  • The per-call review. Instinct’s call classification, the Metacognition permission review, their deadlines, Captain precedents and the shell risk analysis are gone. Metacognition still writes remarks and decides the watchdog’s doubts.
  • Settings permissions.automatic_review and permissions.review_timeout_secs. Saving them is now refused as an unknown key; a value already in config.json is ignored, and nav doctor reports it as an unknown key.
  • The plan role guard and its role_conformance question.
  • Grants. “Allow for this folder / site”, “Allow WithNav config for this session” and “Allow this skill’s scripts on this machine” are no longer offered. grants.json, skill-grants.json and flows-trust.json are no longer read; their content is not imported. Only older clients’ folder and configuration-session answers count as Once. A legacy skill-machine answer is refused as stale; legacy deny maps to Reject.
  • The nav doctor live checks live.instinct.role_guard and live.instinct.permission.

[0.7.8] - 2026-10-12

WithNav 0.7.8 prepares the public opening. Tagged releases now ship ready-to-install Linux packages with nav inside, a toolchain you installed yourself (such as rustup’s cargo) is trusted like a system one, and the HTTP and data dependencies move to their current majors.

Added

  • A tagged release now ships ready-to-install packages for Linux. The GitHub Release holds a VS Code package for x64 and one for arm64, each with a statically linked nav inside that the extension uses on its own, plus a universal package without a binary (it needs nav on PATH or withnav.serverPath), the bare nav binaries as tarballs, and SHA256SUMS. A path you set in withnav.serverPath still wins over the bundled binary. scripts/package-vsix.sh builds the same files locally.

Changed

  • HTTPS connections use the system’s trusted certificates, including locally installed certificate authorities, through the platform verifier. TLS cryptography now uses aws-lc-rs instead of ring.
  • The VS Code extension needs VS Code 1.91 or later (was 1.90). It now uses vscode-languageclient 10, which requires it.
  • A toolchain you installed yourself, such as rustup’s cargo, is trusted like a system one. The permission gate used to trust only root-owned programs, so on a rustup machine cargo test went to review every time. A program now qualifies when you or root own it, nobody else can write it or any directory above it, and it is outside the workspace. The trade-off: any such program you own is trusted by ownership, so an agent that can write one there (with the shell or a build script) can have it run as a known tool. Edits through the write and edit tools to ~/.cargo/bin and ~/.rustup/toolchains (or $CARGO_HOME / $RUSTUP_HOME) always ask you, and replacing the resolved executable (or rustup proxy) invalidates an approval for a command. A toolchain update behind an unchanged proxy does not.

Fixed

  • nav builds for musl Linux. Writing a flow file that must not replace an existing one now calls renameat2 through the raw system call, because nix only wraps it with glibc. The behaviour is unchanged: one atomic rename that fails if the file exists.

[0.7.7] - 2026-10-11

WithNav 0.7.7 is a maintenance release with no new feature. A pass over the audit backlog fixes edge-case bugs, makes the permission gate stricter on git, paths and shell syntax, speeds up a few hot paths, and makes the test suite faster and steadier.

Fixed

  • git pushes that delete or force always ask the Captain, however they are spelled. This covers deletion refspecs (:branch, +:branch, --delete), clustered or abbreviated options (-fvd, --delet, --forc), global options before push (git -C . -c x=y push, git --config-env …), and escaped or expanded spellings (\git push, git pu\sh, git $'\x70ush', git "$p"). Metacognition can no longer approve them on its own.
  • A git diff that can run a program is no longer treated as a read. This covers --ext-diff, --textconv, -c diff.external=…, --config-env, --exec-path, core.pager and GIT_* assignments in the command.
  • Shell syntax can’t hide what a command does. A carriage return or another invisible space before #, a redirection target with $ or an escape, a relative PATH entry, or a cd / pushd / builtin cd before the real command now send the command to review.
  • Protected config and credential paths are recognised in more spellings. This covers quoted paths containing a space, ~login/.config/withnav/… (the home directory comes from the system account database), ~+/…, repeated slashes after ~, and paths followed by a shell comment.
  • Ordinary commands with a comment, and symlinked workspaces, no longer go to review. git status # check is read as git status. A workspace opened through a symlink or a relative path can again prove that an overwritten file is recoverable from git.
  • nav auth set no longer erases other providers’ keys. When auth.json is unreadable or has unsafe permissions, the command reports the error instead of replacing the file.
  • Streaming answers end cleanly. An event spread over many data: lines can’t grow past the size limit, and a network error mid-stream ends the stream.
  • An agent no longer stays “Running” after an error. A provider failure, a cancellation or the switch to compaction returns it to idle.
  • An invalid WITHNAV_MAX_STEPS no longer means “no limit”. It logs a warning and caps the turn at 500 steps (50 for subagents). Unset still means no cap for the main agent.
  • A tool call missing a required argument is refused with a clear message. It no longer reaches the permission checks first. Optional and null arguments are still accepted.
  • fetch output no longer ends with � when converted HTML is cut inside a character. The fallback HTML flattener decodes entities once (&amp;lt; stays &lt;).
  • read and glob with huge offset / limit values no longer overflow.
  • Flow expressions compare integers and decimals exactly, including beyond 2^53.
  • Reloading flows reports each validation error once instead of twice.
  • Git status is correct when WithNav runs from a git hook or a worktree script. Inherited GIT_DIR, GIT_WORK_TREE and GIT_INDEX_FILE are ignored.
  • The Settings API answers a malformed JSON body with a 400 and the parser’s reason.
  • The history store no longer silently drops an event. A different event written at an already-used sequence number is refused. An identical retry is still accepted, and a subagent can’t be finished with an invalid status.
  • Compaction and skills handle limits safely. An out-of-range compaction boundary or an exhausted summary counter is refused without a model call. A skill header exactly at the size limit is no longer reported as truncated. An oversized agent definition is reported as too large even when it isn’t valid UTF-8.

Changed

  • Flow run history is cheaper. Each capture is appended instead of rewriting a log of up to 32 MiB. The Studio run list reads only the requested page: listing 20 runs from a 33 MB log drops from about 1.4 s to 6 ms. Retention is unchanged (1000 runs, 32 MiB, 7 days).
  • Agent steps no longer copy the whole conversation when nothing is injected at the step boundary.
  • Smaller speed-ups:
    • the event bus shares envelopes instead of copying them;
    • a session summary takes one database read;
    • the conversation digest and the picker search avoid repeated work;
    • flow graphs reuse their validated node index.
  • The hand-run Instinct setup probe now delegates to nav doctor --layer instinct, like the Reflex probe. Permission-corpus calibration remains available through cargo run --example permission_corpus_probe -- [optional-alias] [--raw] [--fast-only].
  • The test suite is faster and steadier.
    • Fixed sleeps and polling loops give way to signals and virtual time, always with a bounded timeout.
    • Duplicated fixtures move to tests/common/.
    • A missing golden fixture now fails instead of being created.
    • nav doctor has acceptance tests for every layer, legacy names, trust files, the VS Code extension and its read-only promise.

[0.7.6] - 2026-10-11

WithNav 0.7.6 removes the theme row from the VS Code Settings page, where it had no effect: the panel follows the editor’s theme.

Fixed

  • The VS Code Settings page no longer shows a theme setting. The panel follows the editor’s theme, so that row had no effect there. Change the terminal and WebUI theme from the TUI (/themes) or the WebUI Settings.

[0.7.5] - 2026-10-11

WithNav 0.7.5 lets ordinary work run without waiting on review. Instinct alone decides confident reads and recoverable edits in the project, so metacognition only reviews risky calls, with a smaller input and one configurable deadline. Printing sed and filename globs count as reads. The bash tool works on NixOS, nav doctor checks your setup and models without changing anything, and subagent controls in VS Code look like the rest of the panel.

Added

  • nav doctor checks your configuration and models without changing anything. Inspect assignments, credentials, legacy names, workspace/flow trust and installed binaries, then make small bounded live layer calls. --offline avoids all network requests; --json reports stable diagnostic ids without provider bodies or secrets.

Fixed

  • Ordinary work no longer waits 20–40 seconds for metacognition. Instinct alone decides confident reads and recoverable workspace edits, including regex grep, executable lookups, scheduling wrappers, secure mise-style symlinks and ordinary nix commands. Selecting Nav’s offered “Fais-le” option establishes that task. Destruction, credentials, opaque execution, unsafe executables and outside changes keep their safeguards.
  • Printing sed and filename globs are reads. sed -n 250,285p file and grep … tests/* no longer go to review. sed -i and scripts that write or run files still do, and a glob that would reach a key or credential file (cat .ssh/id_*) is still treated as sensitive.
  • The bash tool works on NixOS. It finds bash through /etc/shells and runs the resolved, root-owned binary; on other systems /usr/bin/bash is still chosen first.
  • Subagent controls fit the VS Code panel. Stop sits beside the name and state, with themed buttons and a clear keyboard focus ring. Goals take two lines with the full text in a tooltip, and internal delivery labels no longer appear below them.
  • The wire golden test no longer needs a git tag. It checks each fixture’s SHA-256 against its manifest, so it passes on a fresh clone and in CI.

Changed

  • Risk review is smaller and has one configurable deadline. Ten of eleven real reviews timed out with 45–54 KB of messages; one answer took 40.4 seconds and 3817 reasoning tokens out of a 4096-token cap. Reviews now keep the latest 16 KiB of conversation and three tool calls (512-byte output excerpts), preserve the configured low variant, and allow up to 16384 output tokens. permissions.review_timeout_secs defaults to 40 seconds (5–300); the second five-second attempt is gone. Timed-out changes still ask you.

[0.7.4] - 2026-10-10

WithNav 0.7.4 installs on NixOS from the repository itself: a flake builds nav and the VS Code extension, and its overlay adds both to a system configuration.

Added

  • A Nix flake at the repository root builds nav and the VS Code extension (nix build .#withnav .#vscode-withnav), and its overlays.default adds both to a NixOS system. Cargo.lock is now committed so builds are reproducible.

[0.7.3] - 2026-10-10

WithNav 0.7.3 stops permission prompts from piling up in real sessions. Plain reads run when Instinct is sure they only read, wherever they read; fd redirections such as 2>&1 no longer look like writes. Permission review follows the conversation and your selected skill, so finishing one task and starting the next in the same conversation works, and the input sent to Instinct is sized from its context window instead of 16 KiB. One binary now does everything: the editor server is nav lsp, and the deprecated navai command is gone. You can also answer Nav’s questions with a choice in the terminal, VS Code or the browser.

Added

  • Answer Nav’s questions with a choice in the terminal, VS Code or browser. Question cards offer single or multiple choices, optional other answers and recommendation hints. Answers remain Captain messages; replay shows the chosen options without changing permission authority, and plain-text asks keep working as before.

Removed

  • withnav-lsp is gone: the editor server is now nav lsp. The extension launches nav lsp and migrates a withnav.serverPath that pointed at withnav-lsp to nav in the same directory, with a notice to update the setting. Delete the leftover ~/.cargo/bin/withnav-lsp after reinstalling.
  • The navai command is gone: run nav. It only printed a deprecation notice and started nav, but every build still linked it as a third 37 MB binary. Update any script or shortcut that still calls navai, and delete the leftover ~/.cargo/bin/navai after reinstalling.

Fixed

  • Read-only work no longer asks just because it is outside the workspace. Instinct decides ordinary reads, including fd redirections and read-filter pipes; credential reads and real writes keep their safeguards. A Captain-approved file edit covers subsequent edits of that same file until your next message.
  • Starting another task in the same conversation keeps working. Permission review sees the conversation and your selected skill, not the first greeting as a permanent task. Its input budget follows the Instinct model’s window instead of squeezing everything into 16 KiB.
  • Local-instruction ordering tests no longer fail on random temporary paths. Checks compare complete labelled sections and source order, rather than matching short content tokens that can also occur in a file’s path. Instruction discovery is unchanged.

[0.7.2] - 2026-10-10

WithNav 0.7.2 makes permissions smarter and long conversations sturdier. Instinct now tells a local, recoverable change from a destructive or public one, so commits, builds, tests and reads no longer wait for review; the review sees the ongoing task, recent work and the scripts a command runs, and remembers what you already approved in the conversation. You can allow WithNav config edits for a whole conversation, and a user skill’s scripts once per machine. Compaction is written by the metacognition model in rolling chunks, after Instinct prunes old tool outputs. The VS Code panel renders full Markdown, keeps text and tool calls in order, opens file references, follows your editor’s font size, and shows a clear Safe mode / Bypass active indicator.

Added

  • Allow a user skill’s script once on this machine. A deliberate permission answer persists the skill location and each approved script’s SHA-256. Reviews still run; changes, rejects and protected targets still ask. Grants can be listed and revoked through /v1/skill-grants; Settings controls are follow-up.
  • Permission reviewers can read the local script a shell call runs. The host attaches bounded, untrusted script text without following links or reading protected configuration or credentials. Complete evidence is SHA-256 checked before dispatch; changes ask you again.
  • Allow WithNav config updates for the rest of a conversation. Protected-config requests offer a session-only answer in the terminal, editor and browser. Reviews still run; credentials, review settings and changed scratch roots still require your answer.
  • Metacognition writes compacted conversation memory in rolling chunks. Summaries use the assigned model’s window and fall back to the session model on provider errors; configuration can opt out or tune chunk size. Compaction events report the writer and successful passes.

Changed

  • Ordinary recoverable work takes the fast Instinct permission path. Edits, commits, builds and publication of your task branch are graded separately from destructive or shared changes. Bounded git facts, recorded routing thresholds and a 56-call corpus make decisions auditable; protected configuration and credentials still ask you.

Fixed

  • Permission review follows the ongoing task rather than just the latest small talk. Review sees bounded human intent and recent work with provenance, retries one eligible timeout, and reuses typed Captain approvals for the same safe command and scope without overriding rejects.
  • Instinct recognizes ordinary repository work without unnecessary review. Described choices and confidence checks on only the deciding answers restore the fast permission path; destructive, shared, sensitive and host-unsafe calls retain their existing review floors.
  • Long conversations compact with relevance pruning and learned message limits. Instinct scores only old, unpinned tool outputs before metacognition writes its rolling summary; unavailable scoring leaves the existing path intact. Provider size limits survive new sessions, and failed /compact commands no longer duplicate their error in VS Code.
  • VS Code answers show text and tool calls in the order they happened. Each model step keeps its own Markdown and reasoning; consecutive tools share a foldable progress group. Permission, pause and question cards stay visible, and replayed tool groups start closed.
  • VS Code command results stay concise. Selection changes no longer dump JSON; unknown command data stays available in a closed Details disclosure.
  • File references in VS Code answers open at the referenced line. Bare and inline-code paths become keyboard-accessible links; relative paths try every workspace root, and missing or outside-workspace files explain why they cannot open.
  • VS Code answers render GitHub-flavoured Markdown safely. Tables, quotes, nested and task lists, strikethrough and hard breaks render without interpreting raw HTML. Streaming redraws are coalesced per animation frame.
  • Permission mode is visible without cluttering your conversation. Safe mode and Bypass active replace the ambiguous toggle labels; mode changes update the header without adding transcript lines in the editor, browser or terminal.
  • Cognition and Settings text scales with your editor. Secondary text scales too, and conversation, tool and card content uses the readable theme foreground. Sidebar conversations retain the sidebar surface; child editor tabs use the editor surface.

[0.7.1] - 2026-10-09

WithNav 0.7.1 lets you delete a saved session, with its subagent sessions, from the terminal, VS Code and the WebUI. The WebUI now fits tablets and phones, and the VS Code panel shows in colour what waits on you, how subagents are doing and how big a change is. The decision layer is named Instinct everywhere, and about forty fixes land across tools, the terminal client, the language server, context budgeting and providers.

Added

  • Delete saved sessions from the terminal session picker. Press ctrl+d, then confirm permanent deletion with the attached subagent count. The list refreshes near the same row, and tabs for the deleted session and its subagents close.
  • Delete VS Code conversations from the command palette. Choose a workspace conversation, then confirm permanent deletion including its subagent count. The chat button uses the same confirmation; deleted conversations reset to an empty chat and their subagent views close.
  • The WebUI can delete a session, with its subagent sessions. Each session in the sidebar has a delete button (shown on hover or focus; the Delete key works on the row), and the command palette has “Delete session…” for the open one. The confirmation lists the subagents that go with it and says it cannot be undone; deleting the open session moves to the next one.

Changed

  • Permission review and supervision now use the Instinct layer name. New events write instinct source, model, latency and guard metadata; clients display these events as auto · instinct.
  • The VS Code panel colours what waits on you, how subagents are doing, and how big a change is. Pause cards and pending permissions get the warning colour; a subagent’s state reads blue while running, amber when it needs you, green when done, red when failed; a wake shows +N −M and its diff lines in your theme’s git colours. All from VS Code theme colours, AA contrast in Dark+, Light+ and High Contrast.

Fixed

  • VS Code’s layer protocol now includes variant discovery diagnostics. The optional server field is represented in the extension’s types instead of being omitted from its contract.
  • Unexpected VS Code chat message errors are reported instead of escaping the dispatcher. The host boundary now catches synchronous failures as well as the existing asynchronous errors.
  • The example default agent has an explicit context window. Startup preflight no longer needs online catalogue discovery to determine its capacity.
  • Brace glob alternatives can explicitly search normally skipped folders. Patterns such as {src,target}/**/*.rs now enter target, while broad wildcard alternatives still leave hidden and generated folders skipped by default.
  • Model variants cannot use the reserved name inherit. Catalogue validation rejects a name that the CLI and commands interpret as selecting the model’s default variant.
  • Oversized model catalogue cache files are ignored without reading them whole. Disk reads are bounded to 2 MiB plus one byte, preventing corrupted caches from allocating unbounded memory.
  • Provider error bodies are bounded and cancellable. Chat and non-streaming failures read at most 64 KiB, and Stop interrupts a slow error response rather than waiting for its end.
  • Importing OpenCode models no longer requires an OmniRoute provider. Direct compatible providers can be imported; OmniRoute’s catalogue format is attached only when present.
  • Invalid grep expressions return the same error on every host. The ripgrep engine validates expressions before starting its process, returning invalid_regex just like the built-in fallback rather than a generic command failure.
  • Fetch explains how redirect query parameters are handled. A redirect to a new path without a query drops the original query under standard URL resolution; parameters, including credentials, are never implicitly forwarded.
  • Closing a file now frees what inline completion kept for it. The completion service remembered every file it had ever completed in until the server stopped, so long editor sessions grew without bound. Closing a file now drops its entry and cancels any completion still in flight for it.
  • Every folder of a multi-root VS Code workspace now counts as part of the workspace. The language server only knew the first folder, so the navigator’s read and search tools refused files in the others. It now knows all of them, follows folders added or removed while it runs, and keeps the first folder as the anchor for relative paths, the intent record and flows.
  • The TUI header fits narrow terminals. In a split pane the agent, model and gauge ran past the right edge and were cut off. The row now gives way in order (path, model, variant, branch, gauge, pending switch, then withnav shrinks to ◆, then the model_id); the agent stays visible.
  • Pickers stay inside small terminals and stay usable. On a very short or narrow pane the model, command or theme picker drew past the screen edge with overlapping rows. The popup now fits the screen; as it shrinks it keeps the highlighted row first, then the filter, then esc.
  • Sending a message from VS Code no longer breaks on a conversation id with special characters. The extension built the message URL from the raw id while every other call encoded it, so such an id produced a malformed request and a 404.
  • edit now refuses an empty old_string instead of scrambling the file. An empty search text matches between every character, so replace_all interleaved the new text through the whole file and a single replace failed with a confusing “ambiguous match”. The call is now rejected up front.
  • One unreadable conversation no longer empties the session list. A session whose stored metadata cannot be decoded made GET /v1/sessions fail with a 500, so the picker showed none of the workspace’s healthy conversations. The list now skips it and logs a warning.
  • Inline completion works on files with Windows line endings and at the end of a file. The cursor position was converted to a byte offset assuming one byte per line break, so in a CRLF file the code sent to the completion model drifted one byte per line; and a cursor on the empty line after a final newline got no completion at all.
  • Remarks survive explanatory JSON before the final answer. The navigator skips unrelated objects in prose and code fences and uses the last answer-shaped object, while still rejecting malformed lines and empty remark text.
  • Verbose shell commands drain excess output in larger chunks. Once the output buffer fills, larger discard reads reduce reader overhead without artificial delays or closing the pipe. Retained bytes never exceed the buffer cap.
  • Shell cancellation only signals positive process group ids. Child ids are checked before conversion, and termination rejects nonpositive ids so an invalid id cannot signal WithNav’s own process group.
  • The terminal client no longer fails to load skills or toggle bypass for a session whose id needs escaping. Those two requests put the id in the URL path as-is while every other one escaped it, so an id with a space or a slash gave a 404.
  • VS Code keeps watchdog-paused subagents continuable without a root pause token. Removed an unreachable tooltip that incorrectly implied child continuation required a token; the server accepts tokenless child continuation.
  • The intent tool can clear an obsolete section with an empty string. An explicit empty update now removes the previous text; omitted sections still retain their contents.
  • Interrupted terminal turns no longer retain unfinished tool arguments. Turn and session boundaries discard streamed fragments so a later turn starts with an empty buffer.
  • “Allow folder” grants from two conversations no longer cancel each other out. Two sessions of one workspace saving a grant at the same moment could each overwrite the other’s entry in grants.json, so a folder you had allowed asked again after a restart. Saves are now serialised with a lock file next to it.
  • Metacognition preserves home-relative and platform-absolute tool paths. Only ordinary relative paths are anchored to the workspace; home expansion and workspace confinement remain the responsibility of the shared path validator.
  • The WebUI now fits tablets and phones. Below 1100 px the Intent / Crew / Extensions panel opens from a Details button in the top bar; below 700 px the page is one column and the workspace list opens from the ☰ button. Settings and the Studio work the same way. Esc closes a side panel and puts focus back on its button. The desktop layout does not change.
  • Subagents no longer pause merely because instinct is unconfigured. A watchdog without a judge skips advisory checks; configured judges still escalate repeated failures, and the step cap remains enforced.
  • Deleting lines now moves the edit point the navigator reports. A pure deletion left the “last edited line” on the previous edit, so remarks and context excerpts looked at stale code. The deletion point is now used, and the edit history records it.
  • Creating files avoids resolving the same permission root twice. Path validation reuses its canonical ancestor when that ancestor is an allowed root. Other roots are still resolved freshly so changed symlinks cannot retain stale permissions.
  • Relative file destinations can name folders that do not exist yet. Path validation anchors relative destinations to the first allowed root before resolving existing ancestors, while still refusing paths that escape the allowed roots.
  • Metacognition call logs retain provider-reported token usage. Successful chat rounds now record input and output counts; tools and responses without usage keep these fields unknown.
  • Code-heavy conversation summaries no longer exceed their cap during escaping. Angle brackets become same-size square brackets, keeping generic types and HTML summaries bounded without allowing summary text to close its data wrapper.
  • A model with an 8k context window can be assigned again. The safety margin was never below 4096 tokens, so an 8k model with a 4k output limit was refused and one with the default reserve kept only a quarter of its window for input. Windows under 32k now use an eighth of their size as the floor (1024 tokens at 8k); windows of 32k and above are unchanged.
  • You can switch off a failing model even when the conversation is too big for the new one. /model summarises the conversation with the current model before moving to a smaller window, so a revoked key or a provider outage left you stuck on the broken model. When the current model cannot answer, the model you are switching to now writes the summary. It cannot rescue a conversation whose text that cannot be cut down (messages, ask answers, loaded skills; only other tool outputs can be) is larger than the new model’s window: the switch is then refused.
  • An OpenCode agent file named like a former WithNav agent no longer replaces a crew member. ~/.config/opencode/agents/explorer.md (or librarian, oracle, explore, review) configures OpenCode’s own agent; WithNav read it as the former id of Mousse, Vigie or Lux, which lost its built-in prompt. Those files are now skipped. The former ids still work in ~/.config/withnav/agents/ and .withnav/agents/.

[0.7.0] - 2026-10-08

Navai is now WithNav. Nav is your single point of contact, with a crew behind it: Vigie scouts and cites its sources, Lux weighs hard decisions, Mousse handles small local edits, and the Cartographe and the Sondeur come on demand. You are the Captain. The CLI is nav, the language server withnav-lsp, the extension pixmants.withnav, and Tide Dark is the default theme. Your config and data move to withnav on first start; every old name, directory, variable and agent id keeps working with a warning until 0.8. This release also brings InstinctFlow: draw the flows the instinct runs, in the new Studio, and the legacy decision pipeline is gone.

Rebrand to WithNav

Write new names throughout 0.7; legacy readers warn or give a migration hint. Removal of the deprecated names is planned for 0.8 (ADR 0014).

  • Product and crate: Navai → WithNav (withnav.dev), crate rust-agent → withnav. No old crate alias. The GitHub repository moves to github.com/PixmaNts/withnav (the old URL redirects); the internal src/navigator/ module stays.
  • Binaries: navai → nav (deprecated navai alias prints a notice and runs nav); navai-lsp → withnav-lsp (update the configured server path; no old LSP executable alias).
  • Project directory: .navai/ / .navigator/ → .withnav/, including intent.md, agents/, flows/ and legacy pipeline.toml / prompts/. When .withnav/ is absent, read .navai/ then .navigator/. New Mermaid charts go in .withnav/charts/.
  • Config/data directories: ~/.config/navai/ → ~/.config/withnav/ and ~/.local/share/navai/ → ~/.local/share/withnav/. Move legacy files on first start without overwriting new ones; existing older rust-agent / navigator migrations remain.
  • Scratch paths: $XDG_RUNTIME_DIR/navai, ~/.cache/navai/scratch and <temp_dir>/navai → the corresponding withnav paths, retaining old-path compatibility in 0.7.
  • Data filenames: navai.db → withnav.db, navai.jsonl → withnav.jsonl; move on first start when only the old file exists, keeping database sidecars together.
  • Environment: NAVAI_* → WITHNAV_*, with the old variable read and warned about when its new counterpart is unset. This includes NAVAI_CONFIG_DIR, NAVAI_SERVER, NAVAI_SERVER_TOKEN, NAVAI_TOKEN, NAVAI_WORKSPACES, NAVAI_MAX_STEPS, NAVAI_BASH_GRACE_MS and NAVAI_HTML_CONVERTER, each becoming the same suffix under WITHNAV_. Provider-specific API-key variables are unchanged.
  • VS Code: vscode-navigator/ → vscode-withnav/, extension id pixmants.navai → pixmants.withnav, view container navigator → withnav; install the new extension (no duplicate folder or extension-id alias). Settings navai.* → withnav.*, falling back when the new setting is unset. Commands navigator.* / navai.* → withnav.*; use new command ids. The previously removed navai.modelAlias stays removed.
  • LSP: navigator/serverInfo, navigator/remark, navigator/clear, navigator/status, navigator/feedback, navigator/diagnostics, navigator/intent, navigator/reflexShown and navigator/inlineCompletion → the same suffix under withnav/. The server accepts both prefixes for requests/notifications and sends only withnav/*; clients use the new prefix.
  • Human and wire values: driver → the Captain; driver → captain in event authors, approved_by, permission-gate source, origin, selected_by and conversation digest authors. Readers accept both; new records write captain.
  • Flow action: ask_driver → ask_captain; old TOML actions still parse.
  • Agent ids: build and plan remain Nav; explore / librarian → vigie, review / oracle → lux, explorer → mousse. Old ids resolve as deprecated aliases with warnings. New cartographe and sondeur are on demand, with no old aliases.
  • Crew and labels: Nav · The Navigator, Vigie · The Lookout, Lux · The Expert Advisor, Mousse · The Lightweight Deckhand, Cartographe · The Cartographer and Sondeur · The Deep Diver. Metacognition remarks are Beacons signed by Nav. Layer technical names stay unchanged: Reflex · Completion, Instinct · Triage, Metacognition · Beacon, Cognition · Nav and the crew. Feature labels are Logbook · Activity history, Voyage · Session, Safe Harbor · Checkpoint.
  • Default theme: Tide Dark when no theme choice is saved; saved choices remain intact.

Added

  • InstinctFlow. Draw flows the instinct runs on WithNav’s events: a trigger, decisions (noul, choice, score), expressions and actions, wired as a graph. Flows live in .withnav/flows/ (after you trust the workspace) or ~/.config/withnav/flows/; Save writes the file and Reload makes it run. A blocking tool.pre_call flow can deny a tool call or ask you, never allow one past the normal permission review, and bypass never answers it. message.received and turn.end flows can inject a note or wake the cognition, marked as coming from a flow. See the Captain’s guide.
  • The Studio (#/studio in the browser): canvas and TOML views of the same file, an inspector per node, Run sample against the instinct, Replay of recorded runs without a model call, and 24-hour health per flow.
  • instinct-flow, a standalone engine crate and command (validate, run, replay) that runs without WithNav, and nav flows catalogue, which prints WithNav’s triggers, inputs and actions.

Removed

  • The legacy navigator decision pipeline and fallback evaluator. Built-in editor flows now own triggers exclusively; custom pipeline.toml files are converted once with originals retained. Offline replay uses flows only (--flows remains accepted; --pipeline and --reask are removed).

[0.6.1] - 2026-10-07

Navai gets a bypass mode: one session can skip ordinary permission prompts, from the terminal, VS Code, the browser or navai run --yes, while Navai’s own configuration, credentials and keys still ask you. The browser sidebar can now collapse every workspace and hide one, the transcript uses one column, VS Code’s panel uses theme colours, and two permission gaps are closed. No configuration change is needed to upgrade from 0.6.0.

Added

  • Bypass ordinary permission prompts for one session. Turn it on with /bypass on, navai run --yes, or POST /v1/sessions/{id}/bypass: write, edit, bash and fetch calls that would have asked run once instead, after the usual reviews, and the result says approved_by: bypass. A request already waiting is answered too. Requests for Navai’s own configuration, credentials and keys still ask you, and navai run --yes stops with exit code 3 on one. It is off for every new or resumed session, never saved, and a session’s subagents follow it. It is not a sandbox: bash keeps its access to your machine.
  • Bypass in the terminal. Alt+P (or /bypass on / /bypass off) turns bypass on or off for the open session. While it is on, ⚠ bypass stays in the header and next to the tab, and each change appears in the conversation. Protected requests still ask.
  • Bypass in VS Code. “Navai: Toggle Bypass Permissions” (or the button in the Cognition panel header) turns bypass on for the open session, after a confirmation the first time. While it is on, a warning badge stays in the header, and each change appears in the conversation.
  • Bypass in the browser. The “Bypass” button next to build/plan (or the command palette) turns bypass on or off for the open session. While it is on, a warning badge stays on the session in the sidebar and in the breadcrumb, and each change appears in the conversation. Protected requests still ask.
  • Remove a workspace from the browser list. The … menu of a workspace (or the command palette, for the open one) offers Remove from list, which keeps its sessions, and Delete workspace sessions…, which deletes every session of that folder with its subagents after you confirm the count. A removed folder stays out of the list after a restart and comes back when you open it again with “Open a folder” or start a session there. Folders passed to navai web on the command line stay in the list while that server runs.

Changed

  • VS Code’s Cognition panel uses theme colours to distinguish build and plan, tools, Navigator wakes, subagents and permission outcomes; Settings highlights saved changes in the same style.

Fixed

  • Responses no longer stop midway when a model gateway sends null instead of an empty list of tool calls or response choices.
  • Browser transcripts use one column. Driver messages and cognition replies share the full width, with bylines and a quiet Driver accent instead of right-aligned chat bubbles.
  • Every workspace can collapse in the browser sidebar. Carets expand without switching workspaces, names navigate without reopening collapsed rows, and the browser remembers which folders are expanded. Collapse all and Expand all are also available in the command palette.
  • Network commands always get a review. A bash call that runs curl, wget, ssh, scp, sftp, rsync, nc, ncat or socat is now treated as reaching outside the project, so it always goes to permission review instead of possibly running unreviewed.
  • A symlinked folder no longer slips past the Markdown exception. Writing a .md file through a folder that is a link (for example notes/ pointing elsewhere) now asks like any other write outside its real place; before, only a link on the file itself was caught.

[0.6.0] - 2026-10-07

Navai gets a browser interface and a Settings screen in every client. navai web opens the chat in your browser; Settings lets you choose the model of each layer and agent, permissions, subagent limits and the theme from the browser, the terminal (/config) or VS Code, all writing the same config.json. No configuration change is needed to upgrade from 0.5.1.

Added

  • Settings in VS Code. “Navai: Open Settings” (or the gear in the Cognition view) opens a Navai Settings tab laid out like VS Code’s own settings editor: the same sections, saved at once to config.json, with a filter for modified settings and a link to the extension’s own navai.* settings. It still opens when the model or agent list cannot load, offers Open Folder when no folder is open, and Retry when the language server is not running.
  • Settings in the terminal. /config (or the palette) opens Settings in the TUI: gateways (read-only, t tests the connection), the model of each layer and agent and its variant, the default agent, automatic review and scratch directories, subagent limits and watchdogs, and the theme. Changes wait until ctrl+s, which writes them to config.json one by one; if the file changed elsewhere it reloads and keeps your unsent changes. Leaving with unsaved changes asks write, discard or stay.
  • Settings in the browser. In navai web, the gear in the top bar (or “Open settings” in the command palette) opens Settings: gateways (read-only, with a connection test), the model of each layer and agent and its variant, the default agent, automatic review and scratch directories, subagent limits and watchdogs, and the theme. Each change is checked against the catalogue and written to config.json at once; a change made elsewhere in the meantime is reloaded instead of overwritten. Layer models apply after restarting Navai, the rest to new sessions and subagents. API keys are never shown, only where they come from.
  • Favorite models. In both model pickers, Ctrl+F (or the star in VS Code) marks a model as a favorite; favorites are listed first in an always-open section. The terminal and VS Code keep separate lists.
  • A chat in your browser. navai web starts Navai on a private local address, prints a link and opens it. The page lets you chat in any of the workspaces you pass with --workspace (repeatable; the current directory by default) and in the others you have worked in before; each one shows its git branch and whether it has changes, and a workspace’s intent record (.navigator/intent.md) can be read. Use --port to choose the port and --no-open to print the link without opening it. The link carries a secret that is new on every run and only works on this computer; press Ctrl-C to stop.

Fixed

  • Two Navai windows no longer undo each other’s settings. The terminal’s theme and favorites saves and every Settings change now take a lock on config.json, so a save from one window cannot silently put back a value another window has just written.

[0.5.1] - 2026-10-06

Fixed

  • Model pickers show the hierarchy. In the terminal /model picker and the VS Code chat picker, gateways, providers and models are now indented by level. Search, collapse, keyboard navigation and API filtering are unchanged.
  • Fold or unfold every group at once. In both model pickers, Alt+A folds every gateway and provider, and pressing it again unfolds them.

[0.5.0] - 2026-10-05

Models now have explicit gateway-qualified names, while layers and agents keep their own choices. This is a breaking configuration and API change: migrate existing configuration by hand before starting this version. It does not convert your configuration automatically or create agent definitions.

Changed

  • A catalogue, not aliases. models.json describes gateways, models, APIs, capabilities, limits and variants. Use names such as omniroute/combo/gpt-6-astra: omniroute is the gateway and combo/gpt-6-astra is the exact upstream id. Bare ids and the old default, fast and cognition aliases are no longer supported. API selections and context/usage metadata use model, gateway and upstream_id, not alias.
  • Assignments live in config.json. layers selects one reflex (fim), instinct (systemone) and metacognition (chat) model; cognition runs agents rather than one singleton model. agents assigns their models and variants, taking precedence over Markdown model: headers. default_agent is build when absent. An invalid default agent or unusable default chat model stops server/LSP startup with a clear error; an invalid nondefault assignment warns and falls back. Missing or incompatible lower layers are disabled with reasons and retain the existing fallbacks.
  • Editor context is not an agent role. Editor sessions add the pair-programmer prompt, intent tool and navigator conversation feed to the chosen agent. They start on the same default agent as terminal sessions; children do not inherit the editor attachment.
  • Model choices stay with each agent in each conversation. /model <gateway/id> changes the current agent’s model in place; /agent <id> restores that agent’s saved choice. Model and variant overrides survive reopening and never edit global assignments. /new [agent] starts fresh without the old session’s overrides. Unassigned children inherit their parent’s effective model and variant; children with their own model assignment use it instead.
  • Variants have three choices: a name, off (explicitly no variant), or inherit (remove the local variant choice). Changing model takes the destination model’s default variant. Metacognition prefers low when offered. The importer gives OmniRoute combo models low, medium and high request-body variants, not model-name suffixes, and preserves manually declared variants.
  • Model pickers in the terminal and VS Code group by gateway, then upstream provider. Groups collapse, but search includes models inside collapsed groups. New conversations choose an agent first, with an optional model override. The terminal’s right panel and VS Code’s header tooltip show lower-layer assignments and the current agent’s choice, including override markers. The old navai.modelAlias setting is removed.

Added

  • Readable archives for history whose model identity cannot be proved. These conversations remain available to read, with a reason why resume is disabled; they are never silently attached to a different model. Existing session ids are preserved. This is history handling, not automatic configuration migration.
  • Assignment metadata for clients: GET /v1/agents reports configured/effective choices and, with a session id, local overrides; GET /v1/layers reports the three lower layers and disabled reasons. Alongside GET /v1/models, these expose canonical identities and choice sources, not endpoint URLs, headers or credentials.
  • Example oracle and librarian agents, with matching catalogue entries and assignments. Install their Markdown definitions separately; an assignment alone does not create an agent.

Fixed

  • Agent changes apply the destination policy consistently: its prompt, tools, skill availability and context budget are measured together. Deferred selections cannot land on a different agent, and a refused change leaves the current choice intact.
  • Compaction needed for a selection change is saved atomically with that change, including the agent, model, variant, per-agent overrides and ordered events. A failed save or cancellation before commit leaves the previous selection and checkpoint intact; resume restores the committed state.

[0.4.7] - 2026-10-04

Fixes from trying 0.4.6 in VS Code: subagents work there, reading a file outside the project is reviewed instead of refused, lists are searchable and compaction shows its progress.

Fixed

  • VS Code conversations can start subagents. The agent of a VS Code conversation now has the task tool (and steer_subagent, decide_subagent), like the terminal client. Subagents’ results reach the conversation as before; they never become the navigator’s conversation.
  • Reading secrets is never approved on Instinct’s word. A read-only call that is risky, such as reading a key or a credentials file, now goes to metacognition and then to you. Reading ~/.ssh, ~/.gnupg, .env files, *.pem / *.key, cloud credentials or Navai’s auth.json with the read tool always asks you. grep and glob skip these files (without opening them) and say how many they skipped. For bash, this detection is best effort.
  • VS Code lists are searchable. The model, skill, variant, command and conversation lists open with a search field that matches names, model ids and descriptions, shows the number of matches (“12 of 300”) and is chosen with the arrow keys and Enter. The / list filters from the composer as you type. Choosing a model never touches your draft.
  • VS Code compaction no longer looks frozen. /compact shows “Compacting the conversation…” until it ends or fails. You can keep writing and sending: your messages wait for the end of the compaction.

Changed

  • read outside the project is reviewed like bash instead of being refused: if Instinct, metacognition or you approve it, it reads that one file once. grep and glob outside the project are still refused, with a message pointing to read or bash.
  • A bash command that writes into Navai’s config directory (~/.config/navai) always asks you, even with options hidden in quotes, escapes or braces; only plain reads such as cat, ls or wc there can be approved automatically.
  • “Allow folder” is only offered for fetch; read, write, edit and bash requests offer allow once or deny.
  • Directory grep uses ripgrep as before (fast, respects .gitignore); without ripgrep, its fallback is limited in size and time and can be cancelled. More than 1000 matches is reported as a partial result.

[0.4.6] - 2026-10-04

The VS Code chat gets the terminal client’s controls: slash commands, subagents and the context gauge. The server is unchanged.

Added

  • VS Code chat: slash commands. Type / to open a list of commands with their descriptions (arrow keys, Enter or Tab, Esc, or the mouse). /model switches the open conversation’s model, and the model picker now works on an open conversation too; while the agent is answering, the switch waits for the end of the turn and shows as pending. Also /variant, /agent (the current agent is shown near the composer), /compact, /context, /stop, /new and /help. /skills lists the conversation’s skills; /skill <name> <request> sends your request with that skill. A command is never sent to the model as text, nor with the editor context; //text sends /text as a message. A refused command or skill keeps your draft.
  • VS Code chat: subagents. A Subagents section under the conversation lists each subagent with its goal and state. Open shows a subagent’s conversation in its own read-only editor tab, without leaving or changing your conversation. Stop and Continue (out of steps, or paused by the watchdog) ask for confirmation first. A subagent’s permission requests are still answered in the parent conversation.

Changed

  • VS Code chat: the context meter shows what the next request will send, like the terminal client (~42k / 1M · 4%), instead of the last call’s usage. Hover or focus it for the breakdown (system, rules, skills catalog, tools, messages), the input budget, the output reserve and the provider’s count for the last request.

Fixed

  • VS Code chat: commands, model switches and subagent controls always act on the conversation they were started from, including after switching conversations, a failed open, starting a new one or a server restart; a sent message always clears your draft, and a control is sent only once.

[0.4.5] - 2026-10-04

The VS Code chat can now answer the agent’s permission requests and continue a paused agent.

Fixed

  • VS Code chat: permission requests can be answered. Before, the chat ignored them: a conversation that needed your approval stayed blocked, and typing a message cancelled the request. A card now shows the agent, the tool, the full reason and the call (the whole command; a write or edit with its path, options such as replace_all, and its content up to 4096 bytes), with Allow once and Deny (and an optional message). Subagents’ requests appear in their parent conversation. Answered, denied and expired requests stay visible when you reopen the conversation. Sending a message while a request is open asks you first, since it cancels it.
  • VS Code chat: subagent output is no longer shown as yours. Only your own messages are shown as you; a subagent’s result is labelled as untrusted data. A skill you selected shows beside your message.
  • VS Code chat: paused agents can be continued. “Out of steps” offers Continue; a watchdog pause shows its reason with Continue and Stop. Refusals show the server’s reason, and pauses from a run that has ended stay as history, without buttons.
  • VS Code chat: buttons always act on their own conversation, including after switching conversations, a failed open, a server restart or reopening the panel; an answer is never sent twice.

Added

  • VS Code chat: tool rows show who approved a reviewed call (Instinct or metacognition), with the reason and Instinct’s verdicts in an expandable note, like the terminal client.

[0.4.4] - 2026-10-04

The per-call review now treats your own request as what you want, and the terminal client shows who approved each call.

Changed

  • Your request counts in the permission review: Instinct and metacognition receive your latest request as your intent, so a write you explicitly asked for (for example a file in your home folder) can be approved instead of refused as “untrusted”. Its text is never an instruction to the reviewers, and claims made by the agent, a subagent or a tool still prove nothing. Navai’s config directory still always asks you.
  • Incomplete requests never authorize: your request is sent to the reviewers in full when it fits; when it does not, every reviewed bash, write and edit call asks you.
  • git commands stay reviewed as changes: even git status or git diff can run programs configured in the repository.

Added

  • Terminal client: a tool block says who approved a reviewed call (auto · Instinct, auto · metacognition, driver approved); expanded, it shows the reason, Instinct’s verdicts and the plan role check. Copies include it.
  • Review evidence: the permission review records Instinct’s verdicts, the deterministic checks that tightened the call, the reviewer models and their response times on the tool and permission events, also when you approved the call yourself.

Fixed

  • Four tests that failed now and then on a loaded machine; when git status for the Changes panel passes its deadline, Navai now ends and reaps the process itself.

[0.4.3] - 2026-10-04

Fixes from trying 0.4.2’s per-call permission review, including a security fix: metacognition could approve writes into Navai’s own configuration.

Fixed

  • Security: writes and edits into Navai’s config directory (~/.config/navai: auth.json, models.json, config.json, agent definitions) always ask you; metacognition can no longer approve them. This also holds through symlinks and when the directory does not exist yet. A bash command that names the config directory also asks you (best effort: bash is not confined).
  • Metacognition review no longer fails when the model reasons at length before answering: its answer budget is 4096 tokens. When it does fail, the permission request says why (timed out, unavailable, input too large, malformed answer and how, or output exhausted by reasoning), and a short excerpt of a malformed answer goes to the decision log. A reviewer answer with a duplicated field is rejected.
  • write and edit outside the project are reviewed like bash instead of being refused: if approved (by metacognition or by you), the call runs once, for that exact file, without opening the folder to later calls.
  • Tool errors always carry a message.
  • Terminal client: permission requests can be selected and copied like other messages, in full (whole reason and command, no borders or truncation; a write’s content up to 4096 bytes). While a request is open, y still allows it: drag with the mouse to copy it; y copies an answered one.

Added

  • Scratch folders: the agent can write temporary files without asking in two folders available in every project: a private one, $XDG_RUNTIME_DIR/navai (or ~/.cache/navai/scratch), used first, and the shared /tmp/navai. Each must be a real directory owned by you with mode 0700; a folder that is replaced, made public or reached through a symlink loses this exemption. permissions.scratch_dirs in config.json sets the list of absolute paths; [] turns them off.

[0.4.2] - 2026-10-04

Every file change and shell command is now reviewed one by one, conversations no longer stop after 50 steps, skills can be picked from a list, and the conversation can be selected and copied.

Added

  • /skills: opens a searchable list of the conversation’s skills. Choosing one fills /skill <name>; add your request and send: the skill’s instructions are loaded into your message before the agent’s first model request, and the selection shows next to your message, also on replay. If the agent cannot use skills, the whole message is refused.
  • Select and copy the conversation: drag with the mouse to select conversation text, or double-click a word; releasing copies it. Wrapping, the sidebar, borders and tool labels stay out of the clipboard. A selection across several messages names each sender (You:, the agent’s name, Navigator:…), once per run of consecutive messages; a selection inside one message copies only its text. With the conversation focused, y copies the selection, or the whole selected message or tool output; ctrl+shift+c works where the terminal sends it, and ctrl+c still stops. The wheel scrolls the conversation, and the lists of /model, /sessions and other pickers. Copying uses OSC 52, so it works over SSH when the terminal supports it; under tmux set set -g set-clipboard on. shift+drag keeps the terminal’s own selection.

Changed

  • Per-call permission review: every bash, write and edit call is reviewed before it runs, instead of an “allow folder” answer letting every later call through. Instinct classifies the call: a read-only call, or a low-risk change inside the project, runs; a risky or outside-project change needs metacognition’s approval; anything else asks you, with the reason. “Allow folder” is gone for these tools and the bash/file grants saved by 0.4.1 are ignored; fetch keeps its origin grants. permissions.automatic_review: false in config.json asks for every such call; an invalid value fails closed. The review is advisory, not a sandbox.
  • No more 50-step limit: a conversation’s turn runs until it ends, is stopped, or the watchdog stops it. Every 5 minutes (agent.watchdog_interval_secs) Instinct checks it is making progress. Stuck: the turn stops after its current tools finish, keeping the work done. In doubt: metacognition decides; if it hesitates too, the turn pauses and asks you (alt+c continues, a new message replaces the paused turn). With the watchdog off (0) or Instinct unavailable, a 500-step cap applies, renewed only by you. NAVAI_MAX_STEPS still sets an explicit cap. Subagents keep their 50-step budget.

Fixed

  • grep tool: a pattern can no longer be read as a ripgrep option (such as --pre, which runs a program), and ripgrep configuration files are ignored.

[0.4.1] - 2026-10-04

Fixes from daily use of 0.4.0, mostly in the terminal client.

Changed

  • Folder grants persist: an “allow folder” answer is saved per workspace in <data dir>/grants.json and applies to later sessions in that workspace. Subagents keep theirs in memory. Delete the workspace’s entry in that file to revoke.

Fixed

  • Terminal client: running out of agent steps shows “Out of steps · send a message to continue”, no longer a question awaiting an answer.
  • Terminal client: a multiline draft grows to 20 lines, then scrolls with the cursor, and leaves room for the conversation on a small terminal.
  • Terminal client: arrow keys and Home/End move the cursor in a draft, including between lines.
  • Terminal client: a 1M context window no longer shows as 1000k.
  • Terminal client: moving or resizing the terminal window no longer closes the client with “cannot draw the screen: The cursor position could not be read within a normal duration”. The repaint after a resize no longer asks the terminal for the cursor position.

[0.4.0] - 2026-10-04

Background subagents: a conversation’s agent can delegate work to other agents that run on their own, report back, can be steered or interrupted, and are watched by Instinct. The terminal client shows them under their conversation.

Added

  • Subagents: a conversation’s agent can start a subagent with the task tool (task(agent, prompt, delivery?), for agents whose mode is subagent or all, such as explore and review). The subagent is a separate conversation that runs in the background; the tool answers at once with its id. At most 4 run per conversation (subagents.max_concurrent in config.json). A subagent gets the workspace, rules and skills but not the parent’s history, runs on the parent’s model and variant unless its definition names one, never gets ask or task, and cannot write when it or its parent is read-only or plan.
  • Results back to the parent: a finished subagent’s result is added once to the parent conversation as a bounded message marked as untrusted subagent output, and published on the parent’s stream as message.received with source: "subagent". By default it arrives at the parent’s next turn; delivery: "steer" adds it to the running turn at its next safe point, and delivery: "interrupt" restarts the parent’s turn on it. A parent waiting for your answer is never interrupted, and your own queued messages always come first. An idle parent starts a turn as soon as a subagent finishes. Results survive a restart and the deletion of the subagent.
  • Steering a subagent: the parent’s agent can use steer_subagent(child_id, message, mode). steer adds guidance to the subagent’s running turn before its next model request, after all the tool results of its current step; interrupt cancels that turn and starts a new one with the message, keeping the same subagent.
  • Instinct watchdog: every 5 minutes (subagents.watchdog_interval_secs, 0 turns it off) Instinct checks each running subagent from its goal, how long it has been quiet, its last tool call and its step count. stuck stops it and hands its partial work to the parent; doubt pauses it and asks the parent’s agent, which answers with decide_subagent(child_id, continue|stop). Instinct failing to answer twice in a row counts as doubt.
  • You stay in control: a subagent’s permission requests appear in the parent conversation and are answered there; approvals stay with that subagent. You can read and stop a subagent but not write to it. POST /v1/sessions/{parent}/children/{child}/continue gives a subagent that ran out of steps one more budget, or releases a watchdog pause. Stopping a conversation stops its subagents; deleting it deletes them.
  • Subagents in the terminal client: subagents are listed under their conversation with their goal and state (running, waiting for permission, out of steps, in doubt, done, failed, stopped). alt+s opens a searchable list, also below 80 columns; enter opens a subagent’s conversation read-only, alt+w goes back. Stop and alt+c (continue) ask for confirmation. A finished subagent shows as one line in the parent conversation.
  • Events: subagent.spawned, subagent.done and subagent.watchdog on the parent’s stream; the event catalog has 22 kinds. Session lists show parent_session_id, child_status and promptable: false for subagents.

[0.3.0] - 2026-10-03

Navai becomes a terminal coding agent as well as a navigator: a chat client with tabs, tool permissions you answer from the terminal, a guarded plan agent, model switching inside a conversation, and automatic compaction. Background subagents are planned for 0.4.0.

Added

  • Terminal chat client: navai tui starts a private server, or --url connects to a running server (set NAVAI_SERVER_TOKEN when it requires a bearer token). Open up to nine conversations; each keeps its draft and scroll position and continues streaming in the background. The left sidebar lists conversations and unread activity; the right panel shows agent, context, skills and changed files on terminals at least 140 columns wide (alt+r toggles it). The sidebar is hidden below 80 columns. alt+1–alt+9 switch tabs, alt+w closes one, ctrl+n starts a conversation, ctrl+o opens the session list, alt+b hides or shows the sidebar, f2 picks a model, tab on an empty message switches build/plan, shift+tab changes focus, and ctrl+q quits.
  • Session commands: /help, /model [alias], /new [alias], /stop, /context, /variant [name|off], /compact [focus] and /agent [id]. The TUI command palette combines these with local commands. The event catalog has 19 kinds. A line beginning // sends a literal slash, so //help sends /help.
  • Model switching and variants: /model <alias> switches the current conversation; /new <alias> starts another. A switch uses the target model’s default variant and waits until the current turn ends. Model lists and f2 switch the live conversation; ctrl+n in the model picker starts a new conversation on that model. /variant lists the session’s choices; /variant <name> selects one, and /variant off clears it.
  • Automatic compaction: when the next request will not fit the input budget, Navai summarizes the older conversation and continues the same turn. If even the required history cannot fit, the turn ends with an error recommending a model with a larger context window. /compact [focus] also requests compaction manually. Compaction is not run while an answer or permission decision is pending.
  • Tool permissions: the eight registry tools are read, write, edit, bash, grep, glob, fetch and ask; sessions also provide a skill tool to load a listed skill. navai run does not approve tool permissions automatically: it prints permission_required: <tool> <scope> and exits with code 3. --yes approves each request once. Ctrl-C interrupts a run and exits with code 130.
  • Plan agent guard: plan can write Markdown files without a permission prompt. Other writes, edits, shell commands and fetches are checked against its role; if the check cannot confirm the action, Navai asks for permission. The guard is advisory, not a sandbox.
  • Model catalog: when a model alias has no configured context window, Navai can discover one from the provider’s model list and cache it under the data directory. GET /v1/models reports the resolved window and its source.
  • Workspace tools: glob searches for files without following links, with a default limit of 200 results (up to 1,000). fetch retrieves HTTP(S) text or HTML, caps the downloaded body at 5 MiB, and follows only same-origin redirects.
  • Terminal themes: Ayu Dark, Ayu Light, Nord Dark and Nord Light. /theme opens the picker; the choice is saved in ~/.config/navai/config.json.

Changed

  • State locations: configuration is stored in ~/.config/navai/; data is stored in ~/.local/share/navai/. Navai migrates supported files from the former navigator and rust-agent directories on first start without overwriting existing files.
  • Project identity: the crate and binaries are named navai and navai-lsp; the VS Code extension is Navai (pixmants.navai). Environment variables use the NAVAI_* prefix.

Fixed

  • A permission answer is tied to the checked destination. If a tool call resolves to a different destination when it runs, Navai asks again rather than using the earlier approval.
  • A stopped or interrupted permission request is settled without running its held tool call.
  • The terminal client keeps each open conversation’s model, variant and context display in its own tab, and ignores late events from a conversation that has been closed.

[0.2.0] - 2026-10-01

First usable release: the navigator, a pair-programming assistant in VS Code. The driver keeps the keyboard; four layers of models watch, complete, judge and discuss.

Added

  • Language server and VS Code extension (rust-agent-lsp, vscode-navigator/): one process, LSP over stdio for the editor, a local HTTP/SSE server with a bearer token for the chat.
  • Reflex: fill-in-the-middle ghost-text suggestions (Inception Mercury Edit 2), with a short context note kept current by the metacognition.
  • Instinct: a decision pipeline in TOML and Markdown prompts, asking typed questions to a System One model. Project .navigator/ overrides the user and built-in pipelines; hot reload on save.
  • Metacognition: short end-of-line remarks from a fast model, with read-only read and grep tools under a budget, aware of the conversation, the intent record and recent edits.
  • Cognition: a chat panel on a frontier model with the full coding-agent toolset; it guides by default and does the work on explicit delegation. Editor context (focused file, cursor, selection) travels with each message.
  • Wake: the instinct can bring a contradiction between the code and the conversation or the intent record to the cognition, as a navigator-sourced message that never answers a pending ask in the driver’s place.
  • Conversation triggers: a driver turn in the chat re-checks the focused file against what was just agreed.
  • Intent record (.navigator/intent.md), written by the cognition as decisions settle.
  • Verdicts on remarks (useful, noise, dismissed, followed) and a JSONL decision log.
  • Replay (rust-agent-lsp replay): run a candidate pipeline over the logged triggers and compare its decisions with the rated remarks.
  • Conversation history in SQLite: every conversation per project, resumable under the same id, pending ask included; list, reopen and delete from the panel.

Changed

  • Data lives in ~/.local/share/navigator/ (navigator.db, navigator.jsonl), migrated from ~/.local/share/rust-agent/ on first start. Configuration stays in ~/.config/rust-agent/.
  • SQLite is the only history: a reconnect or a resume replays the store, then follows live events, with no cap on conversation length.
  • Codebase restructured: session/ service, navigator/ split by layer, one shared model client, a shared test harness. See ARCHITECTURE.md.

Removed

  • The WebSocket transport and the placeholder tui command.

[0.1.0] - 2026-09-04

The coding-agent core: the agent loop with five tools and ask, OpenAI-compatible streaming providers, the event bus and the local session server.