Host-agnostic exhaustive multi-agent orchestration as a portable Agent Skill — the /ultracode method on any coding agent that can spawn subagents.
SaferSkills independently audited goodcode (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Optimize for the most exhaustive, correct answer — not the fastest or cheapest. On every substantial task, orchestrate a fan-out of specialized subagents with roles defined a priori, then adversarially verify every finding before you commit to it. Token cost is not a constraint (within the host's hard limits). Lean toward orchestrating and verifying unless the work is trivial or already verified.
The value is the script, not the spawning. Any modern agent can spawn a subagent — that is commodity. What makes the output exhaustive and correct is that before spawning you wrote down, for each worker: its role, its exact task, what to look for, the acceptance criteria, and what NOT to do. Generic "go look at this" workers reproduce none of the value. This skill is that script, made portable.
| Use it | Skip it (work solo) |
|---|---|
| Audits, deep code reviews, security passes | Trivial or conversational turns |
| Multi-source research, fact-checking | Single quick fix with a known root cause |
| Design exploration (compare N approaches) | A mechanical edit dictated by output you just read |
| Large migrations / broad sweeps | Anything where latency clearly beats completeness |
| Any task where "did I miss something?" is the real risk | Work that's already verified |
If the task is not substantial, do not orchestrate — answer directly. Orchestration on a trivial task is pure waste.
This skill never assumes a specific tool. Wherever it says "spawn a subagent", use your host's native parallel-task mechanism:
| Host | "spawn a subagent" maps to |
|---|---|
| Claude Code | the Agent/Task tool (or the Workflow tool for deterministic, code-driven orchestration) |
| OpenAI Codex | subagents (spawn explicitly per task, or spawn_agents_on_csv for batches; ~6 parallel) |
| Cursor | background / parallel agents (git-worktree isolated) |
| OpenCode / OpenHands | the subagent / parallel-task feature (works with local models via the harness) |
| No spawn mechanism (bare chat, weak local model) | degrade to SEQUENTIAL multi-pass: run the same protocol one worker at a time, role by role. Quality drops, the method holds. |
Two host-level truths to respect:
Workflow) loops, schema validation and round counts are enforced by code. On a model-driven host they become instructions — state them forcefully and self-check that you actually did them.Match the model to the job; don't burn the top tier on grunt work.
Never spawn top-tier workers for parallel finding — cost without benefit. On hosts without model selection, ignore this section.
Restate the goal in one line. Decide: is this substantial? If not → answer solo, stop. If yes, do light recon of the target before casting roles (this is what makes the cast good):
CLAUDE.md "critical areas" section) and record them; findings there will be weighted up.Pick the shape: review (dimensions → verify) · research (multi-modal sweep → deep-read → synthesize) · design (N approaches → judge → synthesize) · migrate (discover sites → transform → verify).
Before the analytical fan-out, spawn one cheap-tier worker to gather objective ground truth, so analysts don't re-derive it and findings anchor to facts:
Feed its output into every Phase 3 worker's brief. Skippable for tiny targeted scopes — if you skip it, say so (no silent caps).
Choose roles from the recon, not a fixed list. Routing examples (adapt): CI workflows present → add an agentic-actions role; frontend present → add a UX role; many type definitions → add a types role; auth/payments in scope → always full security coverage. For each role, write a full brief (see Role brief template): role, objective, scope, what to look for, acceptance criteria, what NOT to do, output format. No generic workers — if you can't write the brief, you can't spawn it. State the cast to the user in one line before fanning out.
Spawn the workers. Default to a pipeline: each item flows through all stages independently (find → verify), no barrier between stages — item A can verify while item B is still being found; wall-clock = slowest single chain, not sum-of-stages. Use a barrier (wait for a whole stage) only when the next stage genuinely needs the full prior set at once (dedup across everything, early-exit if zero found, "compare against the other findings"). Pass each worker the full brief + baseline summary — subagents do not inherit your context.
Every candidate finding must survive verification before it counts. This is the same principle as subagent-exec's "do not trust the implementer's report — read the actual code." Spawn independent skeptics (see Verifier brief template), each prompted to refute, defaulting to "refuted" when uncertain. Kill the finding if a majority refute it. When a finding can fail in more than one way, give each verifier a distinct lens (correctness / security / performance / does-it-actually-reproduce) instead of N identical skeptics — diversity catches what redundancy can't.
Discovery has unknown size. Re-spawn finders until K consecutive rounds (K≥2) surface nothing new. Deduplicate each round against everything seen (not just against confirmed findings) — otherwise rejected items reappear every round and the loop never converges. A single "run once" or "top-N" misses the tail.
(location-bucket, category); ≥2 from different workers → merge & mark cross-validated. semantic — among the remainder, group by proximity + overlapping domain. On merge: keep highest severity, union recommendations, bump confidence.severity_rank × blast_radius × confidence_rank; sort desc.For understand → design → implement → review, run this loop once per phase, reading each phase's result before launching the next. Stay in the loop between rounds; do not chain phases blindly.
Scale to the request: "find any bugs" → a few finders, single-vote verify. "Thoroughly audit / be comprehensive" → larger finder pool, 3–5-vote adversarial pass, completeness critic, synthesis. These patterns aren't exhaustive — compose new harnesses (tournament brackets, self-repair loops, staged escalation) when the task calls for it.
full — the whole target (default).targeted <scope> — restrict to a path/module/topic.differential <base> — only the delta vs a baseline (e.g. changed files vs main), plus a one-hop reach. Findings outside scope but reachable from it are reported in a separate "out-of-scope (reachable)" section.ROLE: [e.g. "Security worker — injection & authz"]
OBJECTIVE: [one sentence: what this worker is responsible for finding/producing]
SCOPE: [exact paths / files / sources. "Everything" is not a scope.]
BASELINE: [the objective facts from Phase 1 this worker should rely on]
LOOK FOR: [concrete, enumerated. e.g. "unparameterized queries, missing authz
checks on mutations, IDOR on :id routes, secrets in source"]
ACCEPTANCE CRITERIA: [what a valid finding/output must include — location,
evidence snippet, severity, why it's real]
DO NOT: [out-of-scope work, speculation without evidence, restructuring,
duplicating another role's job]
OUTPUT FORMAT: [structured fixed fields/schema so results merge cleanly]
VERIFY, DON'T TRUST: read the actual code/source and confirm independently;
report nothing you have not verified yourself.You are verifying a claim, not extending it. Try to REFUTE this finding:
[finding: location + description + claimed evidence]
LENS: [correctness | security | performance | does-it-actually-reproduce]
Read the real code/source. Build the strongest case that this is wrong,
a false positive, already handled, or out of scope.
Default to REFUTED if you are not confident it is real.
Return: { real: true|false, reason: "...", counter_evidence: "..." }ROLE: Baseline / ground-truth runner.
TASK: gather objective facts only — do not analyze or opine.
[code] run linter, type-check, test suite, dependency audit; collect
git stats (churn, recent commits to in-scope files).
[research] list the canonical/primary sources and the current landscape.
[design] extract hard constraints, requirements, and non-negotiables.
OUTPUT: a compact structured summary (counts, pass/fail, source list).
No recommendations. This feeds every analytical worker.failed[], continue with the rest. After retry, normalize known fields manually; else mark that worker partial.Workflow. Restate process guarantees forcefully and self-check them.Orchestration pattern and quality protocol distilled from Claude Code's native /ultracode (the Workflow tool's exhaustive-orchestration mode). The deterministic Workflow engine is Claude-Code-specific and is not reproduced here — only the portable method is. The recon → baseline → routed-roles → dedup/score → synthesize → failure-handling machinery and the "refute, don't trust the report" verification stance are generalized from mature multi-agent audit and review pipelines.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.