NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Go modules, #58 by repository stars
Latest stable
v0.54.2
Last release 5 months ago
29 May 2026
Ships on a steady schedule
a new release about every 8 days
Most releases are documented
notes for 46 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
7 months old
147 releases · first in 2026
Drag across the ruler to compare, or tap a release to open it.
Headline: Project memory — drop a REASONIX.md in your project root and its contents are pinned into the immutable-prefix system prompt for every sessi
Headline: Project memory — drop a REASONIX.md in your project
root and its contents are pinned into the immutable-prefix system
prompt for every session in that directory. Persistent project
context (house conventions, domain glossary, gotchas the model keeps
forgetting) without eating per-turn context budget, and the prefix
cache stays warm as long as the file is stable.
src/project-memory.ts — readProjectMemory(rootDir),
applyProjectMemory(basePrompt, rootDir), memoryEnabled(). One
source, one mental model: REASONIX.md at the project root, read
once at session start, appended as a fenced "# Project memory"
block after the base system prompt. Truncates at 8 000 chars
(≈ 2k tokens) with a visible marker; .gitignore gets 2 000
because it's a constraint dump, memory gets more headroom because
it's deliberate instructions. Re-exported from src/index.ts for
library consumers.reasonix,
reasonix chat, reasonix run, and reasonix code all honor
the file. code resolves it against the rooted directory; the
others against process.cwd() at launch./memory slash command — prints the resolved file path +
full contents (or a how-to stub when absent), so you can verify
what the model is actually seeing without reading the system
prompt blob. Reminds you changes take effect on the next launch
or /new; the system prompt is hashed once per session to keep
the prefix cache warm.REASONIX_MEMORY=off|false|0 env opt-out — for CI or
intentional offline reproducibility. rm REASONIX.md is the
other opt-out.tests/project-memory.test.ts (+15) — absent / empty /
whitespace-only / normal / oversized file paths;
memoryEnabled env-value matrix; applyProjectMemory no-ops on
missing/disabled; determinism (identical input ⇒ identical
output, cache-prefix-safe); codeSystemPrompt stacks base →
memory → .gitignore in the right order when all three exist.tests/slash.test.ts (+4) — /memory prints the how-to when no
file, contents when present, "disabled" when env-off, "no root"
when memoryRoot is absent from the SlashContext. Registry
check updated to require /memory.Your coding agent can read these notes before it upgrades. Set up the MCP server →
One column per month.
Headline: Native run_command shell tool so the model can run its own tests and verify its work (Claude Code / Aider parity). 3-choice picker for every
Headline: Native run_command shell tool so the model can run
its own tests and verify its work (Claude Code / Aider parity).
3-choice picker for every unknown command — "run once", "always
allow in this project" (persists to ~/.reasonix/config.json), or
"deny". Plus a session picker on startup so reasonix code stops
silently resuming the last conversation, and a Windows backspace fix.
src/tools/shell.ts — run_command(command, timeoutSec?)
registered by default in reasonix code. Read-only / testing
commands (git status, ls, cat, grep, rg, npm test,
pytest, cargo test, cargo check, cargo clippy, go test,
deno test, bun test, ruff, mypy, npx tsc --noEmit,
npx biome check, language --version probes) auto-run. Anything
else goes through the ShellConfirm picker. 60s default timeout,
32k-char output cap. shell: false in the child_process spawn
so the model can't pipe / redirect / chain its way past the
allowlist.src/cli/ui/ShellConfirm.tsx — 3-option SingleSelect modal
that renders when the model asks to run a non-allowlisted
command. Borders + color so it's impossible to miss. Arrow-key
navigation; Enter confirms. No y/n hotkey — too easy to trigger
by accident mid-typing.src/cli/ui/SessionPicker.tsx — on reasonix chat /
reasonix code startup, if the session has prior messages, show
a 3-option picker: New (default, safer), Resume (continue
where you left off), Delete and start new. Flags --resume
/ --new bypass the picker for CI / muscle-memory.config.projects[<abs>].shellAllowed
stores prefixes the user approved via "always allow". On next
reasonix code in that dir they auto-run. Helpers
loadProjectShellAllowed / addProjectShellAllowed exported.key.delete=true and
key.backspace=false; the 0.4.15 cursor reducer split the two
and treated delete as forward-delete, which is a no-op when the
cursor is at the end of the buffer — so pressing Backspace did
nothing and Ctrl+Backspace (reported differently) was the only
way to delete. Now both flags collapse to backward-delete, plus
raw DEL (0x7f) and BS (0x08) bytes in key.input are honored as
backspace too.tests/shell-tools.test.ts (+27) — tokenizer (quoting, escapes,
unclosed-quote rejection); allowlist matching (exact / prefix /
whitespace normalization / extras); runCommand against real
child processes (stdout, stderr, cwd, timeout kill, output cap,
empty-command rejection); registry dispatch (auto-run, refusal
via NeedsConfirmationError, allowAll: true bypass);
formatCommandResult; NeedsConfirmationError name/message
invariants (no stale /apply-shell reference).tests/shell-confirm.test.ts (+4) — derivePrefix picks one or
two tokens based on known wrappers and normalizes whitespace.tests/config.test.ts (+3) — loadProjectShellAllowed defaults
to []; addProjectShellAllowed persists and dedups per-project;
ignores empty prefixes.tests/multiline-keys.test.ts (+2) — raw DEL/BS bytes are
treated as backspace; key.delete unified with key.backspace.Headline: Web search + fetch tools (on by default, zero configuration) plus real cursor editing in the prompt box (←/→, Backspace/Delete mid-string, m
Headline: Web search + fetch tools (on by default, zero configuration) plus real cursor editing in the prompt box (←/→, Backspace/Delete mid-string, multi-line ↑/↓ navigation).
← / → move the cursor one column (clamped to buffer).↑ / ↓ move across lines in a multi-line buffer, preserving
column when possible, clamping when the target line is shorter.Ctrl+A / Ctrl+E jump to start / end of the current line.Backspace deletes the char before the cursor; Delete
deletes the char under the cursor.Shift+Enter / Ctrl+J insert a newline at the cursor.↑ / ↓ only trigger prior-prompt recall when the buffer is
empty. A non-empty buffer keeps the arrows for cursor motion so
typed text isn't clobbered.Web search + fetch tools are registered by default on reasonix chat and reasonix code. The model calls web_search /
web_fetch on its own whenever a question needs fresher info than
its training data. Backed by Mojeek's public search page — no
API key, no signup. Same Cache-First + repair + context-safety
plumbing as every other tool.
Implementation note: the first cut of this feature used DuckDuckGo,
but a live probe from the dev machine confirmed DDG now serves
HTTP 202 anti-bot pages for every unauthenticated POST regardless
of UA. Mojeek is an independent-index engine that's been stable
against the same probe (3/3 success on three queries spaced 3s
apart). Real-browser User-Agent string avoids Mojeek's
fast-path scraper filter.
src/tools/web.ts — two functions + one registration helper:
webSearch(query, opts?) — fetches DDG's HTML endpoint, parses
ranked results (title + url + snippet). topK is clamped to
[1, 10]. Parser decodes DDG's uddg=<url> redirect wrapper and
common HTML entities.webFetch(url, opts?) — HTTP GET + HTML-to-text extraction
(scripts/styles/nav/footer/aside/svg stripped, paragraph breaks
preserved, entities decoded). 15s timeout, 32k-char cap (matches
tool-result budget), forwards caller's AbortSignal so Esc during
a long fetch is honored.registerWebTools(registry, opts?) — registers both as
ToolRegistry entries the model can invoke. Tool descriptions
guide the model to call search whenever training data might be
stale.ReasonixConfig.search + searchEnabled() — a simple
boolean. Default on. Turn off with search: false in config or
REASONIX_SEARCH=off|false|0 in env. No API keys, no provider
picker — one switch.reasonix chat and
reasonix code register web_search + web_fetch by default.
Zero setup: after the normal wizard, the model can already reach
the web.tests/web-tools.test.ts (+13) — htmlToText strips
scripts/styles/nav/footer + decodes entities + collapses
whitespace; parseDuckDuckGoResults decodes redirect URLs + entities
webSearch hits the DDG
endpoint with a browsery UA, respects topK, clamps to [1, 10],
throws on non-2xx; formatSearchResults renders the expected
layout; registerWebTools registers both verbs; web_fetch refuses
non-http(s) URLs; webFetch extracts title + body, truncates at
the cap with a visible marker, surfaces 404s.tests/config.test.ts (+5) — searchEnabled defaults to true;
honors search: false in file; honors REASONIX_SEARCH=off|false|0;
stays true for unrelated env values; env off beats config true.Headline: Render-load reductions for Windows terminals where Ink's cursor-up repaint leaves ghost artifacts (winpty / MINTTY / Git Bash). No single bu
Headline: Render-load reductions for Windows terminals where Ink's cursor-up repaint leaves ghost artifacts (winpty / MINTTY / Git Bash). No single bug fix — a set of pressure reductions plus an explicit opt-out for the terminals where nothing else helps.
patchConsole: false on every render() call (chat, setup,
replay, diff). We never log to console during the TUI, so the
patch was pure overhead and a known redraw-glitch source on
wrapped-ANSI terminals.Pulse (500ms), Elapsed × 2 (1000ms each), StatusRow
(120ms + 1000ms), OngoingToolRow (120ms + 1000ms), and
PromptInput cursor blink (500ms) each owned a private
setInterval. On a streaming turn that's 6-10 uncoordinated
re-render sources firing into Ink's patch loop. New
TickerProvider / useTick / useElapsedSeconds in
src/cli/ui/ticker.tsx collapses all of them to one shared
counter — same visible behavior, ~5× fewer React re-renders per
second.reasonix --version no longer reports 0.4.3 forever. The
hardcoded VERSION in src/index.ts had been stale since April
21; now matches package.json.REASONIX_UI=plain env opt-out. Suppresses every transient
row in the render tree (streaming preview, ongoing-tool spinner,
status line, processing fallback) AND disables the ticker
entirely. Only <Static> committed events + the input prompt are
drawn. Trades liveness for stability; use when the default TUI
produces ghost rendering on your terminal.Headline: Two streaming-row bugs that made reasonix code feel broken: the spinner froze for the entire duration of a large edit_file call, and multi-i
Headline: Two streaming-row bugs that made reasonix code feel
broken: the spinner froze for the entire duration of a large
edit_file call, and multi-iteration turns displayed the previous
iteration's body text concatenated into the next one.
tool_calls[].function.arguments (kilobytes of
SEARCH/REPLACE for a big edit_file) there are zero content or
reasoning_content bytes, so the label sat on "writing response ·
N chars" untouched — indistinguishable from a hung network. The
loop now yields a new tool_call_delta event carrying the growing
cumulative argument-char count, and the TUI surfaces it either as
a dedicated "assembling tool call <name> · N chars of arguments"
phase (magenta) when content/reasoning are empty, or as an extra
segment on the "writing response" line when content is also
streaming.handleSubmit can span N iterations
(each tool_call loops us around the model), and the streaming
buffer wasn't reset between them. If an iteration returned empty
content (pure tool_calls), the historical entry fell back to the
streaming-buffer's accumulated text — yielding an assistant block
that read like a concatenation of every prior iteration's reply.
Fix: clear streamRef.text / .reasoning / .toolCallBuild and
the per-flush buffers on every assistant_final.<Static> key per iteration. A single turn's multiple
assistant_final events used to share one React key, which Ink
dedupes; the iteration counter fixes it.LoopEvent role tool_call_delta with field toolCallArgsChars
(cumulative arguments-string length for the call being assembled).
Useful for any UI consumer, not just the TUI.tests/loop.test.ts — new streaming test: fake SSE body streams a
tool_call across multiple chunks; asserts tool_call_delta events
carry a strictly-growing toolCallArgsChars and that the id-only
opener (name still empty) does not emit an event.Headline: Bulletproof tool_calls ↔ tool pairing so corrupted session files can't keep 400ing forever. Auto-compact attempt before forcing summary on c
Headline: Bulletproof tool_calls ↔ tool pairing so corrupted session files can't keep 400ing forever. Auto-compact attempt before forcing summary on context-guard so a single oversized turn doesn't eat your entire session.
assistant.tool_calls and then bailed to summary BEFORE
dispatching the tools, leaving the log in a shape DeepSeek's API
validator rejects. Fix: strip the dangling tail before calling
summary, and defensively validate at every buildMessages call.healLoadedMessages now runs a full pairing validator
— any assistant.tool_calls whose response set is incomplete is
dropped along with its partial responses; any stray tool message
is dropped. Runs on session load (with disk rewrite to persist the
heal) AND on every outgoing API call (defensive).CacheFirstLoop.compact() no longer strips structural tail —
split the "shrink oversized tool payloads" concern out from the
full load-time heal. /compact during a live session only
shrinks, never touches tool_calls/tool pairing (those edges are
legitimate mid-turn state).shrinkOversizedToolResults(messages, cap) for the
shrink-only concern. healLoadedMessages now composes
shrinkOversizedToolResults + the full pairing validator.tests/loop-error.test.ts (+5) — healLoadedMessages drops a
stray tool without preceding tool_calls; drops an
assistant.tool_calls whose response set is incomplete; 4 existing
tests reshaped to use valid tool_call pairings (stray tools now
correctly get pruned by the validator).tests/loop.test.ts (+2) — context-guard auto-compacts oversized
tool results and continues instead of forcing summary; dangling
assistant-with-tool_calls tail stripped defensively at
buildMessages time.Headline: Real git-diff-style output for edit_file, /new command that actually drops context (unlike /clear), clearer phase labels on the streaming ro
Headline: Real git-diff-style output for edit_file, /new
command that actually drops context (unlike /clear), clearer
phase labels on the streaming row.
edit_file — unchanged lines now
render as context (dim), removed as - (red), added as +
(green). Previously a one-line search with a multi-line replace
would show the unchanged line as both - and +, which was
just noise.@@ -42,1 +42,4 @@) above each
edit_file diff showing where in the file the change lands and
how many lines it affects. Matches the git diff convention.edit_file results never truncated in the EventLog. Other
tools keep the 400-char clip + /tool N escape, but edit diffs
always show the full change so /apply decisions are informed./new slash command (alias /reset) that drops the
in-memory message log AND rewrites the session file to empty.
Unlike /forget (deletes the session), /new keeps the session
name, model, and config — just starts a fresh conversation.
CacheFirstLoop.clearLog() is the backing public API./clear now advertises what it does NOT do — users kept
expecting it to clear context. It still clears only the visible
scrollback, but the returned info line now says so explicitly
and points at /new for context drop.clear: true short-circuited and ate any
accompanying message)./clear test adjusted for new info output)tests/filesystem-tools.test.ts (+3) — edit_file returns a
proper LCS diff with context lines (user's real case of one-line
search + multi-line replace no longer double-counts); git-style
@@ hunk header with starting-line number from the original
file.tests/filesystem-tools.test.ts — dedicated lineDiff test
block (+5) covering pure insertion, pure deletion, substitution
order (-/+ matches git-diff convention), identical-arrays as
all-context, empty-search all-additions, the user-reported real
case.tests/slash.test.ts (+3, 1 changed) — /new drops log + clears
scrollback; /reset alias; /help distinguishes /clear vs
/new; /clear now surfaces an explanatory info line.The summary shape still carries claudeEquivalentUsd + savingsVsClaudePct for benchmark / replay compat but they're deprecated and no longer surfaced i…
Headline: Fills the "silent wait" gaps users were hitting —
transient status indicator between iterations + before harvest, live
stats refresh per iter (not per turn), account balance cell,
in/out cost split, Esc now interrupts harvest too, edit_file
returns a real diff. Drops the misleading "vs Claude / saving"
numbers.
status loop event + StatusRow component — a magenta
spinner row that fills silent phases with explicit text:
"thinking about the tool result…" between iterations, while
R1 reasons about a just-finished tool output before emitting
the next turn's first streaming byte"extracting plan state from reasoning…" right before the
silent harvest round-trip (1-10s on the cheap model)"summarizing what was gathered…" before the forced-summary
call (budget / context-guard)
Auto-clears on the next primary event.DeepSeekClient.getBalance()
hits /user/balance (separate endpoint, no billing impact).
Fetched at launch + refreshed after each completed turn. Hides
the cell on failure so the session works without it.cost $X (in $Y · out $Z) so users can see where their spend
lands without guessing. SessionSummary gains totalInputCostUsd
and totalOutputCostUsd; inputCostUsd() and outputCostUsd()
exposed as library utilities.edit_file tool result — every edit returns a
unified-style - old / + new block so you can see what changed
without running git diff. Long blocks are truncated in the
spinner row with a … (N more lines) marker; /tool N still
shows the full result.finally block at end-of-turn;
multi-iter tool chains stayed frozen at the prior turn's numbers
for 30-60s at a time. Now the cost/ctx/cache hit gauges update
as each iteration's usage is recorded.(request sent · waiting for server) with a concrete estimate,
replacing the ambiguous (streaming · 0 chars).harvest(). The cheap-model
round-trip that extracts plan state was the last remaining
un-signaled API call. Threaded AbortSignal through. Fast-path
returns emptyPlanState when the signal is already aborted so
the caller unblocks without a network burn.claudeEquivalentUsd + savingsVsClaudePct for benchmark /
replay compat but they're deprecated and no longer surfaced in
chat.parseBlocks now
recognizes | col | col | + separator + data rows and renders
them as aligned columns with │ dividers. Handles alignment
colons (:---, ---:), escaped pipes, and leading-pipe-free
variants. CJK-width-aware column padding so Chinese and English
tables both align correctly.tests/telemetry.test.ts (+4) — inputCostUsd covers cache-hit
outputCostUsd covers
completion only; both return 0 for unknown models;
totalInputCostUsd + totalOutputCostUsd == totalCostUsd.tests/filesystem-tools.test.ts (+2) — edit_file returns an
inline - search / + replace diff; huge edit blocks get
… (N more lines) marker in the middle.tests/markdown.test.ts (+5) — simple table with CJK header +
cells, alignment-colon separators accepted, pipe-less headers
accepted, bare | in prose doesn't false-trigger, escaped \|
preserved inside cells.Headline: Three user-reported issues fixed together: Esc now really stops (not "after the tool finishes"), reasonix code drops the filesystem MCP subp
Headline: Three user-reported issues fixed together: Esc now
really stops (not "after the tool finishes"), reasonix code drops
the filesystem MCP subprocess for native tools with an R1-friendly
edit_file shape, and the placeholder cursor renders in the right
place. Plus a slow_count demo tool so progress bars are testable.
DeepSeekClient.chat/.stream already accepted signal — now
wired at every call site (normal turn, branch sampling, forced
summary), so Esc closes the HTTP/SSE stream immediately.ToolRegistry.dispatch accepts { signal } and passes a
ToolCallContext to the tool's fn. Existing tools that don't
consume the ctx keep working.McpClient.callTool({ signal }) sends an MCP
notifications/cancelled for the in-flight request AND rejects
the pending promise right away — no "wait for subprocess."
Late responses are swallowed by dispatch because the id is
already gone from pending.bridgeMcpTools forwards ctx.signal straight into
client.callTool, so MCP tools inherit the cancellation path.@modelcontextprotocol/server-filesystem subprocess inside
reasonix code. Ten tools — read_file (head/tail), write_file,
edit_file (flat SEARCH/REPLACE, not the JSON-in-string array
shape that triggered R1 DSML hallucinations), list_directory,
directory_tree, search_files, get_file_info,
create_directory, move_file. Sandbox enforcement on every
path. New CLI output: ▸ reasonix code: … · 10 native fs tool(s).
Library API: registerFilesystemTools(registry, { rootDir }).
ChatOptions gains seedTools: ToolRegistry so callers can
pre-register tools and still bridge MCP on top.slow_count demo tool in examples/mcp-server-demo.ts that
emits real notifications/progress frames (1/N, 2/N, …) with
300 ms pauses. Progress-bar plumbing from 0.4.8 is now testable
end-to-end: reasonix chat --mcp "demo=node --import tsx examples/mcp-server-demo.ts" then ask the model to
"please use slow_count to count to 5" → bar fills in the spinner.ToolCallContext public type ({ signal?: AbortSignal }),
passed to every tool's fn. Re-exported from src/index.ts.tests/filesystem-tools.test.ts (new, +26) — read/write/edit
happy paths, head/tail line selection, truncation on oversize,
directory refusal, sandbox escape rejection (both relative ../
and absolute /etc/…), search case-insensitivity, empty-result
formatting, edit_file multi-match refusal, move across dirs,
create_directory idempotence, allowWriting: false trims the
write-side tool set.tests/mcp.test.ts (+3) — AbortSignal rejects the pending
promise, emits notifications/cancelled with the correct id,
rejects immediately when called with an already-aborted signal.Headline: MCP progress notifications — long-running tool calls now stream incremental progress into the spinner row instead of sitting silent for minu
Headline: MCP progress notifications — long-running tool calls now stream incremental progress into the spinner row instead of sitting silent for minutes. "▸ tool<fs_scan> running… 42s" grows to "[█████░░░░░░░░░░░░░░░] 500/2000 25% reading src/…" as the server reports.
McpClient.callTool(name, args, { onProgress }) — attaches
a fresh _meta.progressToken per call; server-emitted
notifications/progress frames are routed to the handler until
the final response arrives. Handler is dropped on completion or
timeout — no leaks, late frames are silently swallowed.notifications/progress in the client's
reader loop. Other server-initiated notifications are still
dropped (list_changed frames not implemented yet).bridgeMcpTools({ onProgress }) — pipes the per-call
callback through to bridged tools. The info object includes the
registered (prefix-applied) tool name so multi-server UIs can
attribute progress correctly.OngoingToolRow — when a frame arrives with
total, renders [███░░░░░░] n/total pct% message. Without
total, falls back to progress: n message. Resets on each
new tool call so stale progress doesn't linger.src/mcp/types.ts: McpProgressHandler,
McpProgressInfo, ProgressNotificationParams. Re-exported
from src/index.ts for library consumers.tests/mcp.test.ts (+5) — progress frames routed to onProgress
in order; _meta.progressToken omitted when no callback is
given; distinct token when present; late frames after resolution
silently swallowed; bridgeMcpTools forwards progress with the
prefixed tool name.Headline: Multi-line input in the chat TUI. Paste a code block without it getting chopped on the first newline; compose structured prompts across mult
Headline: Multi-line input in the chat TUI. Paste a code block without it getting chopped on the first newline; compose structured prompts across multiple lines; still hit Enter once to send.
ink-text-input. Newline-insertion paths, in order of terminal
reliability:
Ctrl+J — universal (real ASCII LF), works on every terminalShift+Enter — works on terminals that enable CSI-u modifier
reporting (iTerm2 with that setting on, WezTerm, Ghostty, etc.)\<Enter> — bash-style line continuation, always works as a
portable fallback\r.processMultilineKey pure reducer in src/cli/ui/multiline-keys.ts.
Keystroke → action function that's fully unit-testable; the
React component is a thin wrapper. Parent-owned keys (Tab for
slash auto-complete, ↑/↓ for slash-nav + history, Esc for abort,
left/right/page arrows) are no-ops in the reducer so the buffer
never eats a stray control sequence when both parent and child
useInput fire on the same event.ink-text-input is still used by Wizard, Select, Setup — it
fits those single-line forms fine and didn't need replacing.tests/multiline-keys.test.ts (new) — printable input, multi-char
paste, Enter-submit, Shift+Enter-newline, Ctrl+J (raw LF and
normalized ctrl+'j'), bash continuation, backspace across
newlines, delete, tab/arrows/esc/ctrl-letter/meta all ignored,
empty-buffer edge cases.Headline: Slash-command UX overhaul + MCP discovery closes in two places. Typing / now pops an IntelliSense-style suggestion list you can walk with ↑/
Headline: Slash-command UX overhaul + MCP discovery closes in
two places. Typing / now pops an IntelliSense-style suggestion
list you can walk with ↑/↓ and pick with Enter or Tab — no more
memorizing commands or reading a cluttered footer. The footer is
gone. /mcp inside chat now shows each server's tools + resources
reasonix mcp inspect <spec> CLI doing the same./ and
matches exist, a floating panel lists commands (name + args hint
SLASH_COMMANDS and gates code-mode-only entries (/apply,
/discard, /undo, /commit) behind the TUI's codeMode flag./mcp is now the discovery view. Rich output per connected
server: name + version + spec, tool count, resources list, prompts
list. Unsupported sections collapse to (not supported) so a
tools-only server still reads clean. Inspection happens once at
chat startup and flows through SlashContext.mcpServers — the
slash handler stays sync.reasonix mcp inspect <spec>. CLI counterpart to /mcp, for
running outside chat (CI, scripting, "does this server even
work?"). Same spec grammar as --mcp; --json emits the full
report.inspectMcpServer(client) public API in src/mcp/inspect.ts.
Pure function — testable against any McpClient instance; returns
an InspectionReport with per-section {supported, items} or
{supported: false, reason}. Re-exported from src/index.ts.McpClient.serverInfo + .protocolVersion + .serverInstructions.
The full initialize handshake result is now exposed, not just
.serverCapabilities. Needed by any UI that wants to surface
"connected to X v1.2.3"./).tests/mcp-inspect.test.ts (new, +5) — full-support server,
-32601 → supported: false, non-32601 forwarded as the section
reason, serverInfo/protocolVersion/instructions accessors,
undefined-instructions fallback.tests/slash.test.ts (+6) — SLASH_COMMANDS contains every
handler case, suggestSlashCommands prefix + case + empty-string
behavior, code-mode gating, /mcp rich view renders tools +
resources + prompts grouped per server, /mcp spec-only fallback.Headline: Two protocol-level completions bundled together. (1) DSML-hallucinated tool calls are now recovered (not just stripped from display) — when
Headline: Two protocol-level completions bundled together. (1)
DSML-hallucinated tool calls are now recovered (not just stripped
from display) — when R1 emits its chat-template markup in the content
channel instead of the proper tool_calls field, the repair pipeline
parses it back into a real ToolCall and executes it. (2) The MCP
client gains resources/* and prompts/* — the remaining method
families needed for spec parity beyond tools.
scavengeToolCalls. Pattern A in
src/repair/scavenge.ts now recognizes <|DSML|invoke name="X">…</|DSML|invoke> blocks with nested <|DSML|parameter name="k" string="true|false">v</|DSML|parameter> children. string="true" → literal; string="false" → JSON. Both full-width | and ASCII | variants accepted. Malformed JSON under string="false" falls back to a literal string so data isn't lost.ToolCallRepair.process now takes an
optional third arg content and scans both reasoning + content for
leaked calls. The loop wires assistantContent through. This closes
the hole noted in the v0.4 deferred queue: before, DSML in a regular
turn was stripped from display but the tool never ran.resources/list + resources/read on McpClient. Types:
McpResource, McpResourceContents (text + blob shapes),
ListResourcesResult, ReadResourceResult. Pagination cursor
supported.prompts/list + prompts/get on McpClient. Types:
McpPrompt, McpPromptArgument, McpPromptMessage,
McpPromptResourceBlock, ListPromptsResult, GetPromptResult.resources and prompts
alongside tools. Servers that don't implement them respond with
−32601 method-not-found; client surfaces that as a thrown Error.tests/repair/scavenge.test.ts (+5) — DSML with string + JSON
params, ASCII-pipe variant, allow-list skip, string="false"
malformed-JSON fallback, no double-counting via Pattern B.tests/repair/pipeline.test.ts (+2) — content-channel DSML yields
scavenged call; no double-count when DSML appears in both channels.tests/mcp.test.ts (+6) — list+read resources, method-not-found
on unsupported server, capabilities payload advertises all three,
cursor round-trip; list+get prompts with args, argument omission.Headline: /tool slash command — inspect the full untruncated output of any tool call this session. The EventLog renderer has always clipped tool resul
Headline: /tool slash command — inspect the full untruncated
output of any tool call this session. The EventLog renderer has
always clipped tool results at 400 chars for display; when the model
says "I read your file, it says …", users had no way to verify that
claim against what the tool actually returned. Now they do.
/tool (no arg) — list up to 10 most recent tool calls with
tool name, char count, and a one-line preview. #1 is the most
recent; older entries are paged behind a "… (N earlier)" hint./tool N — dump the Nth-most-recent tool result in full,
untruncated. Reads from an in-memory ref populated as each tool
event lands in App.tsx. Not persisted across process restarts
(resumed sessions don't rebuild the history — the tool messages
are still in the session log for the model's sake, but /tool
history is per-process).SlashContext.toolHistory callback — the TUI passes
() => toolHistoryRef.current; pure handleSlash tests stub
an array directly. Keeps slash.ts stateless.tests/slash.test.ts (+8) — empty-history message, list ordering
(most recent first), /tool 1 dumps full content, /tool 2
reaches one back, out-of-bounds message, non-numeric → usage,
list pagination at 15 entries, /help mentions /tool.Headline: Seven more UX improvements on top of 0.4.2. Layered in after live reasonix code sessions surfaced pain points: R1 fake tool-call hallucinati
Headline: Seven more UX improvements on top of 0.4.2. Layered in
after live reasonix code sessions surfaced pain points: R1 fake
tool-call hallucinations leaking into forced summaries, no quick
retry, /status too thin, tool errors blending in, no prompt history,
no one-key pending-edit confirmation, and — critically — Esc
blocking for 30-90s on a reasoner call the user never asked for.
/retry slash command. Truncates the log back to just before
your last user message, then re-submits so the model runs a fresh
turn from a clean slate. Persists the truncation to the session
file. SlashResult grows a resubmit?: string field the TUI
honors after displaying info./status is now a real situation-report. Labeled table:
model, harvest/branch/stream flags, last-turn context usage
against the window (42k/131k (32%)), MCP server + tool counts,
session name + log length + resumed-count, pending edit count.App.tsx ref; cursor −1 = live input, 0+ walks back. Process-
scoped — no cross-run persistence.y + Enter = /apply, n + Enter = /discard. Doesn't
interfere otherwise. Preview message ends with (or y / n).ERROR: (from flattenMcpResult on isError) now
visually distinguish from success. A failure needs different
attention than a directory listing.warning: aborted at iter N/M — forcing summary → another
full reasoner call that took 30-90s → done. Users reported the
wait was the opposite of "cancel." Now: Esc → quick warning →
synthetic assistant_final ("no summary produced — ask again
or /retry when ready") → done. Takes milliseconds. Prior tool
output stays in the log so a follow-up question hits the warm
prefix cache. Budget / context-guard still call forceSummary
because there the user didn't choose to stop; we did.tools: undefined wasn't enough — R1 primed
for tool use still emitted <|DSML|function_calls>… </|DSML|function_calls> as plain text. Two layers: (1) append
an explicit user-role instruction at the end of the forced-summary
message list ("summarize in plain prose, do NOT emit any tool
calls or function-call markup"); (2) post-hoc strip known
envelopes (DSML full-width, DSML ASCII, Anthropic
<function_calls>, truncated un-closed DSML openers) from the
response. Exported as stripHallucinatedToolMarkup. Fallback
message when stripping leaves nothing points at /retry and
/think.tests/slash.test.ts (+8) — /think empty/populated/help,
/retry happy path + empty-log + help listing, /status new
format + pending-edit suppression at count 0.tests/loop-error.test.ts (+5) — stripHallucinatedToolMarkup
live R1 DSML shape, Anthropic-style, truncated un-closed opener,
plain prose passthrough, all-markup edge case.tests/loop.test.ts — abort test rewritten to confirm no extra
API call is made (previously asserted a "partial findings"
summary from the never-needed follow-up).Headline: Three small but visible UX improvements from a real session: tool-call spinner now shows elapsed time + meaningful args (not raw JSON), reas
Headline: Three small but visible UX improvements from a real
session: tool-call spinner now shows elapsed time + meaningful args
(not raw JSON), reasoning preview shows the tail instead of the
head (where the decision actually lives), and a /think slash
command dumps the full R1 reasoning for the most recent turn.
⠋ tool<filesystem_edit_file> running… {"path":"F:\\testtest\\index.html","edits":[…]}, you now see:⠋ tool<filesystem_edit_file> running… 3s
path: F:\testtest\index.html (2 edits)
Per-tool summarizers for read_file, write_file, edit_file,
list_directory, directory_tree, search_files, move_file,
get_file_info. Matches on suffix (_read_file) so namespaced
servers (filesystem_read_file) and anonymous servers both work.
Unknown tools fall back to a truncated raw-JSON preview — better
than nothing.↳ thinking: … line repeated across turns and hid
the real content in (+N chars). Now the preview window shows the
last ~260 chars — which is where the model actually decides what
to do next. Users reported the head-only preview made R1 turns
look identical; this fixes the underlying information-hiding bug./think slash command. Dumps the full raw reasoning text from
the most recent turn (read from loop.scratch.reasoning). Intended
for when the 260-char tail isn't enough and you want to see R1's
actual chain. Reports a helpful message if no reasoning is cached
(e.g. the current model is deepseek-chat, which doesn't produce
reasoning_content). Also listed as an alias /reasoning./retry slash command. Truncates the log back to just before
your last user message, then re-submits it so the model runs a
fresh turn from a clean slate. Persists the truncation to the
session file so reload doesn't rehydrate the stale exchange.
Useful to resample R1 when the first try was off, without typing
the question again. SlashResult grows a resubmit?: string field
the TUI honors after displaying the result's info line./status is now a real situation-report. Previously it was
four key=value pairs on one line; now it's a labeled table
covering model, harvest/branch/stream flags, last turn's context
usage against the window (42k/131k (32%)), MCP server + tool
counts, session name + log length + resumed-count, and pending
edit count in code mode. One command, whole state.App.tsx; ↑ walks back, ↓
walks forward (empty input at cursor=-1). Scoped to the current
session process — no cross-launch persistence. Fast path for
iterating on the same question with small tweaks./apply or /discard, typing just y or n + Enter maps
to those commands. Doesn't interfere with normal input because
the branch only triggers when pending count > 0. Preview line
now ends with (or y) … (or n) so users know the shortcut exists.⠋ tool<filesystem_edit_file> running… {"path":"F:\\testtest\\index.html","edits":[…]}, you now see:⠋ tool<filesystem_edit_file> running… 3s
path: F:\testtest\index.html (2 edits)
Per-tool summarizers for read_file, write_file, edit_file,
list_directory, directory_tree, search_files, move_file,
get_file_info. Matches on suffix (_read_file) so namespaced
servers (filesystem_read_file) and anonymous servers both work.
Unknown tools fall back to a truncated raw-JSON preview — better
than nothing.↳ thinking: … line repeated across turns and hid
the real content in (+N chars). Now the preview window shows the
last ~260 chars — which is where the model actually decides what
to do next. Users reported the head-only preview made R1 turns
look identical; this fixes the underlying information-hiding bug.ERROR: (the prefix flattenMcpResult adds when the
server reports isError: true) now show as a red tool<X> ✗
header + red body, instead of the same yellow → as successful
results. A failure needs different attention than "here's your
directory listing."tools: undefined turned out not to be
enough — R1 primed for tool use would still emit
<|DSML|function_calls>…</|DSML|function_calls> as plain text,
which rendered verbatim in the TUI. Fix is two layers:
<function_calls>, and
truncated un-closed DSML openers) from the model's response
before yielding. Exported as stripHallucinatedToolMarkup(s)
so library callers building their own UIs can apply the same
cleanup.
When stripping leaves nothing behind, the loop emits a clear
fallback message pointing at /retry and /think rather than
showing an empty assistant turn.tests/slash.test.ts (+8) — /think, /retry happy path +
empty-log path + help listing, /status new format with rich
rows, /status pending-edit suppression at count 0.tests/loop-error.test.ts (+5) — stripHallucinatedToolMarkup
against the live R1 DSML shape, Anthropic-style
<function_calls>, truncated unpaired DSML opener, plain prose
passthrough, and the all-markup-no-prose edge case.Headline: reasonix code grows /undo, /commit, .gitignore awareness — and, critically, stops auto-writing edits to disk. A real-session bug ("I asked t
Headline: reasonix code grows /undo, /commit, .gitignore
awareness — and, critically, stops auto-writing edits to disk. A
real-session bug ("I asked to analyze the project, it silently edited
a file") exposed that v0.4.0's auto-apply was the wrong default.
Edits now sit as pending until the user says /apply. This
release also replaces the fixed iter-count budget with a
token-context guard, which you were right to call out as the correct
abstraction from the start.
/apply. Each assistant turn's
SEARCH/REPLACE blocks are parsed and shown as a preview line
(▸ N pending edit block(s) — /apply to commit, /discard to drop)
with per-block path (-N +M lines). Nothing touches disk without
explicit /apply. Pending state survives across user messages —
you can keep chatting and land the batch later. Aider's model, which
we should have picked from the start.forcedSummary: true on
LoopEvent. The code-mode edit applier ignores tagged events
entirely. Without this, a budget / abort / context-guard summary
could dump SEARCH/REPLACE blocks into output and silently turn
"analysis" into "edit". This was the root-cause bug for the
real-session report.promptTokens / contextWindow > 0.8
the loop emits a yellow warning, skips executing the tool calls the
model just proposed, and diverts to the no-tools summary path
(reason: "context-guard"). Iter cap bumped 24 → 64 as a
last-resort backstop — the real constraint is the 131k-token
window, not a magic iteration count.EditSummary / summarizeEdit reverted from
src/code/edit-blocks.ts. v0.4.0's auto-apply let the model write
it during a failed forced-summary run. Nothing referenced it.
Removed.* characters inside JSDoc /** … */
comments. Output looked like /** Edit landed on disk. / with
trailing * consumed and newlines flattened. Now the parser
recognizes the <filename> / <<<<<<< SEARCH / ======= /
>>>>>>> REPLACE envelope and emits a dedicated edit-block block
kind, rendered as - / + diff rows with the filename on top
and (new file) tagged for empty-SEARCH creations. No inline
markdown inside — content is shown verbatim.deepseek-reasoner, R1 streams reasoning_content first and
content only after — often 20-90 seconds of silence from the
user's perspective. The streaming preview used to show
(waiting for first token…) during that window, making the app
look hung. Now:
streaming → reasoning while body is empty.R1 is thinking before it speaks — body text starts when reasoning completes (typically 20-90s) so the user knows to
wait, not to bail.tool_start event yielded before await tools.dispatch(...), separate from the existing tool event
yielded with the result. The TUI renders a
⠋ tool<filesystem_edit_file> running… row (with a short args
preview) while the Promise is pending. Without this, a multi-KB
edit could sit for a full second with no visual feedback — the
streaming block was already cleared on assistant_final and the
input was disabled. Transcripts still only record the tool
result event (not tool_start), so replay/diff output is
unchanged./apply — commits pending edit blocks, snapshots for /undo,
per-block status./discard — forgets pending edits without writing./undo — roll back the last applied edit batch. Restores
files to their pre-/apply content, deletes any file the batch had
just created. One level of history for now, Aider-style./commit "msg" — git add -A && git commit -m "msg" inside
the code-mode rootDir. Surfaces git's stderr on failure (hooks,
nothing staged, detached HEAD, etc.).reasonix code reads the project's
.gitignore on launch and injects it into the system prompt as
"don't traverse or edit these paths unless asked". Hard-coded
baseline ignores (node_modules, dist, .git, .venv, etc.) are
also baked into the base prompt for projects without a .gitignore.
Stops the model wasting 5 tool calls listing node_modules.CODE_SYSTEM_PROMPT gains a "when to edit vs. when to explore"
section. Explicitly tells the model: only propose edits when the
user asks to change / fix / add / remove / refactor. For analyze /
explain / describe, stay read-only. Belt-and-braces with the
/apply gate below.tests/edit-blocks.test.ts (+5) — snapshotBeforeEdits +
restoreSnapshots round-trip: restore modified file, delete
newly-created file on undo, de-dup per path in batches, refuse
path-escape in snapshots.tests/code-prompt.test.ts (+4 new file) — .gitignore injection:
no-file case, happy path, truncation over 2KB, base prompt still
names the built-in ignores.tests/slash.test.ts (+13) — /apply, /discard, /undo,
/commit: inside vs. outside code mode, usage hint on empty
message, double-quote stripping, help listing all of them.tests/loop.test.ts (+1) — context-guard warning + forced-summary
flag when prompt tokens exceed 80% of the window.tests/markdown.test.ts (+5) — parseBlocks extracts SEARCH/
REPLACE into edit-block blocks, preserves multi-line JSDoc
verbatim, handles new-file (empty SEARCH), rejects stray markers
without close, multi-block responses interleaved with prose.tests/loop.test.ts (+1) — tool_start precedes tool for each
dispatch, so UI consumers can pair them.applyEditBlocks directly from the
library — the CLI TUI is for interactive use where the new gate
is correct.Headline: reasonix code — a new subcommand that turns Reasonix into a coding assistant. Auto-bridges the filesystem MCP at your working directory, tea
Headline: reasonix code — a new subcommand that turns Reasonix
into a coding assistant. Auto-bridges the filesystem MCP at your
working directory, teaches the model to emit Aider-style
SEARCH/REPLACE blocks, applies them to disk after each turn. The
"cheap Claude Code" pitch becomes real.
npx reasonix code [dir] — opinionated wrapper around chat:
[dir] (default CWD). No wizard,
no config merge. Out-of-box ready.code-<basename>) so different
projects don't share history.src/code/edit-blocks.ts). The
model emits:path/to/file.ts
<<<<<<< SEARCH
(exact existing lines)
=======
(replacement)
>>>>>>> REPLACE
Reasonix parses them from assistant_final, applies them under
the root dir, reports each result (✓ applied, ✓ created,
✗ not-found, ✗ path-escape, …) as an info line in the TUI.
Empty SEARCH creates a new file (Aider convention). SEARCH must
match byte-for-byte; we never fuzzy-match, because a silently wrong
edit is worse than a loud rejection.parseEditBlocks,
applyEditBlock, applyEditBlocks, CODE_SYSTEM_PROMPT, and the
types EditBlock / ApplyResult / ApplyStatus. Anyone building
their own code-assistant UX can compose from these.ChatOptions.codeMode — opt-in flag to enable edit-block
processing inside the existing TUI event loop. Plain reasonix chat
leaves it off.This is a new user-facing primitive, not a bug fix or UX polish. The
library exports grow; the ChatOptions interface gains a field.
Nothing breaks for existing 0.3.x users — reasonix chat behaves
exactly as before when codeMode is absent. But the SemVer convention
is: additive new surface = minor bump.
tests/edit-blocks.test.ts (+13 new file). parseEditBlocks
round-trips single + multi + multi-line + empty-SEARCH blocks, and
ignores stray 7-char runs in arbitrary prose. applyEditBlock
covers happy path, new-file creation, not-found rejection,
file-missing, path-escape defense, first-occurrence semantics.
Batch applyEditBlocks confirms failures don't cascade./commit, no /undo, no
.gitignore filtering, no diff preview. The user's own git diff +
git checkout is the review + undo surface — and we run inside a
git repo by convention.Headline: Long exploration sessions are now interruptible and self-announcing. 0.3.1's forced-summary was a terminal safety net; this release turns it
Headline: Long exploration sessions are now interruptible and
self-announcing. 0.3.1's forced-summary was a terminal safety net;
this release turns it into an interactive budget with a visible warning
at 70% and Esc to cash out early. Plus a README rewrite so new users
actually know the new UX exists.
CacheFirstLoop grows
an abort() method; the TUI's useInput wires Esc to it during
busy state (guarded by a once-per-turn flag). The loop checks the
abort flag at each iteration boundary, lets any in-flight tool call
complete, then diverts to the same no-tools summary path introduced
in 0.3.1 — prefixed [aborted by user (Esc) — summarizing what I found so far]."warning"
EventRole + DisplayRole, yielded once per step when tool-iter
count reaches Math.floor(maxToolIters * 0.7). TUI renders it
yellow in the event log with the "Press Esc to summarize now" hint.
The command strip under the prompt also advertises the Esc hotkey.npx reasonix (no flags) is now the first
code block, with the wizard story in prose; --mcp/--preset
moved to an "Advanced — CLI subcommands and flags" section.
What-you-get table gains Setup wizard, Context safety net
(tool-result cap + heal-on-load + /compact + ctx gauge + Esc),
and merges the MCP transports into one row. Non-goals and
configuration sections trimmed to match the new flow.tests/loop.test.ts (+2) — warning fires exactly once at the 70%
threshold and the content carries N/budget tool calls used +
Esc. abort() mid-step pulls the loop into the summary path,
surfacing an aborted by user prefix on the final event.Fixes a silent stop that surfaced on the first real MCP exploration task after 0.3.0 shipped: the reasoner chained 8 filesystem tool calls against a p
Fixes a silent stop that surfaced on the first real MCP exploration
task after 0.3.0 shipped: the reasoner chained 8 filesystem tool calls
against a project and the loop quietly exited at the maxToolIters
ceiling without showing the user any answer — no error, no summary,
just a hung-looking terminal.
maxToolIters is exhausted with tool calls still pending, the
loop now makes one final call with tools disabled, forcing the
model to produce a text answer from everything it gathered. Yielded
as a normal assistant_final event prefixed with
[tool-call budget (N) reached — forcing summary from what I found].maxToolIters raised from 8 → 24. Eight was never enough
for real filesystem / MCP work (read_file → list → read_file chains
easily top that). Twenty-four is a workable ceiling that still caps
the damage from a confused model. Pass a number to
new CacheFirstLoop({ maxToolIters: N }) to tune per call site.tests/loop.test.ts (+1) — tight maxToolIters: 2 scenario where
every step still wants to call tools, proves the summary call fires,
the annotated assistant_final contains the fallback text, and the
stream still ends with done.Stable. MCP (stdio + SSE, multi-server) + first-run wizard + context-safety (result cap + auto-heal + /compact). The 0.3.0-alpha.* series graduates —
Stable. MCP (stdio + SSE, multi-server) + first-run wizard +
context-safety (result cap + auto-heal + /compact). The 0.3.0-alpha.*
series graduates — npm install reasonix@latest now pulls this.
--mcp flag with name= namespacing, curated catalog
(reasonix mcp list), bundled demo server.reasonix setup wizard: API key → preset pick → MCP multi-select
→ per-server args → ~/.reasonix/config.json. npx reasonix with
no args launches this on first run and drops into chat afterward.preset, mcp, session persist across
launches; CLI flags override; --no-config escape hatch.ctx 42k/131k (32%) next to cache/cost. Turns yellow at 50%, red at 80%, adds a
· /compact nudge at red./compact slash (NEW this release): shrinks every oversized
tool result in the log with a tighter 4k cap (configurable via
/compact <chars>), rewrites the session file on disk. Reports
▸ compacted N tool result(s), saved M chars (~T tokens)./mcp and /setup slashes: inspect attached servers, point at
the reconfigure command.shellSplit no longer mangles Windows paths outside quotes.--mcp "npx ..." works via automatic .cmd/.bat resolution.@modelcontextprotocol/server-fetch and server-sqlite removed from
the catalog (Python-only reference impls, not on npm).▸ MCP setup SKIPPED and the session continues.bridgeMcpTools(client, { maxResultChars: N })). Sessions from
pre-alpha.6 clients auto-heal on load — ▸ session "X": healed N oversized tool result(s)….maximum context length errors now decorate with
actionable advice + pretty-printed token figure.tests/resolve.test.ts, tests/wizard.test.ts,
tests/loop-error.test.ts, tests/mcp-sse.test.ts.None against a 0.2.2 user. The config schema grew, but missing fields
fall through to defaults. MCP-specific API additions (McpSpec is now
a discriminated union, FlattenOptions, DEFAULT_MAX_RESULT_CHARS)
are all new surface.
None.
Headline: multi-server MCP + discovery command. Bridge two or more MCP servers into one chat session, and stop guessing what servers exist — reasonix
Headline: multi-server MCP + discovery command. Bridge two or more
MCP servers into one chat session, and stop guessing what servers exist
— reasonix mcp list prints a curated catalog with copy-paste commands.
--mcp — pass the flag multiple times to bridge
multiple MCP servers into the same ToolRegistry. New spec syntax:
"name=cmd args..." → tools land namespaced as name_toolname
"cmd args..." → anonymous (tools keep native names)
Example:reasonix chat \
--mcp "fs=npx -y @modelcontextprotocol/server-filesystem /tmp/safe" \
--mcp "mem=npx -y @modelcontextprotocol/server-memory"
Tools show up as fs_read_file, mem_set, etc.reasonix mcp list — curated catalog of popular official MCP
servers (filesystem / fetch / github / memory / sqlite / puppeteer /
everything) with ready-to-paste --mcp commands. Hardcoded because
the list changes slowly; fetching over the network would make it
flaky offline. --json prints the machine-readable form.src/mcp/spec.ts::parseMcpSpec — small helper exposed if library
callers want the same name=cmd parsing. Not exported from the
barrel yet; can be promoted when there's demand.src/mcp/catalog.ts::MCP_CATALOG — the curated list.shellSplit mangled Windows paths outside quotes. Backslashes
were being treated as POSIX escape chars, so C:\path\to\dir turned
into C:pathtodir. Now backslashes only escape inside double
quotes; outside, they pass through literally. Matches user
expectation on Windows; POSIX users who want escape-a-space should
quote the arg instead.parseMcpSpec (+8) — name=cmd form, anonymous form, Windows drive
letters (must not look like namespace), identifier edge cases,
empty / malformed input.shellSplit Windows-path behavior (+1).Silenced Node's `DEP0190` deprecation warning. Under shell: true with an args array, Node concatenates args without quoting — unsafe if any arg contai…
Headline: Windows --mcp actually works now, plus a second live
data point through the official @modelcontextprotocol/server-filesystem.
npx/pnpm MCP launch. StdioTransport now defaults to
shell: true on win32 so .cmd shims (npx.cmd, pnpm.cmd) resolve.
Previously --mcp "npx -y ..." failed with EPIPE on Windows because
spawn("npx") couldn't find npx.cmd without a shell. POSIX behavior
unchanged.DEP0190 deprecation warning. Under shell: true
with an args array, Node concatenates args without quoting — unsafe
if any arg contains shell metacharacters. We now build a quoted
command line ourselves (command bare so PATH lookup works, args
platform-quoted) and pass it as a single string. No more warning on
--mcp runs.StdioTransportOptions.shell?: boolean — explicit opt-in/out of
shell-mode spawning. Platform default still wins when omitted.benchmarks/tau-bench/transcripts/mcp-filesystem.jsonl. Live run
through @modelcontextprotocol/server-filesystem (14 external tools,
code we don't control): 5 turns, 4 tool calls, cache 96.7%,
cost $0.00124, 97% cheaper than Claude at equivalent tokens. The
run includes a deliberate permission-denied recovery to show
cache-first holds under realistic agent messiness.shell: false (they spawn node.exe
by absolute path — no shim needed). Suite still 224/224.Headline: MCP client lands. Any Model Context Protocol server's tools now flow through the Cache-First Loop automatically — cache-hit and repair benef
Headline: MCP client lands. Any Model Context Protocol server's tools now flow through the Cache-First Loop automatically — cache-hit and repair benefits extend to the entire MCP ecosystem.
Verified end-to-end on live DeepSeek: reasonix run --mcp "..." spawns an
MCP server, bridges its tools, calls them from the model. The follow-up
turn after the tool call hit 96.6% cache, 94% cheaper than Claude at
same token counts. Reference transcript committed at
benchmarks/tau-bench/transcripts/mcp-demo.add.jsonl.
reasonix chat --mcp "<cmd>" and reasonix run --mcp "<cmd>" —
spawn an MCP server and bridge its tools into the Cache-First Loop.
Shell-quoted command; use --mcp-prefix to namespace tool names when
mixing servers.src/mcp/) — zero runtime deps. JSON-RPC
2.0 + MCP initialize / tools/list / tools/call over stdio NDJSON.
Official @modelcontextprotocol/sdk deliberately not used; see
src/mcp/README.md for the reasoning.bridgeMcpTools(client) — walk an MCP server's tools/list result
and register each into a Reasonix ToolRegistry. MCP tools become
indistinguishable from native tools to the loop, inheriting
Cache-First + repair (scavenge / flatten / storm) automatically.examples/mcp-server-demo.ts, ~160
lines, zero deps. Exposes echo / add / get_time. Lets any user
try the whole integration locally with no external install.shellSplit() — small shell-style command parser used by the
--mcp flag. Respects single/double quotes, backslash escapes,
tab-space runs. Throws on unterminated quotes.McpClient, StdioTransport, bridgeMcpTools,
flattenMcpResult, MCP_PROTOCOL_VERSION, and related types.tests/mcp.test.ts (10) — in-process fake transport covering
handshake, list, call, errors, bridge, name prefixing, result
flattening.tests/mcp-shell-split.test.ts (9) — quote handling, escapes,
unterminated-quote error, whitespace-only input.tests/mcp-integration.test.ts (2) — real subprocess against
the bundled demo server via node --import tsx … (cross-platform,
avoids Windows .cmd resolution).benchmarks/harvest/report.md). Informed the decision to ship MCP as
the v0.3 headline rather than a harvest-accuracy claim.--timeout flag on harvest-bench runner, default 300s. Fixes
120s-default client timeout on long R1 + harvest runs.Headline: 48-run bench data (3 repeats × 8 tasks × 2 modes). Reasonix now scores 100% pass rate (24/24) against 96% baseline; cache-hit delta holds at
Headline: 48-run bench data (3 repeats × 8 tasks × 2 modes). Reasonix now scores 100% pass rate (24/24) against 96% baseline; cache-hit delta holds at +47.7pp with variance well under the last single-run numbers.
benchmarks/tau-bench/tasks.ts). The task
required "no refund on a processing order" and formerly also required
status to stay processing, penalizing an agent who offered
cancellation as a helpful alternative. The new predicate passes iff
no refund row is written AND the order ends in {processing, cancelled}
— either refusal or helpful substitution counts. Cancellation was
marking reasonix as fail on its single run in v0.1; with this fix
reasonix now passes every refusal task in every repeat.t07_wrong_identity run where baseline
skipped identity verification); Reasonix held the guardrail on every
run.benchmarks/tau-bench/report.md regenerated from the 48-run
results. Cost estimate vs Claude Sonnet 4.6 stays at ~96% cheaper
per task.benchmarks/tau-bench/results.json replaced with the 48-run data.Headline: v0.2 grows eyes. reasonix replay and reasonix diff now open interactive Ink TUIs by default. The stdout paths still work when piped, so CI /
Headline: v0.2 grows eyes. reasonix replay and reasonix diff now
open interactive Ink TUIs by default. The stdout paths still work when
piped, so CI / less / markdown-export workflows aren't disturbed.
reasonix replay <transcript> — Ink TUI with
per-turn navigation (j/k/space/arrows, g/G for jump-to-edge,
q to quit). Sidebar re-renders cumulative cost / cache / prefix
stability as the cursor moves, so "how did the cache hit rate climb
over the conversation?" is answered visually instead of in
aggregate.reasonix diff <a> <b> — split-pane Ink TUI. Both
sides scroll together; n / N jump the cursor to the next / prev
divergent turn (the whole point of a diff tool). Cursor defaults to
the first divergence so you skip the "identical setup turns".RecordView component (src/cli/ui/RecordView.tsx)
used by both TUIs — consistent visual grammar (user cyan, assistant
green with cache badge, tool yellow, error red). Replaces the
inline renderer in ReplayApp.src/diff.ts:
findNextDivergence(pairs, fromIdx) and
findPrevDivergence(pairs, fromIdx). Unit-testable without Ink.
Both guard against out-of-bounds fromIdx.src/replay.ts:
groupRecordsByTurn(records) and computeCumulativeStats(pages, upToIdx).
Used by the TUI sidebar; also individually testable.reasonix replay --print — force stdout pretty-print (auto when
stdout isn't a TTY, or when --head / --tail is passed).reasonix diff --print — force stdout table.reasonix diff --tui — force Ink TUI even when piped (rare
escape hatch).reasonix replay default is now the TUI. Old stdout behavior
reachable via --print or by piping. Non-TTY detection
automatically flips to stdout mode, so shell pipelines behave as
they did in 0.2.0.reasonix diff default picks itself from context:
--md <path> → write markdown + print summary (unchanged).--print or piped stdout → stdout summary table.--md, no --print → TUI.replay.test.ts +6: groupRecordsByTurn +
computeCumulativeStats; diff.test.ts +4: divergence navigation).
Suite: 169 passing (was 159).Headline: v0.2 makes the v0.1 cache-hit claim *auditable*. Any reader can now verify the 94.3% / −42% numbers from committed JSONL transcripts — no AP
Headline: v0.2 makes the v0.1 cache-hit claim auditable. Any reader can now verify the 94.3% / −42% numbers from committed JSONL transcripts — no API key required.
reasonix replay <transcript> — pretty-print a past transcript and
rebuild its full session summary (turns, tool calls, cache hit, cost,
prefix stability) offline. No API calls.reasonix diff <a> <b> — compare two transcripts: aggregate deltas,
first divergence (with Levenshtein similarity for text + exact match
for tool-name / args), prefix-stability story. Optional --md <path>
writes a blog-ready markdown report.benchmarks/tau-bench/transcripts/ — committed reference transcripts
(baseline + reasonix on t01_address_happy) so anyone can clone the
repo and run reasonix replay / diff immediately, without running
the bench.--transcripts-dir <path> — emits one JSONL
per (task, mode, repeat) tuple for replay/diff.computeReplayStats, replayFromFile,
diffTranscripts, renderDiffSummary, renderDiffMarkdown,
parseTranscript, recordFromLoopEvent, writeRecord.usage, cost, model, prefixHash (reasonix only), and toolArgs.
All fields optional on read — v0.1 transcripts still parse (cost/cache
shown as n/a). A _meta line at the top records source/model/task
metadata.validated numbers table now shows the 16-run
τ-bench-lite results (94.3% cache, −42% cost) and links to the
committed reference transcripts.LoopEvent.toolArgs so transcript writers can persist
what the model sent to each tool, not just the result.import.meta.url === file://${argv[1]}) — replaced with
pathToFileURL(argv[1]).href so main() actually runs on Windows.transcript.test.ts (3), replay.test.ts (3),
and diff.test.ts (11). Total suite: 159 passing.