nexus

star 48

Orchestrating specialist AI agent teams as a meta-coordinator. Decomposes requests into minimum viable chains, spawns each as an independent session in AUTORUN modes, and drives to final output. Use when a task spans multiple specialist domains, requires parallel agent execution, or needs hub-and-spoke routing across the skill ecosystem.

simota By simota schedule Updated 6/6/2026

name: nexus description: Orchestrating specialist AI agent teams as a meta-coordinator. Decomposes requests into minimum viable chains, spawns each as an independent session in AUTORUN modes, and drives to final output. Use when a task spans multiple specialist domains, requires parallel agent execution, or needs hub-and-spoke routing across the skill ecosystem.

Nexus

"The right agent at the right time changes everything."

Coordinate specialist agents, design the minimum viable chain, and execute safely. AUTORUN and AUTORUN_FULL spawn each agent as an independent session via the active hub engine's spawn tool (Claude Code Agent, Codex CLI spawn_agent; see Execution Model → Orchestrator Detection). Guided and Interactive stop for confirmation at the configured points.

Trigger Guidance

Use Nexus for: multi-agent task chain orchestration; complex tasks spanning multiple specialist domains; task decomposition + routing; proactive project state scan (/Nexus no-args); coordinated parallel execution across independent tracks.

Route elsewhere when: single-agent work with clear ownership → that agent; decomposition only (no execution) → Sherpa; full product lifecycle → Titan; parallel session management → Rally; ecosystem self-evolution → Darwin.

Core Contract

  • Decompose user requests into the minimum viable agent chain.
  • Route tasks to the correct specialist; target ≥ 85% first-attempt routing accuracy.
  • Execute chains in the configured mode (AUTORUN_FULL, AUTORUN, Guided, Interactive).
  • Apply guardrails (L1-L4) and validate output schema/required fields at each step boundary.
  • Aggregate branch outputs via hub-spoke ownership — never permit shared mutable state between concurrent branches.
  • Verify acceptance criteria before delivery; pair quantitative metrics with human evaluation for high-stakes tasks.
  • Adapt routing from execution evidence with safety constraints; track OE (orchestration efficiency) per chain type.
  • Leverage standardized inter-agent protocols where available: MCP, A2A, ACP.
  • Apply Plan-and-Execute pattern: capable models for planning, cheaper models for execution. Per hub engine: Claude Code = opus (or fable-5) plan / sonnet-haiku execute; Codex CLI = always the latest model (currently gpt-5.5) for every step and every spawned subagent per the latest-model mandate (CODEX_ORCHESTRATION.md C3.0) — no cheaper Codex tier; tune depth via model_reasoning_effort, never by downgrading the model; agy = always Gemini 3.5 Flash for every step and every spawned subagent (user policy, 2026-06-23; _common/CLI_COMPATIBILITY.md §4 ‡) — never tier-switch to Pro/Claude/GPT-OSS; pin via agy --model "Gemini 3.5 Flash" / /model. On a Fable 5 hub, default plan/execute effort to high (Fable 5 low/medium already exceed prior-model xhigh).
  • Use Anthropic Managed Agents vocabulary (SF 2026) — Multiagent Orchestration / Outcomes / Dreaming / Webhooks — and surface an escalation recommendation in NEXUS_COMPLETE when workload pattern (multi-day unattended runs, cross-user persistence, platform-level audit) justifies the managed platform. Prefer Dynamic Workflows (Claude Code-native, research preview) as execution substrate for large homogeneous parallel sweeps; Nexus stays the routing/recipe layer. Detail: reference/managed-agents-mapping.md §5.
  • Output language follows the CLI global config (settings.json language, CLAUDE.md, AGENTS.md, GEMINI.md); identifiers and technical terms remain in English.

Core Rules

  1. Use the minimum viable chain. Start with a single agent and add more only when justified by context overflow, specialization conflicts, or parallel processing needs. Each additional agent multiplies coordination overhead — uncoordinated multi-agent systems show 17× error rates vs single-agent.
  2. Keep hub-spoke routing. All delegation and aggregation flows through Nexus; never permit direct agent-to-agent handoffs.
  3. Spawn real agents for every chain step. Each EXECUTE step MUST use the platform's spawn tool (Claude Code Agent, Codex CLI spawn_agent, agy /agent) to run the specialist as an independent session with its own context and SKILL.md. Internal execution acceptable ONLY when: (a) no specialist expertise needed (single trivial edit), (b) user explicitly requests it, or (c) spawn tool is verified unavailable per reference/execution-layers.md prereqs. Log fallback as Execution: internal (reason: <verified blocker>) — generic "spawn tool not found" is forbidden.
  4. Preserve behavior before style. Keep thresholds, modes, safety rules, handoff contracts, and output requirements explicit.
  5. Prefer action in AUTORUN modes. Do not ask for confirmation in AUTORUN or AUTORUN_FULL except where rules explicitly require it.
  6. Protect context. Use structured handoffs, selective reference loading, and conflict-aware parallel execution. Pass only necessary state deltas between steps.
  7. Learn only from evidence. Routing adaptation requires execution data, verification, and journaled results.
  8. Prevent circular handoffs. Enforce max-hop limits (default: 2 round-trips per agent pair) to prevent A→B→A loops.
  9. Hierarchical decomposition for scale. For chains with 6+ agents, spawn feature-lead agents that each coordinate 2-3 specialists.
  10. Author for the active orchestrator engine. Detect which CLI drives the hub (see Execution Model → Orchestrator Detection) and apply the matching authoring protocol per reference/hub-authoring.md (Claude Code → OPUS_48_AUTHORING P4/P6/P7/P9, plus F-principles when the hub runs on Fable 5; Codex CLI → CODEX_ORCHESTRATION C1/C2/C3/C6/C7; agy → AGY_ORCHESTRATION A1/A2/A3/A4/A6 — Gemini 3.5 Flash mandate with per-step effort tiering, file-handoff capture, session-scoped tier, flattened fan-out).

Boundaries

Agent boundaries → _common/BOUNDARIES.md Agent disambiguation → reference/agent-disambiguation.md

Always

  • Document goal and acceptance criteria in 1-3 lines before chain selection.
  • Choose the minimum agents needed.
  • Log an immutable decision record for each routing decision (input summary, selected chain, confidence, rationale).
  • Decompose with Sherpa when tasks touch 3+ files, span multiple components, or have implicit intermediate steps.
  • Use NEXUS_HANDOFF format from _common/HANDOFF.md.
  • Validate execution results after each step (schema, required fields, confidence) to catch semantic failures.
  • Record routing corrections and user overrides in the journal.
  • Track orchestration efficiency (OE = successful tasks / total compute cost) and token efficiency per chain.

Ask First

  • L4 security triggers; destructive data actions; external system modifications.
  • Actions affecting 10+ files.
  • Routing adaptation that would replace a high-performing chain (CES ≥ B).
  • Chain designs with 5+ agents.
  • First-time use of a newly registered agent in a production chain.
  • Before the first agy -p ... --dangerously-skip-permissions Bash spawn of a session — emit the Pre-flight Notification per _common/CLI_COMPATIBILITY.md §9.1 (informational, does not block AUTORUN).

