terraphim-grep
An open-source local search and summarization tool that uses a knowledge-graph synonym thesaurus to parse queries and rank local matches. It can invoke a low-cost LLM to synthesize summaries of retrieved passages, and supports a search-only mode that avoids network calls entirely.
Timeline (last 90 days)
The terraphim-grep tool resolves query terms through a curated knowledge-graph synonym thesaurus and ranks local matches; the --answer parameter requests a generated answer when the sufficiency check requires it, --force-rlm forces the synthesis path, and --search-only mode completely disables synthesis and skips building the LLM client.
In a validation run, the raw snippet content was 505 characters, the evidence with source locations was 1108 characters, and the synthesized answer text was 440 characters, so the frontier model received about 40% of the original context.
If the full answer object with all ten citations (1918 characters) were forwarded as-is to the frontier model, the savings would disappear; only the synthesized result plus the citations needed for verification should be passed.
All Facts (3)
The terraphim-grep tool resolves query terms through a curated knowledge-graph synonym thesaurus and ranks local matches; the --answer parameter requests a generated answer when the sufficiency check requires it, --force-rlm forces the synthesis path, and --search-only mode completely disables synthesis and skips building the LLM client.
50%UnverifiedIn a validation run, the raw snippet content was 505 characters, the evidence with source locations was 1108 characters, and the synthesized answer text was 440 characters, so the frontier model received about 40% of the original context.
50%UnverifiedIf the full answer object with all ten citations (1918 characters) were forwarded as-is to the frontier model, the savings would disappear; only the synthesized result plus the citations needed for verification should be passed.
50%