v0.20 changes by area
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.
Deprecations
Section titled “Deprecations”- Three
ModelCalibrationfields that change nothing.steeringCompliancehas no reader, andknownToolAliasesandknownParamAliasesreach no tool-healing call (every call site passes empty maps). They carry@deprecatedJSDoc in@reactive-agents/llm-providerand 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.
Harness and kernel
Section titled “Harness and kernel”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"ormutatesExternalState: 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_guardreads 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 containscreate,sendorupdatebut declares no write effect is no longer limited. See Guard.repetition_guardanswers 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 isguard: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-answertool; a skipped check emits acompletion-gapwarnwithcause: "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 declaresk, for examplecreation_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 exampleExample: "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 carryinitiator: "harness"onToolCallStarted/ToolCallCompleted, and calibration and theRunReportleave them out of model behavior. Opt-in:actOrAnswer: "adaptive"forces a call only after a stall with tool work left, andrecallFromStart: truelistsrecallfrom 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 athinking-only replyerror. AFINAL ANSWER:orACTION:label inside the thinking is still rescued. - Killswitch stops name their limit.
terminalOutcome.authorityreadsbudget,timeout,strategy-exhausted,guard:watchdogorguard:approval_denied, notunclassified:<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_guardandunconsumed_evidence_guardare removed (they could never fire). A refused call no longer takes the latest-result budget from a real result. For measurement only,disabledGuardsalso takesloop_guidance,grounding_redirect,unverified_execution_claim,act-or-answerandfinal_turn_thinking,.withStallPolicy({ stallThreshold })sets the stall threshold, and a.withEnvironment()field namedDate,Time,TimezoneorPlatformreplaces that line. See Disabling a guard. - The reactive controller honors its config. Each
controllerkey merges over its default, so{ earlyStop: false }turns off only early stop (it used to remove the whole controller);toolFailureRedirect: falseturns 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 examplefile-read {thenpath: "/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 asconst 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 anor,# ororAlternativelyline, then callB, 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.
ResolverToolHinttakes an optionaleffect(fromtoolEffect(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 theriskLevel: "low"rule. MCP tools count as read-only only when the operator trusts the server’sreadOnlyHint. - JSON arrays sent as strings are parsed, not wrapped. When a model sends a JSON array as a string to an
arrayparameter, 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 exampleParameter "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.repairJsonLenienttakes an optional{ swapMismatchedClosers }(default off). See Input Validation. - File tools name the extra roots. With
additionalRoots, thepathdescription offile-read,file-write,file-edit,list-directoryandgrepnames each root and its access, andlist-directoryreturnsadditionalRoots. File tools read the run’s roots when the call starts, and tool calls fromcode-actioncode run in the run’s scope, so both see the run’s roots. Access is unchanged. See Extra directories. code-executereports failure and runs in the workspace. A failed call returnssuccess: falsewithfailureKind("not-executed","failed"or"timed-out"), which any tool may return. Host-mode code runs in the run’s file root (else/tmp, with aworkdirNote) 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-executeresult shows it under[stderr]with[exit code N], so a passingbun testis visible; a non-zero exit with empty stderr adds the exit code.
Providers
Section titled “Providers”- Seeded decoding (best effort).
CompletionRequestaccepts an optionalseed. Ollama sends it asoptions.seedoncomplete(),stream()andcompleteStructured(); OpenAI and the providers built on its client (Groq, xAI) send it as the top-levelseed. Anthropic, Gemini, LiteLLM and the test provider ignore it. For a whole run, setLLMConfig.defaultSeed: pass{ seed }in the model options ofcreateLLMProviderLayer, or set theLLM_DEFAULT_SEEDenvironment variable (integers only; other values are ignored). A request’s ownseedalways 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 tothinkingincomplete(),stream()andcompleteStructured(), andresolvedParams.thinkingSuppressedreports 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 eachllm-exchangetrace record carry the server’s split.LLMConfig.ollamaKeepAlivesetskeep_alive(default"5m").
Runtime
Section titled “Runtime”- A direct chat turn starts no run, and its events say so. A chat turn the model answers without tools (
routedVia: "direct-llm") publishes itsChatTurnevents withtaskId: ""instead of the placeholder"chat". Apps that file events bytaskIdno longer create a run named"chat"that never ends. Turns that start a run still carry that run’s id. See Agent runtime. redactUrlSecretskeeps 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/abcbecomeshttps://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
RunReportnow record the tool-call dialect the kernel resolved (native-fc,fenced-json,pseudo-codeornameless-shape) asdialect/toolCallDialectObserved; every run used to record"none".parallelTurnCountcounts 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
maxIterationspast 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 bytimeoutAfter()recordsstop.kind: "timeout"(was"error"). See Retention. run-startedrecords more, and no paths.config.mechanismsaddsstallThreshold, thereactiveControllerflags,disabledGuards,ignoredGuardIdsand the new harness settings.config.envrecords anRA_*value only when it is a boolean or a number; others read<set>and secret-looking names<redacted>.
UI bindings
Section titled “UI bindings”@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.
ControlButtonandContinueStopped. 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) andSlashMenu(a keyboard-driven listbox), overcreateComposerand the slash registry, key, mention and queue rules inui-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 andscrollToIndex),Tooltipand theuse:tooltipaction, andToasterwithcreateToaster. Theui-coretoast 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(withQuestionReplyandQuestionForm),ConfigSection,FieldRowandListField. The approval card’s argument rows take amaskhook for secret redaction. Dismiss is two callbacks:onHideonly takes the card off the screen (the request stays pending), andonDismisssends a decision. See Cards and config shell. - Context-window views.
ContextGauge,ContextChart(stacked bars per model call against the window line, never colour alone),ContextAttributionandContextFindings, overui-coreview models that take a plainContextCallinput, so any app can map its own record to them. See Context window views. - Markdown as an optional subpath.
@reactive-agents/svelte/markdownshipsMarkdownandrenderMarkdown. It needsmarkedanddompurify, both optional peer dependencies, so apps that render no markdown install neither. Sanitising is always on: no scripts, images, frames, forms, orclass,styleandon*attributes, and links keep anhrefonly for http(s), mailto and in-page anchors. See Markdown. - New
--ra-*variables instyles.cssfor 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/componentsand@reactive-agents/vue/componentsship the same blocks, with./markdownsubpaths 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’sApprovalGateandAgentPromptare deprecated forApprovalCardandQuestionCard. Labels, icons, the tooltip and the markdown pipeline live once inui-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()andComposerNoticeshow one message on the composer instead of a toast.ListFieldandFieldRowno longer overflow, andmockAgentEndpointis aFetchLike. - Receipt card. Svelte’s
ReceiptCard, overui-core’sreceiptViewOf, drawsAgentResult.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 readsuncheckeduntil you pass yourverifyReceiptresult. See The trust receipt. - Fixes from a browser audit. The
Composerfooter wraps and its key hint stays on one line, so Send stays on screen at phone width.Markdownrestores bullets, numbers and nested list styles under a CSS reset.ConfigSectionsetsaria-controlsonly while its panel is rendered.
Cortex
Section titled “Cortex”Restart Cortex after upgrading to pick these up.
- Per-user data and keys. Data lives in
~/.reactive-agents/cortex(override withREACTIVE_AGENTS_CORTEX_DIRorrax cortex --data-dir <dir>) and saved keys in the shared~/.reactive-agents/keys. An older./.cortexkeeps being used, with a notice, untilrax cortex --migratecopies 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
traitsandresponseStyle. 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
authis refused. See MCP sign-in (OAuth). - Run control. Pause, Stop and Terminate show their pending state at once, end it on
RunControlAppliedwith 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 (/promptin chat). See Toolsets, Variables and Composer and config. - Chat and channels. Tool rows show a muted
server/prefix andkey=valuearguments, the transcript no longer repeats the thinking, JSON chat titles are unwrapped, and Channel Hub routes use thenarrationack. 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
redactUrlSecretsandvalidateAdditionalRoots. 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 namedchat, and a leftover openchatrun 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
gradeTextandgradeBehavior, flags regressions, records a run it cannot grade as not graded, and exports anEvalSuite. 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/reasoningas a dependency, so pnpm starts it. From source,dev-stackwith 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-agentsNode 22.5+npm install reactive-agentsGet notified on new releases
Release notes, about once a month.