Skip to content

feat(plugins): make Claude Code and Codex installs self-contained - #7514

Merged
gensokyo-dev merged 47 commits into
mainfrom
feat/rea-plugin-installation-2815
Oct 27, 2026
Merged

gensokyo-dev merged 47 commits into
mainfrom
feat/rea-plugin-installation-2815

Conversation

@gensokyo-dev

@gensokyo-dev gensokyo-dev commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Codex can report REA installed while providing no MCP server: earlier npm artifacts lack plugin wiring, and Codex's npm source does not install runtime dependencies. This completes #2815 (original proposal #1977) on current main and retains @GamerDubz's original commits and maintainer follow-ups on the topic branch; their verified co-author credit is included in the squash commit.

Both marketplaces select one exact npm release containing the canonical skill, client manifests, an in-process launcher, plugin-only MCP configuration, and locked runtime dependencies including all PTY platform packages. The qualified archive projects a runtime-only manifest/shrinkwrap, retaining source development security overrides and rejecting unresolved/runtime overrides. Release Please advances every pin together. The source fallback process trees and duplicated recovery ladder are removed. CI fixture drift was corrected while preserving actual pack placement/cleanup and parser-to-bridge rejection cases.

Validation: Node 24.22.1/npm 11.16.0; locked install/prepare; build; 134 focused tests; check, docs:check, check:fast, verify:package, npm dry-run selection. After integrating main 65f1c4473, 34 MCP/packaging/release tests and docs/fast checks passed again. Package verification covers install/update/uninstall, backup recovery, and the full MCP/Evidence workflow from an extraction-only copy, with verified descendant cleanup; simulated providers do not establish native-provider behavior.

Actual clients installed the candidate through an isolated local npm registry: Codex 0.161.0 loaded the skill and all 230 tools; Claude Code 2.1.311 passed validation and reported Connected. Real [email protected] analysis returned a summary and a two-module retained-Evidence page. Local client testing covers Linux; actual Windows/macOS client loading, cold network costs, billed model tokens, and public installation remain unverified; public installation requires the first npm release containing these changes. No publication was performed.

Measured task cost

One CPU / 4 GiB limit, fresh processes with warm filesystem/package caches; direct CLI and plugin use the same installed candidate artifact, measured before the later upstream CI/test-only cleanup. Direct: 13.43 s elapsed, 14.00 CPU s, 499.8 MiB peak cgroup memory. Plugin: 12.41 / 13.69 s, 13.38 / 14.55 CPU s, 521.2 / 502.7 MiB. Full resource-scope wall time, including harness setup: 14.446 s direct, 13.833 / 15.051 s plugin. The shorter task times above cover initialize + analysis + page calls; install, schema discovery, and model workflow costs are excluded. Cleanup verified; no OOM. No speedup claim. Identical facts and MCP envelope sizes: 22,407 + 17,029 bytes; tokenx estimates 6,461 + 4,426 tokens, not billed model usage. Candidate archive: 10,142,299 → 37,385,607 bytes to support loading without a dependency-install step.

The recovery refactor also reduces the root skill from 9,221 to 8,893 tokenx-estimated tokens.

Author readiness

Human owner: @gensokyo-dev. The requester explicitly instructed opening for review and proceeding through CI/review/merge. Human-review attestations remain for the owner to complete.

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Codex automated review was unavailable due to the repository usage limit. Greptile reviewed the initial revision; its three behavioral findings are addressed in 52c311f83, and the follow-up metadata typing explanation in 3b88bb35d. All four review threads are resolved; current-head CI/review results are tracked below.

Merged as 0cd7ef456 using the repository-permitted squash method. The feature paths on main match tested head 346b11d48, release pins are aligned, and superseded #2815 is closed.

GamerDubz and others added 30 commits October 11, 2026 23:53
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]>
…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]>
…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]>
…n guide

The conformance test read only the first Release Please version block, so
adding the plugin readiness block ahead of the MCP Registry example left
the registry example unchecked. Check every block, and require each known
example to sit inside exactly one, so a stale version or a lost marker in
any of them fails.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The plugin guidance said a package-runner doctor report describes the
server the plugin starts. Doctor reads the invoking shell's environment,
while the plugin server inherits the client's, so the two can disagree
about settings such as GHIDRA_INSTALL_DIR. Point plugin users and the
bundled recovery guide at binary_session tool availability, and say what
the terminal check does and does not cover.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The plugin recovery section left the package-runner version to the skill's
generic @latest fallback, so a doctor run could describe a newer release
than the server an installed plugin starts. Tell the agent to use the
version pinned in the plugin manifest.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-27T15:56:54.374244Z
We couldn’t complete this review. Comment @codex review to try again.
c2b2839 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed code appears safe to merge; no new blocking issue was found.

Summary

Makes Claude Code and Codex plugins use the same exact npm release, with a bundled runtime, generated skill, and in-process launcher.

  • Claude Code and Codex start REA from one version-pinned plugin package.
  • Plugin users get recovery steps that avoid duplicate server setup.
  • Plugin and marketplace versions stay aligned with each release.

All four earlier, unnumbered findings are addressed in the current code. No new actionable issue or security defect was established. The previous and current commits have different merge bases with the target, so this review covered the full PR diff.

Checks were source-based; no tests or client sessions were run during this review. The supersession check was unavailable because GitHub authentication was not configured.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Source["Source manifest and lock"] --> Stage["Runtime-only staging directory"]
  Stage --> Bundle["Locked dependencies and PTY archives"]
  Bundle --> Archive["Qualified npm archive"]
  Archive --> Extract["Extraction-only MCP checks"]
  Archive --> Publish["Publish the same archive"]
  Publish --> Claude["Claude Code plugin"]
  Publish --> Codex["Codex plugin"]
  Claude --> Launcher["In-process launcher"]
  Codex --> Launcher
  Launcher --> Runtime["Bundled REA MCP runtime"]
Loading

Reviews (4) · Last reviewed commit: "chore: integrate current qualification b..." · Reviewed by Greptile

Comment thread scripts/verify-package-mcp.mjs Resolved
Comment thread .codex-plugin/mcp.json Resolved
Comment thread scripts/lib/plugin-package.d.mts Resolved
@gensokyo-dev
gensokyo-dev merged commit 0cd7ef4 into main Oct 27, 2026
41 of 45 checks passed
@gensokyo-dev
gensokyo-dev deleted the feat/rea-plugin-installation-2815 branch October 27, 2026 17:13
@morluto morluto added area: setup Setup, packaging, upgrade, install, Doctor, and client registration enhancement New feature or request labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: setup Setup, packaging, upgrade, install, Doctor, and client registration enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants