ripwire-find-bug
Skill2.4k starsChanged 3 months agoApache-2.0View on GitHub
You have a SYMPTOM — crash, exception, wrong output, failing test, error string — and don't know which code is responsible. Ranks candidates; a stack trace or sanitizer output maps onto frames innermost-first; 'it worked yesterday' / 'my last edit broke it' → --situ. One clear hit plus one focused read is enough.
Trending
More talk lately.thin dataabout the whole repository
Who's talking about redhat-et/ripwire
- A Hacker News story“ripwire: ripgrep of AI context (CLI+MCP) giving coding agents a map of any repo”Hacker News · Sep 7, 2026 · 19 points
- @icecodenew.bsky.social“#TIL github.com/redhat-et/ri... > Point it at any repository and your agent gets a ranked, deterministic …”Bluesky · Sep 6, 2026 · 3 likes
- A Hacker News story“The Ripgrep of AI Context”Hacker News · Sep 8, 2026 · 2 points
- @akanoa.bsky.social“On se débarrasse enfin du code! On descend à l'AST et bientôt plus bas. Ce n'est qu'une question de temps. …”Bluesky · Sep 8, 2026 · 1 likes
- @hn100.bsky.social“ripwire: ripgrep of AI context (CLI+MCP) giving coding agents a map of any repo Discussion”Bluesky · Sep 7, 2026 · 1 likes
The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 14
Talked about on GitHub, Bluesky and Hacker News (14 times).
On GitHub · 9
- Oct 3, 2026agent-skills.github.redhat-et.ripwire: 0.6.2 → 0.6.5 — sudosubin/agents.nix0 reactions
- Oct 1, 2026agent-skills.github.redhat-et.ripwire: init at 0.6.2 — sudosubin/agents.nix0 reactions
- Sep 29, 2026ripwire: 0.6.1 -> 0.6.5 — NixOS/nixpkgs0 reactions · 1 comment
- Sep 24, 2026docs(non-cc): screenshot-lead research batch 13 (plan 0008 row 20) — qte77/ai-agents-research0 reactions
- Sep 21, 2026feat(setup): the ripwire hint names the upstream repository, in setup and both installers (D178) — dimitritholen/tasqx0 reactions · 3 comments
4 more on GitHub
- Sep 20, 2026Candidate: ripwire, a repo map for coding agents — cinjoff/firehorse0 reactions
- Sep 19, 2026ripwire: 0.5.0 -> 0.6.1 — NixOS/nixpkgs0 reactions · 4 comments
- Sep 10, 2026Static analyzer flags prompt-injection example text inside fenced code blocks as CRITICAL — runkids/skillshare0 reactions · 2 comments
- Sep 7, 2026Qualify ripwire as local code-intelligence/context source candidate — TheHalfMoon/Golam0 reactions
On Bluesky · 3
- Sep 6, 2026#TIL github.com/redhat-et/ri... > Point it at any repository and your agent gets a ranked, deterministic call graph — what to touch, what… — @icecodenew.bsky.social3 likes and reposts · 1 reply
- Sep 8, 2026On se débarrasse enfin du code! On descend à l'AST et bientôt plus bas. Ce n'est qu'une question de temps. github.com/redhat-et/ri... — @akanoa.bsky.social1 likes and repost · 1 reply
- Sep 7, 2026ripwire: ripgrep of AI context (CLI+MCP) giving coding agents a map of any repo Discussion — @hn100.bsky.social1 likes and repost
On Hacker News · 2
- Sep 7, 2026ripwire: ripgrep of AI context (CLI+MCP) giving coding agents a map of any repo19 points · 14 comments
- Sep 8, 2026The Ripgrep of AI Context2 points
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- emitting-outputSkill
- ripwire-repo-mapSkill
- ripwire-before-you-buildSkill
- ripwire-change-checkSkill
- ripwire-fresh-eyesSkill
- ripwire-graph-querySkill
- ripwire-handoffSkill
- ripwire-layersSkill
- ripwire-mcpSkill
- ripwire-navigateSkill
- ripwire-opt-remarksSkill
- ripwire-orientSkill
- ripwire-perf-targetSkill
- ripwire-quality-barSkill
- ripwire-reuse-firstSkill
- ripwire-routerSkill
- ripwire-security-scanSkill
- ripwire-write-testsSkill
The file
Files
Find the bug with ripwire
Nearest neighbours: • You already know the symbol and just want to understand it → ripwire-navigate. • You want the blast radius / tests for a change (not to find a bug) → ripwire-change-check. • Repo-wide quality once-over, no specific symptom → ripwire-fresh-eyes. • "Why don't I see feature X?" and nothing looks broken — the code may be built but compiled/flagged OFF, not buggy:
ripwire <dir> --flags[=SUBSTR] --legend=compact(--flip=NAMEfor the blast radius of turning one ON) — lives in ripwire-fresh-eyes, worth a look before you go hunting for a bug that isn't one.
<dir> = repo root. Calls are warm after the first parse — chain freely. Pick the branch that matches
what you already know; each converges on the same evidence trail (relevance × maintenance pain × blast
radius), so you can escalate between them.
Evidence-sufficiency stop: escalate only while the responsible code is still ambiguous. If --for
ranks one file/symbol clearly and a focused source read explains the symptom with a minimal fix, stop
retrieval and implement/validate it. Do not automatically add --hotspots, --impact, another skill, or a
whole-file read after the defect is already proven; those answer different questions and can cost more than
the original localization. Resume the ladder only when the source contradicts the candidate, several
candidates remain plausible, or the change's blast radius is itself part of the task.
Branch A — "I have a symptom, no idea where it lives"
- Symptom search —
ripwire <dir> --for="<symptom in plain words>"<sigs>ranked by relevance — signatures + doc-comments closest to the symptom. Thein=reuse count andcx=complexity are inline; prefer high-cx, high-inmatches — complex, widely-called code fails in more ways. If the bundle saysweak="1", reformulate — split camelCase terms, add synonyms from the domain, or quote an exact path/symbol from the issue — before trusting the ranking below it. - If several candidates remain, maintenance hotspots —
ripwire <dir> --hotspots --legend=compact<hotspots>ranked byscore = churn × ccx;top=names the worst function per file. Bugs cluster in high-score files — cross with step 1: a symbol in both lists is your prime suspect. - If the symptom is broad, blast radius of each remaining candidate —
ripwire <dir> --impact=SYM --legend=compactfor the top 2–3 from step 1.<impact of="SYM" defs="D" reaches="N">lists everything that reaches SYM. A largereachescount is consistent with a symptom that appears in many places — that's the root, not a downstream effect. - Read narrowly — start with the top symbol/body or the smallest source range that can confirm or reject it. Use the hotspot intersection only when step 1 did not already isolate a defensible candidate.
Branch B — "I suspect a subsystem — narrow it"
- Symptom-to-code —
ripwire <dir> --for="<symptom>"→ note thep=(file paths) of the top 5. Which directories recur? That's your first narrowing. - Hotspots in those directories —
ripwire <dir> --hotspots --legend=compact→ files that are relevant to the symptom AND high churn+complexity are the most likely bug homes. - Find the exact emit site —
ripwire <dir> --grep="ERROR_STRING" --legend=compact(literal + enclosing symbol) or--regex="pattern". Add--grep-context=N(or--grep-before=N/--grep-after=N) for ripgrep-style lines of source around each hit — often enough to confirm the bug without a follow-up--expand. The enclosing symbol (in=) is ground truth — now--callers=SYMto trace up one level to the true root.
Branch C — "I changed X and now something's broken" (regression)
- Situational awareness on the change —
ripwire <dir> --situ=fileA.cpp,fileB.h(or bare--situto read fromgit diff). Emits, in one pass:- blast radius — everything that transitively reaches the changed symbols
- tests to run now (
--affectedunder the hood) - co-change partners NOT in your diff — files that historically move together (hidden coupling). This is the Shotgun Surgery check: did the change land everywhere it usually has to?
- Who calls the broken symbol —
ripwire <dir> --callers=SYM --legend=compact→ each recorded caller (a floor — counts_floor=) is a candidate for an unexpected side-effect. - Co-change history —
ripwire <dir> --cochange=fileA.cpp --legend=compact→ partners ranked bydeg(fraction of commits). Asurprising="1"partner has no#includelink — pure behavioural coupling, the non-obvious suspect. - Read the functions that appear in BOTH the blast radius and the co-change list first.
Branch D — "I have a stack trace / sanitizer report / compiler error"
You have the failing artifact's TEXT (a Python traceback, an ASan/UBSan report, a node/js stack, a clang/gcc diagnostic) — don't hand-translate its frames into queries one by one. Pipe it straight in:
- Map the trace onto symbols —
ripwire <dir> --from-trace=FILE --legend=compact(or--from-trace=-to read the trace from stdin, e.g.pytest ... 2>&1 | ripwire <dir> --from-trace=- --legend=compact). Table-driven frame extraction (python / asan / node / compiler / generic), ranked innermost-first over the frames that resolve to your indexed code. Out-of-corpus frames (stdlib, vendored deps) are listed and counted, never ranked. - Read rank 1 first — the
innermost="1"suspect is the crash/throw site; its FULL body is emitted inline, the other suspects as signatures.skipped=tells you how many frames fell outside every root. - Compose the budget —
--from-trace=FILE --token-budget=Nfits the bundle to N tokens for a tight context window. Unparseable input refuses loudly (never a misleading empty map). - Or skip the run-read-paste loop entirely —
ripwire <dir> --run-trace="make -j" --legend=compactRUNS the build/test command itself (sh -c, your user, your environment — the make trust model, no sandbox) and, on a non-zero exit, serves the SAME from-trace bundle for the captured output plus a token-frugal<lines view="relevant">cut of the error/frame-shaped output lines. Exit 0 gets a minimal success record and no bundle — nothing failed, nothing to map. The command's own exit code is always disclosed (<run exit=>), and--run-timeout=SECONDScaps a hanging command (default 600 s, reportedtimed_out="1"honestly, never as an empty success).
Output
Report the branch you took, then: ranked candidate symbol(s) with name, file:line, and why (from
--for); their hotspot score if present; their blast-radius count (--impact reaches=); the error site's
enclosing symbol if --grep found it; and any surprising="1" co-change partner (branch C). Recommend the
top 1–2 to inspect first, with the evidence trail.
Honesty: the call graph gives structure; --slice=SYM:VAR (add --slice-flow=back|fwd|both for the
transitive reaching-definition walk) gives intra-procedural, name-based data flow — reach for it on a
wrong-value symptom instead of re-reading the whole function by eye. Its own legend discloses the limits
that matter here, so trust that over this line: statement/line-granular, flow-sensitive reaching definitions inside one function for C-family/Python and source-ordered for JS/Go/Java/Rust (the root's reach= says which; each use row's rd= lists its reaching def lines),
no alias analysis, block scopes separated (a shadowed name's rows carry b=, the declaration each binds to; pp="1" marks a build-dependent #ifdef row), and it stops at the function boundary (chain
--callers/--impact for the inter-procedural half). For use-after-move / taint / null / type bugs that
cross that boundary you still need the compiler — use these results to focus where to look, not as proof.
A high-amb symbol can be a dispatch hub, not the bug.
Found it? Pin the gotcha with ripwire <dir> --note-add="SYM_or_path: what actually went wrong" — the
next agent (or you, next session) gets it automatically the next time --for/--expand surfaces that symbol.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

