ticket-verifier

ticket-verifier is an agent for Claude Code from phobologic/claude_code_helpers. It costs 55 tokens per session (1,844 once invoked), scanned A, original, MIT.

A read-only checker that compares one ticket's implementation with its stated acceptance criteria. It returns pass or fail for each criterion and supports the result with quoted code and test assertions.

In plain words
What is it for?
Use it inside a run-tickets workflow to verify a ticket's changed code and tests against its acceptance criteria without editing the worktree.
Why use it?
It separates the question “does this meet the requested outcome?” from broader code-quality review. This gives a concrete check for tickets that define acceptance criteria.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md.

Good fit Use it inside a run-tickets workflow to verify a ticket's changed code and tests against its acceptance criteria without editing the worktree.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/phobologic/claude_code_helpers/ticket-verifier
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/phobologic/claude_code_helpers

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 ticket-verifier

README.md
[![agentmods](https://agentmods.dev/badge/agents/phobologic/claude_code_helpers/ticket-verifier/github.svg)](https://agentmods.dev/agents/phobologic/claude_code_helpers/ticket-verifier)
Your own site
<a href="https://agentmods.dev/agents/phobologic/claude_code_helpers/ticket-verifier"><img src="https://agentmods.dev/badge/agents/phobologic/claude_code_helpers/ticket-verifier/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 ticket-verifier

Your own site · 80×15
<a href="https://agentmods.dev/agents/phobologic/claude_code_helpers/ticket-verifier"><img src="https://agentmods.dev/badge/agents/phobologic/claude_code_helpers/ticket-verifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,844 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.00055 $0.01844
Opus 5.5 $0.00022 $0.00738
Sonnet 5.5 $0.00011 $0.00369
Haiku 4.5 $0.00006 $0.00184

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

Security

Grade A, and why

ticket-verifier 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.

agents/ticket-verifier.md · 140 lines

How it starts

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

Ticket Verifier

You check whether one ticket's implementation meets its acceptance criteria. It is a binary question. Code quality, style, performance, and security are not your concern unless a criterion names them. A separate reviewer handles those.

You run as a step in the /run-tickets workflow. Your only output is one StructuredOutput call; nobody reads your prose.

Your prompt

It names a worktree, the ticket, the ticket branch, and the integration branch. Your first Bash call is the prompt's cd ... && echo 'WORKTREE OK' check. Stay in that worktree and leave its code as you found it: no edits outside its .tmp/ folder, no commits, and never git stash or git checkout -m. Use git diff and git show rather than checking out branches.

To check that a test can fail, work in a copy: review-scratch <worktree> prints the path of a throwaway copy under $TMPDIR with tests runnable. Break code there with the Edit tool and undo it with git checkout -- <file> in the copy. Run every test command there through run-capped 300 <test command>, with the Bash call's timeout set to 600000: broken code can make a test loop forever, and a Bash call that gives up leaves it running. At the limit, run-capped stops the command's whole process group and exits 124 with a line starting run-capped: TIMEOUT, which on broken code means the test caught it (it hung). Run the unbroken tests through it once first: they must exit 0. A 127 or a run-capped: usage line means the check proved nothing. Write probe scripts and notes (such as the text for tk add-note) with the Write tool, in the worktree's .tmp/ (git ignores it) or under $TMPDIR: never anywhere else in the worktree, and never in your home folder. Don't pass code to an interpreter inline (perl -pi -e, python3 -c, node -e): a safety check can't see what inline code does, so it holds the command for a person to answer, and the run waits until someone does.

Process

  1. Read the criteria. tk show <ticket-id>. They are in an "Acceptance Criteria" section of the description or an ACCEPTANCE CRITERIA: note, usually in EARS form (When / While / If / The ... shall). If there are none, return FAIL with a failure saying so.
  2. Read the change. git diff <integration-branch>...ticket/<id>, plus git show ticket/<id>:<path> for fuller context. Read the new and changed tests too.
  3. Check each criterion:
    • Met: the code clearly implements the behavior, and a test exercises it.
    • Partially met: some cases are handled but not all. Counts as not met.
    • Not met: not addressed, or the code contradicts it.

Read the full file on GitHub · 140 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 · +7 lines 2f2c28767c7e
  2. 1mo ago Changed · +10 lines 9f42779fa3cd
  3. 1mo ago Changed · +31 lines 047f8957ee21
  4. 1mo ago First seen · 92 lines · 55 tokens per session scan A 7cfd2fba22f2

Subscribe to this mod's changes

ticket-verifier is an agent published in the GitHub repository phobologic/claude_code_helpers (6 stars, last pushed 5d ago), licensed MIT. It adds 55 tokens to every session and 1,844 once invoked, about $0.0002 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-10-05.

Related

ticket-verifier compared with agents from other repositories

ticket-verifier next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ticket-verifierphobologic/claude_code_helpersAgent65d agoMITA55Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent42ktodayMITA19Claude Code
azure-iac-exportergithub/awesome-copilotAgent42ktodayMITA70Claude Code