sgrep logo

sgrep

semantic grep, powered by Jev

0
0
cliai

About

sgrep is a command line tool that enables users to ask questions about their codebase in plain English, functioning as a semantic alternative to traditional grep. Instead of matching keywords or building a vector index with embeddings, sgrep divides a repository into chunks at the function or class level and sends each chunk to Jev, a lightweight model from TypeSafe, with a single typed question: whether the chunk matches the query. The results are then ranked by a calibrated confidence score. Each Jev call uses approximately 150 tokens and takes roughly 100 milliseconds, with output provided at no additional cost, making it feasible to scan an entire repository for pennies and integrate into continuous integration workflows on every pull request. The tool handles chunking intelligently based on file type. For Python files it uses the standard library AST parser, while JavaScript, TypeScript, and Java files are parsed via tree-sitter to capture components, arrow functions, and export wrapped declarations. Other file types fall back to line based windows. When a repository contains more chunks than the specified top k limit, sgrep first applies a local offline pre filter using Model2Vec static embeddings and forwards only the top candidates to Jev, reducing the number of HTTPS calls from potentially hundreds to a manageable few dozen. The pre filter is semantic by design to avoid dropping code that keyword filters would miss, such as verify_jwt for an authentication query. sgrep supports several power user features to accelerate repeated or batch queries. Batch mode accepts up to three queries in a single run with the q flag, and all discovery, parsing, and embedding computations are shared across queries. A warm daemon mode keeps the Python process and the embedding model resident in memory, eliminating startup overhead for subsequent scans. Combined, batch mode with a warm daemon can process three queries in roughly 5.5 seconds, a 2.7 times speedup compared to separate cold runs. The daemon is fail safe, silently falling back to an in process scan if no daemon is running. Technical requirements include Python 3.10 or later. On first run, sgrep downloads a small local embedding model of approximately 7 megabytes. Provider API keys (for auto, vercel, typesafe, or mock) are read from a local .env file, which is gitignored. The tool is distributed as a Python package and can be built with python m build and published via twine. In benchmarking on a Claude agent tracing real flows through a distributed application, sgrep with batch mode and warm daemon reduced total token usage by roughly 40 percent and code read into context by 66 percent while maintaining equal answer quality and improving wall clock speed.

#2890
Rank
2
Upvotes
0
Reviews
Developer Tools
Category
Added September 20, 2026
Updated November 14, 2026

Reviews (0)

Sort by:
No reviews yet. Be the first to add one!
Please log in to leave a review.

Explore More Apps

SynchCast logo

One Laptop. Multiple Earphones

Audiowindows
51
SEODoC logo

All-in-one SEO tool for your website.

SEOmarketing
8
5-proxy.com logo

Compare Proxy Providers Verified re

proxyscrape tools
7
CrazyCubix logo

Play thousands of free online games

gamegame publisher
7
LiftOff Directory logo

Your launch pad for what's next.

SaaS
6
ShipBoard logo

Never build the wrong thing again

indiehackerfounder
8

Sponsored Apps

Afina Browser

Secure multi-environment browser

aipetgenerator

AI pet portraits, music, 3d model

ArchOne AI

AI spatial design visualization

BasuTots

Calm puzzles for kids 2–6

BettingTracker.Pro

Sports performance analytics

Botflix

24/7 AI-produced TV & radio network

CachePilot

Telemetry for OpenAI apps

CharterPrep.AI

AI workspace for CA & CS prep

Contact Kickstart

Never lose a lead to paper again

Contentualize

Track and discover media in new way

Corvic

Agentic Document Processing

DJ.Studio

Build Pro DJ Mixes and Mashups

Double

AI career agent

Ecqo

productivity unified

ESPADLAND

Global Holding | Direct Selling

exepal

The trusted toolbelt for AI agents

Faro

Faro tells your app — or your agent

FastTempMail

FastTempMail instant temp mail

GiftCrew

Share birthday wishlists with ease

Ginja

From chaos to clear next steps

Gutenslider

WordPress slider block image slider

HeySeo.app

Chat with your SEO data!

Hold My Frame

Frame library for film pitches

Honeyfield Marketing MCP

Run marketing ops from your chat

Hookie AI

Ingestion, knowledge graphs, and AI

HT Calc

Compare mortgages and rental deals

Human Write

Privacy-first writing tools

IDX Launchlab

Launch Token on Solana in 10 Mins

Insert Affiliate

In-app purchase affiliate tracking

Jely

Send vídeo to physical led screen

Kiffos

Your AI. Local, private, yours.

Libertas Link AI

Every Inbox Answered

Lift planner Pro

Lifting operations planning

Luna Notes AI

Luna Notes AI is an AI-powered note

maxee.me

AI-powered business optimization

MindFlock

A private flock of coding agents -

OriaFlow

Apply smarter. Land faster.

OutReign

Outbound superpowers

Pannapdf

Your page your way

PaperCat

Smart Documents. No Subscription.

Photo From Emoji

Photo to emoji mosaic

polyroom.

AI agents working together

Propel

Agentic CRM

RecoverFlow

Stop losing money to failed payment

RedHen Labs

RRW_Ads.com

Repair Rocket

Mobile mechanics' digital office

Ripple Brain

Copy. Create. Earn.

Securepasspro

The all-in-one security solution fo

Sentinel | Uptime Monitoring

Never lose customers to downtime

ShadowEvo AI Worksjop

Agentic workflow platform

ShipSignal.ai

Idea ->Build ->Ship->Leads

Show Bar

Windows-style Cmd+Tab for Mac

Social Forge

Find any creator on every network

StrideFuel

The AI-Powered Nutrition App

Talk Fusion

Video email and text technology

Tenwrite

Google Docs to WordPress & Blogger

Terralog

Private travel journal, no account

The GEO Visibility Kit

AI visibility for local businesses

Vaultd

Memories organized by people

VeloceDB

Local engine. 30-day trial.

Zenfox.ai

The AI that works for you