llm-code-highlighterRepository29/100 via “syntax-aware code condensation with structural preservation”
Condense source code for LLM analysis by extracting essential highlights, utilizing a simplified version of Paul Gauthier's repomap technique from Aider Chat.
Unique: Implements a simplified version of Aider Chat's repomap algorithm specifically optimized for LLM context windows, using language-aware parsing to preserve structural integrity while aggressively removing non-essential lines (comments, blank lines, verbose formatting)
vs others: More sophisticated than naive line-filtering or regex-based approaches because it understands code structure (functions, classes, imports) and preserves semantic relationships, while remaining lighter-weight than full AST-based tools like tree-sitter