Skip to content

v1.74.0.0 feat(codex): add minimal repo-local plugin bridge - #2723

Closed
yansigit wants to merge 3 commits into
garrytan:mainfrom
yansigit:codex/minimal-codex-plugin
Closed

yansigit wants to merge 3 commits into
garrytan:mainfrom
yansigit:codex/minimal-codex-plugin

Conversation

@yansigit

@yansigit yansigit commented Aug 29, 2026 •

Copy link
Copy Markdown

Why (in your own words)

Codex users can generate gstack skills today, but cannot install this repository through Codex's plugin UI without a small bridge. This adds that bridge by reusing the existing Codex setup path and copying real files into a repo-local plugin, because Codex currently drops symlinks when caching plugins. It replaces the deferred approach in #1286 with 136 added lines instead of 208, a 35% reduction, while keeping remote distribution out of scope.

Live evidence

$ bun run plugin:codex:prepare
Plugin validation passed: plugins/gstack

$ codex plugin list
gstack@gstack-local  installed, enabled  0.1.0  .../plugins/gstack

$ find ~/.codex/plugins/cache/gstack-local/gstack/0.1.0 -type l | wc -l
0

$ find ~/.codex/plugins/cache/gstack-local/gstack/0.1.0/skills -mindepth 1 -maxdepth 1 -type d | wc -l
54

$ cd /tmp && ~/.codex/plugins/cache/gstack-local/gstack/0.1.0/skills/gstack/bin/gstack-skill-start --skill gstack --model gpt --parent-pid $$ | head -1
SKILL_START_PROTO: 1

$ bun test test/gen-skill-docs.test.ts test/routing-probe.test.ts test/host-config.test.ts test/context-budget-ratchet.test.ts
508 pass
0 fail

bun run build also passes. The canonical parallel runner hit existing test-isolation/resource-contention flakes; the affected files pass alone (117/117), and three CI-shaped shards covering this change passed. Plugin preparation, manifest validation, dereferenced-cache verification, and focused generator/routing tests all pass.

Scope

  • Changed: Added plugin:codex:prepare, the gstack-local marketplace, a gstack plugin manifest/icon/prompts, Codex-only plugin-cache resolution, documentation, and regression tests.
  • Verified live by: Preparing and installing gstack@gstack-local, running its cached runtime outside the repository, validating zero cached symlinks, running 508 focused tests, and building the project.
  • Did NOT test: Remote Git/npm distribution, automatic publishing, MCP, hooks, assets beyond the bundled icon, or Windows plugin installation. These are intentionally out of scope.

Liveness proof (required)

image

Checklist

Implementation notes

  • Plugin preparation uses a temporary CODEX_HOME, runs the existing Codex setup path, and copies with cp -RL so cache installation contains real files.
  • Runtime resolution remains Codex-only and preserves precedence: active repository, plugin cache, then the normal global fallback.
  • Pulling updates requires rerunning preparation and codex plugin add gstack@gstack-local.
  • Remote one-click distribution remains a separate future proposal.

Review and coverage

  • Pre-landing review: clean, no findings.
  • Focused path coverage: 7/8 (88%); the unautomated path is preparation failure injection.
  • Plan completion: 23/27 original items complete; four were intentionally changed by follow-up requests (remove Ponytail comments, add icon/prompts, expand update instructions, and accept the final concise diff).
  • Documentation: README and changelog cover installation, update behavior, precedence, and the symlink rationale; no documentation debt or diagram drift found.

@trunk-io

trunk-io Bot commented Aug 29, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@capy-ai

capy-ai Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Thank you for this, @yansigit. It's a reasonable idea, but not one we can take right now: Plugin distribution should be designed once across hosts (Claude marketplace and Codex plugins), alongside the deferred marketplace item, not as a Codex-only preamble special case. We're parking it: closing the PR and recording the idea in TODOS.md under its theme, so it isn't lost. When we pick that theme up we'll reference this PR and credit you.

@capy-ai capy-ai Bot closed this Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant