r/mcp • • Oct 22 '26

showcase I built Ripplet, a code graph MCP that helps coding agents understand change impact while using fewer tokens

Hey everyone,

I've been building Ripplet, a local code graph MCP for AI coding agents, to solve a problem I've repeatedly run into: agents can write code, but understanding how a change affects the rest of a codebase can require a lot of repeated searching, file reading, and context gathering.

Ripplet builds a graph of code relationships so agents can navigate those connections instead of rediscovering them from scratch every time.

What it does:

  • Reduces token usage: By giving agents targeted information about symbols, callers, dependencies, and affected tests, Ripplet can reduce the need to repeatedly read large chunks of source code. I've observed lower token usage in my testing, although the savings depend on the task and codebase.
  • Analyzes change impact: Helps identify what might break when a function, symbol, or interface changes.
  • Provides focused context: Agents can explore relevant code relationships without pulling in the entire repository.
  • Checks changes: Can identify potential issues such as stale callers or broken relationships after edits.
  • Runs locally: The core analysis uses a local graph and SQLite, without requiring a cloud service, an LLM API, or a vector database.

It supports multiple programming languages and is designed to work with MCP-compatible coding agents.

The idea isn't to replace tools like grep or file reading. Those are still useful. Ripplet gives the agent another way to understand the structure of a codebase and find the parts that matter before making changes.

Links:

GitHub: https://github.com/sh4-p/ripplet

PyPI: https://pypi.org/project/ripplet/

I'm currently testing it across different languages and small codebases. I'd especially appreciate feedback from people who regularly use coding agents with MCP servers.

1 Upvotes

13 comments sorted by

1

u/QuanTradin Oct 22 '26

affected tests pay off fastest, an agent that knows which tests a change touches stops running the whole suite every edit. I'd watch the graph going stale after a big refactor.

1

u/sh4rkwav3 Oct 22 '26

Agreed on both and i ran test for you.

Affected tests: I re-ran this fresh on two repos Ripplet was never tuned on. Method: inject a failure into a random function, run the full suite to see which tests actually break, then check whether the tests the tool picked would have caught it. 40 mutants per repo:

  • rich: Ripplet's picks caught 72% of mutants, running ~6% of the suite. grep-by-name caught 60%.
  • jinja2: 38% vs 15% for grep. Weak spot: most jinja2 tests compile template strings at runtime, and those calls aren't in the source, so no static graph sees them.

On the repos I tuned on earlier it's higher (click 68% vs 10% for Graphify, conduit/C# 92% vs 20%), but the fresh numbers are the honest ones.

Staleness: before any tool answers, it stats indexed files and incrementally reindexes what changed, so edits between calls are picked up. A big refactor or branch switch (200+ changed files) isn't reindexed inline. Instead, the answer says the index is stale and to run ripplet index rather than answering from old data.

1

u/QuanTradin Oct 22 '26

72% of mutants on about 6% of the suite is a real result, and on repos it was never tuned on. the 28% it misses is where I'd dig next: if they cluster in one kind of change, config or dynamic dispatch say, that's a short warning list for users.

1

u/sh4rkwav3 Oct 22 '26

Did that. The misses cluster, they're not random. Of the 36 missed across both repos:

  • Name-built dispatch (13, all jinja2): getattr(self, "visit_" + node_type) in the compiler/parser, plus everything reached only through that chain. No static graph sees a method name assembled from a string.
  • Generated code (8, jinja2): compiled templates call the runtime (macros, loops, filters looked up by name). Those calls exist only at runtime.
  • Python protocols (4, rich): with → __enter__, __rich_console__ invoked by the renderer.
  • Properties (2): console.height is an attribute read, not a call.
  • Functions passed as values / decorator wrappers (2): sorted(key=sort_items), wrappers from a decorator factory.
  • Import-time failures (6): the mutant breaks module import, so the whole test file fails to collect. Partly an artifact of how I score it.

So the warning list is basically: string-built dispatch, code generation, and implicit protocol calls. Protocols, properties and passed-callbacks are fixable statically, and that's next. String dispatch and generated code I'd rather flag honestly than guess at. One idea: when a class has a getattr(self, prefix + x) dispatcher, treat every prefix* method as reachable from it.

