ripwire
AGENTS.md2.4k starsChanged 3 months agoApache-2.0View on GitHub
This repository follows the AGENTS.md convention. The full agent guide is CLAUDE.md; this file is the short form, and the two do not disagree. ripwire is a zero-runtime-dependency C++23 CLI that parses a codebase, ranks symbols by Personalized PageRank, and streams a deterministic minified XML map to stdout. No build type. -DCMAKE_BUILD_TYPE=Release defines NDEBUG, which compiles the DISCLOSE( msg ) trace out and blinds every degrade-path gate. CI builds both flavours; locally, use the plain one. Sanitizer build, required before…
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
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository20 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- emitting-outputSkill
- ripwire-repo-mapSkill
- ripwire-before-you-buildSkill
- ripwire-change-checkSkill
- ripwire-find-bugSkill
- 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
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
No build type. -DCMAKE_BUILD_TYPE=Release defines NDEBUG, which compiles the DISCLOSE( msg ) trace out and blinds every degrade-path gate.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ripwire — agent instructions
This repository follows the AGENTS.md convention. The full agent guide is CLAUDE.md; this
file is the short form, and the two do not disagree.
ripwire is a zero-runtime-dependency C++23 CLI that parses a codebase, ranks symbols by
Personalized PageRank, and streams a deterministic minified XML map to stdout.
Setup
cmake -S . -B build && cmake --build build -jNo build type. -DCMAKE_BUILD_TYPE=Release defines NDEBUG, which compiles the
DISCLOSE( msg ) trace out and blinds every degrade-path gate. CI builds both flavours; locally, use the plain one.
Test
python3 test/pargates.py . ./build/ripwire -j 6 # full gate suite, parallel — run in the foreground
t=$(mktemp -d); ./build/ripwire . >"$t/a"; ./build/ripwire . >"$t/b"; diff -q "$t/a" "$t/b" # determinism: byte-identical (outputs OUTSIDE the crawled tree)
./build/ripwire . | xmllint --noout - # XML well-formednessSanitizer build, required before a PR:
cmake -S . -B asan -DRIPWIRE_ASAN=ON && cmake --build asan -j
LSAN_OPTIONS=suppressions=lsan_suppressions.txt ./asan/ripwire . >/dev/nullA new test/*check.sh must be added to test/regression.sh in the same commit, or
test/manifestcheck.sh fails.
Rules that will fail your change if you break them
- Gate first, code second. Rankings and call graphs look plausible whether or not they are right.
- Determinism. Sorted crawl order before ID assignment; fixed-block reductions in canonical order; no floating-point reassociation in the PageRank translation unit.
- Honest output. Floors are labelled
counts_floor="1"; a zero is "none found", not "none exists"; every truncation is disclosed. Do not add a surface that rounds or guesses silently. ASSUME( cond )for invariants;DISCLOSE( sink, why )for recoverable errors (the sink sets the output field that tells the reader;DISCLOSE( msg )alone ships nothing);PANICfor corruption. NeverASSUME( false )on a degrade path — release deletes the fallback behind it.- No
std::map/std::unordered_map—HashMap<>for hash lookup,gtl::btree_mapfor ordered iteration,dynamic_mapfor bounded hot paths. - Allman braces, spaces inside parens (
f( x )), ~160–200 column wraps, index-vs-count naming (nodeIdvsnodeCount).
Documentation
| Need | File |
| Full C++ style, guardrails G1–G5, submission checklist | CONTRIBUTING.md |
| Pipeline, data model, determinism contract | docs/ARCHITECTURE.md |
| Measured claims and their provenance | docs/EVALS.md |
| Per-verb reference (generated from the binary) | docs/COMMANDS.md |
Index of everything under docs/ | docs/README.md |
| The authoritative flag list | ./build/ripwire --help |
--help is generated from the binary. If a document disagrees with it, the document is the bug.
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.

