factory-unblock

factory-unblock is a command for coding agents from watt-mind/factory. It costs 23 tokens per session (801 once invoked), scanned A, original, Apache-2.0.

A command for revisiting repository tickets marked as blocked for an AI-related reason. It checks whether new evidence, such as a merged dependency, documented credential, or moved code, means the ticket can proceed without waiting for a person.

In plain words
What is it for?
Use it to inspect open blocked or triage tickets, re-check them in order of how long they have been waiting, claim each review safely, and resolve holds that no longer apply.
Why use it?
It catches blockers that may have resolved silently, reducing stale tickets and making sure the team notices when blocked work is ready for triage or continuation.

Command

Part of the core plugin — 13 commands, 4 agents shipped together

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.

agentmods
npx agentmods add commands/watt-mind/factory/factory-unblock
Clone the repo
git clone --depth 1 https://github.com/watt-mind/factory

Or install core, the plugin that ships this one along with the rest of its 13 commands, 4 agents.

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-unblock

README.md
[![agentmods](https://agentmods.dev/badge/commands/watt-mind/factory/factory-unblock.svg)](https://agentmods.dev/commands/watt-mind/factory/factory-unblock)
Your own site
<a href="https://agentmods.dev/commands/watt-mind/factory/factory-unblock"><img src="https://agentmods.dev/badge/commands/watt-mind/factory/factory-unblock.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 801 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00023 $0.00801
Opus 5 $0.00012 $0.00400
Sonnet 5 $0.00005 $0.00160
Haiku 4.5 $0.00002 $0.00080

Measured 3d ago against content hash 496bffc002af, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

factory-unblock 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 3d 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/core/commands/factory-unblock.md · 31 lines

What it actually says

Re-examine the ai:blocked holds for the repository I'm currently in: some blockers resolve without anyone commenting on the ticket — the dependency merged, the credential got documented, the code moved on — and this sweep is what notices. Resolve the team from the repo via config/repos.yaml (docs/protocol.md §1). Use factory ticket; on failure retry once then fall back to factory ticket raw per the floor.

Target: every open ticket in Blocked or Triage carrying ai:blocked, oldest hold first — the longest-stuck ticket has waited longest for this look. Interpret $ARGUMENTS as specific issue IDs or a max count; default is up to 10.

Tickets whose question has already been answered by a reply are the triage stage's job (the orchestrator's reply-detection gate resurfaces them) — if you find one, handle it exactly as factory-triage would rather than skipping it, but it counts against your cap.

Claim what you are examining

Same protocol as triage: before working an issue, set assignee to yourself and add ai:in-progress + agent:<your-harness>; leave the state alone. Remove ai:in-progress when you finish that issue. One at a time, not a batch up front.

For each held ticket:

  1. Reconstruct the hold — read the blocking comment and what it says is missing. If the hold never stated what it needs, treat that as the finding: comment the specific question it should have asked, re-add ai:blocked (remove first if present — the fresh label event resets the orchestrator's reply clock), and move on.
  2. Hunt for new evidence — has anything changed since the hold?
    • a blocking/related ticket has since moved to Done, or the referenced PR merged;
    • the answer now exists in the repo's docs/product-decisions.md, docs/, the Linear project Overview, or a newer ticket in the same area;
    • a missing credential/env detail is now in the repo's docs/ or the operator's runbook;
    • the code moved enough that the premise of the hold is gone (verify in the actual codebase — read-only).
  3. With evidence: release the hold. Remove ai:blocked, comment one line citing the evidence (link the ticket/PR/doc), then re-run triage's promote-or-hold: promote to Todo + ai:agent-ready only if the full §5 template is solid against the current code; otherwise leave it in Triage for the triage stage to spec. Never promote on a guess — a wrongly released hold hands an implementation agent a question a human was supposed to answer.
  4. Without evidence: leave silently. No comment, no label churn, no re-stating the question. A sweep that re-derives the same hold on every run is the exact pathology this pipeline keeps having to un-learn (CLNT-504 collected ten identical hold comments). The ticket stays exactly as it was.

Do not start implementing anything, and never remove ai:blocked just because the hold is old — age is not evidence.

Finish with one batch report: a table of every ticket examined (identifier, held since, verdict: released → todo / released → triage / answered, handled / still held + one-line reason), followed by the count of holds that remain waiting on a human. One message, not a ping per ticket.

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. 3d ago First seen · 31 lines · 23 tokens per session scan A 496bffc002af

Subscribe to this mod's changes

factory-unblock is a command published in the GitHub repository watt-mind/factory (10 stars, last pushed 3d ago), licensed Apache-2.0. It adds 23 tokens to every session and 801 once invoked, about $0.0001 per session on Opus 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.