[Feature] Phase 1: Native AST Codebase Analyzer via Tree-Sitter #31
purvanshjoshi
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
[Feature] Phase 1: Native AST Codebase Analyzer via Tree-Sitter
Objective
To reduce our dependency on external indexers (like GitNexus) and provide our agents with deep, structural understanding of any repository, we need to build a native AST (Abstract Syntax Tree) parsing engine. This engine will map classes, functions, and imports with exact file paths and line numbers.
Requirements
tree-sitterand the primary language grammars (tree-sitter-python,tree-sitter-javascript,tree-sitter-typescript) to therequirements.txtfile.backend/ast_indexer.py.TreeSitterParserwrapper.CodebaseMapperclass that traverses a local repository.architecture_map.jsonrepresentation of the repository.Acceptance Criteria
tree-sitterlibraries are successfully integrated into the backend environment.CodebaseMapperon a test repository correctly identifies all functions and their line numbers without crashing.All reactions