Repository navigation
Conversation
Add .claude-plugin/plugin.json at the repository root so Claude Code plugin directories and marketplaces can list REA. The manifest bundles the authored reverse-engineer-anything skill from .agents/skills/ and registers the existing stdio server through npx; it adds no second distribution artifact. Release Please now bumps the manifest version with each release, which is when installed plugins refresh the bundled skill. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add .codex-plugin/plugin.json so Codex loads REA with its own display metadata, and make the repository a single-plugin marketplace for both clients through .agents/plugins/marketplace.json and .claude-plugin/marketplace.json. Users can now add morluto/rea as a marketplace and install the plugin without waiting for a directory listing. Release Please bumps the Codex manifest version alongside the Claude one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Release PRs now bump .claude-plugin/plugin.json and .codex-plugin/plugin.json, but the publication history check rejected them as post-notes product changes and the release configuration test still expected the previous extra-files list. Admit both manifests in the release-only allowlist, expect them in the Release Please configuration, and assert that each manifest version matches package.json. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The release-only allowlist gained both plugin manifests without a test naming them. The publication history test now commits both manifests in the release commit, so it fails with "Product changed after notes target" if either path is dropped from the allowlist. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex's plugin validator rejects a manifest whose interface omits capabilities. Declare them in .codex-plugin/plugin.json and assert the required interface fields in the release configuration test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eout The Codex manifest left startup_timeout_sec at the client default, unlike the registration rea setup writes, so a cold npx start could be cut off before tools appeared. Carry the owned timeout in the Codex server entry and assert it against MCP_STARTUP_POLICY. Co-Authored-By: Claude Opus 5.5 <[email protected]>
rea doctor's client and skill checks only read state that rea setup manages, so a plugin-only install reports missing and recommends the second registration the plugin section warns against. Say so, and point plugin users at the client's own plugin listing and provider-scoped doctor checks. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A plugin-only install has no rea executable on PATH, so the documented rea doctor command failed with "command not found". Show the package runner form instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both manifests started `rea-agents@latest`, so a server start could run a different package version from the installed plugin and bundled skill, and would execute whatever npm's latest tag pointed at. Pin the launch to the manifest version and have Release Please rewrite it with each release. Release Please reserializes JSON extra-files with JSON.stringify, which the formatter would reject in every release PR. Store both manifests in that form, exempt them from the formatter, and assert the form in conformance. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The bundled skill said installing it never registers the MCP server and sent every missing-tools case to rea doctor --client and rea setup. For a plugin-only install those report missing and setup would add a second rea server. Tell the agent how to recognise a plugin install and to use the client's own plugin and MCP listings instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The publication checkpoint validated package, lockfile, server and generated metadata versions but not the plugin manifests, so a candidate could be tagged with a manifest version or pinned server launch left at the previous release. Validate both fields in both manifests. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…idation The checkpoint stripped an optional rea-agents@ prefix before comparing, so a manifest launching a bare release number passed even though npx would fetch a package named after that number. Compare the whole specifier and report the launched value. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add .cursor-plugin/plugin.json and the server file it names so Cursor can load REA as a plugin. It registers the same version-pinned stdio server as the Claude Code and Codex plugins. The skill is not bundled, because Cursor loads plugin skills from a directory of skill folders and .agents/skills also holds maintainer-only skills. Release Please, the publication checkpoint, the release-only allowlist and the formatter exemption cover both new files. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: effc3418d9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
# Conflicts: # docs/installation.md
…e notes target The publication history check admitted the plugin manifests whole, so a release could change plugin behavior, such as the bundled skill path or the server environment, and still pass as release-only. Compare each manifest across the release with its version and pinned server launch blanked, and treat any other difference as a product change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # scripts/lib/release-notes.mjs # tests/boundary/filesystem/releaseNotes.test.ts
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@greptileai review |
|
…nifests The version-only comparison blanked the whole launch argument, so a release that swapped rea-agents for another package passed the notes check as a version bump. Mask only the version after the last "@" and test a changed package name. The plugin readiness command in the installation guide now uses the pinned release version, so its report describes the server the plugin starts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The release notes tests built every plugin file from the inline manifest shape, so the Cursor manifest carried an inline server and its server file carried a version and skills. Build each file from its shipped shape and reject a changed server file reference, launched package and server environment. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bd86c597f7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open. The Codex command added the marketplace but did not install the plugin. The installation flow now includes The bare The manifest regression still encoded the old npx command shape. Its assertions now cover the Node launcher and exact package pin for each client. Source inspection and git diff --check passed; tests were not run. The shared package-runner implementation is an MJS dependency of compile-time setup code, but Turbo’s explicit compile input list omitted it. Both the MJS implementation and declaration are now compile inputs, so a source-only change invalidates the cached compile. Installed Turborepo task-input docs were consulted; no Turbo command or build was run. The launcher still owns only the direct cmd.exe child; child.kill() does not establish ownership or cleanup of npx/REA descendants on Windows. This source-only launcher has no verified Job Object or guardian ownership contract. No process-name/PID cleanup was invented. Keep unresolved until descendant lifecycle supervision is added through an approved, evidence-backed ownership mechanism. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 75e10fabd7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "type": "json", | ||
| "path": ".claude-plugin/plugin.json", | ||
| "jsonpath": "$.mcpServers.rea.args[1]" |
There was a problem hiding this comment.
Preserve package names when Release Please bumps pins
In the .github/workflows/release.yml Release Please v4.4.1 job, the json extra-file updater assigns the new version verbatim to the selected JSONPath; it does not replace only the SemVer suffix. On the next release this entry (and the analogous Codex and Cursor entries) therefore rewrites [email protected] to bare 6.5.0, which the plugin launcher rejects and the new checkpoint/conformance checks also reject, so the automated release PR cannot pass. Store the version separately and have the launcher compose the package specifier, or use an update mechanism that preserves the rea-agents@ prefix.
Useful? React with 👍 / 👎.
| const child = spawn(command, args, { | ||
| stdio: "inherit", | ||
| shell: false, | ||
| }); |
There was a problem hiding this comment.
Launch the escaped cmd script with verbatim arguments
On Windows when the temporary directory contains whitespace (for example C:\Users\Jane Doe\AppData\Local\Temp), escapeWindowsCmdArgument returns a token containing literal carets and quotes, but this spawn uses Node's default windowsVerbatimArguments: false, so libuv wraps and backslash-escapes that already escaped token again before cmd.exe parses it and the nested npx.cmd receives a corrupted --prefix. Fresh evidence beyond the earlier prefix-escaping review is that the producer now emits npm-style pre-escaped text while this consumer still omits npm's /s and verbatim command-line handling; construct and launch the cmd script with equivalent verbatim semantics or avoid the shell.
Useful? React with 👍 / 👎.
|
Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open. review thread, review thread, review thread Status: Source fix pushed; public head verified with gh pr view. Validation is source-only; no tests/builds/checks/CI reruns were run. Root cause, owner-level fix, and any residual cleanup are recorded in the per-PR result. This is not a claim of exact CI reproduction. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4caf058a9d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| manifest.mcpServers.rea.args[1] = "6.4.0"; | ||
| await writeFile(join(f.directory, path), JSON.stringify(manifest)); |
There was a problem hiding this comment.
These writes happen after source is committed, but check --source reads that committed tree, not the edited files. The test still checks only the old package-specifier form and would pass if the bare-version fix were removed.
Move the writes before the existing commit so the checked source contains the new pins.
Prompt To Fix With AI
This is a comment left during a code review.
Path: tests/boundary/filesystem/releaseNotes.test.ts
Line: 453-454
Comment:
**Test misses bare-version pins**
These writes happen after `source` is committed, but `check --source` reads that committed tree, not the edited files. The test still checks only the old package-specifier form and would pass if the bare-version fix were removed.
Move the writes before the existing commit so the checked source contains the new pins.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 31b7f19457
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "6.4.0" | ||
| ], | ||
| "startup_timeout_sec": 30, | ||
| "cwd": "." |
There was a problem hiding this comment.
Preserve the active workspace as the Codex server cwd
When a Codex plugin user calls capture_process_scenario with its omitted or relative working_directory, this setting starts the launcher—and therefore npx/REA—from the plugin checkout rather than the active workspace. The scenario schema defaults that field to . (src/domain/process/processScenario.ts:151), and runtime resolution uses process.cwd() (src/process/capture/ProcessScenarioRuntimeValidation.ts:16), so common . inputs look for executables and observation paths under the installed plugin and can run against the wrong directory. Resolve the launcher from the plugin root without replacing the workspace cwd, or pass the original workspace cwd through explicitly.
AGENTS.md reference: AGENTS.md:L13-L13
Useful? React with 👍 / 👎.
|
Sorry for the disruption: I deleted my fork by accident, which closed this PR and means it cannot be reopened or pushed to. Nothing is lost. The final commit here ( If it is easier to fold the Cursor files into #2815 instead, #3003 can simply be closed. |
Two files from the last commits on morluto#2134 failed `oxfmt --check`, which fails the static gate. Apply the formatter; no behavior changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two files from the last commits on morluto#2134 failed `oxfmt --check`, which fails the static gate. Apply the formatter; no behavior changes.
Two files from the last commits on morluto#2134 failed `oxfmt --check`, which fails the static gate. Apply the formatter; no behavior changes.
Two files from the last commits on morluto#2134 failed `oxfmt --check`, which fails the static gate. Apply the formatter; no behavior changes.
Summary
Adds a Cursor plugin manifest so Cursor can load REA as a plugin, alongside the Claude Code and Codex plugins from #1977. No issue is linked; it follows from that PR.
Problem and expected behavior
Use case: a Cursor user installs REA as a plugin and gets the
reaMCP server at the version the plugin declares. Today Cursor users can only userea setup --client cursor.Change and scope
.cursor-plugin/plugin.json— manifest (name,displayName,version, metadata) with"mcpServers": "./.cursor-plugin/mcp.json"..cursor-plugin/mcp.json— the server entry,npx -y [email protected] mcp, in the{ "mcpServers": { … } }file shape Cursor's own plugins use.extra-files, the publication checkpoint (version and full launch specifier), the release-only allowlist, and theoxfmtexemption.docs/installation.mdanddocs/releasing.md.The skill is not bundled, and that is the main limitation. Cursor's
skillsfield takes a directory of skill folders..agents/skills/also contains the maintainer-onlyrea-changelog-updateandrea-tool-designskills, so pointing at it would expose those to every user, and I found no evidence that Cursor accepts a path to a single skill folder. This is the same root question as the open threads on #1977 about a canonicalskills/layout; once that is decided, the skill can be added here. Until then this plugin gives Cursor the server only, and the docs say to userea setup --client cursorwhen the workflow instructions are wanted.Not included: a
.cursor-plugin/marketplace.json(Cursor documents it for multi-plugin repositories), a logo, and any install command in the docs (Cursor's documentation describes marketplace submission, not installing from a repository, so I did not write one).Contract and boundary impact
npx … mcpcommand.package.json#filesis unchanged, so the npm tarball is unaffected. The publication checkpoint now requires both new files.Evidence and regression coverage
releaseConfiguration.test.ts(Release Please entries, pin, stored form),releaseCheckpoint.test.ts(stale version, stale launch, bare-version launch for the Cursor files),releaseNotes.test.ts(allowlist).cursor/pluginsandcursor/plugin-template, where"mcpServers": "./mcp.json"points at a file with a top-levelmcpServersobject.npxare all unverified. Cursor's template validator targets a multi-plugin marketplace layout, so I did not run it; I checked its rules by reading (name pattern, referenced path exists, safe relative path).Validation performed
Windows 11, Node 24.21.0, at
90c9b78:npm run check— passed.npm run docs:check— passed.npx vitest run tests/conformance/releaseConfiguration.test.ts tests/boundary/filesystem/releaseCheckpoint.test.ts— 58 passed, 4 skipped.GenericJsonover all plugin files for a simulated 6.5.0 release —.cursor-plugin/plugin.jsonversion and.cursor-plugin/mcp.jsonlaunch both updated, one line each, stored form unchanged.Not run:
releaseNotes.test.ts(does not run on Windows; the change extends a list in a test verified on Linux in #1977),npm run verify:package, any Linux run, and anything in Cursor.Compatibility, safety, and release
extra-files; the checkpoint requires both files, so a candidate cut from older source fails it.rea setupregistration in Cursor would get tworeaservers.Review checklist
type(scope): outcome.🤖 Generated with Claude Code