Show HN: Crespo – Tree-sitter AST blueprints instead of raw code for LLMs
Category: devtools
Tags: tree-sitter, ast-parsing, llm-context, code-analysis, cli-tool, xml-blueprint
Score: 7.0/10 (Innovation: 7, Technical: 7, Documentation: 7, Utility: 7)
Crespo is a CLI tool that uses Tree-sitter AST parsing to generate compact XML blueprints of codebases, extracting structural information like imports, classes, and functions for efficient LLM consumption. It achieves significant token reduction (80-96% on many repos) while preserving architectural understanding, making it a practical solution for developers working with AI code analysis. The project combines established technologies in a novel way to address a real pain point of context window limits.
Target audience: backend devs, frontend devs, data engineers, devops
Repository: https://github.com/hrudulmmn/crespo · Python · MIT · 2 stars
View on Hacker News