Codex  ·  Claude Code  ·  OpenCode  ·  Antigravity

Hyperflow

Premium orchestration that reviews every step, sizes effort to the task, and learns as it works. Thinking models plan and review; fast workers execute in parallel. Learnings persist in local, per-project memory — carried into every future session, never uploaded, never mixed across repos.

curl -fsSL https://raw.githubusercontent.com/Mohammed-Abdelhady/hyperflow/main/install.sh | bash
GitHub →

amplify  →  spec  →  scope  →  dispatch  →  audit  →  deploy


Start anywhere. Auto-advance forward.

Chain-starting skills auto-advance through the rest of the chain. Skip to any entry point — the orchestrator picks up and runs forward.

Start with a rough idea: amplify rewrites it into the strongest prompt, then hands off into the chain. specscopedispatch auto-chains — enter at spec for design-first work, at scope when the approach is clear, at dispatch when a task file already exists. audit and deploy gates fire at the end, batched into one ask. (scaffold is a one-time project setup, run once per repo.)


The whole product in one idea.

Expensive thinking models handle what they're best at: planning, questioning, and reviewing. Fast worker models handle what they're best at: writing code. The split is structural — not a setting.

Thinking tier
Opus 4.8  ·  Gemini 3 Pro

Orchestrates the chain. Triages every task. Asks clarifying questions — after reading the code, never before. Reviews every worker output. Runs the final integration pass over the cumulative diff.

Orchestrator Triage Reviewer Debugger Analyst Planner
Worker tier
Sonnet 4.6  ·  Gemini 3.5 Flash

Executes the tasks. Searches, writes, implements — in parallel wherever tasks are independent. Each worker receives a stitched persona block — expert-level guidance for the exact work in front of it.

Implementer Searcher Writer Composer

Every step, without exception

Per-batch Sonnet reviewers do L1–L2 spot-checks. The final integration reviewer (Opus) runs over the cumulative diff. Every non-trivial phase also decomposes into named sub-phases, each with its own Sonnet reviewer — so review happens at every granularity.


Every worker output reviewed by a thinking-tier model. No exceptions.

Independent sub-tasks fan out in parallel — three files with no shared state means three workers in one batch. Each parallel worker feeds its own thinking-tier reviewer before the batch advances. Reviews collapse synchronously at the end of each batch; no output reaches the next batch unreviewed.

Per-batch worker-tier reviewers handle L1–L2 spot-checks on small diffs. The final integration reviewer (thinking-tier) runs once at the end over the cumulative diff. Batch-2 workers receive batch-1 discoveries via automatic learning injection — so later batches always know what earlier batches found.


Every non-trivial phase fans into named sub-phases.

DOCTRINE §12.2: each Step that can be parallelized decomposes into numbered sub-phases (Step 2a, 2b, 2c…). Each sub-phase runs independent workers in parallel and ends with its own worker-tier reviewer. The per-batch and final integration reviews still run on top — review happens at every granularity.

Sub-phases cannot be exactly 1 — they are either atomic-exempt (a single AskUserQuestion, one mechanical step) or they fan into ≥2 parallel angles. This rule prevents the appearance of parallelism without the substance. Cross-skill references like “dispatch Step 2” resolve to the sub-phase aggregate, so existing links don’t break.


14 specialized skills. Auto-routing on by default.

Say the verb — "audit the diff", "debug this test", "scope the new auth flow" — and the orchestrator routes automatically. No /hyperflow:* prefix required in auto mode. In Codex, hyperflow <skill> is the safest portable spelling, while /hyperflow:* remains an alias. amplify is the front door: it rewrites a rough prompt into the strongest version and hands off into the chain. scaffold sets a project up once; the operational utilities status, background, sticky, bridge, and flush run on their own.

