SaaSHub helps you find the best software and product alternatives Learn more →
Top 21 Python tree-sitter Projects
-
graphify
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
code-review-graph
Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.
Project mention: Put code-review-graph Behind a Read-Only MCP Boundary Before Connecting Your Repository | dev.to | 2026-07-21code-review-graph is trending because it promises a useful trade: build a persistent local map of a codebase so an AI reviewer reads relevant context instead of ingesting the whole repository. The repository is MIT-licensed and exposes MCP and CLI interfaces.
-
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:
-
Project mention: Ex-GitHub CEO Launches a New Developer Platform for AI Agents | news.ycombinator.com | 2026-02-10
> won't it make just doing a "git checkout" start to be really heavy?
not really? doesn't git checkout only retrieve the current branch? the checkpoint data is in another branch.
we can presume that the tooling for this doesn't expect you to manage the checkpoint branch directly. each checkpoint object is associated with a commit sha (in your working branch, master or whatever). the tooling presumably would just make sure you have the checkpoints for the nearby (in history) commit sha's, and system prompt for the agent will help it do its thing.
i mean all that is trivial. not worth a $60MM investment.
i suspect what is really going on is that the context makes it back to the origin server. this allows _cloud_ agents, independent of your local claude session, to pick up the context. or for developer-to-developer handoff with full context. or to pick up context from a feature branch (as you switch across branches rapidly) later, easily. yes? you'll have to excuse me, i'm not well informed on how LLM coding agents actually work in that way (where the context is kept, how easy it is to pick it back up again). this is just a bit of opining based on why this is worth 20% of $300MM.
if i look at https://chunkhound.github.io it makes me think entire is a version of that.
-
-
Corbell
AI-powered spec generation and review using multi-repo code graph intelligence for backend teams that ship to production.
Project mention: Tool to reduce AI tokens and generate more detailed and accurate PRDs | news.ycombinator.com | 2026-03-26 -
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...
-
AutoDocs
We handle what engineers and IDEs won't: generating and maintaining technical documentation for your codebase, while also providing search with dependency-aware context to help your AI tools understand your codebase and its conventions. (by TrySita)
Project mention: Show HN: AutoDocs – Reduce AI costs and never manage context again | news.ycombinator.com | 2025-09-15Btw the link above is broken because of mismatched quotes
But u can check out the repo at:
https://github.com/TrySita/AutoDocs
-
-
tree-hugger
A light-weight, extendable, high level, universal code parser built on top of tree-sitter
-
Project mention: Show HN: Source code graphRAG for Java/Kotlin development based on jQAssistant | news.ycombinator.com | 2026-02-07
The project is still a work in progress, but I'd love to get your feedback. Thanks for taking a look
Btw, I also built a source code graphRAG for C/C++ development at https://github.com/2015xli/clangd-graph-rag.
-
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 -
codegraph-cli
AI-powered code intelligence CLI with multi-agent analysis, impact graphs, and conversational coding.
Project mention: Show HN: CodeGraph CLI – Chat with your codebase using graph-augmented RAG | news.ycombinator.com | 2026-02-16 -
metatron
Git-native context layer for AI coding agents. Your team's real engineering decisions — patterns, pitfalls, conventions — live as reviewed markdown files in your repo; agents consult them before writing code and record what they learn. Files-first, no server required; MCP as an optional serving layer. (by kerbelp)
Project mention: Show HN: Metatron – give coding agents your team's conventions over MCP | news.ycombinator.com | 2026-06-08 -
SwiftDocAutomator
SwiftDocAutomator is an AI-powered tool that streamlines the generation of clear and concise documentation comments for Swift code, following Apple and Swift best practices.
-
codebase-intel
Your AI agent writes code — but does it know WHY your code exists? Decision provenance, quality contracts, and AI anti-pattern detection for coding agents. 19 languages. MCP compatible.
Project mention: The 3 Things AI Coding Agents Still Can't Do (And How I Fixed Them) | dev.to | 2026-04-08GitHub: MutharasuArchunan13/codebase-intel PyPI: pip install codebase-intel License: MIT
-
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
-
knowledge-master
Local-first knowledge graph for developers. Graph-native RAG with MCP server, blast radius analysis, convention enforcement. Your AI agent's permanent memory.
Project mention: Stop Re-explaining Your Codebase to AI — Give It Permanent Memory Instead | dev.to | 2026-06-18GitHub: github.com/subzone/knowledge-master
-
Project mention: Ask HN: What are tools you have made for yourself since the advent of AI | news.ycombinator.com | 2026-06-08
I made a Tree-Sitter based parser for Emacs Org-Mode files (that's mostly complete, mostly): https://github.com/Idorobots/tree-sitter-org
On top of that, I made a Python parser that's meant to improve upon the awesome `orgparse`: https://github.com/Idorobots/org-parser
And now I'm building a CLI for Emacs Org-Mode, mostly focused on ad-hoc querying, agenda planning, etc: https://github.com/Idorobots/org-cli
-
ruth
Google Maps for your codebase — interactive dependency graph, landmark detection, code preview, real-time topology updates
Project mention: Show HN: Ruth – Google Maps for your codebase (pip install ruth-code) | news.ycombinator.com | 2026-03-23 -
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 tree-sitter discussion
Python tree-sitter related posts
-
No, everyone is not using AI for everything
-
Ask HN: SoTA of Context Building Methods
-
Discuss HN: Use run-time feedback to LLMs for agentic coding
-
Refactoring Python with Tree-sitter and Jedi
-
The History of Machine Learning in Trackmania
-
Codeblocks: Library for merging incomplete LLM-generated code
-
Tree-Hugger: Mine / Query source code
-
A note from our sponsor - SaaSHub
www.saashub.com | 11 Aug 2026
Index
What are some of the best open-source tree-sitter projects in Python? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | graphify | 104,587 |
| 2 | code-review-graph | 28,990 |
| 3 | cocoindex-code | 2,609 |
| 4 | chunkhound | 1,389 |
| 5 | moatless-tools | 642 |
| 6 | Corbell | 478 |
| 7 | memtrace-public | 445 |
| 8 | AutoDocs | 198 |
| 9 | tree-sitter-solidity | 186 |
| 10 | tree-hugger | 132 |
| 11 | clangd-graph-rag | 59 |
| 12 | coco-search | 37 |
| 13 | codegraph-cli | 26 |
| 14 | metatron | 23 |
| 15 | SwiftDocAutomator | 14 |
| 16 | codebase-intel | 5 |
| 17 | droste-memory | 3 |
| 18 | knowledge-master | 2 |
| 19 | org-parser | 2 |
| 20 | ruth | 1 |
| 21 | trelix | 1 |