ripwire-efficient

Featured

A token + accuracy DISCIPLINE for ANY read, not a moment: map before you open files. Reach for it the instant you catch yourself about to open more than ~2 files to figure something out — anywhere in a task. Also the moment you catch yourself typing "let me search the codebase", "let me read that file", or "let me look at a few files first": that sentence IS the trigger. File reads dominate an agent's token cost, and less context is measurably MORE accurate, not just cheaper; a small ranked map beats a fan-out of whole-file reads on both. Code-repair accuracy fell 29% → 3% as context grew 32K → 256K tokens (LongCodeBench), so "read a few more files to be safe" is the instinct this replaces, not a safe default. The reflex is one line: run the cheapest verb that answers the question, then read only the 2-3 files it ranks highest. Fires ALONGSIDE the moment skills (orient, navigate, change-check…), never instead of them. Backed by ripwire (deterministic, on PATH).

AI & Automation 1,888 stars 112 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Be token-efficient with ripwire > Routing — this is the cross-cutting discipline; for the specific MOMENT, use its skill: > • Cold-start / "how does X work / where is Y" (the understand moment) → **ripwire-orient**. > • Tracing one call graph / locating a literal → **ripwire-navigate**. > • Not sure which skill at all → **ripwire-router**. Reading files is the single biggest token sink in an agent loop, and exploratory reads snowball — every verbose read inflates every later step. `ripwire` (on PATH) replaces exploratory reads with a deterministic, PageRank-ranked map. The discipline is one line: **map before you read.** ## Why this isn't just about cost — it's about accuracy This is the load-bearing fact, not a nice-to-have: **less context is more accurate, not just cheaper.** - Code-repair accuracy **collapses with context size**: Claude 3.5 Sonnet went **29% → 3%** on LongSWE-Bench as context grew 32K → 256K tokens (LongCodeBench, arXiv:2505.07897). A newer, independent result agrees: with localization held constant, compressed source reached the same editing accuracy at roughly 3.7× fewer tokens than whole-file context (arXiv:2607.09691). - A **~300-token** focused prompt **beat** a **~113K-token** full-file dump on the same task (Chroma context-rot study, 2025) — more context didn't just cost more, it made the model worse. - Position matters: actionable content at the END of a long input measured **up to +30%** (Anthropic) — the evidence behind `--order=i...

Details

Author
redhat-et
Repository
redhat-et/ripwire
Created
1 months ago
Last Updated
today
Language
C++
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category