Module code_tools

Module code_tools 

Source
Expand description

Unified code tools scaffolding for AGCodex.

Policy per ISSUE: Do not use Comby; prefer Tree-sitter as the primary structural engine. Offer AST-Grep as optional internal tooling.

Modules§

ast_agent_tools
AST-based agent tools for code analysis and transformation AST-based agent tools for precise code analysis and transformation. These tools power the internal coding agents with semantic understanding.
ast_grep
Optional: AST-Grep internal tooling. Kept as a stub for now. AST-Grep integration for structural code search. Provides pattern-based AST search using ast-grep-core. Note: Tree-sitter is the primary structural engine; AST-Grep is offered as internal optional tooling.
fd_find
Native fd-find integration using ignore::WalkBuilder for AGCodex.
queries
Comprehensive tree-sitter query library for structural code analysis Comprehensive tree-sitter query library for AGCodex
search
Multi-layer search engine with Tantivy integration Multi-layer search engine for AGCodex with Tantivy integration.
tree_sitter
Tree-sitter primary structural tool.

Enums§

ToolError

Traits§

CodeTool
A generic interface that concrete tools may adopt.