v0.19 release details
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.
Harness and strategies
Section titled “Harness and strategies”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
abstainedwith the model’s own words, including when the decline came in the same turn as a call a guard dropped. Before, it endedfailedwith “stopped before the model wrote a final answer”.actOrAnswerno 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
failedwithStrategy execution failed (<strategy>): <message>onerror, keeping the run’s steps and spend.rax-diagnosenames itstrategy-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
unknownon 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 fromreactive-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 withrepetitionBackstop: { 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 acthooks fire once per tool call before any call of the turn runs, on every path;after actandobservehooks 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
GuardFiredEmittedevent withoutcome: "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.configrecords 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 onecapability-resolvedevent naming where its model’s limits came from. - Structured strategy steps.
ReasoningStepCompletedcarries an optionalstructuredpayload 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/observemoves 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 omitllm.estimated_cost_usdand spans carryllm.price_source. See OpenTelemetry Tracing.
Costs and models
Section titled “Costs and models”The headline cost and model changes are on What’s New. Also in this release:
- Pricing fixes. A failing
withDynamicPricingfetch no longer failsbuild()(unlesswithStrictValidation()); it falls back to yourwithModelPricingrows 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 isgemini-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 leadingthoughtline no longer prefixes answers. - MCP output schemas reach the model. A tool with an
outputSchemagets a compactreturnType, which code-action shows asReturns: <type>. code-executeretry guidance. A call whose code never ran (unsupported language, shell input, syntax error) says how to retry, with a runnable example.
CLI and terminal output
Section titled “CLI and terminal output”raxruns on Node 22.5+ without Bun. The binary’s shebang isnode, sonpx @reactive-agents/cli demoworks on a Node-only machine;init,run,playgroundanddemorun on Node, and Node’s SQLite notice no longer prints on every command.rax cortexandrax examples suite|demostill need Bun: they re-run under Bun when it is onPATH, otherwise print one “needs Bun” line. Bun stays recommended.rax runfixes.--toolsenables the built-in tools again,--verboseshows phase lines when piped,--quietprints only the answer on a terminal too, and--streamno longer draws the status line over streamed tokens. Scaffolded projects treat the.env.exampleplaceholder 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.mdpointing at the current docs and skills. Templates print a failedbuild()orrun()as oneError:line and exit 1, the default Ollama model isqwen3:4b,--provider=xaiwritesgrok-4.7, and an unknown--template,--provideror--pmexits 1 with the valid values. - Help text tells the truth.
rax helplists the realrax inittemplates and everyrax diagnosesubcommand,rax cortex --helpsays a non-loopback--hostneedsCORTEX_TOKEN, andNO_COLORturns off allraxcolor. - 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 thetkey works. - One error for a bad key. An uncaught
run()failure prints one line (AgentRunError), not three stacked frames;err.causekeeps the detail, andRA_DEBUG_ERRORS=1shows the full stack. rax-diagnosewithout a run of your own.@reactive-agents/diagnoseshipsexamples/failed-run.jsonl.causeandattributenow 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 replayshows the run cost. Seerax-diagnose.
Gateway and channels
Section titled “Gateway and channels”- 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
ChannelAdaptercontract 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 byRouteSpecrules, 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/newor/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-deliveryid, and the A2A server answers malformedmessage/send,message/stream,tasks/getandtasks/cancelparams 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.
Security hardening
Section titled “Security hardening”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 sdkgenerates requiresAuthorization: Bearer <RAX_API_KEY>on/chatand/chat/stream. WithRAX_API_KEYunset, 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,/readyand the agent card stay open. - Cortex off loopback needs
CORTEX_TOKEN. Binding withCORTEX_HOST=0.0.0.0now 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-directoryandgreprefuse credential paths inside the file root (.env,.env.*,.ssh,.cortex,secret.key,provider-keys.json, …), including through symlinks. Hosts opt out explicitly withwithSecretPathAccess. - Shell escapes closed.
shell-executeparsessedandawkprograms and refuses any construct that can run commands or write files, refusessort --compress-program, and path-checks option values (sort --output=/tmp/x). File tools resolve symlinks before confining a path, andgrepglobs can no longer leave the file root. - Empty webhook secrets fail closed. An empty or whitespace webhook or Telegram
secretTokenis treated as unset instead of accepting any signature. - SSRF guard covers more address forms.
assertPublicUrlnow applies the private, loopback and metadata rules to IPv4-mapped, IPv4-compatible, NAT64 and 6to4 IPv6 forms, and blockslocalhost.and*.localhost.http-getand A2A agent-card discovery connect to the address they validated (fetchPinned), closing the DNS-rebinding gap. - A2A client.
auth: { type: "apiKey" }sendsAuthorization: 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 matchesgit -C dir push,env git push,xargs,timeoutandsudo -u x.shell-executeforwardsghandgwscredentials only when that command is granted. - Owner-only file modes. New trace, log and exporter directories are
0700and files0600. The same holds for durable-run storage (runs.db), memory directories, the memory SQLite file andmemory.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,Basiccredentials andpassword=/secret=/token=assignments. - Dependencies.
effectis pinned to 3.22.4 workspace-wide (AsyncLocalStorage advisory) and@modelcontextprotocol/sdkis^1.32.2.client_credentialsandprivate_key_jwtMCP auth accept an optionalexpectedIssuer. - Approval gates cover late tools.
.withApprovalPolicy()now gates MCP tools the server marks as writing (destructiveHint: trueorreadOnlyHint: false),.withAgentTool()sub-agents andagent.registerTool()tools withrequiresApproval: true. Unannotated MCP tools stay ungated unless named intools("server/tool") or matched byrequireFor. A server’s write hint beats an operatorreadOnlylisting. before acthooks 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 asrequireApprovalForcould 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 deployscaffolds write a.dockerignorefor.gitand.env*; MCP docker HTTP mode binds127.0.0.1;http-getdrops credential headers on cross-origin redirects.
Cortex
Section titled “Cortex”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)orprice 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
/approvalsin 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_DIRmoves 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=memoryrestores 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
@filereaches 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(inapps/cortex) runs a second, detached instance;stopends only the processes it started. See Local setup recipes.
Restart Cortex after upgrading to pick these up.
Install
Bun (recommended)bun add reactive-agentsNode 22.5+npm install reactive-agentsGet notified on new releases