بنقرة واحدة
multi-model-chain
Progressive refinement pipeline — chain haiku→sonnet→opus for escalating analysis depth
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Progressive refinement pipeline — chain haiku→sonnet→opus for escalating analysis depth
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Spawn recursive agent armies — swarms that spawn swarms, sandbox armadas, full lifecycle assault
Full rebuild — tear down broken service, scaffold fresh, migrate data, deploy, verify
Dynamic swarm orchestration — decompose any task into parallel agent waves, execute, merge results
One-command deployment — detect stack, build, ship, verify, report URL
Production incident response — triage, diagnose, fix, restore, document
Generate complete runnable projects from a description — API, CLI, MCP server, full-stack app
| name | multi-model-chain |
| description | Progressive refinement pipeline — chain haiku→sonnet→opus for escalating analysis depth |
| level | 5 |
| triggers | ["chain","multi-model","progressive"] |
| user-invocable | true |
| aliases | ["mmc"] |
Route work through progressively more capable models, where each tier refines the output of the previous one. This is not "ask three models the same question" (that's ccg). This is a pipeline where each model builds on the last, with explicit quality gates between tiers.
┌─────────┐ ┌──────────┐ ┌─────────┐
│ HAIKU │────→│ SONNET │────→│ OPUS │
│ Sweep │ │ Analyze │ │ Judge │
│ │ │ │ │ │
│ Broad │ │ Focused │ │ Deep │
│ Fast │ │ Thorough │ │ Final │
│ Filter │ │ Refine │ │ Verdict │
└─────────┘ └──────────┘ └─────────┘
Gate 1 Gate 2 Output
(relevance) (substance) (decision)
--start-at sonnet or --start-at opus to skip tiersSpawn explore agent (haiku) with the broad task:
Gate 1: If shortlist is empty → report "nothing found" and stop. If shortlist has items with confidence > 0.8 → pass only those to sonnet. If all items < 0.5 confidence → pass all with a note to re-evaluate.
Output format to pass forward:
## Haiku Sweep Results
- **Query**: [original task]
- **Files scanned**: [count]
- **Shortlist**:
1. [file:line] — [reason] (confidence: X)
2. ...
- **Ambiguous**: [items needing deeper look]
Spawn appropriate agent (executor, debugger, architect, etc.) with:
Gate 2: If no CRITICAL or MAJOR findings → report findings and stop (don't escalate to opus). If CRITICAL findings exist → pass to opus for final judgment.
Output format to pass forward:
## Sonnet Analysis
- **Findings**:
1. [CRITICAL] [description] — evidence: [file:line]
2. [MAJOR] [description] — evidence: [file:line]
3. ...
- **Recommendations**: [specific actions]
- **Needs opus judgment**: [yes/no + why]
Spawn architect or critic agent (opus) with:
Output: Final verdict with actionable next steps.
Users can invoke with a profile that pre-configures the chain:
--profile security: haiku(grep secrets) → sonnet(security-reviewer) → opus(critic)--profile refactor: haiku(explore patterns) → sonnet(code-simplifier) → opus(architect)--profile debug: haiku(grep errors) → sonnet(debugger) → opus(tracer)--profile review: haiku(explore changes) → sonnet(code-reviewer) → opus(critic)/multi-model-chain "find and fix N+1 queries" --agents explore,debugger,architect
Maps agents to tiers in order: first=haiku, second=sonnet, third=opus.
Task: "Find security vulnerabilities in the auth module"
Haiku: Scans 847 files, shortlists 12 files in auth/
Sonnet: Analyzes 12 files, finds 2 CRITICAL (SQL injection, missing CSRF), 3 MINOR
Opus: Validates both CRITICALs, recommends fix order, notes the CSRF is actually mitigated by framework
Task: "Check if we have any hardcoded API keys"
Haiku: Greps all files, finds 0 matches for key patterns
→ Gate 1: Empty shortlist → STOP. Report: "No hardcoded keys found."
(Saved sonnet + opus tokens)
Task: "What's in package.json?"
→ Don't use multi-model-chain. Just read the file.