Skip to content

zeikar/hyperclaude

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

122 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HyperClaude

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.

Claude builds, Codex critiques

Why

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.

The cycle

            ┌─ 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.

Architecture (v0.8)

                           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:

  1. 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.
  2. 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).
  3. Agents (agents/) — Claude implementation arm (planner, implementer, verifier, documenter).
  4. Hooks (hooks/) — SessionStart reminder (workflow router + .hyperclaude/ snapshot footer) + hyper-loop intake / 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).

Conventions

  • Plan files — when Claude writes a plan that you intend to review, save it under .hyperclaude/plans/<YYYYMMDD-HHMM>-<slug>.md. /hyperclaude:hyper-plan-review auto-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 .gitignore if you don't want artifacts committed.
  • Slug — lowercase kebab-case, ≤5 words, ASCII only. Same slug links a research → plan → plan-review trio.

Documentation

Per-feature plans for later versions live in .hyperclaude/plans/ (gitignored — working artifacts, lifted into the docs above when load-bearing).

Quick start

  1. Install the plugin via Claude Code:

    /plugin marketplace add zeikar/hyperclaude
    /plugin install hyperclaude
  2. Make sure codex-cli >= 0.130.0 is on your PATH:

    codex --version
  3. In a Claude Code session inside any project, try a gate:

    /hyperclaude:hyper-research add OAuth login to the API
    

    The first invocation creates .hyperclaude/research/<timestamp>-add-oauth-login-to-the.md with Codex's prior-art / pitfalls / recommendations. Read it; plan accordingly.

  4. After Claude writes a plan to .hyperclaude/plans/<slug>.md, critique it:

    /hyperclaude:hyper-plan-review
    

    After fixing what step 4 flagged, re-run /hyperclaude:hyper-plan-review --resume to get an updated critique without re-uploading the plan (token-cheap iterative loop).

  5. 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>
  6. After coding, sync docs to reflect your changes:

    /hyperclaude:hyper-docs-sync uncommitted
    

    The skill reads a Code | Docs mapping table from your CLAUDE.md or AGENTS.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.

  7. Gate the updated docs with a Codex accuracy review:

    /hyperclaude:hyper-docs-review
    
    • Default: reviews top-level .md files in docs/ (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 --resume to get an updated assessment without re-uploading (token-cheap iterative loop).

  8. (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=20
    

    The intake hook binds loop state to the current session; the Stop hook re-fires hyper-implement until every checkbox in the plan is [x] or --max is reached. Cancel mid-flight with /hyperclaude:hyper-loop-cancel <plan>.

Development

node --test tests/*.mjs            # unit tests for the bridge
bash scripts/test/smoke.sh         # acceptance smoke checks

Zero npm dependencies. Node 18+ stdlib only.

Status

v0.8 (alpha). Use at your own risk; expect breaking changes between minor versions until v1.0.

Acknowledgements

Structural inspiration from:

No code ported from either; references only.

License

MIT

About

Claude Code plugin: Claude builds, Codex critiques. A gated research → plan → review → ship pipeline.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors