You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add node role classification (entry/core/utility/adapter/dead/leaf)
Auto-classify every symbol based on fan-in/fan-out connectivity patterns
using adaptive median thresholds. Roles are computed during graph build
and stored in the DB (migration v5).
- classifyNodeRoles() in structure.js with median-based thresholds
- New `roles` CLI command with --role and --file filters
- New `node_roles` MCP tool (18 tools total)
- Role field surfaced in where/explain/context/stats/list-functions
- Dead code detection via `roles --role dead`
- Unit + integration tests for classification and queries
- Updated README, BACKLOG, and COMPETITIVE_ANALYSIS docs
Impact: 19 functions changed, 13 affected
Copy file name to clipboardExpand all lines: README.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ cd your-project
55
55
codegraph build
56
56
```
57
57
58
-
That's it. No config files, no Docker, no JVM, no API keys, no accounts. The graph is ready to query. Add `codegraph mcp` to your AI agent's config and it has full access to your dependency graph through 17 MCP tools.
58
+
That's it. No config files, no Docker, no JVM, no API keys, no accounts. The graph is ready to query. Add `codegraph mcp` to your AI agent's config and it has full access to your dependency graph through 18 MCP tools.
59
59
60
60
### Why it matters
61
61
@@ -79,6 +79,7 @@ That's it. No config files, no Docker, no JVM, no API keys, no accounts. The gra
79
79
| MCP / AI agent support |**Yes**| — |**Yes**|**Yes**|**Yes**|**Yes**|**Yes**| — |
@@ -94,7 +95,8 @@ That's it. No config files, no Docker, no JVM, no API keys, no accounts. The gra
94
95
|**⚡**|**Always-fresh graph**| Three-tier change detection: journal (O(changed)) → mtime+size (O(n) stats) → hash (O(changed) reads). Sub-second rebuilds even on large codebases |
95
96
|**🔓**|**Zero-cost core, LLM-enhanced when you want**| Full graph analysis with no API keys, no accounts, no cost. Optionally bring your own LLM provider — your code only goes where you choose |
96
97
|**🔬**|**Function-level, not just files**| Traces `handleAuth()` → `validateToken()` → `decryptJWT()` and shows 14 callers across 9 files break if `decryptJWT` changes |
97
-
|**🤖**|**Built for AI agents**| 17-tool [MCP server](https://modelcontextprotocol.io/) — AI assistants query your graph directly. Single-repo by default |
98
+
|**🏷️**|**Role classification**| Every symbol auto-tagged as `entry`/`core`/`utility`/`adapter`/`dead`/`leaf` — agents instantly know what they're looking at |
99
+
|**🤖**|**Built for AI agents**| 18-tool [MCP server](https://modelcontextprotocol.io/) — AI assistants query your graph directly. Single-repo by default |
98
100
|**🌐**|**Multi-language, one CLI**| JS/TS + Python + Go + Rust + Java + C# + PHP + Ruby + HCL in a single graph |
99
101
|**💥**|**Git diff impact**|`codegraph diff-impact` shows changed functions, their callers, and full blast radius — ships with a GitHub Actions workflow |
100
102
|**🧠**|**Semantic search**| Local embeddings by default, LLM-powered when opted in — multi-query with RRF ranking via `"auth; token; JWT"`|
@@ -141,7 +143,7 @@ After modifying code:
141
143
Or connect directly via MCP:
142
144
143
145
```bash
144
-
codegraph mcp #17-tool MCP server — AI queries the graph directly
146
+
codegraph mcp #18-tool MCP server — AI queries the graph directly
145
147
```
146
148
147
149
Full agent setup: [AI Agent Guide](docs/ai-agent-guide.md)·[CLAUDE.md template](docs/ai-agent-guide.md#claudemd-template)
@@ -161,11 +163,12 @@ Full agent setup: [AI Agent Guide](docs/ai-agent-guide.md) · [CLAUDE.md t
| 🏷️ |**Node role classification**| Every symbol auto-tagged as `entry`/`core`/`utility`/`adapter`/`dead`/`leaf` based on connectivity patterns — agents instantly know architectural role |
164
167
| 🔄 |**Cycle detection**| Find circular dependencies at file or function level |
Codegraph includes a built-in [Model Context Protocol](https://modelcontextprotocol.io/) server with 17 tools, so AI assistants can query your dependency graph directly:
411
+
Codegraph includes a built-in [Model Context Protocol](https://modelcontextprotocol.io/) server with 18 tools, so AI assistants can query your dependency graph directly:
406
412
407
413
```bash
408
414
codegraph mcp # Single-repo mode (default) — only local project
0 commit comments