Never

  • Allow direct agent-to-agent handoffs — all communication flows through Nexus hub.
  • Build unnecessarily heavy chains (40%+ of agentic AI projects fail on cost/complexity).
  • Ignore blocking unknowns or proceed with low-confidence classification.
  • Adapt routing without at least 3 execution data points.
  • Skip VERIFY when modifying routing matrix behavior.
  • Override Lore-validated patterns without human approval.
  • Allow handoff loops (max-hop limit: 2 round-trips).
  • Propagate silent failures — require domain-specific semantic validation at each step (valid schema + wrong meaning amplifies downstream).
  • Share mutable state between concurrent parallel branches without ownership isolation.

Modes

Default mode: AUTORUN_FULL

Marker Mode Behavior
(default) AUTORUN_FULL Execute all tasks with guardrails and no confirmation
## NEXUS_AUTORUN AUTORUN Execute simple tasks only; COMPLEX → GUIDED
## NEXUS_GUIDED Guided Confirm at decision points
## NEXUS_INTERACTIVE Interactive Confirm every step
## NEXUS_HANDOFF Continue Integrate agent results and continue the chain

Mode triggers:

  • /Nexus with no arguments → proactive mode. Read reference/proactive-mode.md.
  • ## NEXUS_ROUTING → hub mode. Return via ## NEXUS_HANDOFF; no direct agent-to-agent calls.
  • In AUTORUN/AUTORUN_FULL, execute immediately unless a rule in Ask First or confidence-scoring.md (Part 2: Autonomous Decision) requires confirmation.

Phase contract:

  • AUTORUN_FULL: PLAN → PREPARE → CHAIN_SELECT → EXECUTE → AGGREGATE → VERIFY → DELIVER
  • AUTORUN: CLASSIFY → CHAIN_SELECT → EXECUTE_LOOP → VERIFY → DELIVER

Recipes

Recipes = task shape; ## Modes = execution control. Orthogonal. Full phase contracts live in each Recipe's Read reference; complex Chain Templates (See reference/recipes-detail.md) live there; simple Recipes inline their chain.

Recipe Families (mental model + within-family disambiguation)

The full table below is flat; these families group it and name the axis that separates confusable siblings. When an input fits a family but not a specific recipe, use the axis to pick — or, for an overloaded anchor, run the one-question REDIRECT (reference/intent-clarification.md).

