█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

ripwire

कोडिंग एजेंट्स के लिए आपके repo का रैंक्ड call-graph मैप, साथ में एजेंट के बदलावों की जाँच

Code Indexing & Searchओपन सोर्स
ताज़ा
v0.6.2
अपडेट किया गया
21 सित॰ 2026
भाषा
C++
लाइसेंस
Apache-2.0

नया क्या है

v0.6.221 सित॰ 2026

Calls that live outside any named function now have a caller, the compact output legend became the default, and native Windows x64 builds with both clang-cl and MSVC.

संक्षेप में

ripwire क्या है?

ripwire कोडिंग एजेंट्स के लिए आपके repo का रैंक्ड call-graph मैप, साथ में एजेंट के बदलावों की जाँच. यह Retrieval & Knowledge (RAG) टूल्स की Code Indexing & Search श्रेणी में आता है; ओपन सोर्स है, C++ में लिखा गया है और Apache-2.0 लाइसेंस के तहत है। शुरू करने के लिए: prebuilt binary इंस्टॉल करें.

अपडेट किया गया Markdown वर्शन ↗

सारांश

ripwire खुद को "the ripgrep of AI context" कहता है: एक self-contained बाइनरी जो source tree पढ़ती है और कोडिंग एजेंट के पढ़ने लायक एक रैंक्ड symbol map standard output पर लिखती है। grep करके पूरी फ़ाइलें खोलने के बजाय एजेंट एक ही सवाल पूछता है: यह कहाँ हैंडल होता है, इस function को कौन कॉल करता है, इसे बदलना सुरक्षित है या नहीं, और यह diff कौन-से टेस्ट तक पहुँचता है। जवाब में उसे संबंधित symbols, उनके callers, change के risks और टेस्ट एक साथ मिल जाते हैं। यह Apache-2.0 लाइसेंस के तहत open source है और redhat-et GitHub संगठन में प्रकाशित है।

अंदर से यह tree को स्कैन करता है, tree-sitter से symbols निकालता है, references को call graph में resolve करता है, उसे Personalized PageRank से रैंक करता है और एक deterministic, minified XML map स्ट्रीम करता है। इसमें कोई API key, embeddings, index server या daemon नहीं है। हर dependency, जिसमें 25 tree-sitter grammars भी शामिल हैं, source tree में vendored है, इसलिए यह offline build और चलता है। किसी tree पर पहली call उसे parse करती है, बाद की calls cache पढ़ती हैं, और एक ही tree पर दो runs byte-identical होते हैं।

ripwire's HTML call-graph map of Django's migration autodetector: 120 symbols and 183 call edges, nodes coloured by cyclomatic complexity, with module outlines
Django's migration autodetector, mapped by `ripwire --html` and coloured by cyclomatic complexityripwire README ↗

टूल का दूसरा हिस्सा lookup के बजाय edit की जाँच करता है: blast radius, वे टेस्ट जो किसी change तक पहुँचते हैं, एक quality panel जो सिर्फ़ वही दिखाता है जो बिगड़ा है, git history से भूले हुए co-changes, और यह जाँच कि किसी function का contract बदला या नहीं। प्रोजेक्ट का "honesty contract" हर ऐसी गिनती को, जिसका पूरा होना साबित न हो सके, floor के रूप में लेबल करता है, हर truncation बताता है, और zero को "none found" मानता है, न कि "none exists"। `--html` mode रैंक्ड graph को एक self-contained HTML पेज के रूप में render करता है, जिसमें dashed edges उन calls को दिखाते हैं जिन्हें resolver किसी एक target पर pin नहीं कर सका।

यह क्या करता है

  • tree-sitter और Personalized PageRank से बना रैंक्ड, deterministic call-graph मैप, जो एजेंट के लिए संक्षिप्त XML के रूप में दिया जाता है
  • `--for`, `--pack-task` और `--help-task` जैसे task lenses, जो शब्दों में बताए गए change के लिए बताते हैं कि क्या छूना है
  • नेविगेशन verbs: `--callers`, `--callees`, `--uses`, `--impact` (blast radius), stack traces के लिए `--from-trace`, और उन टेस्टों के लिए `--test-gate` जो किसी change के लिए चलाने ज़रूरी हैं
The same ripwire call graph shown twice, coloured first by cyclomatic complexity and then by git commit count
One graph, two lenses: complexity above, git churn belowripwire README ↗
  • Change रिव्यू: `--quality-delta`, `--edit-check`, `--situ`, `--pr-context` और `--merge-scout`, जो churn और co-change के लिए git history का इस्तेमाल करते हैं
  • वैकल्पिक stdio MCP सर्वर (`ripwire --mcp`) जो 33 verbs उपलब्ध कराता है, जिनमें span-addressed edit verbs भी शामिल हैं, और staleness या ambiguity होने पर edit से मना कर देते हैं
  • सत्रह task-shaped agent skills, और Claude Code, Codex, Cursor, Windsurf, Gemini, opencode, aider और अन्य के लिए `ripwire wrap` recipes
  • 25 vendored grammars, जो Rust, C++, Python, Go, TypeScript, Java, Kotlin, Elixir, Dart और CUDA सहित भाषाओं के साथ-साथ Markdown, JSON, TOML और YAML को कवर करते हैं
  • agent skill files के लिए `--scan-skills` सुरक्षा scanner, जो `wrap` recipe print करने से पहले अपने-आप चलता है

शुरू करें

