nw-speculative-dispatch

nw-speculative-dispatch is a skill for Claude Code from nWave-ai/nWave. It costs 37 tokens per session (2,031 once invoked), scanned A, original, MIT.

A method for creating several candidate implementations in parallel, measuring or reviewing them, and choosing one while recording every candidate. It is intended for decisions with at least three plausible approaches and meaningful trade-offs.

In plain words
What is it for?
It is for ambiguous implementation decisions, especially when performance matters or the domain is unfamiliar.
Why use it?
It helps teams handle uncertain technical choices without hiding discarded alternatives. The recorded candidates make the decision easier to inspect later.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit It is for ambiguous implementation decisions, especially when performance matters or the domain is unfamiliar.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nwave-ai/nwave/nw-speculative-dispatch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nWave-ai/nWave --skill nw-speculative-dispatch
Clone the repo
git clone --depth 1 https://github.com/nWave-ai/nWave

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nw-speculative-dispatch

README.md
[![agentmods](https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-speculative-dispatch/github.svg)](https://agentmods.dev/skills/nwave-ai/nwave/nw-speculative-dispatch)
Your own site
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-speculative-dispatch"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-speculative-dispatch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nw-speculative-dispatch

Your own site · 80×15
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-speculative-dispatch"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-speculative-dispatch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,031 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.02031
Opus 5.5 $0.00015 $0.00812
Sonnet 5.5 $0.00007 $0.00406
Haiku 4.5 $0.00004 $0.00203

Measured 1mo ago against content hash 05fe0ed454ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nw-speculative-dispatch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

nWave/skills/nw-speculative-dispatch/SKILL.md · 247 lines

How it starts

The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Speculative Dispatch Methodology

Speculative dispatch is a technique where the orchestrator generates N candidate implementations of the same TDD step in parallel, scores each by measured properties, and picks the best — while logging every candidate, including discarded ones, for human audit.


1. When to Use Speculative Dispatch

Use speculative dispatch when the decision is ambiguous and at least 3 feasible candidate strategies exist.

Signal Use speculative dispatch?
Step has ≥3 plausible implementation strategies YES
Decision is clear from prior context NO — implement directly
Only 1-2 strategies, clear winner NO — implement directly
Performance matters and strategies have measurable trade-offs YES
Domain is novel and "correct" structure is unknown YES

Speculative dispatch is orthogonal to TDD stages — it applies at any phase (RED unit-test authoring, GREEN, COMMIT under the 3-phase canon per ADR-025; or RED_UNIT, GREEN, COMMIT under the legacy 5-phase contract) where ambiguity is genuine and 3 candidates are feasible within the time budget.


2. The Three-Candidate Rule

Generate exactly 3 candidates per speculative step by default:

Role Strategy
minimal-change Inline, no new abstractions. Lowest complexity, fewest lines.
refactor-heavy Extracts helpers, adds guards, defensive patterns. Higher complexity.
pattern-extraction Generalises to a factory/template. Highest lines. Justified if reuse follows.

Three candidates is the minimum viable set for meaningful scoring. More than 5 candidates adds noise without proportional signal. Each candidate must be behaviourally correct before scoring — incorrect candidates are eliminated before scoring, not by scoring.


3. Auditability Mandate

ALL candidates must be logged — winner AND losers.

Discarded candidates have audit value. A human reviewer validating the orchestrator's pick must be able to inspect every alternative considered, not just the selected one. This is not optional.

Read the full file on GitHub · 247 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 247 lines · 37 tokens per session scan A 05fe0ed454ff

Subscribe to this mod's changes

nw-speculative-dispatch is a skill published in the GitHub repository nWave-ai/nWave (620 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 2,031 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.