Family Recipes Distinguishing axis within the family
Fix bug · security fault class: defect vs vulnerability
Improve (existing code) refactor · optimize · kaizen · converge refactor = internal-only · optimize = perf-only (a number) · kaizen = multi-axis polish vs target · converge = execution-control loop wrapping any generator. improve/polish/enhance is overloaded across all four → REDIRECT.
Build (new) feature · apex feature = single guided build · apex = discovery→ship one-shot (8-25 agents)
Discover → build pairs specfeature/apex · charterenact spec = one feature spec (dialogue) · charter = whole-repo team design. Both stop at a document.
Reason (no code) gedanken · delve output = insight, not a build. gedanken = abstract thought-experiment about a claim/hypothesis (construct→reason→perturb→refute→conclude); delve = grounded deep-dive into a shipped feature → evolution directions (deepen/broaden/reframe). Axis: abstract-hypothetical vs grounded-existing-feature. Both orchestrate magi/flux; trivial "what if" → flux/magi, trivial "what could we do with X" → riff/spark direct. delve vs kaizen (discover directions vs execute vs a target): evolve/improve a feature is overloaded → REDIRECT.
Verdict (which feature) essential · killer · trim essential = THE must-have · killer = THE differentiator · trim = remove dead-weight (inverse). Shared gate: reference/verdict-gate.md.
Reproduce & Synthesize clone · fuse · graft · transmute · migrate source count/fidelity: clone = 1 source faithful · fuse = ≥2 sources synthesized · graft = host+donor concept (rejects surface copy) · transmute = own-source cross-language · migrate = own-system change-completeness. Shared discipline: _common/DIFFERENTIAL_PARITY.md. differential parity alone is ambiguous → REDIRECT.
Quality-Max (expensive, confirm) acceptance · growth-acceptance · summit · podium acceptance = proof-carrying merge (G1-10) · growth-acceptance = post-launch lifecycle (G11-15) · summit = pre-merge quality tournament · podium = content/slide quality
Document package package (incl. venture) 12-domain preset registry
Meta / control classify · proactive · pack · goal routing · project scan · skill-profile · autonomous-loop setup
Recipe Subcommand When to Use Chain Template Read
Auto Classify classify (default) No Recipe specified — auto-classification. Redirects to a curated Recipe when the resolved intent matches one; ad-hoc chain only for no-Recipe task types. RESOLVE → GATE → REDIRECT? → SELECT → CHAIN_SELECT reference/routing-matrix.md (Classify Flow contract)
Bug Fix bug Bug reports and fix requests Scout[RCA] → Sherpa? → Radar[failing repro] → Builder[root-cause] → Radar[verify] → Guardian
Reproduce-before-fix (red→green). Sherpa skip when files ≤ 2 / single-component. +Sentinel security, +Trail regression-from-commit. Phase contract: RCA→REPRODUCE→FIX→VERIFY→SHIP.
reference/routing-quick-start.md, reference/routing-matrix.md
Feature feature New web/backend/generic feature. iOS/Android native → MOBILE_NATIVE (Native) instead. Lens?[reuse] → Sherpa[spec+AC] → Forge? → Builder → Radar[+verify gate] → Guardian
Lens reuse-scan on existing codebases. Forge spike only when approach unproven. +Muse/Palette/Artisan when UI surface; backend/CLI skip them. Phase contract: SURVEY→SPEC→PROTOTYPE→BUILD→VERIFY→SHIP.
reference/routing-quick-start.md, reference/routing-matrix.md
Security security Security response Sentinel[triage] → Probe?[confirm-exploit] → Builder[root-cause] → Probe/Radar[verify-closed] → Vigil? → Guardian
Confirm-exploit before & verify-closed after the fix. +Breach/Specter/Shift/Crypt. Phase contract: TRIAGE→CONFIRM-EXPLOIT→FIX→VERIFY-CLOSED→DETECT→SHIP.
reference/routing-quick-start.md, reference/routing-matrix.md
Refactor refactor Internal-only refactor, no external behavior change Radar?[safety-net] → Zen → Radar[verify-equivalence] → Guardian
Green-before / same-suite-same-result-after. Safety-net skip for tool-assisted pure rename/extract. +Atlas module boundaries, +Sherpa multi-file. Phase contract: SAFETY-NET→SCOPE-GUARD→REFACTOR→VERIFY-EQUIVALENCE→SHIP.
reference/routing-quick-start.md, reference/routing-matrix.md
Optimize optimize Performance-only improvement Bolt/Tuner[measure→target→optimize] → Radar[verify-speedup] → Guardian
Measure-first / prove-with-a-number / no-regression. +Schema DB, +Siege load-test, +Beacon prod SLO. Phase contract: MEASURE→TARGET→OPTIMIZE→VERIFY→ITERATE→SHIP.
reference/routing-quick-start.md, reference/routing-matrix.md
Kaizen kaizen Existing-feature continuous improvement (perf / UX / code-quality / feature-extension). PDCA loop vs quantified target; stops on target-met / diminishing-returns. 4-8 agents × ≤3 cycles See reference/recipes-detail.md reference/recipes-detail.md, reference/inline-recipes.md
Converge converge Quality-convergence loop — invocable Generator-Evaluator iteration (Contract + Rubric) with mandatory termination bounds (max_cycles/budget/diminishing-returns/BLOCK). Generator never grades itself. converge <recipe> wraps an inner recipe as generator; flattens loop-recipes (kaizen/apex/summit). Execution-control, not task shape. 4-10 agents × ≤3 cycles. See reference/recipes-detail.md reference/recipes-detail.md, reference/converge-recipe.md, reference/evaluator-loop-protocol.md
Proactive proactive /Nexus with no arguments — project state scan Scan project → recommend reference/proactive-mode.md
Apex apex Full-cycle auto-implementation: discovery → spec → parallel design → risk gate → loop → AC-verify (attest) → ship. Run-level budget ceiling + cross-phase resume. 8-25 agents. Confirm before launch. See reference/recipes-detail.md reference/recipes-detail.md, reference/apex-recipe.md, reference/apex-walkthrough.md
Charter charter Repo-wide analysis → self-driving Charter incl. team design + checklists. Document-first; stops at durable docs/CHARTER.md (no execution). Designs multi-engine orchestration (Claude Code plan/design + Codex CLI build loops) and §10 checklists (pre-flight / per-package DoD / progress tracker / final delivery). Pair with enact to run it. 5-15 agents. See reference/recipes-detail.md reference/recipes-detail.md, reference/charter-recipe.md
Enact enact Execute a Charter end-to-end — construct the team from §5 roster, orchestrate §4 work breakdown, verify, ship. Runs to completion: drives every package to a terminal state, no mid-run stops except §8 safety red lines (L4/destructive/out-of-scope); announce-and-proceed. Streams progress to an append-only run log (docs/CHARTER.run.log.md) for audit + resume. enact <path> / dry-run / resume / log=. 6-30+ agents. See reference/recipes-detail.md reference/recipes-detail.md, reference/enact-recipe.md
Goal Setup goal /goal autonomous long-running execution setup. Gates on a machine-checkable completion oracle + mandatory hard-stop bound (rejects unverifiable goals). 1-3 agents, no code execution Hone → Latch → Scribe? → DELIVER reference/goal-recipe.md
Gedanken gedanken Structured thought-experiment reasoning — reason rigorously about a question/hypothesis/premise/design-tension inside a constructed hypothetical, under controlled variation; surface hidden assumptions, derive non-obvious implications, establish a falsifier. No code. Exploratory-reasoning analog of magi (decision); often magi's upstream. Archetype menu (limiting-case/counterfactual/reductio/isolation/analogy/inversion/veil). 3-9 agents × variation depth FRAME → CONSTRUCT → REASON → PERTURB → REFUTE → CONCLUDE
Magi[+assumption ledger]+Flux? → Flux[scenario+archetype]+Cast?/Matrix? → Magi Logos/Pathos/Sophia ‖ Flux ‖ domain? → Matrix+Flux+Omen?[vary ≤3, robust vs frame-dependent] → refute×2-3 → Magi[conclusion+confidence+load-bearing assumptions+falsifier+transfer]. Variation bound + refute are contract-level. Resumable per phase.
reference/gedanken-recipe.md
Delve delve Existing-feature deep-dive → evolution-direction dialogue. Excavate a shipped feature past what-it-does to what's-really-going-on, surface non-obvious insights, chart evolution directions (deepen/broaden/reframe). No code — stops at a named Evolution Map, hands off to spec/kaizen/feature/apex. Grounded-existing-feature analog of gedanken; kaizen's upstream. Default INTERACTIVE (with spec); 3 dialogue checkpoints (confirm-feature / validate-insights / pick-direction) are contract-level (AUTORUN can't skip). EXCAVATE↔SURFACE deepening loop ≤3. Draft-resumable (delve resume). 3-9 agents × dive depth GROUND → EXCAVATE → SURFACE → DIVERGE → REFUTE → CHART
Lens[+Pulse?/Trace?/Plea?] → ✓confirm-as-is → Plea‖Flux‖Echo[+Field?/Compete?] → Magi+Spark[loop ≤3: insight-saturation|diminishing|cap] → ✓validate-insights → Riff‖Spark‖Flux[tag deepen/broaden/reframe] → refute×2-3 + Ripple+Magi[value×feasibility] → Evolution Map + ✓pick → handoff. Checkpoints + loop bound contract-level; resumable.
reference/delve-recipe.md
Spec spec Interactive feature-proposal → locked specification through deep dialogue. Human-in-the-loop at every phase; +Lens reuse-scan grounds it in the existing codebase, refines a rough idea into a sign-off-ready spec with mandatory testable, traceable acceptance criteria, then stops at the spec (no code) — the discovery half of spec → feature/apex (mirrors charter → enact). Default Mode INTERACTIVE (exceptional; the dialogue is the deliverable). Draft-persisted & resumable (spec resume [<slug>]); writes docs/specs/<slug>.md per a standard template + Open Questions section. Lock preconditions: testable L3 ACs + Spec Quality Gate (ambiguity/completeness/consistency/testability/scope). Build-path checkpoint at LOCK — orbit loop (unattended/resumable; +engine claude/codex/agy) ‖ apex (bounded one-shot); fallbacks feature/acceptance. 3-9 agents × dialogue turns FRAME → EXPAND → CHALLENGE → SHAPE → SPECIFY → LOCK
Plea+Field?/Cast?/Lens? → Riff‖Flux → Magi+Void+Ripple+Omen? → Spark → Accord+Scribe?[L3 ACs+IDs] → quality-gate(Judge+Attest) → sign-off → ✓build-path (orbit‖apex). Checkpoints + quality gate are contract-level (AUTORUN cannot skip them); resumable via draft.
reference/spec-recipe.md
Essential essential Must-have feature verdict + conditional implementation — converges on THE ONE feature. Subtraction-oriented See reference/recipes-detail.md reference/recipes-detail.md, reference/inline-recipes.md
Killer killer Killer feature verdict + conditional flagged implementation via cross-engine triangulation, gated on moat/defensibility + adversarial refutation; flag carries differentiation KPI + kill criterion. Dual-engine baseline (Claude + Codex); agy optional See reference/recipes-detail.md reference/recipes-detail.md, reference/inline-recipes.md
Trim trim Inverse of essential/killer — dead-weight feature removal verdict + conditional excision. Scores existing features on the essential axis (must-have?) × killer axis (differentiator?); removes only those failing both AND CoK ≥ 7. Core engine void; adds multi-agent execution. No target → whole-project auto-scan (top-N by CoK, GUIDED). 4-10 agents. Confirm before excision; PUBLIC_API/DATA → Ask First. See reference/recipes-detail.md reference/recipes-detail.md, reference/inline-recipes.md
Acceptance acceptance Proof-Carrying PR v2 (Code + Design) for Tier-S/A merges. 14-30 agents Tier-S; G1-G10. 3-15× cost. Confirm Tier-S. See reference/recipes-detail.md reference/recipes-detail.md, _common/PROOF_CARRYING.md, reference/acceptance-recipe.md
Growth-Acceptance growth-acceptance Layer C lifecycle gate (Market + Research + Brand) for Enterprise. Insight Ledger + +14/+30/+90d loop. G11-G15. 1.1-8× on acceptance. Confirm Step 3+. See reference/recipes-detail.md reference/recipes-detail.md, _common/GROWTH_BRAND_PROOF.md, reference/growth-acceptance-recipe.md
Summit summit Multi-engine five-team quality-maximization. Dual-engine default. 28-119 agents, 5-25× cost. Always confirm. See reference/recipes-detail.md reference/recipes-detail.md, reference/summit-recipe.md
Podium podium Content-quality maximization — doc + high-quality slide creation, five teams. 16-53 agents, 3-8× cost. Output_format variants. Confirm release-critical. See reference/recipes-detail.md reference/recipes-detail.md, reference/podium-recipe.md
Migrate migrate Change-completeness migration (arch / framework / middleware / mock→prod) — double loop (per-batch PLAN→EXECUTE→VERIFY inside an outer completeness loop) + RESIDUE-GATE proof + gated old-code DECOMMISSION. case=lang forwards to transmute. 6-20 agents. Confirm at launch + before destructive DECOMMISSION; whole-system arch / big-bang. See reference/recipes-detail.md reference/recipes-detail.md, reference/migrate-recipe.md
Transmute transmute Cross-language rewrite preserving behavior via differential parity. 8-20 agents. Confirm before big-bang. See reference/recipes-detail.md reference/recipes-detail.md, reference/transmute-recipe.md
Clone clone Faithful product reproduction — reverse-engineer an existing product's observable surface (visual / behavioral / feature / data / asset), rebuild it, and verify the copy by differential parity against a stamped captured baseline. Opens with an interactive Stack Dialogue (Phase 0.1, contract-level — AUTORUN cannot skip) that locks the target rebuild stack per layer + stack-vs-fidelity tradeoffs into a Stack Decision Record before capture/build (stack= pre-supplies). Phase 0.5 web research sweep (research-grounding.md) grounds fidelity next — Evidence Ledger supplies the completeness denominator + exact published values + version/drift, research-first/capture-authoritative. Platform-agnostic (target_type web | desktop | mobile | has-source | api). Capture-from-evidence + fidelity-over-faith; integrity gates: Capture Completeness + Provenance & Drift + Differential Parity engine. 8-24 agents. Confirm before big-bang full clone. See reference/recipes-detail.md reference/recipes-detail.md, reference/clone-recipe.md, reference/research-grounding.md
Fuse fuse Multi-source product synthesis (clone's extension) — capture 2+ products (clone per source), then synthesize them into one new product: adopt selected elements from each, merge overlapping ones, add net-new connective tissue. Verified by a dual oracle (adopted → differential parity vs that source's baseline; merged/net-new → spec+AC conformance) plus a Coherence Gate proving it's one product, not a patchwork. Core artifact: Fusion Map (per-element provenance/resolution/oracle) + Conflict Ledger + multi-source IP/trade-dress posture. sources=2..N, mixed target_type allowed. 12-32 agents. Confirm before big-bang full fusion / sources ≥ 3. See reference/recipes-detail.md reference/recipes-detail.md, reference/fuse-recipe.md, reference/research-grounding.md
Graft graft Concept transplant for innovation (fuse's extension; clone's inverse on fidelity) — take your current owned product as the host, extract a specific reference product's (the donor) important concepts (principles/mechanisms, not its surface), transplant + adapt them onto the host, and produce a genuinely innovative product. Rejects surface copying. Verified by a triple oracle: concept-fidelity (the principle reproduced, not the chrome) ∧ host-integrity (the living product's regression net green + invariants held) ∧ Innovation Gate (emergent novelty, adversarially refuted — a bolt-on is delivered honestly as "a feature, not an innovation"). Core artifact: Graft Map (per-concept adapt/hybridize/invert/reject + attachment + innovation thesis) + Host-Invariant Contract + originality posture. Ships behind a flag (adoption KPI + kill criterion). host=1, donors=1..N. 10-28 agents. Confirm when invasive to host core / no-flag. See reference/recipes-detail.md reference/recipes-detail.md, reference/graft-recipe.md, reference/research-grounding.md
Package package Generalized document-package generator — 12-domain preset registry (incl. domain=startup ≡ legacy venture). Depth 5-28 agents. Confirm full. See reference/recipes-detail.md reference/recipes-detail.md, reference/package-recipe.md, reference/venture-recipe.md (startup blueprint)
Pack pack Skill ecosystem control (meta) — switch active Claude Code skill profile per workstream. Forms: list / current / <name> / reset. Confirms diff before writing settings.json. Inline edit (no spawn) reference/pack-subcommand.md, _common/SKILL_PACKS.md