Skill Command Purpose Type
scaffold /hyperflow:scaffold Analyze project, create .hyperflow/ cache, install multi-tool shims Standalone
spec /hyperflow:spec Multi-dimensional analysis + alternatives — refuses to code before approval; auto-chains to scope Chain starter
scope /hyperflow:scope Decompose into parallel worker subtasks; writes task file; auto-chains to dispatch Chain starter
dispatch /hyperflow:dispatch Dispatch parallel workers + thinking-tier reviews + final integration review; endpoint of the chain Endpoint
amplify /hyperflow:amplify Rewrite a rough prompt into the strongest version — domain persona standards + project rules, scored against an 8-dimension rubric, then a handoff into the chain Standalone
trace /hyperflow:trace Systematic 5-Whys + hypothesis testing — never patches symptoms Standalone
audit /hyperflow:audit L1 quick → L5 exhaustive review on changes, files, or PRs Standalone
deploy /hyperflow:deploy Lint, typecheck, build, tests, security sweep, commit, release, push (push always asks) Standalone
cache /hyperflow:cache Memory CRUD — show, search, add, edit, prune, archive, clear, stats, migrate, compact Standalone
status /hyperflow:status Read-only snapshot — version, profile freshness, memory count, live per-task progress + ETA Standalone
background /hyperflow:background List, show, cancel, prune task-level background agents fired by other skills Standalone
sticky /hyperflow:sticky on / auto / off / status — per-project auto-routing mode Standalone
bridge /hyperflow:bridge Embed portable doctrine subset into CLAUDE.md so rules apply in Desktop, web, and IDE surfaces Standalone
flush /hyperflow:flush Manually flush a deferred-commit queue from a prior or crashed chain Standalone

Triage picks the profile. Workers run at the right depth.

A 5-line edit gets fast (1 worker, inline review, ≤30k tokens) — not a 300k deep run. The triage call classifies { complexity, scope, risk, types, ambiguity } before any worker fires. A triage reviewer validates the classification before it propagates downstream. Profiles upgrade mid-flight on ESCALATE:; they downgrade when research shows the task is simpler than expected.

Profile Use when Workers Reviews Budget
fast Trivial single-file, reversible, low-ambiguity 1 Inline self-review ≤30k
standard Simple/moderate, 2–5 files 1–2 1 batch reviewer ≤100k
deep Complex / cross-cutting / system-wide 3+ Per-batch + final integration 300k
research Unknown territory, library or code evaluation 3+ searchers Inline ≤80k
creative UI/UX exploration, design-dominant 1–2 1 reviewer ≤150k
scientific Correctness-critical, numerical or proof work 2–3 + TDD Multi-level L1–L5 300k

Pass --thorough to disable speed patterns (parallel sibling drafts, batched reviews, step skipping) for high-risk runs. Profile is visible in /hyperflow:status.


15 composable expert personas. Stitched per task.

Every task is tagged with one or more types. The orchestrator stitches matching persona blocks into each worker prompt so every worker receives expert-level guidance for the exact work in front of it. A user-auth task tagged [api, db, security] gets all three personas composed in priority order inside a single prompt.

Foundational
architect frontend ui api db
Cross-cutting
security scientific performance
Workflow
refactor bugfix test research
Surface
creative devops docs

Personas compose by priority: security is stitched first so its constraints frame every other decision; creative is stitched last so divergent exploration adapts to structural choices above it.


Persistent learnings. Local, version-controllable, never mixed across repos.

Memory lives at .hyperflow/memory/ — plain markdown, committed with the project, never uploaded. Hyperflow reads only tag-matched entries at session start and injects them into worker prompts automatically. Three tiers control injection cost.

Auto-written by the chain
File Tier Written by Purpose
anti-patterns.md Hot /hyperflow:audit Recurring findings (max 3 per run, deduped, self-compacting) — injected into every worker every session
project-decisions.md Spec-tier /hyperflow:spec Structural answers from Smart Questions — prevents re-asking questions the codebase already answered

Retry. Escalate. Abort. Never silently swallow.

Every failure class has an explicit three-step policy. Worker error, malformed output, quality gate failure — all handled the same way, in every skill, with no improvisation. Three cumulative aborts across all batches halts the chain and surfaces the full failure trail.

Real-time observability — status line formats
[retry 1/3 · Implementer · tool-error]
[retry 2/3 · Writer · malformed-output]
[escalate → thinking-tier · Searcher · timeout]
[abort · Reviewer · 5xx · chain budget 2/3]
Worker error
Retry once with identical prompt → escalate to thinking-tier (with prior-attempt block injected) → abort batch on third failure
Malformed output
Retry with violation note (expected Y, got X, conform to schema) → escalate tier → abort
NEEDS_REVISION
Retry worker once with reviewer findings injected → on second NEEDS_REVISION, surface as partial and continue — no third dispatch
Quality gate
Retry gate once (clear caches) → surface exact stderr to user and halt push. Never --no-verify. Never auto-fix silently — user dispatches the fix
Security violation
Halt immediately with SECURITY_VIOLATION: — bypasses all retry logic, no auto-continue
Chain budget
3 cumulative aborts across all batches and sub-phases → chain itself aborts and prints the full failure trail

Four flows. From quick fix to ambiguous design.

