Skip to content
Star33Playground

v0.19 release details

Last updated 2026-11-19 · fa5147d9f

The headline, new defaults, breaking changes and the upgrade checklist for v0.19.0 are on What’s New. This page carries the harness, CLI, gateway, security hardening and Cortex detail for the same release.

These change how a run ends or what the model sees, with no code change. Every switch named here is a .withHarness() key; see Harness Control.

Honest endings

  • An honest decline is an abstention. When a required tool failed on every call (permanent errors such as ENOENT or 404 settle after one) and the model says it cannot answer for lack of input, the run ends abstained with the model’s own words, including when the decline came in the same turn as a call a guard dropped. Before, it ended failed with “stopped before the model wrote a final answer”. actOrAnswer no longer forces another call of a tool the model has declined over.
  • A strategy body that fails ends like any other run. A failed direct model call, an unparseable plan or a refused configuration ends failed with Strategy execution failed (<strategy>): <message> on error, keeping the run’s steps and spend. rax-diagnose names it strategy-error.
  • A run stopped before any answer says it was stopped on request instead of “no grounded answer”.
  • Fabrication checks. A bare time projection from printed timings (“100000 items takes 650 ms”) ships with an advisory warning instead of failing; invented before/after or percent benchmark figures fail.
  • Advisory verifier verdicts log at debug level, labelled “Advisory check on the model’s answer (answer kept)”, so a kept answer prints no warning line.

Multi-pass strategies keep their work

  • Every pass runs on the run’s model settings. Reflexion passes, tree-of-thought branches and plan-execute steps ran as provider unknown on the mid profile (a 32,768-token window and a smaller think budget). They now get the run’s provider, context profile, calibration mode and iteration budget.
  • The last tool batch runs. A pass that stops on its own iteration cap runs the calls its last think proposed while the run still has budget, instead of dropping them. When those results arrive after the draft was written, one bounded synthesis call writes the answer from them (recorded as metadata.unreadResultsSynthesis).
  • Stored results survive passes. A pass seeded with an earlier pass’s thread resolves its stored tool results, so a large result is not reduced to a preview.
  • Reflexion. The final pass decides the status, so an earlier capped pass no longer vetoes a verified answer. The generate pass gets half the run’s iteration budget. A failed final model call no longer ships a draft the critique rejected. The “already completed” list pairs each call with its own result and marks refused calls as not run.
  • code-action. A program that returns only an { error } object, or whose every tool call failed, is a failed check, not a success. MCP results arrive decoded from JSON, a repair prompt shows each result’s shape, an object result is written up in the form the task asked for, and a repeated sandbox error stops the run early. The approval-policy refusal applies only when a gated tool is callable; codeActionApprovalConflict (exported from reactive-agents) answers the same question before a run.

Tool-call guards

  • The repetition guard watches information, not counts. Read-only queries with new arguments keep running while their results change; the guard steps in after 2 empty, failed or repeated results, with a backstop of 0.75 of maxIterations (iterations’ worth of calls). Tune it with repetitionBackstop: { maxCalls?, iterationFraction? }.
  • Duplicate calls. A refusal names the first listed input not yet read, or the paired output owed. A round whose calls were all refused as duplicates spends no iteration (at most 3 in a row). A write paired with a read in the same round waits for the read.
  • Hooks. before act hooks fire once per tool call before any call of the turn runs, on every path; after act and observe hooks see the round’s results.
  • The between-turn environment notice is shown at most once per run, not once per pass.
  • Synthesis keeps your format. It names an output format only when the task does. Every act-phase guard refusal emits a GuardFiredEmitted event with outcome: "block".

Opt-in switches and traces

  • leanFinalTurn (off): once declared tool work is done, the answer call ships with no tools and thinking off. Its ablation was a reject.
  • planBudget (off): a plan-seeded run’s iteration bound grows to fit the plan, in two stages, the second only after progress. Its ablation measured +15 to 36% tokens with no accuracy lift. Cortex’s Plan budget switch now shows off too.
  • Traces name what ran. run-started.config records every resolved harness key and the calibration a run resolved, field by field with its source. .withCalibration("skip") now reaches every pass of every strategy, and each run records one capability-resolved event naming where its model’s limits came from.
  • Structured strategy steps. ReasoningStepCompleted carries an optional structured payload per strategy (tree-of-thought nodes and path, code-action code and result, reflexion critiques, adaptive’s choice, plan steps), so a UI can draw a strategy without parsing text.
  • @reactive-agents/observe moves to OpenTelemetry 2.x (@opentelemetry/sdk-trace-* ^2.6), matching @reactive-agents/observability, so a clean install resolves one copy of each OTel package. Unpriced calls omit llm.estimated_cost_usd and spans carry llm.price_source. See OpenTelemetry Tracing.

