ticket-verifier

ticket-verifier is an agent for Claude Code from phobologic/claude_code_helpers. It costs 55 tokens per session (1,515 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,515 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.01515
Opus 5.5 $0.00022 $0.00606
Sonnet 5.5 $0.00011 $0.00303
Haiku 4.5 $0.00006 $0.00152

Measured 5d ago against content hash 047f8957ee21, 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 5d 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 · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 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. You are read-only: no edits, no commits, and never git stash or git checkout -m. Use git diff and git show rather than checking out branches.

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.

    "When the user submits an empty form, the system shall show validation errors" is met only if the empty case is actually handled and produces errors. A form handler existing is not enough.

    Evidence means the assertion, not the test name. For every criterion, quote the code that implements it and the assertion that tests it, then ask whether that assertion would fail if the behavior were wrong. A test that compares a value with itself, only checks that something is defined, or mocks away the code under test does not count, however well it is named. If the only test for a criterion cannot fail, the criterion is not met.

Read the full file on GitHub · 123 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. 5d ago Changed · +31 lines 047f8957ee21
  2. 12d 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 (5 stars, last pushed 5d ago), licensed MIT. It adds 55 tokens to every session and 1,515 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.