These are representative transcripts showing how the orchestrator selects a profile, fans out workers, and routes through review. Labels follow the output-style spec: bold for thinking-tier, plain for worker-tier.

Implementation standard profile
/hyperflow:scope "Add debounced search bar to dashboard"

Triage standard flow · 2 files · ambiguity 0.1
Scope Searchers map dashboard + hooks surface
Decompose: SearchBar + useDebounce + wire up

Worker 1 Implementer — SearchBar component  
Worker 2 Implementer — useDebounce hook    ├ parallel

Reviewer batch review L1–L2 — worker tier
Worker wires SearchBar into Dashboard
Reviewer final integration — thinking tier
Design — ambiguous scope deep profile
/hyperflow:spec "I need a notification system"

Triage deep flow · ambiguity 0.7
Searcher context + codebase scan (Step 2a/2b)
Analyst 6-dim analysis (Step 3)
Smart Questions (post-analysis, floor 2)
2 approaches → you pick
Design → section approval

Scope (auto) map → pre-elections
Dispatch (auto) workers + reviews + gate
Debugging deep profile
/hyperflow:trace "Tests failing after auth refactor"

Debugger 5-Whys · 3 independent broken files — thinking tier

Searcher auth-middleware.test.ts  
Searcher login-flow.test.ts        ├ parallel
Searcher session-handler.test.ts   

Implementer root-cause fix
Writer regression test
Reviewer validates fix + test — thinking tier
Quick task fast profile
/hyperflow:scope "Rename Button to PrimaryButton"

Triage fast flow · 1 file · ambiguity 0.0

Implementer rename + update all imports
Reviewer inline self-review (fast) — worker tier

Done. No batch reviewer needed at this depth.

10 composable layers.

Every chain skill declares which layers it exercises. The layer stack is non-negotiable — removing any layer breaks the orchestration contract.

Layer Name Summary
L0 Project Analysis Cache tech stack and conventions in .hyperflow/
L0.5 Task Triage Classify the task (types, complexity, risk, ambiguity, flow profile, personas) before any worker fires
L1 Autonomy Zero confirmations, minimal output, silent recovery
L2 Model Routing Configurable thinking/worker per provider + priority chain
L3 Orchestrator Decompose → parallel dispatch → review → synthesize
L4 Brainstorming Design exploration + approval before implementation
L5 Quality Gates Automated lint / typecheck / tests after every review
L6 Project Memory Persistent learnings in .hyperflow/memory/ — project-scoped, tagged, tiered
L7 Task Templates Pre-built decomposition: CRUD, API, UI, migration, refactor, debug
L8 Git Workflow Auto-branch creation, auto-commit after approval — never auto-push without consent
L9 Security Prompt-injected blocklists for sensitive files and destructive commands

One config. Auto-detected.

Provider is detected at session start from environment variables and folder presence. Override any model in ~/.hyperflow/config.json or switch mid-session.

Claude Code
Thinking Opus 4.8
Worker Sonnet 4.6
OpenCode
Thinking Claude Opus 4.8
Worker Sonnet 4.6
Antigravity
Thinking Gemini 3 Pro
Worker Gemini 3.5 Flash

Direct from GitHub — verified and live.

The GitHub marketplace path ships every fix the day it lands. Official Anthropic marketplace ingestion is pending; use the direct path today.

Claude Code (terminal)
# Step 1 — add the marketplace source
claude plugin marketplace add Mohammed-Abdelhady/hyperflow

# Step 2 — install the plugin
claude plugin install hyperflow@hyperflow-marketplace
Codex App  ·  CLI
# Step 1 — add the marketplace source
codex plugin marketplace add Mohammed-Abdelhady/hyperflow

# Step 2 — install the plugin
codex plugin add hyperflow@hyperflow-marketplace
OpenCode  ·  Antigravity
# Auto-detects your tool and walks you through setup
curl -fsSL https://raw.githubusercontent.com/Mohammed-Abdelhady/hyperflow/main/install.sh | bash
First run
# Set up a new project (builds .hyperflow/ cache)
/hyperflow:scaffold

# Start the full chain from a feature description
/hyperflow:spec "add user auth with login page and middleware"

# Or enter at scope if the approach is already clear
/hyperflow:scope "add debounced search to the dashboard"

Hyperflow runs locally in Codex App/CLI, Claude Code CLI, OpenCode CLI, or Antigravity. Codex maps skill aliases, question gates, subagents, and auto-chain handoffs through its plugin runtime. Claude Code Desktop and claude.ai web still need the portable CLAUDE.md fallback because they do not load terminal plugins.