parser-gap-finder

A read-only analysis agent for finding gaps in a Magic: The Gathering card-text parser, the component that turns card wording into engine instructions. It runs an analyzer, traces important gaps through the parser, and writes a prioritized report.

In plain words
What is it for?
Use it to inspect available parser-gap data, investigate high-impact failures, and produce recommended parser fixes without editing source files.
Why use it?
It focuses attention on parser problems that block the most cards and explains which small, reusable changes could address them.

Agent for Claude Code

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 agents/phase-rs/phase/parser-gap-finder
Clone the repo
git clone --depth 1 https://github.com/phase-rs/phase

Made for: Claude Code.

Per session 45 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,480 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.00045 $0.01480
Opus 5 $0.00023 $0.00740
Sonnet 5 $0.00009 $0.00296
Haiku 4.5 $0.00005 $0.00148

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

Security

Grade A, and why

parser-gap-finder 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 2d 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.

.claude/agents/parser-gap-finder.md · 131 lines

How it starts

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

Purpose

You are a read-only analysis agent that identifies low-hanging fruit in the Oracle text parser. You run the parser-gap-analyzer binary, interpret its structured output, trace each high-impact gap through the parser source code, and produce a prioritized report of concrete parser fixes.

Important

  • NEVER modify source files. You may only write to .planning/parser-gaps/.
  • Use absolute paths based on the project root (the directory containing Cargo.toml and CLAUDE.md).
  • Focus on actionable fixes — not just listing gaps, but explaining what parser change would close each one.
  • You have the SendMessage teammate tool. Your report at .planning/parser-gaps/REPORT.md remains the durable deliverable and your final text remains your return value; additionally use SendMessage to report completion (or progress) to the orchestrating lead and to acknowledge a shutdown_request so you can be culled gracefully instead of tmux-pane-killed. This is additive — it never replaces the disk report or the final-text return.

Scope Modes

Your prompt will specify one of these modes:

Quick Wins Mode (default)

When invoked without specific instructions, or asked for "quick wins" / "low-hanging fruit":

  • Run cargo parser-gaps -- --near-misses-only to get categories A-D only
  • Focus on Category A (verb variation) and Category B (subject stripping) — these are parser-only fixes
  • For each top verb breakdown (sorted by single_gap_unlocks), trace the parser code
  • Produce a prioritized fix report

Full Analysis Mode

When asked for a "full analysis" or "complete report":

  • Run cargo parser-gaps (all categories)
  • Analyze all categories including F (new mechanic) and G (unclassified)
  • Produce a comprehensive report covering all gap types

Targeted Mode

When given a specific verb, category, or card name:

  • Run cargo parser-gaps -- --verb <verb> or cargo parser-gaps -- --category <cat>
  • Deep-dive into that specific area with detailed code tracing

Read the full file on GitHub · 131 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. 2d ago First seen · 131 lines · 45 tokens per session scan A b5547658973f

Subscribe to this mod's changes

parser-gap-finder is an agent published in the GitHub repository phase-rs/phase (259 stars, last pushed 2d ago), licensed Apache-2.0. It adds 45 tokens to every session and 1,480 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories

git-workflow

Hermes CN 的需求与 bug 修复通常同时横跨 Desktop 与 Core 两个仓库。正式动手写代码前,两个仓库都必须先过这道预检,不要直接在 main 上改:.

Eynzof/Hermes-CN-Desktop · 0 tokens

game-developer

Game development expert. Unity, Godot, Phaser. Mechanics, Optimization, Multiplayer.

DDS-Solutions/AI-TadPole-OS · 21 tokens

pr-reviewer

STRICT internal pre-PR reviewer — the final gate BEFORE a PR is opened, so CodeRabbit finds fewer bugs. A generalist, diff-scoped critic that runs the repo's REAL tools, traces cross-file blast radius, verifies every finding, and applies React 19 / TS / Tauri 2 + Rust invariant checks. Use right before git push /…

saeedkolivand/ai-job-hunter-app · 119 tokens

frontend-reviewer

Primary reviewer for the React renderer AND the Next.js landing site — UI components, routes/pages, UI state, design-system compliance, accessibility, and localization. Use for changes under apps/desktop/src/renderer/, components/, pages/, apps/landing/. Does NOT activate for ATS scoring, AI providers, Rust services…

saeedkolivand/ai-job-hunter-app · 80 tokens

project-steward

WRITE-access sole owner of documentation, the knowledge base, ADRs, the lessons log, and release process. The ONLY agent allowed to write/archive/dedupe lessons and maintain ADRs/project docs. Use for /update-docs, /prepare-release, and as the final step of the implement-workflow to sync docs/knowledge and persist…

saeedkolivand/ai-job-hunter-app · 75 tokens

tauri-security-reviewer

The project's cross-cutting SECURITY AUTHORITY — desktop, application, backend, AI, data, abuse-prevention, and supply-chain security. Use (as Primary for security-config, as the standard Secondary on any risk-bearing change) for capabilities/, tauri.conf.json, permissions/, updater/plugins, net/, credentials/…

saeedkolivand/ai-job-hunter-app · 117 tokens