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

wisp documentation

These pages are also the documentation site, https://wisp.pidster.com/docs/ under the homepage, an mdBook whose table of contents is SUMMARY.md (ADR 0065).

DocumentPurpose
introduction.mdThe site’s landing page: what wisp is, who it is for, the CLI and the MCP server, the safety model in five lines, and where to go next
guide/install.mdGuide: install with Homebrew, check with wisp doctor, a first wisp "…", a first approval, wisp chat and wisp-tui
guide/delegating.mdGuide: wisp as an MCP server for Claude Code and Codex: registering it, respond threads, the condensing tools, approvals that reach the person, the git thread as a worked example
guide/approvals-and-sandbox.mdGuide: what is asked and when, what each scope covers, wisp approvals, the sandbox’s writable roots and its refusals, outsideSandbox and !!, what the audit log shows
guide/local-models.mdGuide: when to add a local model, which runtime and which model as measured, using one, windows and memory
guide/configuration.mdGuide: wisp config and config.json, the settings worth knowing, editing by hand, the instruction layers, the environment
guide/troubleshooting.mdGuide: wisp doctor’s findings, restarting modelmanagerd, refused commands and the sandbox, an MCP server that does not connect, a stuck approval, the lockfile’s MLX pins
SUMMARY.mdThe site’s table of contents, which mdBook reads; every page here is listed in it (scripts/check docs-links)
changelog.mdThe site’s changelog page, which includes the repository’s CHANGELOG.md
decisions/0065-documentation-site.mdThe documentation site: an mdBook over docs/ (users first, internals after), built on Linux and deployed to GitHub Pages at wisp.pidster.com by .github/workflows/docs.yml; links that leave docs/ go to GitHub; scripts/check docs-links in the gate and docs-site beside it; amended 2026-10-15: a homepage of its own at the root with the book under /docs/, and a theme in wisp-tui’s palette, held to it by scripts/check palette
trust.mdWhat wisp can do to your Mac, what leaves it, what it remembers, how to see and undo
objective.mdWhat wisp is for and what “done” looks like
install-local-models.mdHow to install a local model (Ollama, MLX, llama.cpp, LM Studio, Core AI), choose it, and which to choose, as measured
wisp.mdCommand reference: subcommands, flags, chat’s commands and saved threads, ~/.wisp, config.json, exit codes
tools/One page per model-facing tool (the eleven built-in, memory, models, ask, and plan among them, and custom tools): contract, result format, limits
measurements.mdWhat the eval harness found each delegated task achieves, how it is recorded, and where it is published
mcp.mdwisp as an MCP server: client setup, respond and its threads, saved and resumed, the condensing tools, set_fact_scope and asking the person to keep a permanent fact, change_plan, approval through the client and through wisp approvals, the thread, context, facts, and summary resources, structured output, receipts, calls, progress, errors
design.mdArchitecture: components (the thread record and composer, facts, the session host), data flow, extension points
fm-cli.mdWhat the Apple fm command family does and does not offer, as observed
local-model-evaluation.mdLocal-model research, candidate shortlist, and agreed workload/delegation evaluation design
local-model-installation.mdA dated record (2026-09-19) of the first MLX installations and smoke checks; to install a model now, see install-local-models.md
on-device-ai-todo.mdLiving backlog for on-device AI: routing, context assembly, approval classification, local generation, audit, model controls; progress per track, what shipped since the last release, and what is planned
model-controls.mdDraft common controls for reasoning mode, effort, native speed mode, performance preferences, and reasoning output; marks the part ollama.think, mlx.think, and the thinking display build (ADR 0053)
approval.mdRisk classification (rules plus the shipped Core ML classifier by default, or the on-device model), classifier versions, approval scopes and persistence, approval under wisp mcp from wisp approvals and wisp-tui, eval results
logging.mdThe audit log (format, kinds, wisp logs) and diagnostics (WISP_LOG, unified logging)
context-management.mdThe small context window: the store and the composer, output handling, facts, the running summary, memory, the assessment, condensing to a target, design rules, and what was measured
verification.mdWhat wisp checks beside a reply: ran:, cited, and the verification pass, whose exact readers (and, behind verification.mode, a model step) check the results a reply reports against the turn’s complete call list
policy-and-sandboxing.mdSurvey of tool policy and sandboxing options and which layers are implemented
decisions/0013-model-selection.mdWhich model a session runs on (system or private-cloud), and why the default stays on device
decisions/0015-per-command-approval.mdApprove each simple command in a line, remembered by its program; amended 2026-10-11 (a loop or conditional judged and remembered by the commands inside it, and a line whose risk only the whole line shows asked once)
decisions/0014-persisted-approvals.mdApprovals have four scopes; project and always persist under ~/.wisp
decisions/0012-homebrew-release.mdRelease through a Homebrew tap, unsigned, semver from 0.1.0; amended by ADR 0047 (MLX’s Metal library beside the binary)
decisions/0011-risk-classifier-and-approval.mdClassify command risk with rules plus the on-device model, and ask above a threshold; amended by ADR 0044 (approval as a host effect) and ADR 0046 (approval under wisp mcp from wisp approvals and wisp-tui)
decisions/0010-audit-and-diagnostic-logging.mdVerbatim JSON Lines audit log plus unified-logging diagnostics
decisions/0009-command-policy-and-sandbox.mdrun_command is governed by a CommandPolicy and a Seatbelt sandbox; amended by ADR 0054 (the deny list refuses a nested wisp agent) and ADR 0064 (an approved run outside the sandbox)
decisions/0008-context-condensation.mdRecover from context overflow by condensing to recent turns
decisions/0007-conversation-threads.mdConversation threads over MCP
decisions/0006-mcp-server-over-stdio.mdwisp is an MCP server over stdio
decisions/0005-tools-as-plain-binaries.mdTools are plain binaries; the harness owns the model-facing schema
decisions/0004-enforced-standards.mdStandards are enforced by tooling, shared between hook and CI
decisions/0003-callback-streaming.mdStream via a delta callback, not an AsyncSequence wrapper
decisions/0002-macos-27-baseline.mdmacOS 27 is the platform baseline
decisions/0001-swift-and-foundationmodels.mdImplement wisp in Swift, linking FoundationModels directly
decisions/0030-notifications.mdNotifications through osascript with the text in argv, bounded, rate-limited, and audited, without approval
decisions/0031-secret-scanning-and-redaction.mdSecret scanning and redaction: rules first, masked findings and numbered markers, an opt-in model pass over rule-redacted text
decisions/0032-log-and-json-condensers.mdLog and JSON condensers are deterministic: templates ranked by severity, parsed crash reports, merged JSON outlines
decisions/0033-watch-mode.mdWatch mode reruns a command on file changes and notifies when its outcome turns, triaging new failures; amended: a file-triggered run waits for changes to settle (--settle, watch.settle)
decisions/0034-system-info.mdsystem_info answers questions about the Mac with fixed read-only probes and libproc, without the approval gate
decisions/0035-change-drafts.mdChange drafts are written from the diff summary, with the subject and body shape enforced in code
decisions/0036-custom-tools.mdCustom tools are command templates in the user’s own config, run through run_command’s gate
decisions/0037-routing-by-input-size.mdRoute a task to a model by the size of its input, from measured size bands and a configured ladder
decisions/0038-fast-specialised-classifiers.mdClassifiers are tasks served by fast, specialised models, measured for speed; wisp classifier, versions with a fixed shipped default, train/dev/test sets under training/, the rules’ read-only list; amended 2026-10-12: the frozen test set grown from real use to 29 dangerous commands
decisions/0039-exact-condensers.mdTriage reads known failure formats exactly first; dependency_audit, flaky_tests, and hot_paths without a model
decisions/0040-config-from-chat.mdChange the configuration from chat or wisp config set, checked, audited, and only by a person
decisions/0041-shipped-classifier-is-the-default.mdThe fast Core ML classifier each release ships is the default risk classifier, not the on-device model
decisions/0042-personal-data-classifier.mdA personal-data classifier flags lines beside the rules in scan_secrets; the trained file, not the training, ships
decisions/0043-context-window-from-memory.mdAn Ollama model’s context window is sized from its shape and the Mac’s memory when it is selected, unless configured; refined 2026-10-04 (a model reported per layer, such as gemma4, counted layer by layer, with its draft model) and 2026-10-05 (a hybrid model sized by its attention layers plus its recurrent state); amended by ADR 0052 (MLX’s window sized the same way, Core AI’s from its bundle)
decisions/0044-host-effects.mdA tool asks the host (the face on the person’s screen) for effects such as approval and notifications; each face declares what it carries, and notify routes to the front end or terminal before osascript; amended by ADR 0046 (approve-mcp, approval for an MCP client through another face) ADR 0048 (permanent facts over MCP), and ADR 0062 (the model’s question, a third effect, Asker)
decisions/0045-layered-context.mdThe model’s context is composed for each request from a store that keeps everything: instructions, an earlier block of facts and a summary, literal turns with tool output as references after their turn, and the request; condensing to a token target; memory to recall; the assessment built and off; with the phase 6 checkpoint’s figures; amended by ADR 0048 (a permanent fact an MCP caller asks for is admitted from wisp facts or wisp-tui too)
decisions/0046-approval-and-notifications-over-mcp.mdUnder wisp mcp, a command waiting for approval is filed in ~/.wisp/pending and announced by a notification; the person answers with wisp approvals approve|deny or in wisp-tui, never through the MCP conversation; with elicitation too, both at once and the first answer wins; respond lists the notifications its turn posted; amended by ADR 0048 (the channel also carries facts to keep) and ADR 0062 (and the model’s questions); the terminal-only answers reviewed and kept on 2026-10-12; amended 2026-10-12: the banner waits approval.bannerDelaySeconds for the client’s dialog; plain wisp chat shows and answers waiting requests
decisions/0047-mlx-in-the-release.mdThe release is built with MLX and carries its Metal library as mlx.metallib beside wisp, which MLX finds through the binary’s real path; the formula installs both in libexec; wisp doctor checks it; with the probe’s figures
decisions/0048-permanent-facts-over-mcp.mdAn MCP caller asks for a fact to be kept as permanent with set_fact_scope; the call returns at once and the person answers through the pending channel (wisp facts keep|drop, or wisp-tui under keep-facts); a drop is remembered by the thread; a caller never moves a permanent fact; respond counts the proposals waiting; amended 2026-10-12: a request has no time limit and outlives its thread and server; amended by ADR 0062 (the channel also carries the model’s questions)
decisions/0049-commands-typed-in-chat.mdA line typed in chat as !command runs it as the person: the policy, sandbox, and audit apply but not the classifier or approval; the output is shown and reaches the model as a reference; wisp-tui shows command mode in a pale amber box, entered with ! and left with Backspace at the start of the line; amended 2026-10-11 (Ctrl-C during a model’s turn stops the turn and its command, audited as turn.stopped); amended by ADR 0064 (a line typed as !!command runs outside the sandbox, wisp-tui’s red outside mode)
decisions/0050-tool-output-budget-and-overflow.mdEvery tool result bounded by one budget from the model’s window (an eighth, 4 to 64 KiB) in place of a fixed 4 KiB; the rest kept whole in the conversation’s output store, marked, and reachable through memory by page, filter, exact summary, or a condensing question; nothing past the budget dropped and no command run again to see its output; accepted 2026-10-11 with the build’s choices recorded; the person’s views (the stored whole in /show, /last, and wisp-tui’s Ctrl-O) built 2026-10-12
decisions/0051-the-turns-tool-calls-beside-the-reply.mdA muted line under each reply of what the turn actually ran, counted from its audit events (tools, counts, failed, denied, declined), in chat, wisp-tui, and respond’s ran; ran: no tools when a reply names a tool and none ran
decisions/0052-mlx-on-a-par-with-ollama.mdMLX models run through wisp’s own executor: the window sized from config.json and memory as for Ollama, exact counts with the model’s tokenizer, usage reported, and a thread’s processed prefix reused across its requests; the bridge stays as mlx.executor: bridge; wisp models pull fetches mlx-community models after asking; Core AI reports its bundle’s window; refined 2026-10-05 (hybrid windows, array tool calls, ChatML’s end of turn) and 2026-10-06 (thinking left to the chat template unless mlx.think is set, a schema reply thinks first); amended 2026-10-09 (any publisher can be pulled, one outside mlx.trustedPublishers only after the person confirms it)
decisions/0053-the-models-thinking-shown.mdA reasoning model’s thinking decoded from Ollama, counted, audited as model.reasoning, shown as a thinking activity (wisp-tui’s thought bubble) and folded under a ∴ thought line, kept as the turn’s reasoning entry and never sent back to the model; ollama.think; refined 2026-10-06 (MLX’s thinking shown the same way, mlx.think); amended 2026-10-11 (thinking chosen per model, <runtime>.models.<name>.think, and per call: wisp’s side calls send think: false, respond takes think), 2026-11-01 (thinking written into the reply kept as thinking), and 2026-11-16 (off on llama.cpp also sends a thinking budget of 0)
decisions/0054-the-sandboxs-refusals-checked.mdA command that fails with Operation not permitted checked against the writable roots by the paths its error names (refused, not the sandbox, or a guess when it names none), the model told in one line that no policy rule denied it, audited on command.outcome; the model cannot start a wisp of its own; amended by ADR 0064 (the note offers outsideSandbox) and 2026-10-14 (Homebrew’s not writable lines read as well)
decisions/0055-cited-entries-checked.mdBeside ran:, a muted line naming the entries a reply cites in wisp’s reference forms (entry 19, entries 16-30) that the conversation does not hold; cited in the JSON turn line, unknownEntries in respond
decisions/0056-models-enabled-and-disabled.mdModels turned on and off (models.disabled): a disabled model hidden from /model and Tab and refused by /model, --model, model, and MCP respond, the default never disabled; wisp models as a table of every known fact, fitted to the terminal, the same in chat, --json, and wisp-tui’s picker; enabling a cached MLX model links it, and enabling an MLX model with no declared capabilities checks them on the model and records what passes (wisp models check, model.verified); chat starts on system when its configured model is unavailable
decisions/0057-context-defaults-from-checkpoint-2.mdContext checkpoint 2’s results and the defaults they set: memory off by default and turned on by context.memory (a list that names it still gets it), context.target 0.6, assessment.taskChanges restated; the headroom (8), the guard, and the assessment off unchanged; amends ADR 0045
decisions/0058-a-shared-http-executor.mdOne executor for runtimes that serve OpenAI’s chat-completions API, with a small dialect for what differs: llamacpp:<model> (llama.cpp’s llama-server) and lmstudio:<model> (LM Studio), each with its config.json section; the API key from the environment or the file, never logged or shown; the window read from the server; capabilities reported by LM Studio, and for llama.cpp declared or checked on enable; what is shared with Ollama’s executor extracted (ReplyRelay)
decisions/0059-one-set-of-model-actions.mdAccepted 2026-10-11, built for 0.22.0: one ModelActions layer behind wisp models, /models and /model, and a models tool for the model (off by default); /models pull and trust in chat with the publisher question as a dialog; the model may list and show freely, and every pull, enable, disable, or check it asks for goes to the person, a pull never remembered and trust and switch the person’s alone; a background pull’s end is a note in the conversation
decisions/0060-a-verification-pass.mdAccepted 2026-10-12 for 0.23.0, ADR 0051’s open option: after a reply, exact readers check the results it reports (a call form with a result, a command run, an exit status, a denial, a test or build outcome, a notification, a removal, quoted output, a count) against the turn’s complete call list from the audit log with each call’s whole output, and a model step behind verification.mode asks the same question; unsupported: beside ran: and cited, verified in the JSON turn line, verification in respond, response.verification in the audit; the model step measured on 2026-10-12 and left off by default (it flagged 6 of 14 honest replies on the on-device model), so the release’s floors are on the readers; amended by ADR 0062 (a reader for claims about the person’s answer)
decisions/0061-process-names-set-at-spawn.mdProcesses named by their parent at spawn, never by rewriting their own arguments: scripts/wisp-mcp starts wisp mcp (CLIENT) from WISP_MCP_CLIENT, wisp-tui its child as wisp chat (tui); wisp finds its executable by the kernel’s path, never argv[0]
decisions/0062-the-inquiry-verb.mdAccepted and built 2026-10-12 for 0.24.0: the model asks the person a question mid-turn through an ask tool (off by default), free text or a choice, with limits and secrets refused; asked through chat, wisp-tui, MCP elicitation, and the pending channel (wisp questions), the first answer winning; only the person answers; by default no deadline, waiting safely and quietly (one notification) until the person answers or it is withdrawn; under MCP the turn parks after the dialog is held 60 s and the answer reaches the thread’s next turn as a note; audited
decisions/0063-command-time-limits.mdAccepted 2026-10-14 for 0.24.2: a model’s command may ask for its own time limit (run_command’s timeoutSeconds) and an MCP thread for one when it starts (respond’s commandTimeoutSeconds), each clamped to the operator’s commandMaxTimeoutSeconds (1,800 s by default); the default rises from 60 to 120 s; the limit each command ran under is audited
decisions/0064-an-approved-run-outside-the-sandbox.mdAccepted 2026-10-14: run_command’s outsideSandbox runs one command without the Seatbelt sandbox (for brew upgrade, cargo install, rustup update, which it refuses), after the policy’s lists and the person’s approval of that exact line, asked every time whatever its level, taken as once and remembered by nothing; refused where no person can be asked and when the operator sets commandPolicy.sandbox.allowOutsideSandbox false; every face marks it; audited; amends ADR 0009 and ADR 0054; amended 2026-10-14 (the person runs one outside the sandbox themselves with !!, wisp-tui’s red outside mode)
decisions/0066-one-thread-store.mdPhase 1 of the one-thread-store proposal, built 2026-10-18: every MCP respond thread saved under ~/.wisp/threads/<id>/ (thread.json with its owner and start settings, beside its record, record.json and record.store) after every turn, at eviction, and at its client’s end; resumed by a later server with its saved settings (resumed, resumedTurns), equal start settings accepted and different ones refused naming them; one process at a time by an flock; a client resumes only its own threads; close_thread deletes; resources span every opening; thread.swept after threads.keepDays (30) with the thread’s stored outputs, which the output sweep spares meanwhile; amended 2026-10-19 for phase 2, chat on the store: every chat saved after each turn as chat-<id>, /save NAME renaming it, --resume opening any thread (an agent’s with its settings holding) or an older transcript, /threads, and the lock between chat and agents; amended 2026-10-20 for phase 3, the store for the person: wisp threads (list, show, delete, hand, the last two the person’s only, from a terminal, refused to wisp’s model), /resume ID and the /threads picker, a threads doctor finding, and the sweep sparing outputs another thread names
decisions/0067-a-call-may-only-lengthen-its-time-limit.mdAccepted 2026-10-20, amending ADR 0063: a run_command call’s timeoutSeconds shorter than the thread’s commandTimeoutSeconds or the operator’s default gets that limit instead, recorded as timeoutAsked; the guide asks for it only to run longer
decisions/0068-the-conversation-in-a-pane.mdAccepted 2026-10-22, amending ADR 0029: wisp-tui draws the conversation in a pane of its own on the alternate screen, element by element, instead of writing it into the scrollback, the mouse left to the terminal for selecting; the pane scrolls with PageUp and PageDown, long outputs and thinking fold to an info line and their last lines, Shift with the arrows selects, unfolds, and folds an element, Ctrl-Y copies one through OSC 52, and quitting prints the conversation into the scrollback
decisions/0069-signed-and-notarised-releases.mdAccepted 2026-10-22, amending ADR 0012: scripts/release signs wisp and wisp-tui with a Developer ID (hardened runtime, no entitlements, secure timestamp) and notarises them when WISP_SIGN_IDENTITY is set, unsigned otherwise; probed with MLX and the sandbox under the hardened runtime; wisp doctor says who signed the running wisp; amended by ADR 0071
decisions/0070-a-notification-helper.mdAccepted and built 2026-10-22 for 0.30.0, amending ADR 0030 and ADR 0044: Wisp Notifier.app (com.pidster.wisp.notifier) posts through UserNotifications as “Wisp” with its icon, the helper route tried first once the person allows it; probed: an ad hoc bundle may notify, the permission survives an upgrade, never from a temporary folder, registered with LaunchServices first
decisions/0071-signed-releases-by-default.mdAccepted 2026-10-23, amending ADR 0069: scripts/release signs and notarises by default, WISP_SIGN_IDENTITY defaulting to Developer ID Application; --unsigned opts out; 0.30.1 the first signed release
decisions/0072-a-dmg-and-a-declared-layout.mdAccepted 2026-10-23, for 0.31.0, amending ADR 0012 and ADR 0047: Wisp.app in a DMG beside the formula; each package declares where wisp-tui, Wisp Notifier.app, and the Metal library are (Info.plist’s WispLayout, the formula’s wisp-layout.json), checked by wisp doctor’s package finding; wisp opens its app bundle so MLX finds its library through a link; the home’s location is left to the work on protecting wisp’s state
decisions/0073-wisp-install-and-the-finder.mdAccepted 2026-10-23, for 0.31.0: wisp install links Wisp.app’s wisp and wisp-tui into ~/.local/bin with no admin password, never replacing a file and a link elsewhere only with --force; wisp uninstall removes only links into the app; PATH advised, never edited; opened from the Finder, the app offers to install in a dialog; both refused to the model
decisions/0074-wisp-update.mdAccepted 2026-10-23, for 0.31.0: wisp update downloads the latest release’s DMG to ~/Downloads, checks its checksum and that its app is signed by the team and notarised, and swaps Wisp.app in one step; when macOS refuses, it opens the image to drag; updates.check, off by default, asks GitHub once a day and shows a newer version in the doctor, the status line, and the Finder dialog; amended 2026-11-17: the model may run wisp update --check on its own, and wisp://status carries the last check as update
decisions/0075-wisp-models-uninstall.mdAccepted 2026-10-23, for 0.31.1: wisp models uninstall and /models uninstall remove a model where wisp knows its files (Ollama’s delete; a link removed or a folder to the Bin), its settings with it, after the person types its name; --purge-cache removes an MLX model’s repository folder from the Hugging Face cache, never another tool’s store there; refused to the model
decisions/0076-the-sandbox-in-the-prompt.mdAccepted 2026-10-23, amending ADR 0017: a conversation with run_command is told its sandbox after wisp’s system prompt, built from the session’s settings: where commands may write, whether the network is on, and whether it may ask to run outside
decisions/0077-no-project-folder-in-privileged-folders.mdAccepted 2026-10-23: the current directory is the project commands and edit_file may write in, unless it is a privileged folder (the home folder or above it, ~/Library, /Volumes, a system folder), where they write only to the temporary folders; the note and wisp doctor say so
decisions/0078-tasks-a-plan-and-its-grant.mdProposed 2026-10-23: a plan of tasks (the tree itself in ADR 0079) carries a grant of command templates the person approves with it; scheduled runs by a LaunchAgent, findings in a banner, answers in wisp; details pending, a planning probe first
decisions/0079-the-conversation-as-a-spine-with-task-trees.mdProposed 2026-10-24: the conversation is the spine and a task tree is rooted at any turn, seen by the spine only as a reference; tasks depend across trees, link to the store and audit, and carry a brief consumed when they run; a tasks tool to read, write, and search and filter the tree; details pending. Amended 2026-11-02: what plan (ADR 0081) built of it, the rest extending plan, and the next part agreed and built for 0.34.0: tool calls linked to tasks, the person and an MCP caller (change_plan) changing the plan, a terminal’s change queued for a thread another process holds, and waiting set while the model’s question is open (decisions 21 to 24); a planning nudge and a reworded description probed and not adopted (25, 26)
decisions/0080-agent-skills.mdProposed 2026-10-24: plans are Agent Skills the person configures, kept in Wisp.app or Application Support rather than ~/.wisp, checked by a digest before use, their grant in allowed-tools; using one roots a task tree; details pending, tamper-proofing tied to the protection track
decisions/0081-the-plan-tool.mdAccepted 2026-10-24, built for 0.32.0: the plan tool, the first part of ADR 0079: trees of tasks rooted at turns, dependencies across trees, the model tracking its own progress, saved with the thread, seen in chat, a terminal, MCP, and later turns; it runs nothing; off by default
decisions/0082-a-llama-cpp-server-wisp-starts.mdAccepted 2026-10-29, built for 0.33.0: llamacpp.server off, wisp (wisp’s own llama-server router, kept by a LaunchAgent with idle sleep, an approved binary checked by digest, 127.0.0.1 and a key, models linked in Application Support), or llama-app (Llama.app’s router); the probe of load times and memory
decisions/0083-an-empty-response-is-asked-once-more.mdAccepted 2026-11-02, built for 0.34.0: a response with neither a reply nor a tool call, which the framework ends the turn on, keeping nothing of it, is asked once more with wisp’s note in a session rebuilt from the turn’s record, so nothing runs again; empty again, the turn ends with wisp’s line; the note kept as a notice; turn.empty
decisions/0084-homebrew-installs-the-app-from-a-cask.mdAccepted 2026-11-04, 0.34.2 the bridge and 0.35.0 the move: Homebrew installs Wisp.app from a cask wisp in pidster/tap (auto_updates, binary links, completions from the binary); the formula is deleted and tap_migrations.json moves its installs to the cask on brew update; wisp names the move from a leftover formula install, the router’s job moves to the app’s Login Item; --zap removes ~/.wisp; 0.34.2, the formula’s last, publishes the cask beside it and says how to move, since Homebrew’s move needs the cask trusted
decisions/0085-an-approval-lasts-a-time-in-its-project.mdAccepted 2026-11-05, for 0.35.1, amends ADR 0014: an approval’s choice is how long only (this turn, this session, approval.persistDays days, always), no longer mixed with where; a remembered one applies only in its project, the git repository with its subdirectories and worktrees (trusting only what git accepts, so a planted .git entry cannot borrow approvals), or the directory outside one; always never expires
decisions/0086-a-retried-request-continues-the-turn.mdAccepted 2026-11-06, amends ADRs 0008 and 0045: after an overflow, or a call to a tool the request had not registered, a turn that has made tool calls is retried on the condensed context with its calls rebuilt from the audit and wisp’s note in place of the prompt, so nothing runs again; when it cannot fit, the turn ends with ContextFailure.doesNotFit; continued on context.condensation and context.assessment
decisions/0087-what-the-person-decides-is-signed-in-their-presence.mdProposed 2026-11-08, probes first: what a same-user agent can still do, said plainly; an answer that grants, given outside the face that asked, a remembered approval, a permanent fact, and the policy settings are signed by a Secure Enclave key in the person’s presence; reading stays open; no encryption at rest yet; the home stays ~/.wisp; decision 3 (the asking face’s own dialog asks no presence) settled 2026-11-09; probe 1, 2026-11-09: a Secure Enclave key behind presence needs no entitlement, and a later process is prompted to sign
decisions/0088-core-ai-through-wisps-executor.mdProposed 2026-11-09, would amend ADR 0019: Core AI models run through wisp’s own executor over Core AI’s engine, thinking and tool calls read by wisp (<tool_call> frames as JSON or XML, routed messages with ATEM calls), the window enforced, exact counts and usage, a request’s thinking and the person’s stop honoured as MLX’s are; the engines shut down before the process exits; the bridge kept as coreai.executor: "bridge"; amended 2026-11-23: gpt-oss’s harmony format and Mistral’s [TOOL_CALLS] array read, and tool call ids numbered for templates that need them
decisions/0089-notary-credentials-from-1password.mdProposed 2026-11-22, not yet agreed, would amend ADR 0069: a 1Password item named by WISP_NOTARY_OP as an alternative to the wisp-notary keychain profile, fetched once in preflight into a private directory removed on exit, so a keychain that locks mid-run cannot stop notarisation; the sign-in check prints notarytool’s own error; open question: fetch once or before each call
decisions/0090-pull-core-ai-models-from-apples-catalogue.mdProposed 2026-11-22, probes 1 to 7 run (a first pull from empty caches builds in the sandbox; Phi-4-mini’s template takes tools where wisp does not put them; 0.6B and 4B exports, 99 s and 215 s, peaks 5.8 and 19.7 GiB; the conversion runs in a sandbox profile; a gated Gemma preset fails without a token; one preset per family: all convert, but only Qwen calls tools in wisp, three families have no tools, gpt-oss and Phi answer in unparsed formats, the drafter does not run alone), would amend ADR 0059 and extend ADR 0088: coreai:<preset> pulls one of the 26 macOS language-model presets in Apple’s coreai-models registry, exported by uv run --frozen coreai.llm.export from a checkout at the commit wisp pins; approved per pull with what will run; under wisp’s sandbox if a probe shows it can; pullers keyed by scheme
decisions/0091-wisp-app-window.mdProposed 2026-11-28, built the same day: Wisp.app opened from the Finder shows a window to install, list the recent releases and install the newest, and manage models; wisp update --releases lists the releases in a terminal
decisions/0092-a-model-registry.mdProposed 2026-11-28, built in five stages 2026-11-28 and probed with Ollama stopped, running, and stopped again; awaiting acceptance: a registry of models kept apart from what is available and what is enabled, so a stopped runtime’s models stay listed with the reason and the step that brings them back; a plan in five stages; the operator’s answers recorded (a cache file, the model’s tool sees unavailable models, kept until forgotten, threads marked)
decisions/0029-tui-front-end.mdThe terminal chat is a Rust front end (wisp-tui, ratatui) over a headless wisp chat --json; one palette for both faces; amended 2026-10-11 (Ctrl-C during a model’s turn stops the turn, through interrupt) and 2026-10-12 (an interactive status bar, with questions: N and approvals: N)
decisions/0028-rename-to-wisp.mdThe project is wisp; one mechanical rename, no compatibility layer, a new Homebrew tap
decisions/0027-verb-patterns.mdApproval patterns include the verb for programs like git and cargo, from an embedded list; old patterns still count
decisions/0026-task-catalogue.mdEval results ship with the tool catalogue as measurements, recorded by the eval run and embedded at build time
decisions/0025-context-estimation.mdThe agent condenses ahead of a known window from the usage the runtime reports, because local runtimes truncate silently
decisions/0024-edit-file.mdedit_file writes inside the sandbox’s writable set, needs approval like a command, and replaces only an exact single match; refined 2026-10-06 (a line edit keeps the old line’s indentation and finds a stale line by find, without guessing) and 2026-10-12 (lines split on bytes as read_file numbers them, each line keeping its ending, and a guard refusing an edit that would change lines it does not name)
decisions/0023-condensing-tools.mdPurpose-built MCP tools condense local content on device; triage runs or reads build output and returns only the failures, amending ADR 0006
decisions/0022-structured-output.mdA caller’s JSON Schema shapes the reply through guided generation, in an accepted subset, refused when the model does not declare it
decisions/0021-receipts.mdrespond returns a receipt of the turn, derived from the audit events rather than collected separately
decisions/0020-coreml-risk-classifier.mdA Core ML text classifier can judge commands behind a versioned contract, beside the rules, never lowering a level
decisions/0019-model-backends.mdModel backends are a registry keyed by scheme; capabilities are declared by the framework, the runtime, or config, and checked before a session opens; amended by ADR 0047 (MLX in the release) and ADR 0052 (wisp’s own MLX executor, wisp models pull)
decisions/0018-introspection.mdwisp’s own config, status, approvals, and audit are readable, read-only, through the model’s inspect tool, MCP resources, and the CLI
decisions/0017-three-layer-instructions.mdwisp’s system prompt (a resource file), the operator’s extension, and the caller’s instructions, rendered in order
decisions/0016-local-runtimes-through-an-executor.mdLocally installed models plug in through a wisp-supplied executor; what the spike measured; ollama:<name> built
release.mdHow a release is cut: tag, tarball, GitHub release, Homebrew tap formula
roadmap.mdThe releases planned on 2026-10-01, all shipped by 0.23.0; the releases since; and what is not yet scheduled, grouped by what it waits on, for choosing the next
backlog.mdAgreed work not yet scheduled, and what has shipped, done and dated; the release plan is in roadmap.md
engineering.mdStandards, tooling, the pre-commit gate (with the lockfiles’ MLX pins it guards), and CI
backends.mdModel backends: Apple’s, Ollama, llama.cpp, LM Studio, Core AI, MLX; asset preparation, naming, declared capabilities, errors
decisions/Architecture Decision Records, one per significant decision
proposals/2026-09-22-tui-spike.mdSpike: a ratatui front end over a headless wisp chat --json; what was built, what was answered, what needs a real terminal
proposals/2026-09-29-layered-context.mdDone, recorded in ADR 0045; the detailed record of decisions D1 to D12 and every evaluation, phases 1 to 6: stored, active, and shown views of a conversation; a context composed for each request from literal turns, a summary, facts, and recall; display decoupled from context by output handling
proposals/2026-10-06-context-checkpoint-2.mdRun 2026-10-06 to 2026-10-08, decided in ADR 0057: the second checkpoint of the layered context (ADR 0045’s open items): the target and headroom at the default budget on a longer scenario, the 50% variants under the guard, a model switch mid-conversation, memory on and off, and the assessment changing the task only when restated; each question’s measurement, decision rule, run time, and command
proposals/2026-10-16-one-thread-store.mdAccepted 2026-10-16: every thread, chat or MCP, saved after each turn under ~/.wisp/threads/<id>/ with its start settings, and resumed by any face; owner, lock, audit links, retention; four fixes first (0.26.3), then the store: phase 1 (MCP threads) built 2026-10-18 and phase 2 (chat) 2026-10-19, both for 0.27.0 and recorded in ADR 0066; phase 3 (wisp threads, handing a thread to another client, a /threads picker in wisp-tui) planned for 0.28.0 on 2026-10-20 and built the same day, recorded in ADR 0066’s second amendment
proposals/2026-10-24-task-trees.mdFor review 2026-10-24: the design behind ADRs 0079 and 0078: tasks.json, task kinds (step, judgement, question, notice), typed outputs read exactly, argument types and sources, recipes, the tasks tool, PlanCheck, plan approval, TaskRunner, a judgement’s context, the spine’s view, faces, audit, phases
proposals/2026-09-20-escalations.mdFor review: two escalation verbs (approval, inquiry) and a choice of channels, including a non-blocking hand-off to the calling agent. Its approval part was settled otherwise by ADR 0046 (through another face, not the calling agent), and its inquiry verb by ADR 0062
reviews/Dated code and documentation reviews with their todo lists and status

Conventions: documentation is updated in the same change as the code it describes (see the definition of done in engineering.md). Documents describe the current state and are edited in place. Decisions are append-only; a superseded ADR keeps its file and gets a Superseded by line. Add an ADR whenever a choice would be non-obvious to a newcomer or expensive to reverse.