Repository navigation
feat(clients): register Qoder CLI during setup - #1572
Conversation
- SupportedClients: qoder definition (~/.qoder/settings.json, format json, QODER_CONFIG_DIR override honored) - Qoder CLI documents mcpServers as the user-scope server table with command/args/env and stdio as the default transport; no personal skills directory is documented, so setup skips the skill copy - tests: qoderClientConfiguration.test.ts (path resolution and QODER_CONFIG_DIR override, upsert preserving unrelated settings, fresh/empty configs, uninstall) Verified: tsc --noEmit clean; vitest run tests/boundary/filesystem/qoderClientConfiguration.test.ts 6/6.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
TL;DR: Setup writes the right config file for this closed-source terminal coding agent. Tests pass on Node 22, 24 and 26. The new docs text says setup makes no skill copy, but it still copies one to ResultsTested on Linux. The PR is
The shared copy is how setup treats any client without a Not run
Thanks, IvenKooLab, for the tests of the Cases I ran and what they showed
Uninstall leaves an empty Comments in the settings fileThe settings page says the file allows Open source checkI found no source repository for the CLI. Its npm package has no licence field. The vendor's GitHub organisation has changelogs, demos and a GitHub Action (MIT), but no CLI source. So I call it closed source and do not name it here. This is my own check, not a statement from the vendor. Commandsgit --git-dir=$HOME/code/rea-mirror/rea.git fetch -q origin
git archive <sha> | tar -x -C <dir>
npm run build && npm run docs:check
node scripts/run-development-tests.mjs focused \
tests/boundary/filesystem/qoderClientConfiguration.test.ts \
tests/boundary/filesystem/clientLifecycle.test.ts
env -i PATH="$NODE24/bin:/usr/bin:/bin" HOME="$FAKE" TMPDIR="$FAKE/tmp" \
XDG_CONFIG_HOME="$FAKE/.config" XDG_DATA_HOME="$FAKE/.local/share" \
XDG_CACHE_HOME="$FAKE/.cache" XDG_STATE_HOME="$FAKE/.local/state" \
npm_config_cache="$FAKE/.npm" timeout 60 \
node scripts/rea.mjs setup --client qoder --yes --format jsonI ran a dry run first. Test setup
🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
Reviewed this change and found one setup gap: [P2] Install Qoder CLI's personal REA skill. The new definition in The MCP settings path and registration dialect match official documentation. Validation: all six new filesystem tests and 43 shared client-lifecycle tests pass on macOS with Node 24.18.0 and npm 11.16.0. Qoder itself was not executed. |
Review follow-up (morluto#1572): the Qoder CLI Skills documentation lists ~/.qoder/skills/{skill-name}/SKILL.md with automatic discovery, so the definition now carries skillPath following Qoder's configuration location (QODER_CONFIG_DIR honored) and setup installs the bundled skill copy there. The installation docs no longer claim Qoder has no personal skills directory, and the bundled REA skill's supported client list includes qoder. Verified: tsc --noEmit clean; vitest run tests/boundary/filesystem/qoderClientConfiguration.test.ts 7/7.
|
Thanks — fixed in 0c36900. The definition now carries A new test asserts the skill destination with and without |
|
Thanks @IvenKooLab for adding Qoder CLI support, including the configuration-directory override and personal skill destination. These are useful additions for Qoder users. Really appreciate the work you put into all three integrations! |
Summary
Registers the Qoder CLI as a supported client during
npx rea-agents setup, following the same pattern as the merged Qwen Code registration (#1415). After this change, Qoder users can install REA with one command: setup writes thereaMCP server into the user-level~/.qoder/settings.json.Problem and expected behavior
Qoder (Alibaba's agentic coding IDE/CLI) is not among the clients setup recognizes, so its users must hand-edit their settings to add REA's MCP server. Expected behavior: after setup,
mcpServers.reaexists in~/.qoder/settings.json; uninstall removes exactly thereaentry.Qoder's configuration (per the official CLI MCP reference):
mcpServersfield of the user-scope~/.qoder/settings.json.command,args,env(and optionalcwd); stdio is the default transport whentypeis omitted.QODER_CONFIG_DIRoverride (matched the same way asCODEX_HOME).skillPathand setup skips the skill copy.Change and scope
SupportedClients:qoderdefinition — config path~/.qoder/settings.json, marker~/.qoder, formatjson(the standardmcpServersdialect),QODER_CONFIG_DIRoverride honored.mcpServerswithcommand/args/envis exactly the existingjsonformat.skillPath, so noSetupPlan/Uninstallchanges are needed.SharedClientCache/mcp.json), so this PR targets the officially documented CLI settings file, which lives in the same~/.qoderroot.Contract and boundary impact
SupportedClients).qoderclient reusing the existingjsonconfiguration format.reaentry.docs/public/product-catalog.json), package, or installation impact: none authored; generated catalogs stay CI-owned.Evidence and regression coverage
tests/boundary/filesystem/qoderClientConfiguration.test.ts(6 cases) — config path resolution across platforms,QODER_CONFIG_DIRoverride (set and empty), upsert preserving unrelatedmcpServersentries and settings keys, fresh/empty documents, and uninstall removing onlyrea.clientLifecycle.test.tsexpected-client list now includesqoder.clientLifecycle.test.tsfail on this Windows machine because Node cannot create symlinks without Developer Mode, reproduced identically on stockmain.For evidence-bearing changes:
Validation performed
npm ci— clean install (Node v22.23.2, npm 10.9.8;.nvmrcpins 24.18.0, so CI covers the pinned toolchain)npx vitest run tests/boundary/filesystem/qoderClientConfiguration.test.ts— 6/6 passednpx tsc -p tsconfig.json --noEmit— cleannpm run check:fast— typecheck + lint green (also runs as the pre-push hook)npm run verify:test-discovery— all test files discovered exactly oncenpx vitest run tests/boundary/filesystem/clientLifecycle.test.ts— 41/43 passed; the 2 failures are the pre-existing Windows symlink cases described above (identical onmain)Compatibility, safety, and release
reaentry into~/.qoder/settings.json(preserving all unrelated settings); no network access or process execution added.Review checklist
type(scope): outcome.