Help us improve
Share bugs, ideas, or general feedback.
From anneal-alloy
Run the Alloy Tournament Consensus architecture — N parallel biased planners, synthesized into one plan, with always-on red team and functional validation.
npx claudepluginhub krzemienski/anneal --plugin anneal-alloyHow this command is triggered — by the user, by Claude, or both
Slash command
/anneal-alloy:anneal <task description> [--versions N] [--loop] [--type ultrabrain|deep|quick]The summary Claude sees in its command listing — used to decide when to auto-load this command
# /anneal-alloy:anneal You are invoking the **Alloy** architecture — the Tournament Consensus proposal of the Anneal plugin family. N parallel Prometheus-Alloy variants compete with different biases; a Synthesizer blends their best material into one plan; Momus audits the blend; Red-Team Trinity attacks it from three angles; Oracle renders the bird's-eye verdict; Hephaestus builds the artifact for real; Atlas emits XML + plan directory. ## Invariants (non-negotiable — refuse to start if violated) 1. **Red team always runs.** Security · Scope · Assumptions in parallel. 2. **Validation alw...
Share bugs, ideas, or general feedback.
You are invoking the Alloy architecture — the Tournament Consensus proposal of the Anneal plugin family. N parallel Prometheus-Alloy variants compete with different biases; a Synthesizer blends their best material into one plan; Momus audits the blend; Red-Team Trinity attacks it from three angles; Oracle renders the bird's-eye verdict; Hephaestus builds the artifact for real; Atlas emits XML + plan directory.
$1: the task string. If empty, prompt the user for a task and abort if still empty.--versions N: sets parallel planner count. Default 5. Range [2, 7]. Refuse --versions 1 (that's Cast) and --versions 8+ (signal-to-noise collapses).--loop: unbounded re-loop (no cap on retries). Default caps at 3 iterations.--type <category>: ultrabrain (most thought), deep (standard), quick (fast path). Default inferred from task shape.Run ${CLAUDE_PLUGIN_ROOT}/scripts/orchestrate.sh with the parsed arguments. The orchestrator implements:
${ANNEAL_RUNS_ROOT:-./.anneal/runs}/{run_id}/state.json with initial state.explore skill if available) over the project root.~/.claude/skills/*/SKILL.md and .claude/skills/*/SKILL.md.reviews/probe.md.metis agent with the task + probe report._shared/plan-reviewer-schema.md.reviews/metis-envelope.yaml and extract directives.This is the stage that differentiates Alloy from Cast and Temper.
Bias selection (see docs/synthesis-algorithm.md § Bias Selection):
Parallel fan-out. Spawn N instances of the prometheus-alloy agent using xargs -P $(sysctl -n hw.ncpu 2>/dev/null || nproc). Each receives:
bias parameter from step 1variants/variant-{I}-{bias}.mdWait for all N to complete. Use wait in the orchestrator script. Do not proceed until every variant file exists.
Invoke Synthesizer. Spawn the synthesizer agent with:
plan/plan.md and plan/phase-NN-*.md (the blended plan)synthesis-provenance.md (per-phase attribution)Invoke Momus on the BLENDED plan (not on variants). Momus reads plan/*.md. Output: reviews/momus-envelope.yaml.
If Momus returns BLOCK: route to stage-4 re-loop — regenerate the tournament with Momus's findings added as constraints. Max 2 stage-4 re-loops (then escalate to full re-loop via Intent Gate).
Spawn the three Red-Team agents in parallel:
redteam-securityredteam-scoperedteam-assumptionsDispatch mechanics (load-bearing): In a SINGLE assistant message, emit three Task tool calls (one per adversary). Do NOT set run_in_background: true — that makes the dispatches fire-and-forget and the pipeline stops. Parallelism comes from batching Task calls in one message, which the runtime executes concurrently. Wait for all three envelope responses before invoking Oracle. Persist envelopes to reviews/redteam-*-envelope.yaml.
Then spawn Oracle with all four prior envelopes (metis, momus, three redteam). Oracle outputs reviews/oracle-envelope.yaml.
Spawn hephaestus with the approved plan. Hephaestus:
reviews/hephaestus-evidence/Spawn atlas with all envelopes + evidence. Atlas computes the rollup:
rollup:
overall_verdict: <worst-of-all-envelopes>
gate_status:
metis: ...
momus: ...
red_team_trinity: N/3 PASS
oracle: ...
hephaestus: PASS|FAIL
simultaneous_pass: <bool>
emission_decision: EMIT|RE_LOOP|ABORT
EMIT iff simultaneous_pass == true AND overall_verdict ∈ {SAFE, CAUTION}.
If EMIT:
${ANNEAL_RUNS_ROOT:-./.anneal/runs}/{run_id}/alloy-{run_id}.xml per docs/emission-format.md.${ANNEAL_RUNS_ROOT:-./.anneal/runs}/{run_id}/plan/plan.md and phase files.If RE_LOOP:
--loop cap if not set to unbounded.If ABORT:
${ANNEAL_RUNS_ROOT:-./.anneal/runs}/{run_id}/alloy-{run_id}.xml following the semantic-XML schemaplan.md + phase-NN-*.md filessynthesis-provenance.md showing per-phase variant attributionvariants/rollup.yaml with emission_decision: EMIT--no-red-team — logged, ignored. Red team is invariant 1.--no-validate — logged, ignored. Validation is invariant 2.--versions 1 — "use /anneal-cast:anneal for single-planner work."--versions 8 or higher — "synthesizer signal-to-noise collapses beyond 7."