A code-similarity engine on Opengrep's IL that hashes each function's resolved control and data flow into features and scores pairs by weighted Jaccard and containment, rename-invariant, so an agent can check whether a drafted function already exists, over MCP, LSP or a CLI.
- 0.869, 2,196 pairsMean reciprocal rank
- 1 of 298 pairsLLM-judged false pos.
- < 0.5 sWarm dependency load
Trade-offs
- Opengrep's IL was chosen over syn: a normalized op stream, a real CFG and pre-resolved names that months of work would otherwise have built.
- Precision comes first, because a wrong 'this already exists' costs more than a miss; containment beside Jaccard lifts evolved-pair recall to 0.92 from about 0.76.
- Rust hashes strings in content-defined chunks rather than whole: slightly lower scores, but an edited message still partly matches.
Q&A3
Against pairs mined from multi-version crates with token-level labels independent of the features, ranked over the full corpus; an LLM judge and a 16-assertion sanity suite across four languages back it up.
Through MCP tools such as find_similar after writing a function, find_duplicates when deduplicating and diff_functions before replacing one; the server's instructions say when to call which.
The first index of cargo dependencies takes about a minute; signatures are cached per crate version, so later loads take under half a second.
Reviews
Loading reviews
More in OCaml
More in AI agents
See all 99 →
HashCortxLocal-first desktop workspace for chat, coding agents and agent teams- ZeroboxDeny-by-default process sandbox with per-host secret injection
DeftSelf-hosted workspace shared by people and AI agents
EntrolyLocal context layer that picks what coding agents send to the model- Active GraphEvent-sourced graph runtime for long-running, auditable agents
AgenvoySelf-hosted agent harness in one Go binary, running around the clock
More in Developer tools
See all 88 →- EpuppBrowser extension that opens a live ClojureScript REPL into any web page
ResonanceA local-first API client with no account, collections kept as YAML files
PandiaDesktop JSON editor for multi-gigabyte files, with the document held in Rust
PandaWardLocal application security assessment that reports what it couldn't decide
ScalexScala code navigation for coding agents, from source and without a build
polyOne Rust binary that lints and formats about 30 languages