Find Bugs
Understand the real behavior before judging it. Trace relevant entrypoints,
callers, tests, state transitions, invariants, and failure paths.
Investigate
- Prioritize high-confidence, high-impact findings. When impact and confidence
are similar, favor lower-complexity fixes, but do not hide a severe bug
because its fix is complex.
- Explore adaptively. Use subagents when they materially improve coverage, keep
their scopes distinct, and consolidate their findings centrally.
- Verify consequential findings with a focused reproduction, test, or runtime
probe when practical.
- Remain read-only unless the user asks for fixes.
Report Findings
For each material finding:
- put priority, expected fix complexity, finding confidence percentage, and fix
confidence percentage in the heading so they are immediately scannable, for
example
P1 — [Medium fix, 98% finding confidence, 90% fix confidence] Cache entries are not isolated;
- state the proposed fix direction that the fix estimates refer to;
- state the expected impact of the fix and explain material risk, blast radius,
trade-offs, or unknowns behind the fix confidence.
Include enough of the following to substantiate it:
- affected files and symbols;
- trigger or edge case;
- expected versus actual behavior;
- user or system impact;
- concrete code, test, or runtime evidence;
Keep simple findings compact; omit fields that do not add clarity.
Only call something a bug when the execution path and expected contract support
that conclusion. Separate verified bugs from plausible investigation leads. Do
not report style preferences, intentional trade-offs, or unrealistic edge cases
as correctness bugs.
1---2name: find-bugs3description: Find important, high-confidence correctness bugs and edge cases in an existing codebase. Use when the user asks to inspect a repository, subsystem, or implementation for bugs, failure modes, incorrect behavior, or overlooked edge cases.4---56# Find Bugs78Understand the real behavior before judging it. Trace relevant entrypoints,9callers, tests, state transitions, invariants, and failure paths.1011## Investigate1213- Prioritize high-confidence, high-impact findings. When impact and confidence14 are similar, favor lower-complexity fixes, but do not hide a severe bug15 because its fix is complex.16- Explore adaptively. Use subagents when they materially improve coverage, keep17 their scopes distinct, and consolidate their findings centrally.18- Verify consequential findings with a focused reproduction, test, or runtime19 probe when practical.20- Remain read-only unless the user asks for fixes.2122## Report Findings2324For each material finding:2526- put priority, expected fix complexity, finding confidence percentage, and fix27 confidence percentage in the heading so they are immediately scannable, for28 example29 `P1 — [Medium fix, 98% finding confidence, 90% fix confidence] Cache entries are not isolated`;30- state the proposed fix direction that the fix estimates refer to;31- state the expected impact of the fix and explain material risk, blast radius,32 trade-offs, or unknowns behind the fix confidence.3334Include enough of the following to substantiate it:3536- affected files and symbols;37- trigger or edge case;38- expected versus actual behavior;39- user or system impact;40- concrete code, test, or runtime evidence;4142Keep simple findings compact; omit fields that do not add clarity.4344Only call something a bug when the execution path and expected contract support45that conclusion. Separate verified bugs from plausible investigation leads. Do46not report style preferences, intentional trade-offs, or unrealistic edge cases47as correctness bugs.