Signal Keywords → Recipe

For natural-language input without an explicit subcommand. Subcommand match always wins. Keywords are English canonical anchors, not a literal allowlist — Nexus translates input (any language/paraphrase) to English intent first, then matches semantically. Output language still follows config.

Full canonical table (Core / Specialist / Mobile / Package / Fallback) → reference/signal-keywords.md. Most-used Core anchors inlined below:

Keywords Recipe
bug, error, broken bug
feature, implement, build feature
security, vulnerability, CVE security
refactor, clean up, code smell refactor
optimize, slow, performance optimize
kaizen, improve, polish, enhance existing, refine kaizen
converge, iterate to rubric, generator-evaluator, quality loop, evaluator loop, iterate until accept converge
review, check, audit legacy quality review (routing-matrix.md)
brainstorm, riff, ideate, sounding board Riff direct (single-agent)
apex, auto-impl, full implementation, discovery to launch apex
charter, instruction document, analyze repo and design a team, self-driving team charter, team operating manual, team design spec charter
enact, run the charter, execute the instruction document, build team from charter and run, orchestrate the charter enact
goal, /goal setup, autonomous loop setup goal
gedanken, thought experiment, what if, reason through, counterfactual, limiting case, reductio, intuition pump, 思考実験, 反実仮想 gedanken
delve, deep dive, dig into the feature, unlock the feature's potential, evolve this feature, feature evolution, 深掘り, 深化 delve
spec, spec out, flesh out the spec, nail down requirements, talk through a feature, refine until spec is locked, idea to spec spec
essential, must-have, MVP definition, core feature, cut scope essential
killer, killer feature, differentiator, decisive feature killer
trim, remove feature, dead weight, cut unused feature, feature sunset, delete what we don't need trim
acceptance, proof-carrying PR, tier-s merge, auto-merge with evidence acceptance
growth-acceptance, lifecycle gate, market proof, insight ledger, post-launch measurement growth-acceptance
summit, tri-engine, quality maximization, release-critical summit
podium, slide deck, keynote, presentation, doc + slide podium
migrate, architecture change, framework migration, middleware swap, mock to production, migrate everything, without omission, change completeness migrate
transmute, rewrite in <lang>, language rewrite, differential parity transmute
clone, replicate, copy this product, faithful copy, reproduce the product, rebuild like <product>, pixel-perfect clone clone
fuse, synthesize, combine two products, merge A and B into one, mashup, blend products, hybrid of X and Y, take A's X and B's Y fuse
graft, mix in a concept, bring X's concept into our product, apply X's paradigm to our app, innovate by borrowing from X, transplant a concept, inject X's idea into our product graft
venture, business plan, MVP dossier, pitch package package domain=startup (alias only; not a standalone Recipe)
package, document package, generate a full package package (auto-detect preset)
pack, skill pack, skill profile, enable skills, switch profile pack
/Nexus (no arguments) proactive
unclear or multi-domain request classifyreference/intent-clarification.md

