Skip to main content

Module code_intel

Module code_intel 

Source
Expand description

Code intelligence via tree-sitter: extract imports, symbols, and build dependency graphs.

Supports: Rust, TypeScript/JavaScript, Python, Go. Used to intelligently select which files to read for codebase analysis.

Structs§

FileIntel
A file’s extracted metadata.
Symbol
A symbol extracted from source code.

Enums§

Language
SymbolKind

Functions§

analyze_file
Extract imports and symbols from a source file.
format_project_intel
Format a project scan as a concise summary for injection into the system prompt.
scan_project
Scan a project directory and build a dependency-ordered list of important files. Returns files sorted by importance: entry points first, then most-imported files.