JevMade hello@JevMade.com
← Back to guides

JevMade field notes / Technical guide

Search text streams by meaning with jgrep

jgrep asks a written yes-or-no question about pieces of text, including logs and code changes. It returns matching source text rather than an invented explanation.

Original by keltokhyRetrieval

Listen to this guide

JevMade’s plain-English explanation

0:00 /

AI narration

Credits and license

“jgrep” by keltokhy. Read the original source.

This expanded guide is an AI-narrated adaptation of the source’s essential explanation, examples and caveats, not a word-for-word reading. The synthetic voice does not imitate the author or imply their endorsement.

License: MIT

MIT License

Copyright (c) 2026 Khaled Eltokhy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Our summary

jgrep searches for meaning rather than only matching exact words. It asks the same yes-or-no question about each chosen piece of text, such as a line, paragraph, document, or code change. Matches retain their original wording and location so a reader can investigate them.

The guide explains how to include nearby context, reuse saved answers, limit spending, and estimate work before sending requests. When reviewing a code change, it keeps removed and added lines together. Optional extra context can include the surrounding function, a named block of code.

A match estimate does not explain why a passage matched, and missing context can change the answer. Extra code context works only for supported languages. Source text may leave the computer, while reported time and cost depend on the service and material used.

Key takeaways

  1. Choose a piece of text large enough to preserve its meaning.
  2. Estimate calls and cost before a large search.
  3. Read the original matches instead of treating their scores as explanations.

The repository reports benchmarks and provider comparisons that JevMade has not reproduced.

GitHub README · Source reviewed

Read the original guide Opens the author’s site in a new tab.