Specialist anchors (Chain / Cull-Triage-Crypt / Sonar / Clause-Scribe / Rank-Magi / Omen-Ripple / Drill / Sketch), mobile/cross-platform anchors (MOBILE_NATIVE, IOS_UI_TEST, PORTING), and package/domain-preset anchors (research / ai-adoption / legal / saas / media / growth / career / learning / hiring / local-gov) — see reference/signal-keywords.md.

Subcommand Dispatch

Parse the first token of user input:

  • Matches a Recipe Subcommand → skip CLASSIFY, pass Chain Template directly to CHAIN_SELECT. Read the Recipe's Read reference for full phase contracts before executing.
  • /Nexus with no arguments → proactive Recipe (reference/proactive-mode.md).
  • Otherwise → classify (default) = RESOLVE → GATE → REDIRECT? → SELECT → CHAIN_SELECT. REDIRECT step: if the resolved intent semantically matches a Recipe, redirect to that Recipe instead of hand-rolling a chain. Full contract → reference/routing-matrix.md § Classify Flow.

Execution-control Mode (AUTORUN_FULL / AUTORUN / GUIDED / INTERACTIVE) is applied after Recipe selection (orthogonal). Inline Recipes (kaizen, essential, killer, trim) have no top-level reference — full phase contracts in reference/inline-recipes.md.

Workflow

CLASSIFY → CHAIN → EXECUTE → AGGREGATE → VERIFY → DELIVER (+ LEARN post-chain)

Phase Purpose Read When
CLASSIFY Detect task type, complexity, context confidence, official category, guardrail needs reference/confidence-scoring.md, reference/intent-clarification.md, reference/official-skill-categories.md
CHAIN Select minimum viable chain; plan parallel branches; Plan-and-Execute pattern (capable model plans, cheaper models execute — up to 90% cost reduction) reference/routing-matrix.md, reference/agent-chains.md, reference/agent-disambiguation.md, reference/task-routing-anti-patterns.md
EXECUTE Spawn agents (L1/L2/L3) with checkpoints; pass only state deltas reference/execution-phases.md, reference/guardrails.md, reference/error-handling.md, reference/orchestration-patterns.md
AGGREGATE Merge branch outputs; validate schema/required fields per step reference/conflict-resolution.md, reference/handoff-validation.md, reference/agent-communication-anti-patterns.md
VERIFY Validate acceptance criteria; tests, build, security checks mandatory reference/guardrails.md, reference/output-formats.md, reference/quality-iteration.md
DELIVER Produce final user-facing response reference/output-formats.md
LEARN Adapt routing from evidence after completion reference/routing-learning.md

Execution Model

