Greq – A CLI BM25 search engine
2 points by klausschaefers 6 hours ago | 1 comments
  • klausschaefers 6 hours ago |
    Greq is a CLI tool that searches files and returns the most relevant sections. It’s designed to provide concise, high-signal context for AI agents, helping reduce token usage while preserving the information that matters.

    Unlike grep, which performs exact pattern matching, Greq applies lightweight linguistic ranking (BM25) to score and sort file sections based on how relevant they are to your query. In practice, it behaves like a small search engine in your shell.