Expand description
CodeGraph integration for code symbol indexing and search.
Integrates CodeGraph (https://github.com/colbymchenry/codegraph) for:
- Symbol search across the codebase
- Call graph analysis (callers/callees)
- Impact analysis for code changes
- Task context building for AI agents
Uses SQLite direct access for fast queries, and CLI for index building.
§Auto-sync
CodeGraphWatcher provides automatic file watching and index synchronization.
When source files change, it automatically runs codegraph sync to keep
the index up-to-date.
Structs§
- Code
Graph Callees Tool - Tool for finding callees of a symbol.
- Code
Graph Callers Tool - Tool for finding callers of a symbol.
- Code
Graph Manager - Manages CodeGraph index for a project.
- Code
Graph Search Tool - Tool for searching symbols in CodeGraph index.
- Code
Graph Status Tool - Tool for checking CodeGraph status.
- Code
Graph Sync Tool - Tool for syncing CodeGraph index.
- Code
Graph Watcher - CodeGraph file watcher for auto-sync.
- Edge
- Edge representing relationship between nodes.
- File
Info - File information for indexing.
- Index
Status - Index status information.
- Node
- Code symbol node from CodeGraph index.
- Pending
Changes
Enums§
- Code
Graph Env - Environment type for CodeGraph.
Constants§
- WATCH_
EXTENSIONS - Extensions to watch (source files only).
Functions§
- codegraph_
tools - Create CodeGraph tools for a project path.
- codegraph_
tools_ if_ installed - Create CodeGraph tools if installed.
- codegraph_
tools_ with_ auto_ detect - Create CodeGraph tools with automatic project root detection.
- ensure_
codegraph - Ensure CodeGraph is available with optional auto-install.
- find_
project_ root - Find project root directory from a given starting path.
- get_
codegraph_ path - Get CodeGraph CLI path (returns the executable path or command name).
- is_
codegraph_ installed - Check if CodeGraph CLI is installed.
- should_
inject_ codegraph_ tools - Check if CodeGraph tools should be injected.