SaaSHub helps you find the best software and product alternatives Learn more →
Top 14 Python code-search Projects
-
cocoindex-code
A super light-weight embedded code search engine CLI (AST based) that just works - improves speed and efficiency for coding agent 🌟 Star if you like it!
Project mention: I Built a Code AST MCP That Saves 70% Tokens and Went Viral (54K+ Views) | dev.to | 2026-03-10I built cocoindex-code - a super lightweight embedded MCP that:
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
-
memtrace-public
Structural memory for AI coding agents. Bi-temporal graph, MCP-native, zero LLM calls. Cursor · Claude Code · Codex · Hermes · VS Code · Windsurf.
That is super cool. Checkout this repo which might give you super power to code quality and cut down 80% of token cost while keeping fable running longer jobs. https://github.com/syncable-dev/memtrace-public?tab=readme-o...
-
claude-context-local
Code search MCP for Claude Code. Make entire codebase the context for any coding agent. Embeddings are created and stored locally. No API cost.
Project mention: Show HN: Claude Context but local – semantic code search without API keys | news.ycombinator.com | 2025-09-07 -
-
snippets
Automatically extracts, processes, and indexes code snippets from GitHub repositories into a searchable vector database. (by cheolwanpark)
Project mention: Show HN: An open-source, local-first Context7 alternative | news.ycombinator.com | 2025-10-14 -
Project mention: Discovering Cryptographic Weaknesses with Claude | news.ycombinator.com | 2026-07-28
The only repos I find skills particularly useful for are in small languages with useful new tools. For elixir I have some tools pointing to cicada[1] for code search because it's better than grep and meaningfully reduces churn.
[1]https://github.com/wende/cicada
-
coco-search
Local-first hybrid semantic code search tool. Indexes codebases into PostgreSQL with pgvector embeddings via Ollama, combines vector similarity + keyword search with RRF fusion. Supports 30+ languages. Features CLI, MCP server, WEB dashboard and interactive REPL.
Project mention: Show HN: CocoSearch – semantic code search with syntax-aware chunking | news.ycombinator.com | 2026-02-28 -
Project mention: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep | news.ycombinator.com | 2026-05-17
Would be nice to see the actual % token/time saving across end-to-end coding sessions over these time periods https://github.com/MinishLab/semble#savings
My observation is that greps and the processing of grep outputs account for only a small portion of overall consumption; I haven't measured this scientifically though.
-
droste-memory
Local MCP code-memory engine for AI agents: structural graph + semantic search, sharded storage, project isolation, and fractal code visualization.
GitHub: https://github.com/lorismascio17/droste-memory
-
codecontext
Reduce your LLM costs by 40-70% automatically. Routes prompts locally, compacts context, tracks real savings. (by batish52)
Project mention: I Tracked Every LLM API Call For a Week — 65% Were Unnecessary | dev.to | 2026-04-20So I built promptrouter — a gateway that sits between your code and the LLM API. For every prompt, it decides:
-
fidx
Local AI search engine for your files and agents — hybrid BM25 + vector semantic search (RAG) in one SQLite file. Millisecond queries, CPU-only, offline, no LLM in the query path.
Project mention: Fidx – local semantic search in one SQLite file, no LLM at query | news.ycombinator.com | 2026-07-04 -
trelix
🌲 Fast, reliable code intelligence — Tree-sitter AST parsing, contextual hybrid search, adaptive query planning, call-graph expansion & LLM synthesis. 20+ languages. Zero infra.
Project mention: I Built trelix Because I Was Tired of Grepping My Way Through Codebases | dev.to | 2026-07-05Everything is MIT licensed, on PyPI, and at github.com/sairam0424/trelix. The full documentation is in the repo README including the beast-mode activation block if you want all seven retrieval legs at once.
Python code-search discussion
Python code-search related posts
-
SIFS (SIFS Is Fast Search) - local code search for coding agents VS semble - a user suggested alternative
2 projects | 6 May 2026 -
Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep
-
Show HN: CocoIndex-Code open source embedded AST-based code MCP
-
Agent Design Is Still Hard
-
Show HN: An open-source, local-first Context7 alternative
-
Show HN: SeaGOAT – local, “AI-based” grep for semantic code search
-
Show HN: SeaGOAT – local, “AI-based” grep for semantic code search
-
A note from our sponsor - SaaSHub
www.saashub.com | 11 Aug 2026
Index
What are some of the best open-source code-search projects in Python? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | cocoindex-code | 2,609 |
| 2 | SeaGOAT | 1,302 |
| 3 | moatless-tools | 642 |
| 4 | memtrace-public | 445 |
| 5 | claude-context-local | 237 |
| 6 | bor | 108 |
| 7 | snippets | 59 |
| 8 | cicada | 41 |
| 9 | coco-search | 37 |
| 10 | semble | 4 |
| 11 | droste-memory | 3 |
| 12 | codecontext | 2 |
| 13 | fidx | 2 |
| 14 | trelix | 1 |