Repository navigation
Open
Description
Before submitting
- I searched the open and closed issues for a related report.
- I removed credentials, tokens, private paths, and sensitive target data.
Area
Setup, packaging, or upgrade
Observed behavior
- Claude Code's user-scope registration was
cmd.exe /d /c npx -y rea-agents@6.8.0 mcp. Started with cwd = a REA source checkout, the server failed withCONNECTION_CLOSED. - Inside that checkout,
npx -y rea-agents@6.8.0 --versionprinted'rea' is not recognized as an internal or external command. npx -y rea-agents@6.8.0 doctor --client claude_code --jsonfails the same way inside the checkout. When run from%APPDATA%\npm\rea.cmdinstead, doctor reported this registration as"state":"aligned"with"remediation":null.
Reproduction
Each step was run once on this machine.
- In a REA source checkout (root
package.jsonnameisrea-agents, nothing built intonode_modules\.bin), make sure noreais on PATH. npx -y rea-agents@6.8.0 --versionfails with "'rea' is not recognized".npx -y -p rea-agents@6.8.0 -c "echo %PATH%": the child PATH has<checkout>\node_modules\.binand its parent chain. It has no_npx\<hash>\node_modules\.binentry.cd %TEMP%and repeat step 2: it prints6.8.0.
Expected behavior
- doctor should not report a package-runner registration as aligned when it can't establish that the client can launch it.
- Setup and the recovery guidance should avoid launchers whose resolution depends on the client's working directory.
Impact and scope
- REA contributors whose agent runs inside the checkout. The registration silently fails, and doctor's "aligned" points the recovery away from the cause.
- Untested: other clients, macOS/Linux shells, and
bunx.
REA version
6.8.0 (npm, published 2026-10-25). Source compared at main c5301e614.
Runtime and platform
Node 26.13.0, npm 11.20.0, Windows 11 x64, Claude Code.
Target and artifact context
Not applicable (MCP registration and launcher resolution)
Interface
Package or setup
Earliest failure stage
Setup or provider admission
Relevant output or evidence
- Observed: the commands and output above, and doctor's
identity.registrations[]entry forclaude_codeshowingstate: "aligned". - Source (6.8.0 dist,
application/ClientRegistrationStatus.js,registrationAligned): an exactnpx/bunxregistration command returns"aligned"without further checks. - Source (main):
c77735fa8(2026-10-28, "bind managed registrations to selected installation") classifies package-runner registrations as"stale", and setup migrates them to the selected installation. The skill now says to runnpx"from a trusted directory outside the target project". - Likely fixed on main for registration status, but unreleased. NOT_ENOUGH_INFO on whether main behaves correctly at runtime: main wasn't built or run here.
Analysis or suspected cause
Source-derived and observed: npm exec resolves the request against the local project named rea-agents rather than the published package, so it looks for a bin that doesn't exist.
Proposed (unverified):
- In the connection/recovery guide and AGENTS.md, say explicitly not to run
npx rea-agentsfrom inside a REA checkout. - Confirm that the next release's doctor marks old npx registrations stale.
Metadata
Metadata
Assignees
Labels
No labels
Activity
2SinceJuly commentedon Nov 9, 2026
Docs-side fix opened: #9695. It names the REA source checkout as a second exclusion alongside the target project in the setup guidance, and says what the failure looks like (
'rea' is not recognizedin the launcher, then a closed connection in the client).Two parts of the report are not covered by that PR:
aligned— that is the 6.8.0 dist. On currentmain,registrationAlignedreturnsstalefor any package reference (src/application/ClientRegistrationStatus.ts:493, "Legacy package runners remain owned, but setup migrates them to the selected installation"), so this looks fixed for registration status, as the report itself suspects. I did not run the 6.8.0 dist here, so this stays source-derived.