/ai-agent-skills:code-knowledge-graph-tools-for-ai-agentsfrom ai-agent-skills
Compares GitNexus, Graphify, and CodeGraph — tools that precompute code knowledge graphs exposed via MCP to AI agents, reducing token usage from repeated grep/file-read exploration.
Ships in ai-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
An AI coding agent without any precomputed structural index explores a
codebase the same slow way every time: repeated grep, file reads, and
directory listings to reconstruct facts (what calls this function, what
would break if I change this type, what's the blast radius of this file)
that are stable properties of the code and don't need to be rediscovered on
every session. Code-knowledge-graph tools solve this by parsing the
codebase once into a structural graph (or graph-like index) — call graphs,
type relationships, module dependencies — and exposing queries over that
graph to the agent via MCP tools, so a question like "what depends on this
function" becomes one precomputed lookup instead of a multi-step
grep-and-read exploration the agent has to redo from scratch each time.
This is a distinct concern from a RAG pipeline's semantic retrieval over
document/code text
(rag-pipeline-design) and from operating
a general-purpose vector database
(vector-database-operations-pinecone-weaviate-milvus):
a code knowledge graph indexes structure (calls, references, definitions,
dependencies), not just embedding-similar text chunks, though some of these
tools combine both. This skill compares three current tools in this space —
GitNexus, Graphify, and CodeGraph — on architecture, language coverage,
query model, and licensing, and covers choosing between them and wiring the
one you pick into an agent via MCP
(mcp-server-development covers
building an MCP server generally; this skill covers consuming these three
specific pre-built ones).
npx availability for GitNexus (npx gitnexus analyze && npx gitnexus setup).uv Python package/tool manager for Graphify (uv tool install graphifyy)..gitnexus/ directory in the
repo; Graphify's and CodeGraph's index storage location should be
confirmed against each tool's current documentation before assuming a
fixed path.faster-whisper transcription setup for video content — this is a
heavier prerequisite than pure source-code parsing and should be scoped
in before enabling it on a large corpus of recorded content.Understand what each tool actually indexes and how, before choosing:
.gitnexus/ directory in the
repository. It exposes 17 MCP tools for queries like impact-radius,
call-chain, and blast-zone analysis — i.e. the query surface is
deliberately broad and granular (many narrow tools rather than one
general one).faster-whisper, using the user's own configured AI model as part of
ingestion). It clusters the resulting structure using Leiden
community detection (a graph-clustering algorithm that groups
densely-connected nodes into communities), and exposes a CLI-style
query surface: graphify query, graphify path, graphify explain.codegraph_explore, and includes a live file-watcher that
auto-syncs the index as files change, rather than requiring a manual
re-index step.Install and index the codebase with the chosen tool:
# GitNexus
npx gitnexus analyze && npx gitnexus setup
# Graphify
uv tool install graphifyy
graphify query "..." # query commands available after install/index
# CodeGraph — consult the current release for the exact install command;
# its file-watcher then keeps the SQLite/FTS5 index in sync automatically
Wire the tool's MCP server into your agent host. All three are designed to be consumed by an MCP-compatible agent — the exact client config (where you register the server command) is client-specific (Claude Code, Cursor, Gemini CLI, GitHub Copilot each have their own MCP config location); see mcp-server-development for the general client/server wiring pattern these tools' own MCP servers follow.
Match the query granularity to the tool you chose. GitNexus's 17
distinct MCP tools mean an agent (or you, reviewing its tool calls)
should expect fairly specific, purpose-named queries (e.g. a dedicated
impact-radius tool vs. a dedicated call-chain tool) rather than one
general-purpose entry point. CodeGraph inverts this: a single
codegraph_explore tool is the primary surface, so most exploratory
questions route through it rather than a large discrete toolset — fewer
tool names for the agent to choose between, at the cost of a less
explicitly named query surface. Graphify sits outside the MCP-tool-count
framing entirely for its documented interface, exposing query/path/
explain as CLI commands.
Decide before adoption whether commercial use is in scope, since this changes which tools are even eligible:
If the corpus includes non-code material (design docs, PDFs, recorded
architecture walkthroughs), Graphify is the only one of the three with
documented ingestion for that content type (via the user's AI model plus
local faster-whisper transcription for video) — GitNexus and CodeGraph
are scoped to source-code parsing.
If continuous freshness matters more than query breadth, CodeGraph's live file-watcher auto-sync is a meaningful operational difference: the index updates as files change without a separate manual re-index step, which matters for an agent working against a codebase that's being actively edited in the same session (including by the agent itself).
Where a measured before/after comparison exists, use it, and don't invent numbers for tools where it doesn't. CodeGraph publishes a measured impact across 7 real-world repositories: 89% fewer tool calls, 60% lower cost, and 69% fewer tokens versus agents operating without any such index. No comparable measured figures are given here for GitNexus or Graphify — do not assume or restate CodeGraph's numbers as if they apply to the other two tools; if a similar before/after comparison matters for your decision, run it yourself against your own codebase and agent workflow rather than assuming parity.
Symptom: A team adopts GitNexus for a commercial product's codebase without checking licensing, then discovers during a compliance review that commercial use requires a paid tier. Fix: Check the license (PolyForm Noncommercial 1.0.0) before adoption, not after — this is exactly the kind of license-compliance gap a dependency/SCA license policy should catch; treat it the same as any other non-permissive license finding in software-composition-analysis-sca rather than discovering it downstream.
Symptom: An agent given access to a code-graph tool's MCP server still falls back to grep/file-read exploration for structural questions the graph could answer directly, so tool-call/token savings don't materialize. Fix: Check that the tool's description in the MCP tool list makes clear when to prefer it over manual search (per the tool-schema clarity guidance in mcp-server-development) — an ambiguous or under-described tool name is often the reason a model defaults to familiar grep/read behavior instead.
Symptom: Impact-radius or blast-zone query results look stale or clearly wrong after a large refactor. Fix: Confirm the index has actually been rebuilt/re-synced since the refactor — GitNexus and Graphify require an explicit re-run of their analyze/index step unless documented otherwise for your version; CodeGraph's file-watcher should catch this automatically, but confirm it's actually running (not just installed) if results still look stale.
Symptom: Graphify's documentation/PDF/video ingestion is enabled
against a large archive of recorded meetings, and ingestion takes far
longer and costs far more (in AI-model calls) than expected.
Fix: This ingestion path uses local faster-whisper transcription
plus the user's own configured AI model, so cost and time scale with the
volume of non-code content processed — scope it to the specific documents
or recordings that actually matter to the agent's task rather than
ingesting an entire archive by default.
Symptom: A team assumes CodeGraph's published 89% fewer tool calls / 60% lower cost / 69% fewer tokens figures also describe GitNexus or Graphify's expected impact, and sets a similar expectation for those tools. Fix: Those figures are specific to CodeGraph's own measurement across 7 real-world repositories versus agents with no index at all — there is no equivalent published figure here for GitNexus or Graphify; if a before/after comparison matters for the decision, measure it directly against your own codebase and agent workflow rather than assuming another tool's published number transfers.
Scenario: A team is choosing a code-knowledge-graph tool for an AI coding agent that works across a polyglot monorepo (Go, TypeScript, Python, plus some Rust services), with two decision factors: (1) the company's main product is commercial, so licensing matters, and (2) the agent frequently needs impact-radius answers ("what breaks if I change this function") while actively refactoring in the same session.
Evaluation:
GitNexus — 14 languages (covers Go/TS/Python/Rust if all 14 include them;
verify each specific language is on the list), 17 MCP tools
including dedicated impact-radius/call-chain/blast-zone
queries, backed by LadybugDB in .gitnexus/.
License: PolyForm Noncommercial 1.0.0 — BLOCKS use on this
commercial product without purchasing the paid enterprise
tier. Flagged to legal/procurement before proceeding further.
Graphify — 36+ languages, widest coverage, plus doc/PDF/video ingestion
this team doesn't currently need. Leiden clustering,
query/path/explain CLI. License: Apache-2.0 / MIT — no
commercial-use restriction.
CodeGraph — 20+ languages, single codegraph_explore MCP tool, SQLite+FTS5
index, live file-watcher auto-sync — directly addresses the
"actively refactoring in the same session" requirement since
the index doesn't go stale mid-session. License: MIT — no
commercial-use restriction. Published measured impact (89%
fewer tool calls, 60% lower cost, 69% fewer tokens across 7
repos) is the only one of the three tools with a stated
before/after figure, though the team notes this was CodeGraph's
own measurement, not an independent benchmark, and plans to
spot-check it against their own agent workflow before relying
on it as a hard expectation.
Decision: GitNexus is eliminated on licensing alone for this commercial codebase. Between Graphify and CodeGraph, the team picks CodeGraph for this use case specifically because of the live file-watcher (matching the active-refactor requirement) and the permissive MIT license, while noting Graphify's wider language coverage and non-code ingestion would make it the better fit if the agent's task set expanded to include querying design docs alongside code.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin ai-agent-skills20 skills in this plugin
/agent-architecture-designGuides designing the control loop, state/memory model, and tool boundaries for an LLM-driven agent. Use when a user asks to "design an agent architecture," choose between a ReAct loop / plan-and-execute / finite-state agent, decide on single-agent vs multi-agent decomposition, define how an agent should manage state and memory across turns, or review whether an existing agent's control flow is safe to run unattended.
/agent-bad-response-triage-and-root-cause-classificationGuides triaging a single reported bad, wrong, or harmful agent response: reproducing it deterministically and classifying the root cause into one of five buckets — prompt issue, tool failure, retrieval issue, model behavior change, or genuine edge case — so the fix targets the actual cause instead of the symptom. Use when a user asks to "investigate this bad agent response," "why did the agent say/do that," "triage this reported hallucination/harmful output," "figure out if this is a prompt bug or a model regression," or files an incident about a single problematic agent interaction that needs root-causing before a fix ships.
Other plugins' skills for the same job