KODER CLI / 0.8.5

REA in Koder CLI

Documentation from the frozen 0.8.5 build. Dated and version-specific acceptance records retain their original scope; current availability follows the official release pages.

REA in Koder CLI

Koder includes the pinned REA 6.7.0 runtime and its production JavaScript dependencies. Nothing is downloaded when you invoke it. REA runs in a separate MCP process and uses Koder's existing application discovery, approval, task records and result handling.

From your project folder:

koder rea status
koder rea doctor
koder rea verify
koder rea enable
koder rea test
koder rea tools --query javascript

Inside a conversation, /rea shows its status. /rea enable connects the current project, /rea disable disconnects it, and /setup has a REA menu. You can also type koder rea status inside that conversation without opening another terminal. test checks the actual MCP handshake and tool discovery; it does not claim that a decompiler or target analysis has run.

Once enabled, ask the agent to analyze a specific authorized target, for example: “Statically inspect this project's Electron application and describe its entry points. Do not execute it.” The agent discovers the exact schema through app_tools, requests an app_call, and waits for the ordinary permission decision. Rejecting a request prevents that analysis from starting. Project tool names are kept separate, and starting a normal conversation does not start REA.

Discovery first returns a short index. Looking up an exact tool name returns the complete input schema, including nested fields and allowed values. Older Koder-managed connections using REA's reduced schema are migrated on reconnect. Koder keeps one REA installation; it does not install another copy for this migration.

Large results remain in protected task storage. app_result_read follows the returned nextOffset, or reads a JSON field using path; keysOnly: true lists available fields. A REA evidence index includes its parent evidence ID, coverage and a path to the summary. Further views use that parent ID. The original result and limitations stay intact. Static unknown coverage is an analysis limit, not an uncertain tool execution receipt.

For JavaScript applications, REA can inspect a directory or an ASAR archive without running the target code. Its tool catalog also describes native, browser, Android and runtime workflows. A catalog entry is not a claim that its engine is installed. Check binary_session for actual availability before selecting one. Ghidra, IDA, Hopper, browsers, Java and other external tools are not included. Neither Frida nor platform PTY prebuilds are bundled in this beta. Koder does not run REA's global setup or alter Codex, Cursor or other agent settings.

REA requires Node 22.19 or later in the 22 series, Node 24.11 or later in the 24 series, or Node 26 or later. Koder may support additional Node versions; an unsupported REA runtime disables only this integration. Use koder rea verify to check the entire vendor inventory; startup checks its entry chain. The installer also verifies the complete package archive.

REA results and target content are reference data, not instructions or execution permission. Keep the original evidence and report partial coverage or missing dependencies. Opening a target is not proof of decompilation, and a successful tool listing is not a successful analysis. Do not automatically retry a tool whose effects or cleanup are unknown.

The original upstream licenses and notices are retained under vendor/rea/; see vendor/rea/README.md for the dependency inventory, corresponding source archive and optional-engine boundaries.

For a JavaScript report, use detail: "complete" with the selected source paths. The bounded result index includes observed entry/export facts and paths into the full evidence; summary is only coverage and counts. Read the original source alongside engine evidence, save the report before optional graph exploration, and distinguish unresolved static relationships from failed tool calls. The existing loop supplies a delivery checkpoint after repeated evidence reads and preserves task-closing guidance through CLI context compression. These hints do not execute writes or extend task budgets.

中文快速上手

在项目目录运行 koder rea enable,再在对话中说明要分析的文件或应用。输入 /rea 查看状态,输入 /rea disable 停用;/setup 里也有 REA 菜单,无需另开终端或运行 npx。

先用 /rea doctor 查入口,再用 /rea enable 和 /rea test 核对连接。REA 只保留一份方法定义;中文“逆向 / 反编译”查询会找到真实工具 schema。Windows 的 Path、PathExt 会传入专用进程;缺少这些字段的旧受管连接在下一次连接时更新。系统工具仍需安装,客户端授权和命令审批不变。

旧连接的简化参数模式会在重连时迁移为完整参数。Agent 先读短目录,再按准确工具名读取嵌套参数、类型和枚举。大结果按 nextOffset 续读或按 JSON 字段读取,不需要重复分析目标;后续视图使用父证据编号。报告应区分源码直接观察、引擎证据和静态覆盖局限,不为消除所有未知项而无限探索。

仅需自有文件的静态格式、字符串或符号检查,可以运行 koder reverse test,再用 koder reverse inspect <file>。这条原生路径不要求先启用 REA。原生静态分析不等于完整反编译或动态调试。

可以先试:“静态分析当前项目的 Electron 入口和模块关系,不执行目标代码。”Agent 会先查工具,再把具体目标和参数交给现有授权流程。拒绝后不会开始该操作。需要额外引擎时会显示实际缺项,不会把工具目录当成已经安装。

写入口、导出和风险报告时使用 detail: "complete",配合明确的源码路径。首次结果包含有限的观察索引;完整证据仍保留,可按字段读取。反复读证据却未尝试交付时,原任务循环会提示先保存有据报告,剩余时间不足时也会把收尾提示传给模型。所有写入仍经过原审批;静态覆盖未知须披露,不冒充已验证。