spec-dual

spec-dual is a command for Claude Code from shdennlin/agent-plugins. It costs 20 tokens per session (2,849 once invoked), scanned A, original, MIT.

A command that reviews a code change with two independent review engines and repeats fixes until both report no medium-or-higher findings.

In plain words
What is it for?
Use it to review specification paths, combine findings from Claude and Codex, and run a fix loop. A separate openai-codex plugin is needed for the Codex review engine.
Why use it?
It reduces the chance that one reviewer misses a problem by treating significant findings from either engine as blockers.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the reviewer plugin — 3 skills, 4 commands, 1 MCP server shipped together

Good fit Use it to review specification paths, combine findings from Claude and Codex, and run a fix loop. A separate openai-codex plugin is needed for the Codex review engine.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add shdennlin/agent-plugins
Claude Code
/plugin install reviewer

Made for: Claude Code.

Or install reviewer, the plugin that ships this one along with the rest of its 3 skills, 4 commands, 1 MCP server.

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 spec-dual

README.md
[![agentmods](https://agentmods.dev/badge/commands/shdennlin/agent-plugins/spec-dual/github.svg)](https://agentmods.dev/commands/shdennlin/agent-plugins/spec-dual)
Your own site
<a href="https://agentmods.dev/commands/shdennlin/agent-plugins/spec-dual"><img src="https://agentmods.dev/badge/commands/shdennlin/agent-plugins/spec-dual/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 spec-dual

Your own site · 80×15
<a href="https://agentmods.dev/commands/shdennlin/agent-plugins/spec-dual"><img src="https://agentmods.dev/badge/commands/shdennlin/agent-plugins/spec-dual.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,849 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.
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.00020 $0.02849
Opus 5.5 $0.00008 $0.01140
Sonnet 5.5 $0.00004 $0.00570
Haiku 4.5 $0.00002 $0.00285

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

Security

Grade A, and why

spec-dual 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.

plugins/reviewer/commands/spec-dual.md · 190 lines

How it starts

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

Dual-Engine Spec Review Command

Review a change with two independent engines (Claude + Codex) in parallel and drive fixes off the union of their findings. This is coverage-by-union, not corroboration: a finding only one engine sees is signal, and the engines agree on almost nothing (expect intersection near zero). The rule is a blocker needs only one engine; clearing needs both — MEDIUM or above in EITHER engine is a blocker. Do not read a 17-blocker union as 17 corroborated defects.

This command dispatches a Workflow that owns the fan-out, the cross-engine union, the pure-code blocker count, and the fix loop — so there is no per-turn Stop hook to burn and no completion string to fake.

Dependencies

  • reviewer:spec-fixer — ships with this plugin (applies fixes).
  • codex:codex-rescue — from the external openai-codex plugin (the Codex engine). Without it, the Codex engine is reported DOWN every round: the run ends ready: false with degraded: true rows, and the Claude findings are still returned. Tell the user to install openai-codex for a review that can clear.

Instructions

Step 1: Parse Arguments

From $ARGUMENTS, extract:

  1. help: if --help or -h is present, show the Help Output below and stop. Do NOT dispatch.
  2. paths: collect all positional arguments (not flags or flag values). Join multiple paths into one space-separated string as change.
  3. max_rounds: integer after -n or --max-rounds, default 3.
  4. no_explore: true if --no-explore is present.

Help Output

If --help or -h is present, display this and stop:

Usage: /reviewer:spec-dual [path...] [options]

Dual-engine (Claude + Codex) spec review. Both engines review the same change in
parallel; fixes loop until BOTH engines report zero MEDIUM+ findings, then LOW is cleared.

Positional arguments:
  path...                       One or more change folders or spec files to review

Options:
  -h, --help                    Show this help message
  -n, --max-rounds <N>          Maximum fix rounds (default: 3, hard cap). Every fix is
                                followed by a review, so N fixes = N+1 reviews; the last
                                review is verification-only and its findings are reported
  --no-explore                  Skip the shared codebase-context scan

Requires the openai-codex plugin for the Codex engine. Without it, the run cannot clear (Codex is DOWN).

Examples:
  /reviewer:spec-dual openspec/changes/my-change/
  /reviewer:spec-dual proposal.md spec.md tasks.md -n 5
  /reviewer:spec-dual openspec/changes/my-change/ --no-explore

Read the full file on GitHub · 190 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 Changed · +8 lines 0f868808107c
  2. 1mo ago Changed · +25 lines 498faa9f825a
  3. 1mo ago Changed · +22 lines fa81f1367cea
  4. 1mo ago Changed a5d4734c0253
  5. 3mo ago First seen · 135 lines · 20 tokens per session scan A 554a754240d9

Subscribe to this mod's changes

spec-dual is a command published in the GitHub repository shdennlin/agent-plugins (3 stars, last pushed 5d ago), licensed MIT. It adds 20 tokens to every session and 2,849 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-08-31.

Related

spec-dual compared with commands from other repositories

spec-dual next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spec-dualshdennlin/agent-pluginsCommand35d agoMITA20Claude Code
review-branchdamusix/atomic-claudeCommand117yesterdayMITA35Claude Code
diff-reviewcoco-research/cocoCommand323yesterdayApache-2.0A11Claude Code
spec-trace-requirementsrjmurillo/ai-agentsCommand50yesterdayApache-2.0A0GitHub Copilot
merge-conflict-analysisrjmurillo/ai-agentsCommand50yesterdayApache-2.0A0GitHub Copilot
initazrtydxb/procoderCommand21221d agoApache-2.0A16Claude Code
refactorRchGrav/claudeboxCommand1.2k2mo agoMITA9Claude Code