Skip to content
DocsStar33Playground

v0.20 changes by area

ReferenceLast updated 2026-12-04 · 99b8f5257Quickstart

The headline, breaking changes and upgrade checklist for v0.20.0 are on What’s New. Smaller API additions, the security review, CLI changes and fixes are on v0.20 release details. This page groups the rest of the release by area. None of these changes needs a code change unless it says so.

  • Three ModelCalibration fields that change nothing. steeringCompliance has no reader, and knownToolAliases and knownParamAliases reach no tool-healing call (every call site passes empty maps). They carry @deprecated JSDoc in @reactive-agents/llm-provider and will be removed in the next minor release. Nothing changes at run time; stop reading or writing them in custom calibration files. The module docs now describe the real lookup: the exact normalized file name (the shipped record, then ~/.reactive-agents/calibrations/) and a digest staleness check. A model that was never probed gets no record; there is no family fallback. See Model Calibration.

These change how the kernel’s guards and the exit gate treat a model’s work.

  • The exit gate accepts work done another way. A failed action call no longer blocks the model’s answer when a call to the same tool in the same batch succeeded, or when a different tool declared to write (effect: "write" or mutatesExternalState: true) of the same verb group succeeded after the failure; a write to another object or an ungrouped write tool does not count. A failed write that nothing replaced still blocks, and a write the request names still needs its own success. See Exit gate.
  • side_effect_guard reads declared effects, not tool names. It refuses only an identical repeat (same tool, same arguments) of a call to a tool declared to write. A second call with different arguments, such as another page or another message, runs. A tool whose name contains create, send or update but declares no write effect is no longer limited. See Guard.
  • repetition_guard answers a repeat with the earlier result. An identical repeat of a call that already succeeded gets that call’s cached result instead of a refusal with no data. When a write ran since, the result is marked as possibly out of date. The activity key is guard:repetition_guard:redirect.
  • Recovery hints name the right cause. A not-found error or a code traceback is no longer labeled “refused by tool policy”, even when its text contains a word such as “sandbox”.
  • Attached files are not owed writes. Paths inside an attached-file block ([File: name] with a fenced body), and the attached file’s own name, are no longer read as files the run must write.
  • Plan posture accepts the plan at every exit. In plan posture the plan is the deliverable and the tools it names are withheld, so a task such as “create a Notion page” no longer has its plan refused with “Task mentions notion but no notion/* tool was called”. This holds for an answer turn and for the final-answer tool; a skipped check emits a completion-gap warn with cause: "plan-posture". See Plan, then execute.
  • Argument-rejection hints say where a key belongs. When a tool rejects a call with Unrecognized key: "k" at some path, the hint names the schema level that declares k, for example creation_mode belongs at the top level (not at pages.0). When the subschema at the failing path is a primitive, an enum or a union with a primitive branch, the hint adds one example value, for example Example: "properties": {"title": "<string>"}. Both are read from the tool’s own schema, so they work for any tool. See Input Validation.
  • Default-on and opt-in mechanisms. Final-turn thinking stops asking for thinking off once the provider reports the model reasoned anyway (resolvedParams.thinkingSuppressed === false). Input prefetch’s reads carry initiator: "harness" on ToolCallStarted / ToolCallCompleted, and calibration and the RunReport leave them out of model behavior. Opt-in: actOrAnswer: "adaptive" forces a call only after a stall with tool work left, and recallFromStart: true lists recall from the first call. See On by default since 0.20.
  • A thinking-only reply is not the answer. Its thinking stays evidence (metadata.thinking); the turn retries once with thinking off, then the run fails with a thinking-only reply error. A FINAL ANSWER: or ACTION: label inside the thinking is still rescued.
  • Killswitch stops name their limit. terminalOutcome.authority reads budget, timeout, strategy-exhausted, guard:watchdog or guard:approval_denied, not unclassified:<reason>.
  • Unverified execution claims. The correction turn names what the run’s executors can run, read from their definitions: when none runs commands, it asks the model to remove the claim. When another exit ends the run first, the claim is listed as unfinished and the event reads resolution: "preempted".
  • The exit gate releases finished work. A call that never ran is no longer owed. The model’s finished answer is denied at most twice in a row; the third ships partial (exit_gate_model_bound). When every requested file is written, a run at its iteration cap succeeds on that work; a guard-refused write is not a written file; and an owed call sent on the last iteration runs once with no new model call.
  • One recovery instruction per turn. After a tool failure, one rule picks retry (rejected arguments, a policy refusal, a first failure) or switch (never ran, repeated failures, an untried route the model named); loop and grounding redirects feed it. An iteration whose calls a guard all refused is not a stall.
  • Guards. meta_tool_dedup_guard and unconsumed_evidence_guard are removed (they could never fire). A refused call no longer takes the latest-result budget from a real result. For measurement only, disabledGuards also takes loop_guidance, grounding_redirect, unverified_execution_claim, act-or-answer and final_turn_thinking, .withStallPolicy({ stallThreshold }) sets the stall threshold, and a .withEnvironment() field named Date, Time, Timezone or Platform replaces that line. See Disabling a guard.
  • The reactive controller honors its config. Each controller key merges over its default, so { earlyStop: false } turns off only early stop (it used to remove the whole controller); toolFailureRedirect: false turns off the redirect. See Turning One Decision Off.
  • Multi-line object calls in fences. The tool-call parser for models without native tool calling reads a fenced name { multi-line object } (for example file-read { then path: "/abs/a.ts" then }) as a tool call, in any fence language, with an optional comment line before it. The name must be an offered tool, and the arguments go through the same argument grammar as other text calls. Before, the reply read as prose and could pass as a final answer. An assignment such as const x = file-read { … } is an embedded call and follows the embedded-call rule. See Reasoning.
  • A reply that offers alternatives runs nothing. A reply that prints call A, then an or, # or or Alternatively line, then call B, no longer runs every option. It runs none and counts as an unparseable call, so the model is asked to pick one, and the reply cannot pass as a final answer.
  • Embedded calls follow the declared effect. ResolverToolHint takes an optional effect (from toolEffect(def): "read", "write" or "unknown"). An embedded call to a declared read-only tool runs whatever its risk level, and an embedded call to a declared writer is always refused. An undeclared effect keeps the riskLevel: "low" rule. MCP tools count as read-only only when the operator trusts the server’s readOnlyHint.
  • JSON arrays sent as strings are parsed, not wrapped. When a model sends a JSON array as a string to an array parameter, tool-argument healing parses a valid one and repairs one whose only defect is swapped closers ("x"]} for "x"}]) when every item has the declared object type. Otherwise it leaves the string alone, and validation fails with the parse position, the reason and an excerpt, for example Parameter "pages": your JSON array does not parse (at char 2637: expected "," or "]" after an array item, near "..."). Send the array itself, not a string. Before, a string that did not parse was wrapped as a one-item array and the model was told “item 0 is string”. A string that starts with [ is no longer comma-split, a truncated array is not closed, and plain comma lists are unchanged. repairJsonLenient takes an optional { swapMismatchedClosers } (default off). See Input Validation.
  • File tools name the extra roots. With additionalRoots, the path description of file-read, file-write, file-edit, list-directory and grep names each root and its access, and list-directory returns additionalRoots. File tools read the run’s roots when the call starts, and tool calls from code-action code run in the run’s scope, so both see the run’s roots. Access is unchanged. See Extra directories.
  • code-execute reports failure and runs in the workspace. A failed call returns success: false with failureKind ("not-executed", "failed" or "timed-out"), which any tool may return. Host-mode code runs in the run’s file root (else /tmp, with a workdirNote) without the workspace .env, and Python runs isolated (-I). Unlabeled Python is detected, and a failed import of a workspace file names the fix.
  • Shell results keep stderr. When stderr is non-empty, a shell-execute result shows it under [stderr] with [exit code N], so a passing bun test is visible; a non-zero exit with empty stderr adds the exit code.
  • Seeded decoding (best effort). CompletionRequest accepts an optional seed. Ollama sends it as options.seed on complete(), stream() and completeStructured(); OpenAI and the providers built on its client (Groq, xAI) send it as the top-level seed. Anthropic, Gemini, LiteLLM and the test provider ignore it. For a whole run, set LLMConfig.defaultSeed: pass { seed } in the model options of createLLMProviderLayer, or set the LLM_DEFAULT_SEED environment variable (integers only; other values are ignored). A request’s own seed always wins. GPU and server-side nondeterminism can still make outputs differ, and without a seed the request on the wire is unchanged. See LLM Providers.
  • Ollama keeps leaked reasoning out of the answer. When thinking is off and the model reasons anyway, the leading block closed by </think> moves to thinking in complete(), stream() and completeStructured(), and resolvedParams.thinkingSuppressed reports whether thinking-off took effect. With thinking off, stream() holds answer text until that block is ruled in or out.
  • Ollama timings and keep_alive. CompletionResponse.timings (ProviderTimings: loadMs, prefillMs, decodeMs, totalMs) and each llm-exchange trace record carry the server’s split. LLMConfig.ollamaKeepAlive sets keep_alive (default "5m").
  • A direct chat turn starts no run, and its events say so. A chat turn the model answers without tools (routedVia: "direct-llm") publishes its ChatTurn events with taskId: "" instead of the placeholder "chat". Apps that file events by taskId no longer create a run named "chat" that never ends. Turns that start a run still carry that run’s id. See Agent runtime.
  • redactUrlSecrets keeps what it does not redact as written. A {{name}} template placeholder in a URL path stays {{name}} instead of coming back as %7B%7Bname%7D%7D: https://h/{{a}}/key/abc becomes https://h/{{a}}/key/[redacted]. The config exports that use the rule get the same fix. What counts as a secret is unchanged. See URL secrets.
  • Run observations record what the run did. The local run observation and the opt-in RunReport now record the tool-call dialect the kernel resolved (native-fc, fenced-json, pseudo-code or nameless-shape) as dialect / toolCallDialectObserved; every run used to record "none". parallelTurnCount counts model replies that carried two or more tool calls, grouped by the reply that requested them. See Telemetry.
  • Forks. A fork counts only its own spend and may run the forking agent’s maxIterations past the fork point, and a resumed or forked run reports the cap it enforces. Before, checkpoint compaction made a finished run forkable once. A durable run stopped by timeoutAfter() records stop.kind: "timeout" (was "error"). See Retention.
  • run-started records more, and no paths. config.mechanisms adds stallThreshold, the reactiveController flags, disabledGuards, ignoredGuardIds and the new harness settings. config.env records an RA_* value only when it is a boolean or a number; others read <set> and secret-looking names <redacted>.

@reactive-agents/ui-core gains headless rules (plain functions with no DOM or framework) and @reactive-agents/svelte/components ships Svelte 5 blocks built on them. Every block takes its strings as a labels prop, uses string icon ids, accepts snippets to replace its parts and carries data-ra-* hooks. Cortex now draws its own chat and run views with these blocks.

  • Run controls. ControlButton and ContinueStopped. See Svelte blocks.
  • Composer and slash menu. Composer (send, queue and stop, a queued-message strip, file drop and paste, a slash menu, and snippets for every region) and SlashMenu (a keyboard-driven listbox), over createComposer and the slash registry, key, mention and queue rules in ui-core. Drive it with a controller or control it from your own state. See Composer and slash menu.
  • Lists, tooltips and toasts. VirtualList (windowed list with overscan and scrollToIndex), Tooltip and the use:tooltip action, and Toaster with createToaster. The ui-core toast queue takes injected timers, so it runs without a DOM and doubles as a Svelte store. See Lists, tooltips and toasts.
  • Approval and question cards, and a config form shell. ApprovalCard, QuestionCard (with QuestionReply and QuestionForm), ConfigSection, FieldRow and ListField. The approval card’s argument rows take a mask hook for secret redaction. Dismiss is two callbacks: onHide only takes the card off the screen (the request stays pending), and onDismiss sends a decision. See Cards and config shell.
  • Context-window views. ContextGauge, ContextChart (stacked bars per model call against the window line, never colour alone), ContextAttribution and ContextFindings, over ui-core view models that take a plain ContextCall input, so any app can map its own record to them. See Context window views.
  • Markdown as an optional subpath. @reactive-agents/svelte/markdown ships Markdown and renderMarkdown. It needs marked and dompurify, both optional peer dependencies, so apps that render no markdown install neither. Sanitising is always on: no scripts, images, frames, forms, or class, style and on* attributes, and links keep an href only for http(s), mailto and in-page anchors. See Markdown.
  • New --ra-* variables in styles.css for these blocks (surfaces, shadows, z-order, composer width, card and field sizes, and a --ra-ctx-* colour series), with light and dark values where they differ.
  • React and Vue blocks. @reactive-agents/react/components and @reactive-agents/vue/components ship the same blocks, with ./markdown subpaths and one shared --ra-* styles.css. Prop names, labels, data-ra-* hooks and aria match Svelte; snippets become render props (React) or slots (Vue). React’s ApprovalGate and AgentPrompt are deprecated for ApprovalCard and QuestionCard. Labels, icons, the tooltip and the markdown pipeline live once in ui-core. See React blocks and Vue blocks.
  • Toasts and composer notices. Toasts pause on hover and focus, show at most maxVisible (default 3; sticky and error toasts skip the wait), and can sit at the top (vertical="top"). createComposerNotice() and ComposerNotice show one message on the composer instead of a toast. ListField and FieldRow no longer overflow, and mockAgentEndpoint is a FetchLike.
  • Receipt card. Svelte’s ReceiptCard, over ui-core’s receiptViewOf, draws AgentResult.receipt: the verdict (it grades the evidence trail, not whether the answer is true), tools, deliverables, interventions and the signature state. It checks no signature itself, so a signed receipt reads unchecked until you pass your verifyReceipt result. See The trust receipt.
  • Fixes from a browser audit. The Composer footer wraps and its key hint stays on one line, so Send stays on screen at phone width. Markdown restores bullets, numbers and nested list styles under a CSS reset. ConfigSection sets aria-controls only while its panel is rendered.

Restart Cortex after upgrading to pick these up.

  • Per-user data and keys. Data lives in ~/.reactive-agents/cortex (override with REACTIVE_AGENTS_CORTEX_DIR or rax cortex --data-dir <dir>) and saved keys in the shared ~/.reactive-agents/keys. An older ./.cortex keeps being used, with a notice, until rax cortex --migrate copies it; nothing is moved or deleted. See Where Cortex keeps its data.
  • Agent files. Export and import Agent Spec files; import notes list what did not carry over. Exports give the same code from every entry point, and the Lab persona maps one to one with traits and responseStyle. See Export and import in Cortex.
  • MCP sign-in. OAuth servers sign in from Lab › Tools › Servers with one sign-in bar; Test, Refresh tools and the playground share one connection path, and a malformed saved auth is refused. See MCP sign-in (OAuth).
  • Run control. Pause, Stop and Terminate show their pending state at once, end it on RunControlApplied with the latency (“Stopped in 230 ms”), and offer Terminate when a running tool holds up a stop. The stop card offers Resume, Continue or Retry by why the turn stopped, and approving a paused tool call keeps the earlier thread. See Stopping and continuing a turn.
  • Inspecting runs. An LLM call inspector, a per-call context chart against the model’s window, a failure dashboard (/runs/failures), a cost page (/runs/costs) and a default-on Harness Timeline filter. See Run view and traces.
  • Tools, variables and prompts. Extra directories in the Lab builder, a tier-aware disclosure picker, custom toolsets with per-tool MCP picks, global {{variables}}, and saved prompts that bring tools and run settings (/prompt in chat). See Toolsets, Variables and Composer and config.
  • Chat and channels. Tool rows show a muted server/ prefix and key=value arguments, the transcript no longer repeats the thinking, JSON chat titles are unwrapped, and Channel Hub routes use the narration ack. See Chat and composer.
  • Voice. Settings · Voice checks Docker disk space before a model download and falls back from GPU to CPU once with a copyable fix. See Voice.
  • Built on the framework’s blocks and rules. The composer, slash menu, Timeline list, tooltips, toasts, approval and question cards, settings rows, context panel and markdown view are adapters over the drop-in UI blocks. Cortex uses the framework’s redactUrlSecrets and validateAdditionalRoots. Visible changes: the live approval card offers the full-parameters toggle, the composer announces the highlighted slash-menu row to screen readers, and a stored prompt snapshot keeps a credential query parameter as {{secret.URL_SECRET}} instead of dropping it.
  • Run rows end when they should. Dismissing, approving, denying or answering a paused chat turn ends its run row; before, the row stayed awaiting-*. A plain conversational chat turn no longer creates a run named chat, and a leftover open chat run from an older database is ended at boot (nothing is deleted).
  • Trace-only runs read honestly. A run page built from a trace alone shows the provider, model and strategy from the trace and reads cost and duration as unknown instead of $0.00.
  • Saved eval cases. Save a finished run as an eval case with expectations (text, tools called, iteration or cost limits, a rubric). The Evals page runs a set as new runs, grades each expectation with the framework’s gradeText and gradeBehavior, flags regressions, records a run it cannot grade as not graded, and exports an EvalSuite. See Saved eval cases.
  • Run receipts and highlighted code. The run view has a Receipt tab and the chat trace a Receipt section, with the signature checked on every read. Fenced code in chat, results and skills is coloured with Shiki, loaded on first use.
  • Rerun and fork. Rerun a run with a different provider, model, strategy or iteration cap, or fork it from an iteration through agent.fork; both link back to the origin. See Rerun and fork.
  • Spend budgets. USD limits per run, day or month for all runs, one agent or one model, with alerts. A per-run cap is .withBudget({ costLimit }); a used-up day or month budget blocks new runs until you confirm “Override once”. Local models never count. See Budgets.
  • Chat at phone width. The chat header keeps its Trace button at 390 px, composer notices sit inside the composer card, chat toasts sit below the header and clear the To-do dock, every screen fits at 390 px, repeated “Copied” toasts replace one another, and a failed approve with an empty server error shows “Could not resume this run”. The Extra directories editor says when a path is already listed, the top-bar logo link meets the 24 px target size, and a {{name}} in a URL path stays literal in prompt snapshots and exports.
  • Installs and source runs. Cortex declares @reactive-agents/reasoning as a dependency, so pnpm starts it. From source, dev-stack with no subcommand prints usage, and starting on :4321 or live data needs --live.
  • Polish. Labels follow the framework’s terms (“Iteration N”, “Pass N”, “Built-in tools”), long runs scroll smoother, and drawer, focus and alignment fixes. API hardening is under Security.

Install

Bun (recommended)bun add reactive-agents
Node 22.5+npm install reactive-agents

Get notified on new releases

Release notes, about once a month.