The VS Code extension is a thin shell. It does not bundle the Reasonix CLI; it starts your local reasonix acp backend and adds chat, workspace sessions, editor context, and approval cards. If reasonix --version works on the terminal, the extension will work; if it does not, the extension cannot save you.

Reasonix files and directories at a glance

How a Reasonix turn flows from input to provider to tools

Reasonix version timeline: 0.x TS legacy, 1.0 Go rewrite, current 1.17.x

Before you start

  1. Reasonix 1.0+ installed and on $PATH
  2. reasonix setup finished with at least one provider configured
  3. VS Code 1.85+ (any stable channel)
  4. A workspace folder open — the extension is workspace-scoped

Install

  1. Open the Extensions side bar (Ctrl+Shift+X), search for SivanLiu.reasonix-agent, and click Install. The same extension is on the Open VSX Registry for VSCodium and Eclipse Theia.
  2. Open a project folder. The extension starts an ACP backend scoped to that workspace; multiple roots get one client each.
  3. Open the Reasonix activity bar view, then Reasonix: Open Settings to set the CLI path if reasonix is not on $PATH. Empty value means “resolve from PATH”.
  4. Start a session with Reasonix: New Session, pick a model, and choose Ask / Auto / Yolo for tool approvals. The first send will probably ask for confirmation before editor context is attached.
  5. Reference workspace files with @src/file.ts or @src/ to attach bounded resource context. Use slash commands /explain, /fix, /tests, /search, /mcp, /skills as you would in the TUI.

The configuration

Two files: TOML for non-secret configuration, .env for key values. Resolution order is flag > ./reasonix.toml > ~/.reasonix/config.toml > built-in defaults.

Toml
# install from the marketplace CLI
code --install-extension SivanLiu.reasonix-agent

# set the CLI path explicitly when global npm is on a non-default prefix
# (Settings → Extensions → Reasonix → Binary Path)
# "/home/you/.npm-global/bin/reasonix"

# one-shot reasonix acp is what the extension shells out to
reasonix acp --model deepseek-pro --profile delivery

Commands and settings

Command What it does
Reasonix: Open Chat Open the activity-bar chat view backed by reasonix acp.
Reasonix: New Session Stop the current ACP client for the active workspace and start a fresh session.
Reasonix: Send Selection Send current file path, language, selection, or nearby cursor window as turn context.
Reasonix: Cancel Turn Send session/cancel to the active Reasonix session.
Reasonix: Pick Model Open a model picker backed by the Reasonix ACP model list.
Reasonix: Pick UI Language Switch the chat UI between Auto / English / Simplified Chinese.
Reasonix: Open Settings Open the in-extension settings view (CLI path, model, language, context mode, auto-start, trace).
Reasonix: Show Output Open the Reasonix OutputChannel for ACP diagnostics.

Settings

Setting Purpose
reasonix.binaryPath Absolute CLI path. Empty means resolve reasonix from PATH.
reasonix.model Optional provider/model passed to reasonix acp --model. Empty uses config default.
reasonix.uiLanguage Auto / en / zh-CN.
reasonix.autoStart Start ACP when the chat view opens.
reasonix.trace Write ACP JSON-RPC traffic to OutputChannel. Enable only when debugging.
reasonix.includeSelectionMode off / selectionOnly / nearby. Controls editor context appended to prompts.

Common failure modes

  • Reasonix CLI was not found — install Reasonix first, then either add ~/.npm-global/bin to PATH or set reasonix.binaryPath.
  • Disconnected in the chat view — open Reasonix: Show Output; most often the ACP process crashed because provider config is empty. Run reasonix setup.
  • Model list unavailable — older Reasonix versions do not advertise the optional model/list extension. Upgrade to 1.8.1+ or accept the configured default.
  • Diff preview does not open — some edits cannot be previewed safely (binary files, ambiguous replacements). The approval card still shows raw tool input; review before allowing.
  • Editor context never appears in the prompt — reasonix.includeSelectionMode is off or there is no selection. Confirm in Settings.

Sources

Last modified: 2026年7月23日

Author

Comments

Write a Reply or Comment

Your email address will not be published.