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.
git clone --depth 1 https://github.com/watt-mind/factoryWrote 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.
[](https://agentmods.dev/commands/watt-mind/factory/factory-ticket)<a href="https://agentmods.dev/commands/watt-mind/factory/factory-ticket"><img src="https://agentmods.dev/badge/commands/watt-mind/factory/factory-ticket/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.
<a href="https://agentmods.dev/commands/watt-mind/factory/factory-ticket"><img src="https://agentmods.dev/badge/commands/watt-mind/factory/factory-ticket.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00013 | $0.03645 |
| Opus 5.5 | $0.00005 | $0.01458 |
| Sonnet 5.5 | $0.00003 | $0.00729 |
| Haiku 4.5 | $0.00001 | $0.00364 |
Grade A, and why
factory-ticket 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Implement one ticket: $ARGUMENTS. You are already in its worktree, and the ticket is already claimed for you.
The dispatcher (orchestrator/tick.mjs) has done the setup: the ticket is In Progress, assigned, labelled ai:in-progress + agent:claude-code, and this worktree was created by the repo's own worktree-up.sh with its own branch, ports and database. Do not create another worktree, do not claim another ticket, and do not work anything except this one. This is the dispatched path, so it is always exactly one ticket — the protocol's human-requested ticket bundles (docs/protocol.md §6) never arrive here.
Do
- Read the ticket and restate your approach (plus boundary types or state invariants on
tier:strongor cross-module work) as a comment on it. Assume the operator is AFK — never pause for confirmation; resolve open implementation details (module structure, naming, internal data/error shape, edge-case defaults consistent with acceptance criteria) fromorigin/<base>conventions, sibling modules, tests, git history, anddocs/product-decisions.md, stating any non-obvious reversible assumption in your approach comment. - Implement, touching only files matching its
Owned Paths. Work discovered outside that set becomes a newTriageissue — never a widening of this one.- Fix root causes, not symptoms: Before editing, trace why the defect or invalid state enters the system. When the ticket's
Verification Commandruns a fast local check for a bug, run or add the regression test before the fix and observe it fail for the expected reason. A guard is a fix only when the state it handles is legitimate domain state — never paper over ordering, lifecycle, or state bugs withsetTimeout/requestAnimationFramedelays, blind retries, clamped values, or catch-and-swallow blocks. - Do not copy adjacent weeds: If nearby code uses a deprecated helper,
any, or an ad-hoc workaround, followAGENTS.mdand clean module boundaries rather than replicating local tech debt, while still matching the repo's established architecture and naming conventions. - No silent suppressions or workaround-alibi comments: Do not add
eslint-disable,biome-ignore,@ts-expect-error,@ts-ignore,as any/as unknown astype escapes, or multi-line comments excusing why a quick patch was used instead of fixing the root cause. Boundary escape valve: when a third-party type definition, generated file, or documented platform/runtime quirk genuinely leaves no clean in-scope alternative, an escape hatch is allowed only if narrowed to the single line or expression and paired with a concrete citation (upstream bug/spec URL, externalfile:line, or a newly filedTriageissue ID) — never as a convenience shortcut. - Explore 2–3 options on net-new UI or layout redesigns (
principle-exhaust-the-design-space): On net-new UI surfaces, material layout/flow redesigns, or explicit exploration requests (never routine bugfixes), articulate 2–3 distinct layout/interaction directions insideOwned Paths, prototype/render boundedly if helpful ($TMPDIR/<ISSUE-ID>-*.patch, nevergit stash), autonomously select and commit only the winner without stalling on an AFK operator, and record the explored options + winner rationale in your ticket comment and## Handoff(Risks). - Render, visually self-polish (≥1 pass), and retain screenshots on any UI-affecting change (
principle-experience-first): Even when Step 4's multi-journeyfactory-ux-criticis skipped (isolated styling, copy-in-layout, admin views), render the live UI, capture a bounded screenshot (not just accessibility snapshots; neverReadthe image back), critique hierarchy, spacing rhythm, alignment, contrast, truncation, and states coldly, and iterate at least once to polish rough first-draft UI before Step 3. Retain 1–4 final post-polish screenshots outside the repo (≤ 1 MBeach) for Step 6 / interactive output. - Cold self-diff check before verification: Read
git diffagainstorigin/<base>cold before running Step 3. Confirm every touched file matchesOwned Paths, every new test would fail without your behavioral fix (not mock-tautological), and every added comment, timer, or suppression satisfies the rules above.
- Fix root causes, not symptoms: Before editing, trace why the defect or invalid state enters the system. When the ticket's
- Verify on the final tree with targeted tests + fast static gates only: run the ticket's exact
Verification Command(plus targeted test files covering the change — neverbun test, full repo test suites, or whole-project coverage thresholds unless cross-cutting blast radius genuinely requires it, as CI covers full suites and concurrent dispatched worktrees make full runs a load-induced flake source) and the repo's fast pre-push static gates (configuredverifycommand, or fast lint/format/typecheck on touched scope whenverifyis unset) so trivial static failures never burn a CI cycle. Attribute full-suite runs and project-wide coverage thresholds to CI, and name any deferred full suite or coverage check explicitly as residual risk underRisksin## Handoff. Never proceed past failing output; never weaken a test to get green. Never background, Monitor-wait, orsleep-wait a ticket's own verify step — but that is not a license to trust a framing exit code: for a verify command expected to exceed ~10 minutes, use the floor's status-file idiom (shared/floor.md§Waiting — command writes its own exit code to a status file with output to a log file, then poll for the status file with repeated short calls), because the Bash tool auto-backgrounds any foreground command that outlives its timeout and the framing exit code is not the command's. - UX critique after verification and before opening the PR when this introduces or materially changes a user-completable flow, interaction, state transition, error/recovery path, responsive layout, authentication, payment, onboarding, or destructive action. Spawn
factory-ux-critic, fix in-scopeFIX-FIRSTfindings, maximum 2 rounds, and file the rest toTriage. Skip it for isolated styling, copy-only edits, static content, icons/assets, and internal/admin-only surfaces unless the ticket identifies UX risk — skippingfactory-ux-criticnever skips Step 2's own rendered visual self-polish pass and screenshot capture when UI rendering is affected. StateUX critique: requiredorUX critique: skipped — <reason>in the PR.
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.
- 7d ago Changed · +3 lines a8e6e4e5c50b
- 15d ago Changed e15b2b582bbf
- 16d ago Changed · +16 lines 312ddd4268a5
- 2mo ago Changed c8e07f4bb90f
- 3mo ago First seen · 58 lines · 13 tokens per session scan A 1547443c3833
factory-ticket is a command published in the GitHub repository watt-mind/factory (24 stars, last pushed 3d ago), licensed Apache-2.0. It adds 13 tokens to every session and 3,645 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.
factory-ticket compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| factory-ticketwatt-mind/factory | Command | 24 | 3d ago | Apache-2.0 | A | 13 | Claude Code |
| code-review-swarmruvnet/ruflo | Command | 83k | yesterday | MIT | A | 0 | Claude Code |
| pr-managerruvnet/ruflo | Command | 83k | yesterday | MIT | A | 0 | Claude Code |
| code-reviewruvnet/ruflo | Command | 83k | yesterday | MIT | A | 0 | Claude Code |
| pr-enhanceruvnet/ruflo | Command | 83k | yesterday | MIT | A | 0 | Claude Code |
| conveneHabitat-Thinking/ai-literacy-superpowers | Command | 124 | yesterday | none | A | 59 | Claude Code |
| model-cardHabitat-Thinking/ai-literacy-superpowers | Command | 124 | yesterday | none | A | 44 | Claude Code |