Skip to content

[codex] Make gstack installable from a repo-local Codex plugin marketplace#1286

Draft
chenjiayi8 wants to merge 1 commit intogarrytan:mainfrom
chenjiayi8:feat/codex-plugin-compatibility
Draft

[codex] Make gstack installable from a repo-local Codex plugin marketplace#1286
chenjiayi8 wants to merge 1 commit intogarrytan:mainfrom
chenjiayi8:feat/codex-plugin-compatibility

Conversation

@chenjiayi8
Copy link
Copy Markdown

@chenjiayi8 chenjiayi8 commented May 1, 2026

What changed

  • added a repo-local Codex plugin manifest at plugins/gstack/.codex-plugin/plugin.json
  • added .agents/plugins/marketplace.json so Codex can discover the local plugin from this repo
  • added bun run plugin:codex:prepare to regenerate Codex skill output and refresh the runtime sidecar that the plugin points at
  • documented the repo-local Codex plugin flow in README.md
  • added a regression test for the plugin manifest, marketplace entry, and skills symlink

Why it changed

The repo already generated Codex-specific skills, but there was no installable Codex plugin bundle or marketplace entry tying those generated artifacts together. This change makes the repository directly consumable through Codex's local plugin marketplace without committing the generated .agents/skills tree.

User / developer impact

Developers can now run bun run plugin:codex:prepare and have Codex install gstack from this repository via .agents/plugins/marketplace.json, instead of relying only on ~/.codex/skills installs.

Root cause

Codex compatibility existed at the generated-skill layer, but not at the plugin-discovery layer: no .codex-plugin/plugin.json, no local marketplace entry, and no repo-local helper to prepare the runtime sidecar that generated Codex skills expect.

Validation

  • bun run plugin:codex:prepare
  • bun test test/codex-plugin-compat.test.ts
  • git diff --check

Notes

  • I attempted the full bun test suite, but this checkout currently hits unrelated missing-module/unhandled-test issues and a timeout in test/global-discover.test.ts.
  • I also ran bun run skill:check, which currently fails in this checkout because non-Codex host outputs are stale or missing.

View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

Codex already had generated skill docs, but the repo lacked a plugin manifest and marketplace entry. Add a repo-local plugin bundle that points at the generated .agents/skills tree, plus a helper script that regenerates Codex skills and refreshes the gstack sidecar expected by runtime path references. Document the workflow and add a regression test around manifest and marketplace wiring.

Constraint: .agents/skills remains generated and gitignored, so the plugin must reference generated output without committing it
Constraint: Existing Codex skill prompts expect repo-local runtime files under .agents/skills/gstack
Rejected: Commit the entire generated .agents/skills tree into the repo | too noisy and duplicates generated artifacts
Rejected: Point the plugin directly at source SKILL.md files | Codex needs the host-rewritten skill output
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: If Codex skill generation paths change, update scripts/prepare-codex-plugin.ts and the plugin symlink test together
Tested: bun run plugin:codex:prepare
Tested: bun test test/codex-plugin-compat.test.ts
Tested: git diff --check
Not-tested: Full bun test suite (this checkout currently hits unrelated missing-module and timeout failures)
Not-tested: bun run skill:check (this checkout currently has stale or missing non-Codex host outputs)
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