v0.18 release notes
Archived release notes. The latest release and what is on dev are on What’s New.
v0.18.0 - Workspaces, skills, and a single run scope (November 2026)
Section titled “v0.18.0 - Workspaces, skills, and a single run scope (November 2026)”This release makes a run’s state live in one place, so workspace, skills, tool evidence, and documents follow the run instead of leaking between runs or agents. It also adds images to more providers and gives tools and sessions explicit controls.
Workspaces and per-run scope
Section titled “Workspaces and per-run scope”.withTools({ workspace: "/abs/path" })sets an agent’s working directory, andagent.run(task, { workspace })overrides it for one run (alsorunStream()).- Gateway runs (heartbeat, cron, channel events) honor the caller’s file root, the same as
run(). - Each built agent owns its document store:
.withDocuments()andagent.ingest()documents are searched only by that agent. - Meta-tool stores (scratchpad, checkpoints, discovered tools) are per run, not process-wide.
Skills
Section titled “Skills”.withSkills()no longer needspaths. With no arguments it discovers<workspace>/.agents/skills,<workspace>/.<agentId>/skills, and<workspace>/.claude/skills.activate-skillloads a discovered skill mid-run.{ name }returns the body, kept through context compaction;{ name, file }loads a supporting file.
Tools and tool control
Section titled “Tools and tool control”.withTools({ maxCallsPerTool: { "web-search": 3 } })caps calls per tool per run. Calls past the cap are not run. Sub-agents inherit the cap..withTools({ riskLevels: { "file-read": "low" } })overrides any tool’s risk level, built-ins included.- Images returned by tools (for example MCP screenshots) reach the model as images. MCP results keep image, audio, and resource items instead of dropping them.
file-writesaves a.jsonfile that has unescaped quotes inside string values, instead of failing it.
Providers and requests
Section titled “Providers and requests”- Images in messages now reach OpenAI, LiteLLM, Ollama, and Gemini models. Before, those providers silently dropped image blocks.
CompletionRequesttakestoolChoice: "required"(at least one tool call) andthinking?: booleanto override thinking for one call. See Providers.
Chat and durable runs
Section titled “Chat and durable runs”- Workspace-scoped coding agents: see the workspace and skills cookbook.
ChatEngineis one engine behindagent.chat(),agent.session(), and the gateway. The direct path applies the persona, and history windowing is on by default.session.runStream()streams a conversational turn.- Session and gateway ids are canonical (
sess_agent_*,sess_session_*,sess_gateway_*). Legacy gateway chat keys still read via fallback. .withDurableRuns()records side-effecting tool results, so a crash after a tool succeeds but before the next checkpoint no longer repeats that effect silently.
Harness
Section titled “Harness”.withHarness({ actOrAnswer })is a new opt-in switch (true,"auto", or"proactive") for act-or-answer on native function calling. Default off.- Plan-execute and blueprint/code-action runs are held to the files their task names, the same delivery check as the main loop.
- When a provider reports the prompt is over the context window, the agent compacts to half the window and retries once.
Diagnostics
Section titled “Diagnostics”rax-diagnose cause <run>classifies a failed run’s cause with a closed-unioncauseandconfidence;rax-diagnose attributeshares that taxonomy and tells you whether a harness change actually ran.
Durable tool effects: what a resume does with a side effect
Section titled “Durable tool effects: what a resume does with a side effect”Checkpoints alone leave a window: a tool can succeed after the last checkpoint and before the next one commits. With .withDurableRuns(), every tool call now writes a run_effects row before it runs (executing) and the terminal outcome after it finishes. On resumeRun():
- Succeeded: the stored result is injected. The tool does not run again.
- No terminal row (crashed mid-call): the call is replayed, and the trust receipt names it
ambiguous-then-replayed.
The framework does not give tools an idempotency-key API. For external systems (payments, email, webhooks), key idempotency in the tool itself, because a crash can leave the outcome unknown. See Durable execution.
Live checklist from the run contract
Section titled “Live checklist from the run contract”Every run now projects a checklist from the contract and ledger facts the terminal gate judges. Plan-execute streams each plan step as a checklist row, with no todo tool call. Rows can show as done from ledger evidence (source: "inferred" with evidence). The checklist is advisory: the exit gate, not the checklist, decides completion.
Web search: Keenable joins the provider chain
Section titled “Web search: Keenable joins the provider chain”Thanks to @KGKallasmaa, who contributed the Keenable provider (PR #289), and to the maintainers who re-landed it after a temporary revert (PR #290).
web-searchtries providers in order: Tavily, Brave, Serper, Keenable, then DuckDuckGo instant answers (no key needed).- Set
KEENABLE_API_KEYto enable it. Without it, Keenable is skipped and the chain behaves as before. - A Keenable failure (for example a 401) is recorded in the attempt log and falls through to the next provider. It does not fail the search.
Setup and key names: Tools → Web Search Configuration.
Public kernel and trace APIs
Section titled “Public kernel and trace APIs”@reactive-agents/reasoningexportsmakeKerneland thePhase/Guardtypes, so custom strategies can extend the composable kernel without deep imports.@reactive-agents/traceexportsanalyzeCause(trace)andattributeFailure(trace), the same classifiersrax-diagnoseuses, for use in your own eval harness.- A deterministic grader’s verdict is recorded as an
eval-gradedtrace event, so a run that ends cleanly but gives a wrong answer is labelled as such.
Contributors
Section titled “Contributors”Thank you to everyone who contributed to v0.18.0. External contributions in this release:
- @KGKallasmaa: Keenable web-search provider (PR #289).
Also in v0.18.0
Section titled “Also in v0.18.0”Added
toolContent(parts)(from@reactive-agents/tools): a tool returns typed image, audio, or file parts that reach the model. See Tools.- Typed provider errors:
LLMError,LLMRateLimitError(retryAfterMs),LLMContextOverflowError(tokenCount,maxTokens,errorClass). See Providers. CompletionRequest.toolChoice: "required"and per-requestthinking. Streams emitthinking_deltafor reasoning models. See Providers.completeStructured()reports each native attempt (StructuredAttemptReport), andllm-exchangetrace events show what happened inside the call.- Harness switch
inputCoverage(opt-in, off by default, orRA_INPUT_COVERAGE=1): when a task names inputs, each one must be read before the run finishes. - Harness switch
actOrAnswer(true,"auto", or"proactive") for native function calling. Default off. ContextPressureevent per model call (tokensUsed,tokensAvailable,utilizationPct,level). See Streaming.result.metadata.runId,inputTokens,outputTokens,llmCalls. See Observability.- Core helpers
mediaPartLabelandsummarizePartgive one spelling for non-text parts shown as text. - A
readbuiltin preset (file-read,list-directory,grep) for read-only filesystem access:.withTools({ builtins: "read", workspace }). .withTools({ riskLevels })overrides a tool’s risk level by name, including built-ins. Low-risk tools are the only ones the text parser binds from prose.rax eval gate --activations <n>,rax cortex --host <addr>(orCORTEX_HOST), andrax serveacceptsgroqandxai. See CLI.- Cortex chat:
/goal,/plan,/loop,/schedule,/agent on, approval cards and reply boxes in the thread, a context meter, and a tool disclosure picker. See Cortex. rax initdelegates project generation tocreate-reactive-agent. Itswith-approval-gatestemplate prompts throughnode:readlineand denies when there is no TTY.
Changed (check these after upgrading)
- A commanded
.withModel({ temperature })reaches the LLM request verbatim on every strategy. - Tool caps hold on every strategy, count once per run, and hold inside a single turn. Sub-agents inherit them.
- Required tools are no longer capped at their required count plus two by default.
- Debug log lines (for example “Direct strategy completed”) no longer print on a default run.
- Ollama
completeStructured()defaults thinking off unless you set it. Ollamastream()honorsmaxTokensas a hard output cap for thinking models. - OpenAI
gpt-5*ando<digit>models sendmax_completion_tokens. - Traces and checkpoints store media summaries, not bytes. The inline-media stub reads
[image omitted from record: ...]. shell-executeno longer pointsHOMEandTMPDIRat a caller-supplied directory.terminal.timeoutMsabove 30 seconds is honored.code-executerefuses shell input (for examplebun testorls -la) and says so. It no longer runs it..withTools({ disclosure: "discover" })loads tools on demand, as documented.build()andbuildEffect()warn when the provider silently defaults to"test".file-writeaccepts a JSON value ascontent, and prose writes no longer land as literal\ntext.- The
dedupnote and guard warnings no longer count as progress, and a blocked call no longer counts as “called” or “succeeded”.
Fixed
- Security: a
.withAgentTool()sub-agent now runs under the parent’s approval policy, task contract, fabrication guard, and grounding. Before, it ran with none of them. - Sub-agents that crash add their full spend to the parent run, and their LLM calls are counted.
claude-haiku-5-5no longer fails with “temperature is deprecated for this model”.- Stream-drop
EOFis classified as transient and retried. - A run that stops after effort is honestly labelled, and a give-up statement no longer reports
success: true. - A run whose required tool failed is no longer counted as done (only a successful call counts).
- A run that writes 2 of 3 named files is refused. Template paths such as
out-N.txtare not treated as literal deliverables. - Git, gh, and gws CLI tools keep partial output when they hit the 30-second timeout.
- The exit gate’s decision is final for a turn: a run it ended cannot be reopened.
rax-diagnose causeandattributelabel aborted runs, stop-guard terminations, andeval-gradedresults more accurately.
Install
Bun (recommended)bun add reactive-agentsNode 22.5+npm install reactive-agentsGet notified on new releases