Python code-search

Open-source Python projects categorized as code-search

Top 14 Python code-search Projects

code-search
  1. 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-10

    I built cocoindex-code - a super lightweight embedded MCP that:

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. SeaGOAT

    local-first semantic code search engine

  4. moatless-tools

    We Have No Moat, And Neither Does Devin

  5. memtrace-public

    Structural memory for AI coding agents. Bi-temporal graph, MCP-native, zero LLM calls. Cursor · Claude Code · Codex · Hermes · VS Code · Windsurf.

    Project mention: Fable 5 Is Back | news.ycombinator.com | 2026-07-01

    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...

  6. 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
  7. bor

    User-friendly, tiny source code searcher written by pure Python. (by furkanonder)

  8. 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
  9. cicada

    AI Coders search blindly. Be their guide. (by wende)

    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

  10. semble

    Fast and Accurate Code Search for Agents

    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.

  11. droste-memory

    Local MCP code-memory engine for AI agents: structural graph + semantic search, sharded storage, project isolation, and fractal code visualization.

    Project mention: Why vector-only RAG is weak for coding agents | dev.to | 2026-07-01

    GitHub: https://github.com/lorismascio17/droste-memory

  12. 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-20

    So I built promptrouter — a gateway that sits between your code and the LLM API. For every prompt, it decides:

  13. 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
  14. 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-05

    Everything 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.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python code-search discussion

Log in or Post with

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

    1 project | news.ycombinator.com | 3 May 2026
  • Show HN: CocoIndex-Code open source embedded AST-based code MCP

    1 project | news.ycombinator.com | 10 Mar 2026
  • Agent Design Is Still Hard

    14 projects | news.ycombinator.com | 22 Nov 2025
  • Show HN: An open-source, local-first Context7 alternative

    1 project | news.ycombinator.com | 14 Oct 2025
  • Show HN: SeaGOAT – local, “AI-based” grep for semantic code search

    1 project | /r/patient_hackernews | 22 Sep 2023
  • Show HN: SeaGOAT – local, “AI-based” grep for semantic code search

    9 projects | news.ycombinator.com | 20 Sep 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 11 Aug 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

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

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com