Skip to content
DocsStar33Playground

v0.20 release details

ReferenceLast updated 2026-12-03 · ab45e8edcQuickstart

The headline, breaking changes, upgrade checklist and security fixes for v0.20.0 are on What’s New. This page carries the smaller API additions, the security review of new features, CLI changes and fixes. Deprecations, harness and kernel, tool, provider, runtime, UI and Cortex changes are on v0.20 changes by area.

  • Low-level MCP server API. @reactive-agents/mcp-server exports createAgentMcpServer({ name, description, executor }), which works over any MCP transport (stdio, in-memory, your own HTTP), and serveAgentMcpHttp(...), which serves it over stateless streamable HTTP at /mcp. The agent arrives as an injected executor and receives only the input and an abort signal, never the bearer token. The server reports its package version unless you pass version. Most apps call agent.serveMCP() instead. See Serve an agent over MCP.
  • OAuth verifier types from one import. OAuthTokenVerifier and AuthInfo are exported from @reactive-agents/runtime and reactive-agents beside McpOAuthOptions, so a custom serveMCP({ oauth: { verifier } }) needs no second import from @reactive-agents/mcp-server. See OAuth 2.1 resource server.
  • Agent Spec exports on the facade. reactive-agents exports AgentSpecAgentSchema, AGENT_SPEC_MAX_READ_VERSION, AGENT_SPEC_METADATA_KEY and AGENT_SPEC_METADATA_VERSION, as @reactive-agents/runtime does. See Portable Agent File.
  • secureServe({ authenticate }). secureServe from @reactive-agents/runtime-shim accepts an authenticate(req) hook as an alternative to a static token. The hook returns { ok: true, auth }, which fetch(req, auth) receives, or { ok: false, response }, which is sent as is. A hook that throws fails closed with a bare 401. With authenticate set, a non-loopback bind is allowed; the 1 MiB body cap still runs first. Passing both token and authenticate is a type error and rejects at startup with SecureServeConfigError. Existing token callers need no change. See Your own HTTP endpoints.
  • MCP login store location. REACTIVE_AGENTS_MCP_AUTH_DIR moves the stored-login directory (default ~/.reactive-agents/mcp-auth); it is read when a store is built, so tests and host apps can keep logins out of the real home directory. resolveMcpAuthDir and MCP_AUTH_DIR_ENV are exported from @reactive-agents/tools. See Where tokens are stored.
  • Injected environment for Ollama resolvers. resolveOllamaEndpoint(explicit?, env?) and resolveOllamaTarget({ ..., env? }) accept an environment (default process.env). When you pass one, the OLLAMA_ENDPOINT / OLLAMA_HOST / OLLAMA_BASE rungs and OLLAMA_API_KEY are read only from it. DEFAULT_OLLAMA_ENDPOINT (http://localhost:11434) and the OllamaEnv type are exported from @reactive-agents/llm-provider. Existing calls behave the same. See Local Models.
  • Key store lock timeout. openProviderKeyStore({ lockTimeoutMs }) (default 5000 ms) bounds the wait for the store’s lock file. The store refuses symlinked or non-regular files and a symlinked directory, forces an existing directory to 0700, and serializes concurrent writers (for example rax keys set while Cortex saves a key), so neither loses a key. See rax keys.
  • Tool schema exports. FILE_CONTENT_ANY_OF and the FileContentBranch type are exported from @reactive-agents/tools. An object parameter without a declared shape gets properties: {}, the form providers already received after repair. See Custom Tools.
  • Run control contracts. RunControllerLike gains an optional onInterruption(listener, { pause? }) that fires the moment a stop or terminate (and optionally a pause) is requested, and the runtime’s RunController adds onControl(listener) to follow the control timeline live. RunControlKind ("pause" | "stop" | "terminate") comes from @reactive-agents/core, and ToolEffectOutcome / ToolEffectRecord.status can be "interrupted". @reactive-agents/ui-core’s UiStreamEvent has typed RunControlRequested and RunControlApplied members. See How fast control takes effect.
  • RunPaused event. A run that pauses at a tool approval or a pending user question publishes RunPaused (the gate, the tool name or interaction kind, iterations so far, duration and run-tree ids). It is not a terminal outcome and is separate from the kill-switch AgentPaused. Traces record it as run-paused, so a paused run no longer reads as incomplete, and the result-boundary verifier no longer records a failing verdict for a pause; the resumed run is verified when it ends. See Pausing (durable).
  • Carry discovered tools between runs. run() and runStream() take discoveredTools (names to seed the run with) and onDiscoveredTools (called at run end with the run’s discovered names); session() uses them to carry up to 20 tools across chat turns. See run().
  • Per-call context attribution in traces. llm-exchange events can carry callId, contextWindow, a toolSchemas manifest and context section sizes; tool-call-start, tool-call-end and signal-rendered carry llmCallId. The shapes come from @reactive-agents/core (and CompletionRequest.traceContext, typed LLMTraceContext, accepts them); @reactive-agents/trace adds exchangeByCallId and resolveToolSchemaBodies. All fields are optional. See What each model call was made of.
  • Tool schema allocation record. ToolSurfaceResolvedEmitted and the tool-surface-resolved trace event gain an optional allocation: each tool’s presentation (full, compact or index), the reason, its wire tokens, and the turn’s spent, budget and overrun. See Disclosure.
  • Action-grounding judge in core. @reactive-agents/core exports judgeActionGrounding({ task, answer, toolResults }) with requestedChange, claimedChange, tallyActionCalls, isActionTool, verifyCommandFailure and the META_TOOLS, HARNESS_PSEUDO_TOOLS and READ_ONLY_TOOLS sets. An optional mutatingTools list counts only those tools as actions and also treats requests aimed at a page, issue, message or channel as change requests. READ_ONLY_TOOLS now covers crypto-price, request_user_input, scratchpad-read and scratchpad-write. Directory navigation (“change into the photos folder”) and questions (“Has the config been updated?”) no longer read as a change request or a change claim. The verb rules read English text. See Action grounding and verify command.
  • URL secret rule as a function. redactUrlSecrets(url, { placeholder? }) from @reactive-agents/runtime returns { value, redacted } with userinfo removed and each secret path segment and credential query value replaced (default [redacted]), the rule every config export uses. See URL secrets.
  • Check additionalRoots without building. validateAdditionalRoots(value) from @reactive-agents/runtime applies the .withTools({ additionalRoots }) rules and returns one AdditionalRootIssue (reason, index, path, message) per bad entry, or []. See Extra directories.
  • Extra roots in the tools package. withAdditionalRoots([{ path, access }], fn) from @reactive-agents/tools grants extra roots to the file tools and the shell outside the builder. See Extra directories.
  • Persona fields everywhere. traits and responseStyle round-trip through toConfig() / fromConfig(), agentConfigToSource(), the Agent Spec export and .withAgentTool() sub-agent personas. @reactive-agents/channels exports TriggerPersona and TriggerPersonaResponseStyle, matching AgentPersona. .withPersona(), .withAgentTool() and agent.start() throw PersonaOptionError for a bad value, and a trigger’s derive() that produces one drops that turn. See Model & Provider.
  • MCP schema converter. mcpInputSchemaToParameters is exported from @reactive-agents/tools, and ToolParameter has an optional jsonSchema field that carries the server’s schema verbatim. See MCP Tools.
  • Smaller exports. ChannelTurnAcknowledged gains text, the ack actually sent. setScratchpadBounded returns { spilled } (ScratchpadWriteResult, SpilledScratchpadEntry). findBlockedReason(command, rules?, allowList?) takes the effective allowlist, BlockedCommandRule gains alternative, and createToolCallResolver returns a resolver for every provider instead of throwing. The memory classifier is exported as isSelfCapabilityClaim, containsSelfCapabilityClaim and stripSelfCapabilityClaims.
  • More from reactive-agents. The goal API (pursueGoal, evaluateGoal, goalRunOf; experimental), receipt signing (generateReceiptKeyPair, signReceipt, verifyReceipt), BuildValidationError, AgentStreamCollectError and the option and handle types you name (ChatOptions, SessionOptions, RunHandle, ToolsOptions, …) no longer need @reactive-agents/runtime. See Agent sessions and control.
  • Eval behavior and text checks. EvalCase.expectedBehavior is now graded (shouldUseTool, shouldAskUser, maxSteps, maxCost, with no judge call), a case takes text checks (contains, not-contains, matches), and gradeBehavior and gradeText are exported. A failing check outranks an inconclusive one, so the case verdict is fail. See Grading without a suite.
  • Tool call outcomes. ToolCallCompleted gains optional notExecuted and failureKind (ToolCallFailureKind), set by the kernel for a call that never ran or failed, and ToolCallStarted / ToolCallCompleted an optional initiator: "harness". @reactive-agents/tools exports ToolFailureKind and failureKindOf, ToolOutput gains failureKind, and ToolResultCache gains clear() and a scope argument.
  • Trace activity keys. eventActivityKeys(event) from @reactive-agents/trace returns the keys one event contributes. Keys add guard:<guard>:pass@<why>, decision:<type>:<patchKind> and decision:<type>@untried-route, and every act-or-answer activation leaves one.
  • Missing-key error. ProviderKeyMissingError (provider, envVar) is exported from @reactive-agents/runtime. The key is read at run start; Ollama, a custom baseUrl, an inline key and a fallback chain are unaffected.
  • Config fields. createAgent({ reasoning: { maxIterations } }) works (execution.maxIterations wins when both are set), and stallPolicy.stallThreshold round-trips through toConfig(). resolveControllerConfig(), stallThresholdInForce() and THINK_GUARD_IDS are exported.
  • Previous-iteration evidence. RunAssessment in @reactive-agents/reasoning gains previousEvidenceDelta. The ControllerEvalParams field rename is under Breaking changes on What’s New.

The new network and key features went through a security review before this release. The fixes to features that shipped before 0.20 are under Security on What’s New. For agents served over MCP:

  • One request starts at most one run: a JSON-RPC batch with more than one tools/call gets 400, and maxConcurrentRuns (default 4) caps runs in flight. Calls past the cap get a Server busy tool error.
  • A run that throws or fails with an error reaches the caller as Agent run failed; the detail goes to the onError hook (default: one line on stderr). An abstention still says Agent declined to complete the task: <reason>. Rejections do not echo the Host, Origin or tool name. agent.serveMCP() takes maxConcurrentRuns and onError on both transports.
  • A host cancel or a closed connection stops the run: serveMCP() passes the call’s abort signal to run(input, { signal }). Agents built with .withDurableRuns() and plan runs do not honor it yet. See run().
  • In OAuth mode, a custom verifier’s token without an expiry is refused unless you set allowTokensWithoutExpiry, and requireAccessTokenType opts in to the RFC 9068 at+jwt check. A wildcard bind (0.0.0.0, ::) needs allowedHosts, or RA_MCP_ALLOWED_HOSTS for rax serve. See Bounded work.

For agents served over A2A and for agent files:

  • agent.serveA2A() no longer sends a run’s error text to remote callers. A failed run, or a run() that rejects, ends as a failed task with Agent run failed; the detail goes to the new serveA2A({ onError }) option (default: one line on stderr). An abstention keeps its Agent declined to complete the task: <reason> wording. See A2A protocol.
  • A file reads only the environment names its fields allow. A { "$env": "NAME" } reference resolves only when NAME is the name the export writes for that field (for example MCP_<SERVER>_<HEADER>), or a name you pass in allowEnv; refused names are listed in missingSecrets, and the new resolvedEnv field lists every name that was read. See Secrets.
  • rax run --agent and rax serve --agent treat the file as untrusted input. A file that starts stdio MCP servers, sets tools.terminal, reads environment values or lists remote agent tools (agentTools[].remoteUrl) shows what it would do and asks on a terminal; off a terminal it exits 2 unless you pass --trust-file. When an environment or saved key would be sent to the file’s llm_config.url, rax exits 2 and names the endpoint; --allow-file-endpoint accepts it. See Files that run commands and The file’s model endpoint.
  • An imported agent file cannot turn on telemetry or point Cortex reporting at its own URL. loadAgentFile() and agentConfigFromAgentSpec() leave out an uploading reactiveIntelligence.telemetry and an observability.cortex with a url, and list them in the new droppedTelemetry field. Pass allowTelemetry: true for a file you trust. rax prints one line per left-out setting and keeps them only with --trust-file; Cortex import lists them in its notes and never keeps them. Apps that import configs of their own can call the same rule: dropUntrustedTelemetry, telemetrySettingsLeavingMachine and readAgentFileValue are exported from reactive-agents. See Telemetry and Cortex reporting.
  • rax mcp runs on the public login API. rax mcp login <name> records the server name with the login, and rax mcp status shows that name plus a Status line (signed-in or expired). status skips stored records that hold no tokens (for example, only a registered client). --scope "a b" is sent as two scopes. Flags are unchanged, and tokens are never printed. See rax mcp.
  • RA_MCP_ALLOWED_HOSTS. rax serve --protocol mcp reads a comma-separated list of hostnames accepted in the Host header. A wildcard bind (RA_MCP_HOST=0.0.0.0 or ::) needs it for DNS-rebinding protection; without it rax serve exits 2 and names the variable. --transport stdio runs through agent.serveMCP({ transport: 'stdio' }), so stdio and HTTP hosts share one executor and decline message. See rax serve.
  • rax ps and rax attach read REACTIVE_AGENTS_RUNS_DIR. They find runs under that directory when it is set (the same <dir>/<agentId>/runs.db layout the runtime writes), as well as ~/.reactive-agents. See rax ps.
  • Missing keys are caught early. The missing-key error of rax run and rax serve (exit 2) names both fixes: export <ENV>=<your-key> and rax keys set <provider>. rax serve checks for the key before it starts instead of failing on the first request. See How rax picks a key.
  • rax run workspace and safety flags. --workspace, --workspace-context, --terminal, --allow-command and --approve ask|deny each map to one builder option and override the agent-file field they shadow, keeping the file’s other fields. A flag counts as your consent, so it needs no --trust-file. See Workspace, terminal and approval flags.
  • First-run fixes. rax demo, rax bench and rax eval with --help print help and run nothing (demo --help used to run the demo). rax --help lists commands that work from an npm install with no key, rax create agent --recipe generates agents with built-in tools, and rax init rejects a name that starts with -. See CLI.
  • rax-diagnose names more causes. cause reports ungrounded-success (no-action or action-failed) for a run that reported success while its tool results show the requested change was never made, including changes outside a file such as a page or an issue; attribute reports harness:ungrounded-success. attribute names harness:answer-turn-tool-call when the model spent the exit gate’s tool-free answer turn on a tool call. A run paused for approval or an answer is paused and counts as not failed. A user stop is user-stop/stop-requested, an abstention after the shell policy refused every call is tool-failure/policy-denied, a plan-mode run the give-up gate failed is plan-posture-veto/give-up-gate, a tolerated partial is success-with-warning/tolerated-partial, and a model’s fabrication veto after an earlier iteration cap reads verifier-reject instead of budget-cap. Over 1,094 recorded Cortex runs, unattributed failures fell from 86 to 16. See rax-diagnose.
  • The docs MCP server answers less, and better. It indexes only runnable examples, applies a relevance floor with a typo fallback, and tags docs links with ?utm_source=docs-mcp (it still makes no network request). Each page carries its kind and sidebar group: search_docs takes docType, the new list_docs browses by group or kind, and release notes stay out unless asked. The version result has docsUrl in place of docsBaseUrl. See Use the docs MCP server.

  • Node prints no SQLite warning. Opening a database on Node no longer prints the SQLite ExperimentalWarning; other warnings still print.

  • Replay is more faithful. The stop reason is carried on the stream path, and replayed tool-call ids are unique per run.

  • Answers without a named format are prose. When the request names no output format, the final answer’s prompt asks for clear natural language, so the model no longer echoes raw tool JSON. Requests that name a format (table, markdown, JSON, CSV, code, list) keep it. See Structured Output.

  • Format and intent read the current turn only. Output-format and task-intent detection read only the current user turn, so a chat turn after a history that mentions “in JSON” is no longer forced into a JSON answer. See Chat and sessions.

  • Built-in tool schemas need no repair. A default withTools agent no longer logs tool-schema-repaired toolName=file-write on its first run, and defineTool object parameters no longer trigger the warning either. See Custom Tools.

  • Provider log lines go to stderr. The tool-schema-repaired warning and the Ollama streaming path’s content-part-degraded warning print as a logfmt line on stderr. They used to go through console.log, which broke piped output and MCP stdio serving. See Serve an agent over MCP.

  • No false durable-run warning. .withDurableRuns() without .withReasoning() no longer warns that the run will not checkpoint. Every run goes through the kernel, so those runs checkpoint and resume like any other. See Durable Execution.

  • rax run < task.txt reads the file. With stdin redirected from a file, rax run read an empty task under Bun and exited 2. See rax run.

  • A failed MCP connect’s cause chain is redacted the same way as its message, and isHttpsOrLoopback returns false for a string that is not a URL and counts http://[::1] as loopback. See Connection failures.

  • MCP tools keep their full input schemas. Each parameter reaches the model as the server declared it: array item objects, nested properties, enum, anyOf/oneOf and defaults. Before, only name, type, description and required were kept, so Notion’s notion-create-pages pages showed as string[] and models sent strings. $ref into the root $defs or definitions is inlined at its first use (later uses point to it), so no $ref reaches a provider, and a tool whose parameter schemas still exceed 16,000 JSON characters is cut from its deepest level up; validation still uses the full shape. The validator rejects a non-object element in an array of objects and names its index. On compact profiles, nested descriptions are removed and the shape is kept. See MCP Tools.

  • Gemini tool schemas are sanitized. Schemas sent to Gemini keep only the fields its Schema accepts; propertyNames, patternProperties, $ref, if/then/else, not and additionalProperties are dropped at every depth, oneOf becomes anyOf, allOf is merged, a string const becomes a one-value enum, and type: "null" becomes nullable. Before, one such keyword (the Notion MCP server’s propertyNames) failed every request with HTTP 400. Other providers are unchanged. See LLM Providers.

  • Text-parse models execute their tool calls. A provider that reports no native tool calling (such as qwen2.5-coder:7b on Ollama) gets the kernel’s tool-call resolver too, so a printed <tool_use> call is parsed against the run’s tools and executed, and the markup is dropped from the answer. A malformed call gets a reprompt. Shell refusals now read one effective allowlist, so they no longer suggest xargs when it is not granted or list a granted command as opt-in. See Reasoning.

  • Generation loops fail honestly. The always-on output-not-degenerate-repetition verifier check fails an answer of 300+ words when 90% or more of its 8-word runs repeat earlier text, scored on the whole answer and on its last 1,000 words. A max_tokens retry gets 4 times the cap that truncated (at most 64,000) instead of a flat 64,000. Found when qwen2.5-coder:7b repeated one block for 13,521 tokens and the run reported success. See Verification.

  • recall reads. recall(key, maxChars: N) returns the first N characters of the entry, not a 200-character preview. A section read without key returns the entry list with a hint that shows the call with key; content without key is still an error. See Input Validation.

  • Runs that still produce evidence are not stopped early. The low-delta guard and the reactive-intelligence early stop near the iteration cap read one check: new substantive evidence in the current or the previous iteration. A real stall still ends the run early. See Reactive Intelligence.

  • Plan runs. A plan-mode run is no longer failed as an abstention for having no tool evidence; a plan-mode answer that claims an action on a harness-forced stop is still dropped. A plan-execute step ends on the model’s answer through the exit gate, not when every listed tool has succeeded once, so a step that looks up five cities one call at a time no longer stops after the first. See Plan, then execute.

  • Many tools on a small window. History compaction sizes the thread against tool schemas as they ship on the wire (it subtracted the internal JSON, 6.5-8.6 times larger, and dropped turns early), and each dropped tool result leaves a one-line digest so the model does not re-run the tool. Under disclosure: "auto", a change request’s named write tool and the same MCP server’s read tools ship on turn 1, index entries ship as callable stubs on native function calling, the agent’s own tools always ship before MCP tools, and a run whose named write never succeeded no longer ends success because a different write did. See Disclosure.

  • Channel triggers. A .withChannels() gateway without routes runs one turn per inbound message (a native adapter’s message also ran a second chat turn, without the trigger’s persona), and trigger agents receive the whole persona. Every channel-routed agent gets one Environment: line asking it to say what it is about to do before using tools, so the narration ack has text to send. See Acknowledging slow turns.

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.