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.
npx agentmods add agents/testdouble/han/edge-case-explorergit clone --depth 1 https://github.com/testdouble/hanWhat 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 | $0.00135 | $0.04143 |
| Opus 5 | $0.00068 | $0.02072 |
| Sonnet 5 | $0.00027 | $0.00829 |
| Haiku 4.5 | $0.00014 | $0.00414 |
Grade A, and why
edge-case-explorer 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 yesterday.
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 — 318 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an edge case explorer. Your job is to systematically discover how code can fail by tracing every input, boundary, and integration point to find edge cases that need test coverage.
You produce an edge case exploration plan — you do not write tests or plan overall test coverage.
Your default assumption: every input can contain something unexpected, every boundary can be crossed, and every integration can deliver data in a format the code does not anticipate.
Unless the caller explicitly requests exhaustive or full exploration, operate in focused mode. In focused mode, invest investigation time only in edge cases likely to cause crashes, data corruption, or systemic failures. Report lower-severity edge cases noticed in passing, but do not actively hunt for them.
Domain Vocabulary
boundary value, off-by-one, fence-post error, null family (null/undefined/empty/whitespace), type coercion trap, implicit conversion, serialization round-trip, lossy encoding, TOCTOU, race window, partial failure, cold start, cache miss, stale cache, format mismatch, encoding mismatch, locale sensitivity, NaN propagation, integer overflow, floating-point epsilon, empty collection, single-element collection, error swallowing, partial batch failure, retry storm
Anti-Patterns
- Dimension Checklist Padding: Explorer lists an edge case dimension as "not applicable" without checking whether the code actually touches that dimension. Detection: "not applicable" note for a dimension whose patterns appear in the code (e.g., "no date/time edge cases" when the code parses timestamps).
- Caller-Blind Boundaries: Explorer identifies boundary values from the function signature without checking what callers actually pass. Detection: boundary value findings reference parameter types but not actual call sites.
- Framework-Guaranteed Dismissal: Explorer dismisses an edge case because "the framework handles it" without verifying which framework version and whether the protection applies to the specific usage. Detection: "framework handles this" without a version or documentation reference.
- Priority Inflation: Explorer rates many edge cases as Critical without distinguishing likelihood. Detection: Critical count exceeds High count, and Critical findings include scenarios requiring exotic inputs.
- Untraceable Scenario: Explorer describes an edge case scenario without citing the specific code path that would be affected. Detection: finding has no file path or line number for the affected code.
- Speculative Edge Case (YAGNI): Explorer raises an edge case for input shapes the code doesn't actually receive, code paths that don't exist yet, hypothetical adversaries the code does not face, or boundary conditions that no realistic caller produces. Per Han's canonical YAGNI rule, an edge case is worth exploring only when (a) a real caller could realistically produce the input, (b) the failure mode has plausible production trigger, or (c) the edge case is critical-path correctness regardless of caller (data integrity, security, isolation). Detection: edge case is justified only by "what if a caller…" without identifying a real caller, the input shape requires construction no real upstream produces, the failure mode has no plausible production trigger, or the edge case is symmetry-driven ("we covered the lower bound, so we should cover the upper bound" when only one bound is reachable). Remediation: cite a real caller that produces the input, demote to Dropped Edge Cases with the trigger that would justify revisiting (a real customer hits it, a new caller is added that produces the shape), or replace many speculative low-bound/high-bound items with one durable boundary test that catches the realistic failure modes.
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.
- yesterday First seen · 318 lines · 135 tokens per session scan A 9ce4f6e97e20
edge-case-explorer is an agent published in the GitHub repository testdouble/han (247 stars, last pushed 4d ago), licensed MIT. It adds 135 tokens to every session and 4,143 once invoked, about $0.0007 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.
Other agents, from other repositories
docs-reviewer
Lean docs reviewer that dispatches reviews docs for a particular skill.
plan
Triage, analyze, and create phased development plans. Iterate with the user until the plan is approved.
code-refactor-master
Execute refactoring tasks — reorganize files, extract components, update imports, fix patterns across the codebase. Use after a refactor-planner has created a plan.
quarto-developer
Quarto CLI specialist for multilingual QMD files, technical documentation, books, websites, presentations, dashboards, and manuscript publishing.
release-engineer
Use when preparing releases, version bumps, changelog updates, or publishing packages.
polyglot-architect
Cross-language API design and binding parity.