factory-verify

factory-verify is a command for Claude Code from watt-mind/factory. It costs 43 tokens per session (2,353 once invoked), scanned A, original, Apache-2.0.

A verification command for checking a pull request or branch end to end as a real user would, including static review and live browser, command-line, or API checks.

In plain words
What is it for?
It is for validating open pull requests, feature branches, and deployed changes through user-facing tests.
Why use it?
It finds defects that code inspection alone may miss and can fix in-scope problems before reporting a verdict, without merging.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

Part of the core plugin — 38 skills, 22 commands, 5 agents, 1 hook shipped together

Good fit It is for validating open pull requests, feature branches, and deployed changes through user-facing tests.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/watt-mind/factory/factory-verify
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.

Clone the repo
git clone --depth 1 https://github.com/watt-mind/factory

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 38 skills, 22 commands, 5 agents, 1 hook.

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 factory-verify

README.md
[![agentmods](https://agentmods.dev/badge/commands/watt-mind/factory/factory-verify/github.svg)](https://agentmods.dev/commands/watt-mind/factory/factory-verify)
Your own site
<a href="https://agentmods.dev/commands/watt-mind/factory/factory-verify"><img src="https://agentmods.dev/badge/commands/watt-mind/factory/factory-verify/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 factory-verify

Your own site · 80×15
<a href="https://agentmods.dev/commands/watt-mind/factory/factory-verify"><img src="https://agentmods.dev/badge/commands/watt-mind/factory/factory-verify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 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,353 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00043 $0.02353
Opus 5.5 $0.00017 $0.00941
Sonnet 5.5 $0.00009 $0.00471
Haiku 4.5 $0.00004 $0.00235

Measured 11d ago against content hash 7da699d565e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

factory-verify scanned grade A with 1 finding 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 11d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

3. **Default to the active harness's browser and runtime drivers:** Use whatever browser/UI automation the running harness provides (`chrome-devtools` MCP, Pi `chrome_devtools_*`, Panerelay / configured browser skill, ID
plugins/core/commands/factory-verify.md · 83 lines

How it starts

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

Review open PRs or the current branch and exercise the running change end-to-end as a human user would, fix in-scope defects (up to 2 rounds unless --report-only), post durable verification receipts, and stop before merging.

Scope and mode resolution

Interpret $ARGUMENTS:

  • --deploy [staging|prod]: delegate immediately to /factory-verify-deploy (shared/commands/factory-verify-deploy.md) for post-deploy rollout checks.
  • Explicit PR numbers or issue IDs (e.g. 3400 3401 or CLNT-9693): verify those PRs.
  • --open (or bare /factory-verify when standing on the repo's configured base / deploy_branch): resolve all open non-draft PRs targeting configured base via gh pr list --state open --json number,headRefName,headRefOid,baseRefName,isDraft,title.
  • --branch (or bare /factory-verify when standing on a feature branch): verify the active branch/worktree against origin/<base> (and its linked open PR if one exists).
  • --report-only: disable Gate 3 auto-fixing; report FIX findings without modifying branches or pushing commits.

Never merge: Running gh pr merge is forbidden in /factory-verify. Landing belongs strictly to /factory-merge.

Coordinator and independent verifier (reviewer != implementer)

  • Non-blocking coordinator: When verifying multiple PRs (--open or a list), stay unblocked in the main session (<30s turns; never edit or run test suites on the root checkout). Spawn one isolated verifier subagent per PR using /factory-work's Difficulty tier × harness routing table (preferring T3Code delegate_task with mode: "async" after calling orchestrator_capabilities once per thread, ending turn for reactive wakeup, and always honoring reviewer != implementer — never let the implementing agent verify its own PR).
  • Isolated workspaces: Give each PR its own worktree (bin/worktree-up.sh <ISSUE-ID> when shipped — run sequentially in the coordinator and pass isolation: "shared" with worktree: <abs-path> in task, or initialize per-worktree ports/DB inside isolation: "worktree"; otherwise git worktree add). Never share a writable checkout or use git stash / git rebase --autostash.
  • git patch-id verdict survival: Before booting a live instance for a PR, check its comments/reviews for a prior ## Verification Receipt matching Verdict: PASS (MERGE-READY) or PASS+NOTES. Compare:
    • git diff origin/<base>...<verified-sha> | git patch-id --stable
    • git diff origin/<base>...<current-head-sha> | git patch-id --stable If the patch-id is identical (e.g. a clean rebase) and REST check-runs on <current-head-sha> are green, preserve the live E2E verdict without re-driving the UI; otherwise run all gates against <current-head-sha>.

Read the full file on GitHub · 83 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. 11d ago Changed 7da699d565e0
  2. 13d ago First seen · 83 lines · 43 tokens per session scan A bc87a1e648d5

Subscribe to this mod's changes

factory-verify is a command published in the GitHub repository watt-mind/factory (24 stars, last pushed today), licensed Apache-2.0. It adds 43 tokens to every session and 2,353 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-17.

Related

factory-verify compared with commands from other repositories

factory-verify next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
factory-verifywatt-mind/factoryCommand24todayApache-2.0A43Claude Code
code-review-swarmruvnet/rufloCommand83ktodayMITA0Claude Code
pr-managerruvnet/rufloCommand83ktodayMITA0Claude Code
code-reviewruvnet/rufloCommand83ktodayMITA0Claude Code
pr-enhanceruvnet/rufloCommand83ktodayMITA0Claude Code
conveneHabitat-Thinking/ai-literacy-superpowersCommand12413d agononeA59Claude Code
model-cardHabitat-Thinking/ai-literacy-superpowersCommand12413d agononeA44Claude Code