Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
03b11a5
docs: update incremental benchmarks (2.6.0) (#251)
github-actions[bot] Mar 2, 2026
93de652
docs: update build performance benchmarks (2.6.0) (#249)
github-actions[bot] Mar 2, 2026
e5f6e62
chore: release v2.6.0 (#245)
github-actions[bot] Mar 2, 2026
1f78058
docs: update query benchmarks (2.6.0) (#252)
github-actions[bot] Mar 2, 2026
00aa686
ci: add CLA Assistant workflow and fix CLA.md (#244)
carlos-alm Mar 2, 2026
a92cb8e
feat: add dataflow analysis (flows_to, returns, mutates) (#254)
carlos-alm Mar 3, 2026
5b59289
docs: add TypeScript migration as Phase 4 in roadmap (#255)
carlos-alm Mar 3, 2026
6d60e21
feat(queries): expose fileHash in where and query JSON output (#257)
carlos-alm Mar 3, 2026
3ba1ece
feat: add batch-query command and multi-command batch mode (#256)
carlos-alm Mar 3, 2026
1c16a29
ci: allow benchmark/ branch name prefix (#258)
carlos-alm Mar 3, 2026
81343ed
docs: competitive deep-dive vs Joern (#260)
carlos-alm Mar 3, 2026
4a5bc84
refactor!: consolidate MCP tools and CLI commands (#263)
carlos-alm Mar 3, 2026
d413fbd
docs: competitive deep-dive — codegraph vs narsil-mcp (#262)
carlos-alm Mar 3, 2026
ea9f08c
docs: add Joern competitive deep-dive with feature candidates (#264)
carlos-alm Mar 3, 2026
1f1cff0
feat: add normalizeSymbol utility for stable JSON schema
carlos-alm Mar 3, 2026
e5c1667
feat: add normalizeSymbol utility for stable JSON schema (#267)
carlos-alm Mar 3, 2026
8211e6b
docs: revise architecture audit and roadmap for v2.6.0 (#266)
carlos-alm Mar 3, 2026
b45b36c
docs: add Narsil-MCP competitive deep-dive with feature candidates (#…
carlos-alm Mar 3, 2026
dc46c1d
chore: resolve conflicts with main (narsil-mcp.md + queries.js)
carlos-alm Mar 3, 2026
cec075a
feat: add expanded edge types — contains, parameter_of, receiver (Pha…
carlos-alm Mar 3, 2026
f8f045c
chore: add pre-commit diff-impact hook (#271)
carlos-alm Mar 3, 2026
115fefa
feat(export): add GraphML, GraphSON, Neo4j CSV and interactive viewer…
carlos-alm Mar 3, 2026
7fe0206
docs: add check-readme hook to guides (#272)
carlos-alm Mar 3, 2026
af93671
feat: exports command + scoped rebuild for parallel agents (#269)
carlos-alm Mar 3, 2026
ef3ae44
feat: add intraprocedural control flow graph (CFG) construction
carlos-alm Mar 3, 2026
cf5aaad
feat: add stored queryable AST nodes (calls, new, string, regex, thro…
carlos-alm Mar 3, 2026
7a8d4ae
fix: correct misleading comment for break without enclosing loop/switch
carlos-alm Mar 3, 2026
31c219f
docs: fix stale MCP tool references in guides
carlos-alm Mar 3, 2026
fa35789
Merge remote-tracking branch 'origin/feat/cfg-intraprocedural' into f…
carlos-alm Mar 3, 2026
628c7ac
feat: expand node types with parameter, property, constant kinds (#270)
carlos-alm Mar 3, 2026
b2eeceb
Merge remote-tracking branch 'origin/main' into feat/cfg-intraprocedural
carlos-alm Mar 3, 2026
949e1ee
Merge remote-tracking branch 'origin/main' into feat/cfg-intraprocedural
carlos-alm Mar 3, 2026
dad5b4f
chore: resolve conflicts with main in src/queries.js
carlos-alm Mar 3, 2026
a4e4ab8
feat: expand node types with parameter, property, constant kinds (Pha…
carlos-alm Mar 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions docs/guides/ai-agent-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ codegraph fn resolve --file resolve.js --depth 5

| | |
|---|---|
| **MCP tool** | `fn_deps` |
| **MCP tool** | `query` |
| **Key flags** | `--depth <n>` (default: 3), `-f, --file` (scope to file), `-k, --kind` (filter kind), `-T` (no tests), `-j` (JSON) |
| **When to use** | Tracing a call chain — "who calls this and what does it call?" |
| **Output** | Direct callees, direct callers, transitive callers up to depth N |
Expand Down Expand Up @@ -242,7 +242,7 @@ codegraph path parseConfig loadFile --max-depth 5

| | |
|---|---|
| **MCP tool** | `symbol_path` |
| **MCP tool** | `query` (with `--path`) |
| **Key flags** | `--max-depth <n>` (default: 10), `--kinds <kinds>` (default: calls), `--reverse`, `--from-file`, `--to-file`, `-k, --kind`, `-T` (no tests), `-j` (JSON) |
| **When to use** | Understanding how two functions are connected through the call chain |
| **Output** | Ordered path with edge kinds, hop count, alternate path count |
Expand Down Expand Up @@ -493,7 +493,7 @@ codegraph query buildGraph

| | |
|---|---|
| **MCP tool** | `query_function` |
| **MCP tool** | `query` |
| **Key flags** | `-T` (no tests), `-j` (JSON) |
| **When to use** | Quick one-off lookup (prefer `fn` or `context` for richer data) |

Expand Down Expand Up @@ -578,15 +578,14 @@ codegraph mcp --repos "myapp,lib" # Restricted repo list

| MCP Tool | CLI Equivalent | Description |
|----------|---------------|-------------|
| `query_function` | `query <name>` | Find callers and callees |
| `query` | `query <name>` | Find callers/callees, or shortest path between two symbols |
| `file_deps` | `deps <file>` | File imports and importers |
| `impact_analysis` | `impact <file>` | Transitive file-level impact |
| `find_cycles` | `cycles` | Circular dependency detection |
| `module_map` | `map` | Most-connected files overview |
| `fn_deps` | `fn <name>` | Function-level call chain |
| `fn_impact` | `fn-impact <name>` | Function-level blast radius |
| `symbol_path` | `path <from> <to>` | Shortest path between two symbols |
| `context` | `context <name>` | Full function context |
| `symbol_children` | `children <name>` | Sub-declaration children (parameters, properties, constants) |
| `explain` | `explain <target>` | Structural summary |
| `where` | `where <name>` | Symbol definition and usage |
| `diff_impact` | `diff-impact [ref]` | Git diff impact analysis |
Expand All @@ -597,8 +596,7 @@ codegraph mcp --repos "myapp,lib" # Restricted repo list
| `hotspots` | `hotspots` | Structural hotspot detection |
| `node_roles` | `roles` | Node role classification |
| `co_changes` | `co-change` | Git co-change analysis |
| `execution_flow` | `flow` | Execution flow tracing |
| `list_entry_points` | `flow --entry-points` | Framework entry point detection |
| `execution_flow` | `flow` | Execution flow tracing and entry point detection |
| `complexity` | `complexity` | Per-function complexity metrics |
| `communities` | `communities` | Community detection & drift |
| `manifesto` | `manifesto` | Rule engine pass/fail |
Expand All @@ -608,6 +606,9 @@ codegraph mcp --repos "myapp,lib" # Restricted repo list
| `triage` | `triage` | Risk-ranked audit queue |
| `check` | `check` | CI validation predicates |
| `branch_compare` | `branch-compare` | Structural diff between refs |
| `ast_query` | *(MCP only)* | Search stored AST nodes (calls, literals, new, throw, await) |
| `cfg` | *(MCP only)* | Intraprocedural control flow graph for a function |
| `dataflow` | *(MCP only)* | Data flow edges or data-dependent blast radius |
| `list_repos` | `registry list` | List registered repos (multi-repo only) |

### Server Modes
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/recommended-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ claude mcp list

Enable `--multi-repo` to let the agent query any registered repository, or use `--repos` to restrict access to a specific set of repos.

The server exposes 30 tools (31 in multi-repo mode): `query_function`, `file_deps`, `impact_analysis`, `find_cycles`, `module_map`, `fn_deps`, `fn_impact`, `symbol_path`, `context`, `explain`, `where`, `diff_impact`, `semantic_search`, `export_graph`, `list_functions`, `structure`, `hotspots`, `node_roles`, `co_changes`, `execution_flow`, `list_entry_points`, `complexity`, `communities`, `manifesto`, `code_owners`, `audit`, `batch_query`, `triage`, `check`, `branch_compare`, and `list_repos` (multi-repo only). See the [AI Agent Guide MCP reference](./ai-agent-guide.md#mcp-server-reference) for the full tool-to-CLI mapping table.
The server exposes 31 tools (32 in multi-repo mode): `query`, `file_deps`, `impact_analysis`, `find_cycles`, `module_map`, `fn_impact`, `context`, `explain`, `where`, `diff_impact`, `semantic_search`, `export_graph`, `list_functions`, `structure`, `hotspots`, `node_roles`, `co_changes`, `execution_flow`, `complexity`, `communities`, `manifesto`, `code_owners`, `audit`, `batch_query`, `triage`, `check`, `branch_compare`, `ast_query`, `cfg`, `dataflow`, `symbol_children`, and `list_repos` (multi-repo only). See the [AI Agent Guide MCP reference](./ai-agent-guide.md#mcp-server-reference) for the full tool-to-CLI mapping table.

### CLAUDE.md for your project

Expand Down
Loading