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
Copy file name to clipboardExpand all lines: README.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,6 +116,41 @@ The key question is: **can you rebuild your graph on every commit in a large cod
116
116
|[Nx graph](https://nx.dev/)| Monorepo project-level dependency graph | Requires Nx workspace, project-level only (not file or function) |
117
117
|[pyan](https://github.com/Technologicat/pyan) / [cflow](https://www.gnu.org/software/cflow/)| Function-level call graphs | Single-language each (Python / C only), no persistence, no queries |
118
118
119
+
### Codegraph vs. Narsil-MCP: How to Decide
120
+
121
+
If you are looking for local code intelligence over MCP, the closest alternative to `codegraph` is [postrv/narsil-mcp](https://github.com/postrv/narsil-mcp). Both projects aim to give AI agents deep context about your codebase, but they approach the problem with fundamentally different philosophies.
122
+
123
+
Here is a cold, analytical breakdown to help you decide which tool fits your workflow.
124
+
125
+
#### The Core Difference
126
+
127
+
***Codegraph is a surgical scalpel.** It does one thing exceptionally well: building an always-fresh, function-level dependency graph in SQLite and exposing it to AI agents with zero fluff.
128
+
***Narsil-MCP is a Swiss Army knife.** It is a sprawling, "batteries-included" intelligence server that includes everything from taint analysis and SBOM generation to SPARQL knowledge graphs.
***You want to optimize AI agent reasoning.** Large Language Models degrade in performance and hallucinate when overwhelmed with choices. Codegraph’s tight 13-tool surface area ensures agents quickly understand their capabilities without wasting context window tokens.
144
+
***You are concerned about supply chain attacks.** To support 90 tools, SBOMs, and neural embeddings, a tool must pull in a massive dependency tree. Codegraph keeps its dependencies minimal, dramatically reducing the risk of malicious code sneaking onto your machine.
145
+
***You want deterministic blast-radius checks.** Features like `diff-impact` are built specifically to tell you exactly how a changed function cascades through your codebase before you merge a PR.
146
+
***You value a strong standalone CLI.** You want to query your code graph locally without necessarily spinning up an AI agent.
147
+
148
+
#### Choose Narsil-MCP if:
149
+
150
+
***You want security and code intelligence together.** You dont want a separated MCP for security and prefer an 'all-in-one solution.
151
+
***You use niche languages.** Your codebase relies heavily on languages outside of Codegraph's core 11 (e.g., Fortran, Erlang, Zig, Swift).
152
+
***You are willing to manage tool presets.** Because 90 tools will overload an AI's context window, you don't mind manually configuring preset files (like "Minimal" or "Balanced") to restrict what the AI can see depending on your editor.
0 commit comments