The headline cost and model changes are on What’s New. Also in this release:

  • Pricing fixes. A failing withDynamicPricing fetch no longer fails build() (unless withStrictValidation()); it falls back to your withModelPricing rows and the bundled snapshot, and your rows now win over remote rows. .withCostTracking() records the real input and output token split. Cost routing reads the PriceBook (its own price table is gone), and its Gemini light tier is gemini-2.5-flash. See Cost Tracking.
  • Gemini fixes. Gemma models on the Gemini provider work again (the thinking field is sent only to models that support thinking), Gemini 3 tool replays keep their thought_signature, and a stray leading thought line no longer prefixes answers.
  • MCP output schemas reach the model. A tool with an outputSchema gets a compact returnType, which code-action shows as Returns: <type>.
  • code-execute retry guidance. A call whose code never ran (unsupported language, shell input, syntax error) says how to retry, with a runnable example.
  • rax runs on Node 22.5+ without Bun. The binary’s shebang is node, so npx @reactive-agents/cli demo works on a Node-only machine; init, run, playground and demo run on Node, and Node’s SQLite notice no longer prints on every command. rax cortex and rax examples suite|demo still need Bun: they re-run under Bun when it is on PATH, otherwise print one “needs Bun” line. Bun stays recommended.
  • rax run fixes. --tools enables the built-in tools again, --verbose shows phase lines when piped, --quiet prints only the answer on a terminal too, and --stream no longer draws the status line over streamed tokens. Scaffolded projects treat the .env.example placeholder as a missing key and print the “set <KEY>” message instead of a provider 401. See CLI.
  • Scaffolds are ready for coding agents. Every new project has an AGENTS.md pointing at the current docs and skills. Templates print a failed build() or run() as one Error: line and exit 1, the default Ollama model is qwen3:4b, --provider=xai writes grok-4.7, and an unknown --template, --provider or --pm exits 1 with the valid values.
  • Help text tells the truth. rax help lists the real rax init templates and every rax diagnose subcommand, rax cortex --help says a non-loopback --host needs CORTEX_TOKEN, and NO_COLOR turns off all rax color.
  • The status line stays bounded. A terminal that reports 0 columns or 0 rows gets plain lines only; a narrow terminal clips the status line to one row. The [t: collapse] hint shows only when the t key works.
  • One error for a bad key. An uncaught run() failure prints one line (AgentRunError), not three stacked frames; err.cause keeps the detail, and RA_DEBUG_ERRORS=1 shows the full stack.
  • rax-diagnose without a run of your own. @reactive-agents/diagnose ships examples/failed-run.jsonl. cause and attribute now name strategy errors (strategy-error), split trace files holding several runs (--segment=<n|all>), and read a status override on a verified answer as a mislabel, not a budget cap. rax-diagnose replay shows the run cost. See rax-diagnose.
  • Durable schedules, ingress server and inbound queue. agent.schedules(), restart catch-up for cron, a webhook and channel ingress server, and a queue so overlapping events are not dropped. See Gateway.
  • Canonical ChannelAdapter contract with native Signal and Telegram bot adapters. See Messaging Channels.
  • Channel routing. .withChannels({ adapters, routes, agents }) opens each channel once and routes conversations to any agent by RouteSpec rules, fail-closed per route. Non-owner senders get a read-only tool surface (senderTools, a tool list, not a prompt). Routes can acknowledge slow turns (fixed text or model-written), owners can send /new or /reset, and an opt-in SQLite inbox and outbox keep dedupe, turn caps and pending replies across a restart. See Routes and Reliability.
  • GitHub webhook replay dedupe and A2A params validation. The GitHub adapter rejects a replayed x-github-delivery id, and the A2A server answers malformed message/send, message/stream, tasks/get and tasks/cancel params with JSON-RPC -32602. See A2A Protocol.
  • Deploy hardening. Validated agent names, always-on daemon settings per target, and Cloud Run IAM authentication by default (see the breaking changes on What’s New). See rax deploy.

