Show HN: Crespo – Tree-sitter AST blueprints instead of raw code for LLMs Crespo, a new open-source tool, uses Tree-sitter AST parsing to extract structural blueprints from codebases, reducing token usage by up to 89% while preserving architectural understanding for LLMs. The tool supports 10 programming languages and offers structure, summary, and concat modes for different use cases. In tests on real repositories, LLMs answered architectural questions correctly 2.75 out of 3 times on average using only the compressed blueprints. Stop burning your context window on raw source files.Crespo extracts what matters — and compresses everything else. pip install crespo && crespo ./myproject You paste a codebase into any LLM. It hits the context limit but you problem remains unfinished. You paste one file at a time. The AI loses the big picture. You give AI the full code. The AI reads 40,000 tokens linearly and still misses the architecture. Crespo solves this differently. Instead of concatenating raw files, Crespo uses Tree-sitter AST parsing to extract only the structural DNA of your repository — imports, classes, functions, module connections — and emits a compact XML blueprint. Same architectural understanding. A fraction of the tokens. Structure mode default crespo ./myproject Summary mode — requires Groq key crespo ./myproject --mode summary --groq YOUR KEY Save your Groq key for future runs crespo --groq YOUR KEY Concat mode — full source, redacted crespo ./myproject --mode concat Analyse a GitHub repo directly crespo --git https://github.com/user/repo Custom output filename crespo ./myproject --output blueprint.xml your repo │ ▼ walker respects .gitignore · skips tests · skips build artifacts │ ▼ tree-sitter real AST parse · 10 languages · no regex │ ▼ extractor imports · classes · functions · structs · enums │ ▼ blueprint XML compact · structured · LLM-ready No heuristics. No regex scraping. Real language grammars via Tree-sitter — the same parser used by GitHub, Neovim, and Zed. | Mode | What it produces | Best for | |---|---|---| structure | AST skeleton — imports, classes, functions | Architecture review, onboarding, LLM context | summary | Structure + AI one-line descriptions per file | Deeper codebase understanding | concat | Full source, secrets redacted, in structured XML | Passing entire repos to LLMs safely | Python · JavaScript · TypeScript · JSX · TSX · Rust · Go · Java · C · C++