yetone

yetone / ctxgrep

Public

grep for context, not just text. Local-first CLI for searching documents, notes, memories, and project context.

15
0
100% credibility
Found Mar 07, 2026 at 15 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Rust
AI Summary

ctxgrep is a local-first command-line tool for indexing documents, notes, and files to enable hybrid searches combining exact matches, patterns, meanings, and extracted memories like decisions or preferences.

How It Works

1
🔍 Discover ctxgrep

You learn about a helpful tool that searches your personal notes, documents, and project files in smart ways, understanding meaning not just words.

2
📥 Set it up quickly

Follow a simple one-line instruction to download and install it on your computer, no hassle needed.

3
📁 Show it your folders

Tell it which folders like notes, docs, or meetings to scan and remember.

4
🧠 It learns your world

Sit back as it reads all your files, breaks them into meaningful pieces, pulls out key facts, decisions, and preferences, and gets ready to help.

5
Ask everyday questions

Type something natural like 'what was our plan for user login?' or 'naming ideas from last week'.

6
💡 Get perfect matches

See instant results with file paths, line numbers, why they match, and short previews of the good stuff.

🎉 Always find what matters

From now on, gathering context for work or ideas feels effortless, like having a super-smart assistant in your pocket.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 15 to 15 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is ctxgrep?

ctxgrep turns grep into a context-aware powerhouse: a Rust CLI for local-first searches across docs, notes, code, and memories using SQLite indexing and ONNX embeddings like all-minilm-l6-v2. Query with exact text, regex, semantic similarity, or hybrid modes via `ctxgrep search "auth design"`, pulling results with file paths, line ranges, scores, and match reasons—no API keys needed. It extracts structured memories (decisions, todos) and packs token-budgeted bundles for AI agents with `ctxgrep pack --budget 5000 "refactor auth"`.

Why is it gaining traction?

It leaps past ripgrep or git grep by fusing lexical grep github code matches with AI-driven semantic retrieval, plus auto-extraction of preferences and constraints into queryable memories. JSON output and provenance (grep context before after lines, why it matched) hook devs piping to github actions or agents; watch mode keeps indexes fresh incrementally. Local-first means zero latency on rust grep github workflows, even on windows grep github setups.

Who should use this?

DevOps engineers scanning meeting notes for past decisions with `ctxgrep memory --type decision "db schema"`. AI tool builders assembling grep context below snippets for Cursor/Claude prompts. Solo hackers grep github repo histories or project dirs needing grep context line options without cloud vector stores.

Verdict

At 15 stars and 1.0% credibility, ctxgrep is early alpha—great README and CLI, but test large indexes yourself as maturity lags. Install via `cargo install --git https://github.com/yetone/ctxgrep` if github grep ai fits your local search gaps; it'll evolve fast.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.