Behavior changes first. Each one can break an existing setup. See Security Hardening for the full trust-boundary summary.

  • SDK server needs a bearer key. The server rax deploy --mode sdk generates requires Authorization: Bearer <RAX_API_KEY> on /chat and /chat/stream. With RAX_API_KEY unset, a random key is generated and printed once at startup. Bodies over 1 MiB are rejected and the wildcard CORS header is gone, so browser apps on other origins need a gateway in front. /health, /ready and the agent card stay open.
  • Cortex off loopback needs CORTEX_TOKEN. Binding with CORTEX_HOST=0.0.0.0 now refuses to start without it. Cross-site requests (Sec-Fetch-Site: cross-site) are refused. See Settings and keys.
  • File tools refuse secret paths. file-read, file-write, file-edit, list-directory and grep refuse credential paths inside the file root (.env, .env.*, .ssh, .cortex, secret.key, provider-keys.json, …), including through symlinks. Hosts opt out explicitly with withSecretPathAccess.
  • Shell escapes closed. shell-execute parses sed and awk programs and refuses any construct that can run commands or write files, refuses sort --compress-program, and path-checks option values (sort --output=/tmp/x). File tools resolve symlinks before confining a path, and grep globs can no longer leave the file root.
  • Empty webhook secrets fail closed. An empty or whitespace webhook or Telegram secretToken is treated as unset instead of accepting any signature.
  • SSRF guard covers more address forms. assertPublicUrl now applies the private, loopback and metadata rules to IPv4-mapped, IPv4-compatible, NAT64 and 6to4 IPv6 forms, and blocks localhost. and *.localhost. http-get and A2A agent-card discovery connect to the address they validated (fetchPinned), closing the DNS-rebinding gap.
  • A2A client. auth: { type: "apiKey" } sends Authorization: Bearer <apiKey> (the scheme the built-in server accepts), requests have a timeout and response size cap, and JSON-RPC calls no longer follow redirects.
  • Approval rules see through wrappers. A "git push" rule still matches git -C dir push, env git push, xargs, timeout and sudo -u x. shell-execute forwards gh and gws credentials only when that command is granted.
  • Owner-only file modes. New trace, log and exporter directories are 0700 and files 0600. The same holds for durable-run storage (runs.db), memory directories, the memory SQLite file and memory.md, scratchpad spill files and .cortex/. Existing files keep their current permissions. Agent ids are contained to one path segment in the durable-runs and memory directories.
  • Redaction covers modern key formats. Traces, logs and OTel output redact sk-proj- keys, OpenRouter, fine-grained GitHub, Slack, Stripe, Groq and xAI keys, PEM private-key blocks, Basic credentials and password= / secret= / token= assignments.
  • Dependencies. effect is pinned to 3.22.4 workspace-wide (AsyncLocalStorage advisory) and @modelcontextprotocol/sdk is ^1.32.2. client_credentials and private_key_jwt MCP auth accept an optional expectedIssuer.
  • Approval gates cover late tools. .withApprovalPolicy() now gates MCP tools the server marks as writing (destructiveHint: true or readOnlyHint: false), .withAgentTool() sub-agents and agent.registerTool() tools with requiresApproval: true. Unannotated MCP tools stay ungated unless named in tools ("server/tool") or matched by requireFor. A server’s write hint beats an operator readOnly listing.
  • before act hooks can stop a parallel batch. With parallel batching on, the hooks used to fire after the batch’s tools had run, so a killswitch such as requireApprovalFor could not block them. They now fire once per call, with the healed tool name, before any call of the turn runs, and an abort stops the whole turn.
  • Smaller fixes. A2A and channels bound request bytes and task and session stores; rax deploy scaffolds write a .dockerignore for .git and .env*; MCP docker HTTP mode binds 127.0.0.1; http-get drops credential headers on cross-origin redirects.

