Push Claude Code beyond stock. Claude builds, Codex critiques. A gated research → plan → review → ship pipeline.
🚧 Early alpha. v0.8 is implemented and dogfooded daily. Layout, naming, and APIs may change between minor versions until v1.0.
A Claude Code plugin built around a deliberate division of labor between two AI coding agents:
- Claude implements — planning, coding, subagents, agent teams
- Codex reviews — pre-implementation research, plan critique, code review, documentation accuracy review
Thesis: Claude is the builder, Codex is the critic. You get better software with a smarter cost split.
┌─ refine ─┐ ┌──── fix ───┐ ┌──── fix ───┐
▼ │ ▼ │ ▼ │
research → plan → plan-review → implement → code-review → docs-sync → docs-review → ship
│ │ │ │ │ │ │ │
Codex Claude Codex Claude(+agents) Codex Claude Codex user
Each step has one trigger and one artifact under .hyperclaude/. Skip any step a small change doesn't need — only code-review is non-negotiable for behavioral changes. See docs/workflow.md for triggers, skip rules, and --resume.
User in Claude Code
│
┌─────────────────┬─────────┴─────────┬────────────────────┐
│ │ │ │
Commands Skills Agents Hooks
│ │ │ │
hyper-loop Codex gates Claude impl arm SessionStart
hyper-loop- (research / (planner / reminder
cancel plan-review / implementer / hyper-loop
code-review / verifier / intake +
docs-review) documenter) Stop
+
Claude orch
(plan /
docs-sync /
implement /
tdd / debug)
│ │ │ │
└─────────────────┴─────────┬─────────┴────────────────────┘
│
codex-bridge.mjs
(only Codex-spawning code;
always read-only sandbox)
│
┌────────▼────────┐
│ .hyperclaude/ │
│ research/ │
│ plans/ │
│ plan-reviews/ │
│ code-reviews/ │
│ docs-reviews/ │
│ loops/ │
└─────────────────┘
Four layers:
- Commands (
commands/) — argv-bearing explicit-gesture entries:/hyperclaude:hyper-loop <plan> [--max=N](unattended plan iteration loop),/hyperclaude:hyper-loop-cancel <plan>(cancel an active loop). The other/hyperclaude:hyper-*entries are skill-backed and surface via Claude Code's description-triggered dispatch. - Skills (
skills/) — Codex gates (hyper-research,hyper-plan-review,hyper-code-review,hyper-docs-review) + Claude orchestrators (hyper-plan,hyper-docs-sync) + plan execution (hyper-implement) + implementation discipline (hyper-tdd,hyper-debug). - Agents (
agents/) — Claude implementation arm (planner,implementer,verifier,documenter). - Hooks (
hooks/) — SessionStart reminder (workflow router +.hyperclaude/snapshot footer) +hyper-loopintake / Stop hooks that bind loop state to a session and drive continuation until the plan's checkboxes are done.
When hyperclaude invokes codex exec (research, plan-review, docs-review), it always passes --sandbox read-only. When it invokes codex exec review (code review) or codex exec resume (--resume for plan-review / code-review / docs-review), neither subcommand exposes --sandbox, so the bridge passes -c sandbox_mode=read-only as a config override. In every mode, Codex's role in hyperclaude is critic, never editor.
External dependencies: Claude Code plugin runtime, codex-cli >= 0.130.0, Node 18+, and git (for diff-backed gates: code-review, docs-sync, docs-review with --diff-base). Nothing else (no npm bin, no tmux, no MCP servers).
- Plan files — when Claude writes a plan that you intend to review, save it under
.hyperclaude/plans/<YYYYMMDD-HHMM>-<slug>.md./hyperclaude:hyper-plan-reviewauto-discovers the most recent file there. You can also pass an explicit path:/hyperclaude:hyper-plan-review path/to/plan.md. - Artifacts —
.hyperclaude/{research,plans,plan-reviews,code-reviews,docs-reviews,loops}/is created in the consumer project. Add.hyperclaude/to your.gitignoreif you don't want artifacts committed. - Slug — lowercase kebab-case, ≤5 words, ASCII only. Same slug links a research → plan → plan-review trio.
- docs/architecture.md — layers, bridge details, plugin layout, output contract.
- docs/gates-and-agents.md — what each skill and agent does, when to invoke.
- docs/workflow.md — the end-to-end research → ship cycle this plugin is built around.
- docs/development.md — local install, tests, release flow.
- docs/decisions.md — non-obvious "why" notes and active deferrals (UserPromptSubmit hook, recursive docs-dir, etc.).
Per-feature plans for later versions live in .hyperclaude/plans/ (gitignored — working artifacts, lifted into the docs above when load-bearing).
-
Install the plugin via Claude Code:
/plugin marketplace add zeikar/hyperclaude /plugin install hyperclaude
-
Make sure
codex-cli >= 0.130.0is on your PATH:codex --version
-
In a Claude Code session inside any project, try a gate:
/hyperclaude:hyper-research add OAuth login to the APIThe first invocation creates
.hyperclaude/research/<timestamp>-add-oauth-login-to-the.mdwith Codex's prior-art / pitfalls / recommendations. Read it; plan accordingly. -
After Claude writes a plan to
.hyperclaude/plans/<slug>.md, critique it:/hyperclaude:hyper-plan-reviewAfter fixing what step 4 flagged, re-run
/hyperclaude:hyper-plan-review --resumeto get an updated critique without re-uploading the plan (token-cheap iterative loop). -
After implementing, review the code changes:
/hyperclaude:hyper-code-review- Default: reviews the current branch vs
main. - For working-tree changes (staged + unstaged + untracked):
/hyperclaude:hyper-code-review uncommitted - For a specific commit:
/hyperclaude:hyper-code-review <commit-sha>
- Default: reviews the current branch vs
-
After coding, sync docs to reflect your changes:
/hyperclaude:hyper-docs-sync uncommittedThe skill reads a
Code | Docsmapping table from yourCLAUDE.mdorAGENTS.md(falls back to heuristic if no table is present), identifies which docs need updating, and dispatches targeted doc updates. A summary is reported on completion. -
Gate the updated docs with a Codex accuracy review:
/hyperclaude:hyper-docs-review- Default: reviews top-level
.mdfiles indocs/(the commentarium convention). - For a single file:
/hyperclaude:hyper-docs-review README.md - For a specific subdir:
/hyperclaude:hyper-docs-review docs/api/ - With code-diff context:
/hyperclaude:hyper-docs-review README.md --diff-base main
Writes a review file under
.hyperclaude/docs-reviews/with valid frontmatter and a Codex-generated accuracy assessment. Fix any accuracy issues before merging.After fixing documentation issues, re-run
/hyperclaude:hyper-docs-review --resumeto get an updated assessment without re-uploading (token-cheap iterative loop). - Default: reviews top-level
-
(Optional) For an unattended pass over a plan whose tasks are already enumerated, hand it to the loop:
/hyperclaude:hyper-loop .hyperclaude/plans/<slug>.md --max=20The intake hook binds loop state to the current session; the Stop hook re-fires
hyper-implementuntil every checkbox in the plan is[x]or--maxis reached. Cancel mid-flight with/hyperclaude:hyper-loop-cancel <plan>.
node --test tests/*.mjs # unit tests for the bridge
bash scripts/test/smoke.sh # acceptance smoke checksZero npm dependencies. Node 18+ stdlib only.
v0.8 (alpha). Use at your own risk; expect breaking changes between minor versions until v1.0.
Structural inspiration from:
- superpowers by Jesse Vincent
- oh-my-claudecode by Yeachan Heo
No code ported from either; references only.
