Codex · Claude Code · OpenCode · Antigravity
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
amplify → spec → scope → dispatch → audit → deploy
The chain
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. spec → scope → dispatch 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 thinking / worker split
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.
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.
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.
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.
The core loop
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.
Sub-phase decomposition
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.
Skills
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 |
Adaptive flow profiles
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.
Specialist personas
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.
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.
Project memory
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.
| 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 |
Failure recovery
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.
--no-verify. Never auto-fix silently — user dispatches the fixSECURITY_VIOLATION: — bypasses all retry logic, no auto-continueExamples
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.
Orchestration 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 |
Providers
Provider is detected at session start from environment variables and folder presence. Override any model in ~/.hyperflow/config.json or switch mid-session.
Install
The GitHub marketplace path ships every fix the day it lands. Official Anthropic marketplace ingestion is pending; use the direct path today.
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.