Chat composer with a Config popover, /mcp and /btw commands, a Context tab (active skills and recalled memories), judgments, rich answers, @ file tags, attachments, and voice (dictation, read aloud, voice mode). See Cortex.

  • A card for every reasoning strategy. Chat shows a live card for the running strategy: the ReAct loop per iteration, tree of thought as a tree with pruned and selected nodes, reflexion rounds with critique verdicts, code action with code, output and verification, adaptive’s choice and why, and plan strategies with per-step retries, patches and failures. The card stays on the turn, collapsed to one line, after it ends and after a reload, including turns resumed by an approval or Continue.
  • A Thinking pill. Reasoning leads each turn as a collapsible pill that streams live, and reasoning a model prints into its visible reply moves to the pill instead of reading as the answer.
  • Model prices and honest run costs. Model pickers show $in / $out per 1M, free (local) or price unknown, the model page has a Price section, and a provider’s list sorts by price. Run costs add only priced calls; a partial total reads as a lower bound (≥ $0.012). When a live model list fails, pickers show every known model with the reason, PriceBook-only ids under “Known models (not confirmed live)”.
  • Continue starts a linked run. Chat Continue, the Runs page “Can continue” strip and Resume of a crashed run start a new run marked “continued from” its parent, each with its own trace. Stop and Pause show at once, and editing right after a Stop no longer fails as busy.
  • How a run ended. The to-do outcome reads “To-do 3/5” with each harness-closed row’s evidence and an “Unresolved” list, an answer written from unread tool results says so, and a run the strategy accepted after a capped pass reads as completed.
  • Asks before risky tools by default. Writing files, running code and the full shell wait for your approval in chat and desk runs; gateway agents refuse them. Turn it off with Ask before risky tools in Lab Tools or /approvals in chat. The framework’s own default is unchanged. See Approvals and questions.
  • One command surface. Typing / and the Config button open the same anchored list, with each setting beside its slash command and current value. Esc goes back one level, then closes. See Chat and composer.
  • One styled Select. Every pick list uses it: search from nine options, grouped options, keyboard support. The Beacon settings panel closes on an outside click or Esc.
  • Tagged files no longer flood goals: at most 8 deliverable goals.
  • Live goal output. Goal segments, schedule fires and loop ticks stream into the open chat like a typed turn, and a reload reattaches. A picked file the browser can no longer read shows a “Not attached” toast. See Goals, plans and loops.
  • Channels and a Gateway tab. The Lab connects a saved Gateway process agent to Telegram, Signal or a signed webhook with encrypted write-only credentials, an access-control editor and Test connection, and a Gateway tab shows connection state and activity. See Gateway and channels.
  • Durable runs are on by default in Cortex. Chats, desk runs and gateway agents are built with durable runs unless you turn them off, so a Stop, a Pause or a crash leaves a run you can Continue without losing progress. The framework default stays off. Cortex uses the framework’s retention defaults (the newest 50 completed runs within 30 days), and REACTIVE_AGENTS_RUNS_DIR moves the run store. See Approvals and questions.
  • The channel hub survives a restart. The durable inbox, outbox and follow-up timers live in the Cortex database, so a redelivered message does not run twice and a pending reply is sent. Gateway metrics persist too. CORTEX_CHANNEL_INBOX=memory restores the in-memory hub.
  • Approvals. A shell command the tool would refuse is refused before Cortex asks, so you are no longer asked to approve a call that cannot run. Approve and Deny answer at once and the turn keeps streaming, and long parameters have Show full parameters (secrets masked). Tool arguments show while a call runs.
  • Chat file tags are pointers. A tagged @file reaches the agent as its path and size (files of 2 KB or less are still inlined), and Edit message restores the tag chips.
  • Beacon Field. Repeatable drag, arrow-key moves, the Board’s status filter and search, folding of sub-agents, richer nodes and a legend. The sonar rings are back on the Beacon hero.
  • Opt-in calibration in the Builder. Learned calibration and Community calibration switches under Reliability are off by default and write .withCalibration("auto", { learned, community }). The Model page shows spend and the model’s calibration, marked Shipped or Learned.
  • dev-stack start|stop|status. bun run dev-stack start --port 4399 --ui-port 4398 (in apps/cortex) runs a second, detached instance; stop ends only the processes it started. See Local setup recipes.

Restart Cortex after upgrading to pick these up.

Install

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

Get notified on new releases