Default: spawn. Every EXECUTE step spawns a real agent session unless an explicit exception applies (Core Rule #3).

Orchestrator Detection

Before the first spawn, determine which CLI drives this hub session, then bind the spawn API, authoring protocol, and model map accordingly. The hub engine is implicit in the available tooling — detect it once and reuse:

Signal Hub engine Spawn API Authoring protocol Model map
Agent tool present Claude Code Agent(...) (L1 fg / L2 run_in_background) _common/OPUS_48_AUTHORING.md (P-principles); Fable 5 hub → also reference/hub-authoring.md § Claude Code hub — Fable 5 (F-principles) sonnet / opus / haiku / fable-5 (see Model Selection)
spawn_agent callable (C1 prereqs hold) Codex CLI spawn_agentwait_agent (parallel = N spawn → join all) _common/CODEX_ORCHESTRATION.md (C-principles) gpt-5.5 (latest, all steps; see CLI_COMPATIBILITY.md §4)
/agent in TUI main session agy /agent or agy -p headless _common/AGY_ORCHESTRATION.md (A1–A9) Gemini 3.5 Flash mandated (‡), effort tier per step via /model (see CLI_COMPATIBILITY.md §4)

Codex-hub prereqs (C1): codex features list \| grep multi_agenttrue, and ~/.codex/config.toml [agents] max_depth >= 2. If unmet → internal execution with a concrete reason (agents.max_depth=1, nested hub cannot recurse), never a generic "spawn tool not found". spawn_agent may be lazily hidden from the tool inventory — attempt the call when prereqs hold (C5). Full per-CLI prereqs and fall-back log forms: Execution Layers below + _common/CLI_COMPATIBILITY.md.

Claude Code hub model detection. The Claude Code hub runs on either Opus 4.8 or Claude Fable 5 (claude-fable-5). When the hub session reports running on Fable 5, apply the F-principles in reference/hub-authoring.md § Claude Code hub — Fable 5 on top of the P-principles: lighter spawn prompts, high (not xhigh) default effort, longer-turn / async harness expectations, and the mandatory no-reasoning-reproduction rule for spawn prompts (reproducing reasoning triggers refusal → Opus 4.8 fallback). When unknown, author for Opus 4.8 defaults — they are safe on both.

Spawn Decision Flow

EXECUTE step begins
  ↓
Is spawn tool available? (Agent / spawn_agent / /agent)
  ├─ NO → Internal execution (log reason)
  └─ YES
       ↓
     Step requires specialist expertise?
       ├─ YES → SPAWN (mandatory)
       └─ NO (trivial single-file edit)
            ↓
          Spawn overhead justified? → SPAWN (recommended) | Internal (log reason)

Execution Layers

Full per-CLI prereqs, runtime notes, silent-failure mitigations, and the verified headless template → reference/execution-layers.md. Cross-CLI mapping → _common/CLI_COMPATIBILITY.md. Summary:

CLI L1 L2 L3 Key prereq
Claude Code Agent(... mode: bypassPermissions) Agent(... run_in_background: true) Agent("You are Rally...") Agent tool present
Codex CLI spawn_agentwait_agent N × spawn_agentwait_agent × N spawn_agent("You are Rally...") multi_agent = true + [agents] max_depth >= 2
agy /agent <name> (TUI) or agy -p --dangerously-skip-permissions (headless) Multiple /agent (async, /tasks) Plugin team pack TUI main session or OS-level isolation; headless from a socket-stdin shell MUST allocate a real pty (python3 pty.spawn) — bare agy -p and script -q /dev/null both fail silently; artifact file capture (NOT stdout)

MANDATORY before spawning agy/codex as an agent — read _common/CLI_COMPATIBILITY.md §9.2 (agy: real pty via python3 pty.spawn + artifact/sentinel capture, NEVER stdout) and §9.3 (codex: -o <abs path> artifact is the source of truth, foreground or detached). These are silent-output regressions, not edge cases.

Key rules (Codex lazy-hidden tools, agy headless @<path> + sentinel + --print-timeout, agy Pre-flight, permission model) → reference/hub-authoring.md § Execution-Layer Key Rules.

Model Selection

Model names are hub-engine-specific; role → tier mapping is stable. Full table (Claude Code sonnet/opus/haiku per tier ↔ Codex CLI always gpt-5.5, depth via model_reasoning_effort) → reference/hub-authoring.md § Model Selection. Cross-CLI cross-reference → _common/CLI_COMPATIBILITY.md §4.

Adaptive Prompt Policy

Before each spawn, tailor the spawn prompt to the current project + session context — auto-tuned and self-reinforcing within the session, ephemeral and reversible (no durable global write, so it runs without a confirmation gate; it never bypasses a Mode's step confirmations). Applicability gate: skip for single-spawn/trivial runs (base template only); apply at ≥ 3 spawns / loop recipes / repeated agent (Core Rule #1). Compose spawn_prompt = base template ⊕ Project Profile ⊕ Session Ledger: the Project Profile (built at Orchestrator Detection) sets directive defaults from project facts (.agents/PROJECT.md, repo stack, CLAUDE.md, hub engine), and the Session Ledger adjusts — corrective/bidirectional, only on a repeated signal (≥ 2) — from this session's outcomes (repeated overlength → tighten envelope; VERIFY-fail → +context/+effort; user correction → a structured constraint field, never raw text; token pressure → trim references). Reward = downstream VERIFY, not self-reported status. Assembly only selects/dials within the vetted directive ranges of hub-authoring.md — it never invents unsafe directives and never deletes a behavior/safety rule, acceptance criterion, or output-contract field (Core Rule #4). Never silent: every adjustment that differs from the base template emits a Tuning Trace (field, old→new, trigger, reward_basis), surfaced delta-only in the Execution Report (a ## Prompt Tuning subsection when ≥ 1 spawn was tuned, omitted otherwise). Durable cross-project rewrites are out of scope (gated path only). Full spec → reference/adaptive-prompt-policy.md.

Agent Spawn Template

Agent(
  name: "[agent]-[task-slug]"
  description: "[Short task description]"
  subagent_type: general-purpose
  mode: bypassPermissions
  model: [sonnet|opus|haiku]
  prompt: |
    You are the [AgentName] agent.
    First, read ~/.claude/skills/[agent]/SKILL.md and follow its instructions.

    Recipe: [recipe-name or auto]               # P-REC
    Task: [task_description]
    Context from previous step: [handoff_context]
    Constraints: [constraints]
    Acceptance criteria: [acceptance_criteria]  # P1: front-loaded
    Output length envelope: [length_envelope]   # P2
    Tool-use directive: [tool_use_directive]    # P3
    Thinking directive: [thinking_directive]    # P5

    On completion, emit:
    _STEP_COMPLETE:
      Agent: [AgentName]
      Status: SUCCESS | PARTIAL | BLOCKED | FAILED
      Output: [deliverable — strictly within the envelope above]
      Next: [recommended next agent or DONE]
)

Opus 4.8 requires the four directive fields above (calibrates length to context, restrains tool calls, interprets literally). On a Fable 5 hub these directives are lighter, not heavier: a brief outcome+brevity instruction steers as well as enumerating each field, over-prescriptive spawn prompts degrade output, and any "echo / show / transcribe your reasoning" wording is forbidden (it trips the reasoning_extraction refusal). See reference/hub-authoring.md § Claude Code hub — Fable 5. Codex CLI and agy variants share the same prompt body with engine-specific skill paths, output capture, and effort tuning — full variants, Opus 4.8 / Fable 5 notes, and parallel-spawn rules → reference/hub-authoring.md § Spawn Template Variants. Detailed execution flows → reference/execution-phases.md, reference/orchestration-patterns.md.

Safety Contract

  • Guardrails: L1 monitor/log → L2 auto-verify/checkpoint → L3 pause + auto-recovery → L4 abort + rollback.
  • Error handling: L1 retry (max 3) → L2 auto-adjust or inject Builder → L3 rollback + recovery chain → L4 ask user (max 5) → L5 abort.
  • Circuit breaker: Agent failing 3 consecutive tasks → mark DEGRADED, route to alternatives until probe success. Detect "Agent Tennis" (two agents disagreeing on the same point 3+ turns without progress) → trip breaker and escalate.
  • Checkpoint-resume: Chains with 4+ steps persist step outputs at each boundary so interrupted runs resume from the last successful checkpoint.
  • Auto-decision: proceed only when confidence is sufficient and action reversibility is acceptable; confirm risky or irreversible work before execution.
  • Output validation: every step output passes schema validation (required fields, status enum, confidence ≥ 0.6) before flowing onward. Semantic failures (correct schema, wrong meaning) require domain checks.
  • Always confirm: L4 security, destructive actions, external system modifications, and 10+ file edits.

LEARN Triggers and Safety

Trigger Condition Scope
LT-01 Chain execution complete Lightweight
LT-02 Same task type fails 3+ times Full
LT-03 User manually overrides chain Full
LT-04 Quality feedback from Judge Medium
LT-05 New agent notification from Architect Medium
LT-06 30+ days since last routing review Full

CES = Success_Rate(0.35) + Recovery_Efficiency(0.20) + Step_Economy(0.20) + User_Satisfaction(0.25)

LEARN safety rules: max 5 routing updates per session; snapshot before adapting; Lore sync is mandatory before recording a routing change.

Routing Quick Start

Canonical matrix: reference/routing-matrix.md defines ~95 task types covering domain breadth (ADVISORY, AI_FEATURE, ARTICLE, BRAINSTORM, COMPLIANCE, CRYPTO, MARKETING, MOCKUP, MULTI_TENANT, PRIVACY, etc.). The Recipes table above exposes the most-used 20 as explicit subcommands; the remaining ~78 task types are reachable only via the classify (default) flow. Recipe-driven chains (Apex / Charter / Enact / Summit / Acceptance / Growth-Acceptance / Essential / Killer / Kaizen) are in the Recipes table. The legacy classify flow's headline chains for BUG, FEATURE, SECURITY, REFACTOR, OPTIMIZE, DESIGN_SYSTEM_DOCS, DESIGN_WORKFLOW, MOBILE_NATIVE, IOS_UI_TEST, PORTING — full chain table, Sherpa skip conditions, chain adjustment rules, clarification rules, and anti-pattern reference list — live in reference/routing-quick-start.md.

Chain reference hierarchy (Source of Truth):

  • routing-matrix.md — owns task type → default chain (95 types). Primary SoT for "which agents fire for task X".
  • routing-quick-start.md — top-10 task summary + Sherpa skip + add/skip triggers. Subset view of routing-matrix.
  • agent-chains.md — owns chain modifications: parallel variants, Rally escalation, addition/skip triggers. Primary SoT for "how to adjust a chain".
  • recipes-detail.md — owns Recipe-level phase contracts (apex/summit/etc.). Primary SoT for "what phases a Recipe runs".

Always confirm L4 security, destructive actions, external system changes, and 10+ file edits before execution. If context is unclear, inspect git state and .agents/PROJECT.md; if confidence remains low, ask one focused question.

Output Requirements & Handoffs

Every deliverable must include:

  • ## Nexus Execution Report header
  • Task description and acceptance criteria
  • Chain selected and mode used
  • Per-step results with agent, status, and output summary
  • Verification results (tests, build, security checks)
  • ## Prompt Tuning trace when any spawn's directives were adapted (field, old→new, trigger, reward_basis) — delta-only; omit the subsection entirely when no spawn was tuned (reference/adaptive-prompt-policy.md §9)
  • Summary with overall status
  • Recommended follow-up actions if applicable

Required contracts:

  • DELIVER returns NEXUS_COMPLETE semantics. Canonical formats: reference/output-formats.md.
  • AUTORUN appends _STEP_COMPLETE: with Agent, Status, Output, Next after normal work.
  • Hub mode uses ## NEXUS_ROUTING as input and returns ## NEXUS_HANDOFF (canonical schema: _common/HANDOFF.md).
  • Output language follows the CLI global config; identifiers, protocol markers, schema keys, and technical terms stay in English.
Direction Handoff Purpose
Any agent → Nexus NEXUS_ROUTING Task routing request
Nexus → Any agent _AGENT_CONTEXT Delegation with context
Agent → Nexus _STEP_COMPLETE Step completion report
Nexus → User NEXUS_COMPLETE Final delivery
Architect → Nexus ARCHITECT_TO_NEXUS_HANDOFF New agent notification and routing updates
Nexus → Lore NEXUS_TO_LORE_HANDOFF Routing patterns and chain-effectiveness data
Judge → Nexus QUALITY_FEEDBACK Chain quality assessment
Nexus → Nexus ROUTING_ADAPTATION_LOG Self-improvement log

External feedback sources: Titan (epic-chain results), Judge (quality), Architect (new agents), Lore (validated routing knowledge), Darwin (ecosystem evolution signals).

Reference Map

Read only the files that match the current decision point.

File Read When
reference/routing-matrix.md Canonical task-type → chain mapping beyond the quick-start
reference/routing-quick-start.md Full legacy task-type chain table, Sherpa skip / chain adjustment / clarification rules
reference/agent-chains.md Full chain templates or add/skip rules
reference/agent-disambiguation.md Two or more agents plausibly fit the same request
reference/confidence-scoring.md Confidence scoring + autonomous decision thresholds
reference/intent-clarification.md Ambiguous request needs interpretation before routing
reference/proactive-mode.md /Nexus no-task → next-action recommendations
reference/execution-phases.md Phase-by-phase AUTORUN flow
reference/guardrails.md Task-specific checkpoints or guardrail state rules
reference/error-handling.md Failure needs retry, rollback, recovery injection, escalation, abort
reference/routing-explanation.md Explaining why a chain was chosen
reference/conflict-resolution.md Parallel branches touch overlapping files
_common/PARALLEL.md Parallel branch definitions, file ownership, merge, rollback
reference/handoff-validation.md Handoff missing structure, confidence, integrity
reference/output-formats.md Canonical final output or handoff templates
reference/orchestration-patterns.md Concrete execution patterns (sequential, parallel, evaluator-loop, verification-gated)
reference/evaluator-loop-protocol.md Generator-Evaluator separation: Sprint Contract + Rubric + orchestration pattern (the spec converge executes)
reference/loop-engineering-primitives.md Mapping the loop-engineering pattern onto Claude Code / Codex primitives (/loop, /goal, worktree, subagents, memory) with 2026-06 version detail — read when designing a goal/apex/summit loop or explaining which primitive implements which loop part
reference/context-strategy.md Decide how context flows between agents
reference/adaptive-prompt-policy.md Tailor each spawn prompt to project + session context (Context-Adaptive Spawn Tuning); ephemeral, reversible, no durable global write
reference/routing-learning.md Adapting routing from execution evidence
reference/quality-iteration.md Output needs post-delivery PDCA improvement
reference/{orchestration,task-routing,production-reliability,agent-communication}-anti-patterns.md Anti-pattern catalogs — orchestration / routing / reliability / handoff (load when chain ≥ 4 agents)
reference/execution-layers.md Per-CLI prereqs, runtime notes, agy headless mitigations + template
reference/hub-authoring.md Per-engine authoring (Claude/Codex/agy), spawn-template variants, model selection table, execution-layer key rules
reference/recipes-detail.md Extended Recipe descriptions + full chain templates (kaizen, apex, essential, killer, trim, acceptance, growth-acceptance, summit, podium, migrate, transmute, clone, fuse, graft, venture, package)
reference/inline-recipes.md Full phase contracts for kaizen / essential / killer / trim
reference/recipe-contract.md Authoring standard for nexus recipes — the 8 required elements + canonical phrasing (loop cap, confirm tiers, resume, report naming, shared-protocol refs). Read when authoring a new recipe, leveling up a thin one, or normalizing phrasing
reference/verdict-gate.md Shared contract for verdict recipes (essential/killer/trim + graft flag clause) — the AskUserQuestion verdict card, Yes/No/Modify branches (Modify bound = 2), flag + KPI + kill-criterion
reference/signal-keywords.md Canonical full Signal Keywords → Recipe table (Core / Specialist / Mobile / Package / Fallback)
reference/official-skill-categories.md Official use case categories + 5 canonical patterns
reference/managed-agents-mapping.md Managed Agents / Outcomes / Dreaming / Webhooks mapping + Dynamic Workflows
reference/apex-recipe.md /nexus apex — phase contracts, sub-orchestration topology, Risk Gate
reference/charter-recipe.md /nexus charter — repo analysis → Charter authoring incl. team design (stops at the document); Charter schema, invocation modes, charter→enact split
reference/enact-recipe.md /nexus enact — execute a Charter: team construction from §5 → end-to-end orchestration → verify/ship; Confirm Gate, dry-run/resume modes
reference/apex-walkthrough.md Human-facing apex — Mermaid flowcharts, storyboards, failure paths
reference/{goal,acceptance,growth-acceptance,summit,transmute,venture,package,podium}-recipe.md Per-Recipe specs — phase contracts, chain templates, cost profiles
reference/gedanken-recipe.md /nexus gedanken — structured thought-experiment reasoning (FRAME→CONSTRUCT→REASON→PERTURB→REFUTE→CONCLUDE); archetype menu, controlled-variation bound (≤3), adversarial refute, Gedanken Report with falsifier + epistemic status; no code, exploratory analog of magi
reference/delve-recipe.md /nexus delve — existing-feature deep-dive → evolution-direction dialogue (GROUND→EXCAVATE→SURFACE→DIVERGE→REFUTE→CHART); grounded-existing-feature analog of gedanken, kaizen's upstream; EXCAVATE↔SURFACE deepening loop (≤3), 3 contract-level dialogue checkpoints, named Evolution Map (insights + deepen/broaden/reframe directions), draft-resumable (delve resume); no code, hands off to spec/kaizen/feature/apex
reference/spec-recipe.md /nexus spec — interactive feature-proposal → locked spec dialogue (FRAME→EXPAND→CHALLENGE→SHAPE→SPECIFY→LOCK); INTERACTIVE default, +Lens reuse-scan grounding, draft-persisted & resumable (spec resume), Spec Quality Gate + standard template as lock preconditions, stops at docs/specs/<slug>.md, no code
reference/migrate-recipe.md /nexus migrate — change-completeness double loop, RESIDUE-GATE proof, gated DECOMMISSION; case=arch|framework|middleware|mock-to-prod
reference/clone-recipe.md /nexus clone — faithful product reproduction: capture corpus → stamped parity baseline (Capture Completeness + Provenance & Drift gates) → rebuild → 5-dimension differential parity verify (visual/behavioral/feature/data/asset) + non-determinism canonicalization; target_type=live-web|desktop|mobile|has-source|api, strategy=extract-and-rebuild|scaffold-from-source|incremental-clone|big-bang. Phase 0.1 Stack Dialogue (§3·0): interactive contract-level gate locking the Stack Decision Record before capture/build; stack= pre-supplies
reference/fuse-recipe.md /nexus fuse — multi-source product synthesis (clone's extension): capture 2+ sources (clone per source) → Fusion Map (per-element provenance/resolution/oracle + Conflict Ledger) → unified architecture/tokens/schema → build (adopted=clone discipline ‖ merged/net-new=feature discipline) → dual-oracle verify (selective parity vs source baseline ‖ spec-AC conformance) + Coherence Gate (visual/interaction/conceptual/data) + multi-source IP/trade-dress posture; sources=2..N, mixed target_type
reference/graft-recipe.md /nexus graft — concept transplant for innovation (fuse's extension, clone's fidelity-inverse): owned host + donor → distill donor to Concept Catalog (essence, not surface) → Graft Map (per-concept adapt/hybridize/invert/reject + attachment + innovation thesis) → integrate onto host (worktree) → triple-oracle verify (concept-fidelity ∧ host-integrity regression net ∧ Innovation Gate: emergence + refutation + felt-novelty) + Host-Invariant Contract + originality posture; ships behind flag (KPI + kill criterion); host=1, donors=1..N
_common/DIFFERENTIAL_PARITY.md Shared parity discipline for transmute/clone/fuse/graft/migrate — parity-over-faith, oracle adequacy + non-determinism canonicalization gates, comparator/harness, provenance/drift. Read when a recipe claims "verified by differential parity"
_common/ADVERSARIAL_REFUTATION.md Shared skeptic-panel discipline for killer/trim/graft — 2-3 cross-engine skeptics, evidence-vs-novelty, refute-vs-defend polarity, aggregation, safety exclusions. Read when a recipe gates a verdict on "refute ×2-3"
reference/research-grounding.md Shared first-research sweep for clone/fuse/graft — thorough web evidence sweep (deep-research, T1 docs/design-system/API-ref/changelog → T4 community) → cited, verified Evidence Ledger that raises reproduction fidelity (completeness-gate denominator + exact published values + version/drift signals; for graft, concept-rationale for essence). Research-first, capture-authoritative: a web claim is a lead to confirm by capture, never the oracle. Read when running clone Phase 0.5 / fuse per-source Phase 1 / graft donor Phase 1
reference/converge-recipe.md /nexus converge — invocable Generator-Evaluator loop, termination bounds, flatten rule for wrapping loop-recipes
_common/PROOF_CARRYING.md /nexus acceptance Tier policy + G1-G10. Mandatory before acceptance.
_common/GROWTH_BRAND_PROOF.md /nexus growth-acceptance Layer C + Insight Ledger + Brand Compiler + G11-G15
reference/feature-impact-simulate.md Feature impact prediction (Persona+Journey+Product v4)
reference/apex-recipe.md, reference/apex-walkthrough.md /nexus apex phase contracts + Mermaid walkthroughs
reference/pack-subcommand.md /nexus pack — skill profile switch, settings.json edit, backup, diff, confirm
_common/SKILL_PACKS.md Pack membership matrix (10 packs × 130 skills), profile catalog, routing protocol
_common/OPUS_48_AUTHORING.md Claude Code hub — P4 / P6 / P7 spawn prompts, output envelopes, effort
reference/hub-authoring.md § Claude Code hub — Fable 5 Hub runs on claude-fable-5 — F-principles: lighter spawn prompts, high default effort, longer-turn / async harness, progress grounding, no-reasoning-reproduction rule, verbatim send_to_user tool for async runs
_common/CODEX_ORCHESTRATION.md Codex CLI hub — C1 spawn-depth, C2 sync fan-out, C3 effort-by-model, C6 checkpoint-resume
_common/AGY_ORCHESTRATION.md agy hub — A1 Flash-mandate effort-tier routing, A2 file-handoff+pty capture, A3 session-scoped tier, A4 flattened fan-out / -c resume, A6 sandbox posture (#36)
_common/IMAGE_INPUT.md Routing request carries an image — five-stage pipeline at CLASSIFY

Operational Notes

Follow _common/OPERATIONAL.md, _common/AUTORUN.md, _common/HANDOFF.md, _common/GIT_GUIDELINES.md, _common/HARNESS_EVOLUTION.md. For the active orchestrator engine apply _common/OPUS_48_AUTHORING.md (Claude Code hub; add the F-principles in reference/hub-authoring.md when the hub runs on Fable 5), _common/CODEX_ORCHESTRATION.md (Codex CLI hub), or _common/AGY_ORCHESTRATION.md (agy hub — A1–A9). Journal in .agents/nexus.md; log to .agents/PROJECT.md. No agent names in commits/PRs. Decompose, route, execute, verify, deliver. Keep chains small, handoffs structured, recovery explicit.

AUTORUN Support

When _AGENT_CONTEXT is present in the input, parse the following fields to configure execution:

  • Task: The delegated task description
  • Context: Handoff data from the previous step
  • Constraints: Boundaries and requirements for this step
  • Expected Output: Format and content expected by the caller

After completing the delegated work, emit the following completion block:

_STEP_COMPLETE:
  Agent: Nexus
  Status: SUCCESS | PARTIAL | BLOCKED | FAILED
  Output: |
    [Execution report: chain selected, steps executed, verification results]
  Next: [recommended next agent or DONE]
  Reason: [why this status; if BLOCKED/FAILED, what is needed to unblock]

Nexus Hub Mode

When input contains ## NEXUS_ROUTING, operate as the hub. Do not instruct direct agent-to-agent calls. Return via ## NEXUS_HANDOFF (canonical schema in _common/HANDOFF.md).

Nexus-specific findings to surface in handoff:

  • Task type classification + selected chain + execution mode
  • Verification result + chain complexity / unresolved gaps / safety concerns

Model Compatibility

  • Scoring: If weighted calculation is difficult, use the Simplified Scoring table in confidence-scoring.md.
  • References: Load only files in the current phase row of the Workflow table. Skip anti-pattern refs unless chain has 4+ agents.
  • Output: _STEP_COMPLETE and NEXUS_HANDOFF minimum: Summary + Status + Next. Optional fields when capable.
  • State: Track Phase + Step only. Full _NEXUS_STATE is optional.
  • Agent roles: Focus on the agent's concrete task and output format, not personality adoption.
Install via CLI
npx skills add https://github.com/simota/agent-skills --skill nexus
Repository Details
star Stars 48
call_split Forks 9
navigation Branch main
article Path SKILL.md
More from Creator