Add codex, antigravity, and opencode enforcement-gate ports#25
Draft
minhtrinh-imbue wants to merge 2 commits into
Draft
Add codex, antigravity, and opencode enforcement-gate ports#25minhtrinh-imbue wants to merge 2 commits into
minhtrinh-imbue wants to merge 2 commits into
Conversation
Each harness's own idiomatic distribution channel: - codex: real curated plugin marketplace (codex plugin marketplace add) - antigravity: agy plugin install/link (structure validated against a real local agy install; exact publish flow needs a maintainer to confirm) - opencode: npm, via the plugin config array (no marketplace exists) Scope: enforcement gate only (Stop-hook trigger + "have the required reviews run" check), not the reviews themselves. autofix/verify-conversation/ verify-architecture spawn sub-agents via Claude's own Agent/Task tool and use Claude-Code-specific inline-bash frontmatter execution -- genuinely need rewriting per harness, not a port. See each new plugin's README for what's confirmed vs. still unverified. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… nested object
Empirically discovered via a live codex CLI test: codex plugin list
didn't surface imbue-code-guardian-codex at all with the nested
{path: ...} form. Fixing to match .claude-plugin/marketplace.json's
confirmed-working flat string convention.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds enforcement-gate ports of imbue-code-guardian for codex, antigravity, and opencode, each via that harness's own idiomatic distribution channel:
codex plugin marketplace add imbue-ai/code-guardian+codex plugin install imbue-code-guardian-codex@imbue-code-guardian. Confirmed via developers.openai.com/codex/plugins and /codex/plugins/build.agy plugin install/agy plugin link. Plugin structure (plugin.json+ roothooks.json) validated against a real localagyinstall (agy plugin validate) — the manifest shape is confirmed correct, but the exact end-to-end marketplace-publish flow is not, since the docs site didn't render usable content for this. Flagged clearly in that plugin's README for a maintainer with real publish access to confirm/fix.pluginconfig array — no marketplace exists for opencode, so npm is the actual idiomatic channel per opencode's own docs.Scope — please read before reviewing
This is the enforcement gate only, not the reviews themselves. Each new plugin's
Stop-equivalent hook correctly detects "the required reviews (autofix/architecture/conversation) haven't run yet" and blocks — using the exact sameconfig_utils.sh/stop_hook_gates.shas the claude plugin, copied verbatim (both were already harness-agnostic: pure bash, marker-file checks, no Claude-specific paths).What's not included: the actual
/autofix,/verify-conversation,/verify-architectureskills. Those spawn sub-agents by name via Claude's own Agent/Task tool and use Claude Code's!`command`inline-bash-in-frontmatter execution — genuinely Claude-Code-specific control flow, not portable prose like theagents/*.mdreview prompts (which are just plain-English instructions + YAML frontmatter, already agent-agnostic). Porting those means rewriting that orchestration in each harness's own subagent-spawning idiom — a separate, larger follow-up. Until that exists, a blocked codex/antigravity/opencode agent will correctly detect missing reviews but the block message points at claude-only slash commands.What's verified vs. not
bash -nsyntax-checked; enabled-by-default gating logic tested standalone (disabled-by-default no-op, and the enabled-with-no-diff skip path).agy plugin validateCLI (iterated on its actual error messages to find the true schema —plugin.json+hooks.jsonboth at plugin root,hooks.jsonunwrapped/bare — rather than guessing from docs).index.ts: valid TypeScript (esbuild, 0 errors);import.meta.dir(used to resolve bundled scripts relative to the installed package rather than the user's project) confirmed as a real, working Bun API.Each new plugin's own README has a "Known gaps / unverified" section with more detail.
Test plan
🤖 Generated with Claude Code