1

u/sh4rkwav3 Oct 22 '26

Update: fixed the protocol/dispatch cluster. with → __enter__/__exit__, getattr(self, "visit_" + x) → every visit_* in the class family, repo-defined dunder protocols on untyped objects, and methods stashed in a local (render = self.render, which turned out to be the big one in rich). Fresh numbers: rich 72% → 82%, jinja2 38% → 52%, no regression on the old repos. What's left is mostly generated code (jinja2 templates) and import-time failures.

1

u/QuanTradin Oct 22 '26

the prefix rule makes sense, I'd just mark those edges as inferred so users can tell them apart from real calls. flagging generated code instead of guessing is right too. a wrong "safe to skip" costs more than a slow run.

1

u/sh4rkwav3 Oct 22 '26

They are already: both the prefix-dispatch and the protocol edges are stored as inferred with lower confidence, and tool output shows them as [inferred] next to the caller, separate from resolved calls. And agreed on the last point. That's the rule I try to hold everywhere: when the graph can't prove something, it says so instead of quietly returning a smaller answer. Thanks for the push on the misses, it turned into a real fix.

1

u/Quiet_Worldliness_71 Oct 22 '26

Have you actually tested your tool to support your statements? With all these semantic and codegraph tools llms tend to spent more time and tokens. They use tools then anyway continue to do task the same way they usually do. And you can’t do anything about this. No skill can fix that. It is the way they trained.

With bad model(got 6.1 sol) you can get twice as much time spent and tokens for the same task. Astray is much better. And opus wins in baseline(without any tools) and with tools - just because refuses to use them.

If something not already implemented in codex or Claude - most likely it’s not needed.

1

u/sh4rkwav3 Oct 22 '26

yeah, that's a fair criticism. i've actually tested it against baseline runs, including real repos and coding tasks. in my tests it reduced file reads from 229 to 14 and cost from $1.82 to $0.81 for the rename tasks.

but i agree that adding tools doesn't automatically make an agent better. some models barely use them, or call them and then go back to doing things the usual way. i've seen that myself.

i'm not claiming ripplet makes every model better at every task. the point is to give agents precise code relationships and impact info without having to dig through the repo every time. whether the model actually uses that info is a separate problem, and honestly one i'm still working on.

the "if it's not built into codex or claude, it's not needed" part is where i disagree though. tools can still be useful if they solve a real problem measurably. the numbers just need to prove it.

1

u/[deleted] Oct 23 '26

[removed] — view removed comment

1

u/sh4rkwav3 Oct 23 '26 edited Oct 25 '26

yeah, trust in the edges is the whole problem. ripplet marks each one: proven when it can resolve the call from source, inferred when it's a guess (dynamic dispatch and friends), and the sites it can't resolve at all go in a separate section so the agent knows exactly where to fall back to grep.

on savings, i ran the same tasks with and without it, same model. renames: 13/13 correct vs 12/13, $0.81 vs $1.82, about 5x fewer steps. it's not always a win though: on "what breaks if i change this?" questions the version without it was slightly more complete.

0

u/[deleted] Oct 22 '26

[removed] — view removed comment

1

u/sh4rkwav3 Oct 22 '26

Ripplet does well when relationships can be resolved statically: imports, typed receivers, inheritance, overrides, and callback relationships that are visible in the code. It also indexes callback structures in JavaScript/TypeScript.

The honest limitation is dynamic dispatch. Reflection, string-built function names, and dependency injection configured only at runtime can leave gaps. In loosely typed code, Ripplet tries to surface uncertain relationships as UNVERIFIED rather than silently treating a guess as a proven edge for Python, it uses AST-based analysis, but I wouldn't claim it can resolve every dynamically registered callback, monkey-patched method, or runtime-dependent dispatch path.

I'd love to hear how it performs against your messy codebase. If you run into a specific pattern it misses, please share a minimal example or open an issue. Those are exactly the cases I want to improve, rather than hiding the limitations behind a big recall number.