prebuilt binary इंस्टॉल करें (Apple silicon पर macOS, RHEL 8+ के लिए Linux arm64/x86-64) या CMake 3.24+ और C++23 compiler से source से build करें। installer उन सभी agents के लिए agent skills भी activate कर देता है जिन्हें वह detect करता है, इसलिए ज़्यादातर लोगों को बस अपने एजेंट से यह कहना होता है: "Use ripwire on this repo."

prebuilt binary इंस्टॉल करें

इंस्टॉलर नवीनतम GitHub release डाउनलोड करता है, उसका SHA-256 जाँचता है, ~/.local/bin में इंस्टॉल करता है और agent skills तैयार करता है। यह आपकी shell profile में कोई बदलाव नहीं करता।

bashbash
RIPWIRE_REPO=redhat-et/ripwire bash -c "$(curl -fsSL https://raw.githubusercontent.com/redhat-et/ripwire/main/scripts/install.sh)"
export PATH="$HOME/.local/bin:$PATH"
ripwire --version

या source से build करें

हर dependency vendored है, इसलिए build network बंद होने पर भी पूरा हो जाता है। तेज़ binary के लिए Release tree इस्तेमाल करें।

bashbash
git clone https://github.com/redhat-et/ripwire.git
cd ripwire
cmake -S . -B build-release -DCMAKE_BUILD_TYPE=Release
cmake --build build-release -j

किसी repository का map बनाएँ और उससे सवाल पूछें

token budget के तहत रैंक्ड map से शुरू करें, फिर task-shaped सवाल पूछें। आउटपुट आपके agent के लिए बनाया गया compact XML है। अगर पहली call गलत लगे, तो `ripwire . --doctor` binary, grammars, cache और git identity की जाँच करता है।

bashbash
cd your-repo
ripwire . --max-tokens=3000                        # the ranked map
ripwire . --for="incremental cache invalidation"   # what to touch, ranked
ripwire . --callers=someFunction                   # who calls it
ripwire . --test-gate                              # which tests must run

Map को HTML के रूप में render करें

`--html` बिना किसी server या CDN के एक self-contained HTML फ़ाइल लिखता है; `--color-by` शुरुआती lens चुनता है (lang, community, cx, churn या tested), और पेज एक live selector रखता है।

bashbash
ripwire path/to/django/db/migrations --rank-by=rrf --top-k=120 --color-by=cx --html=map.html
Close crop of a ripwire call graph showing solid call edges next to dashed edges the resolver could not pin to a single target
A dashed shaft is a guess: the resolver split that call over several same-name definitionsripwire README ↗

इसे अपने agent से जोड़ें (MCP वैकल्पिक है)

CLI ही recommended interface है। `ripwire wrap` आपके client के लिए setup recipe print करता है, लेकिन उसे कभी apply नहीं करता। MCP सर्वर उन clients के लिए एक सादा stdio process है जो उसे चाहते हैं।

टेक्स्टटेक्स्ट
ripwire wrap claude     # or: ripwire wrap --all

# any MCP client:
{
  "mcpServers": {
    "ripwire": { "command": "ripwire", "args": ["--mcp"] }
  }
}

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • जब कोई coding agent किसी बड़े repository में खुद को समझने के लिए grep करने और पूरी फ़ाइलें पढ़ने में tokens खर्च करता है, तब इसका इस्तेमाल करें
  • refactor से पहले इसका इस्तेमाल करें, ताकि एक ही call में किसी symbol के callers, use sites और blast radius दिख जाएँ
  • edit के बाद इसका इस्तेमाल करें, ताकि वे टेस्ट मिल सकें जो चलाने ज़रूरी हैं, और quality panel में दिखे कि change से क्या बिगड़ा
  • जब code context पूरी तरह local और offline रहना चाहिए, बिना किसी embeddings service या index server के, तब इसका इस्तेमाल करें

How ripwire compares

ripwire alongside other open-source code indexing & search tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
CodeGraph★ 79.4kएजेंट के सवाल का जवाब एक ही tool call में देने वाला लोकल कोड नॉलेज ग्राफ़
codebase-memory-mcp★ 49.5kMCP के ज़रिए agents तक पहुँचने वाला आपके codebase का Tree-sitter knowledge graph
GitNexus★ 49kकोडबेस को नॉलेज ग्राफ़ में इंडेक्स करता है और उसे MCP के ज़रिए एजेंट्स तक पहुँचाता है
code-review-graph★ 33kकोडबेस का Tree-sitter map बनाकर उसे MCP के ज़रिए AI कोडिंग टूल्स को देता है, ताकि वे किसी टास्क के लिए सिर्फ़ ज़रूरी कोड पढ़ें
XERJ★ 23.4kएक लोकल, Elasticsearch-compatible सर्च इंजन, जो किसी भी फ़ोल्डर को अपने-आप ऑटोइंडेक्स कर देता है, ताकि coding agents grep के बजाय उसी से query करें
Claude Context★ 12.8kClaude Code के लिए पूरे कोडबेस में सेमांटिक कोड सर्च देने वाला MCP प्लगइन
Graft★ 11.6kहर कोडबेस का नॉलेज ग्राफ़ एक बार बनाएँ, फिर उसे हर कोडिंग एजेंट को दें
ripwire★ 2.6kकोडिंग एजेंट्स के लिए आपके repo का रैंक्ड call-graph मैप, साथ में एजेंट के बदलावों की जाँच