better-code-review-graph

A codebase knowledge graph that records relationships between code elements and supports semantic search and call-graph lookup. A call graph shows which functions or modules call one another.

In plain words
What is it for?
Use it to support code reviews, search for related code, trace callers and callees, and inspect how changes may affect other parts of a codebase.
Why use it?
It helps an agent find relevant code and understand dependencies without loading an entire repository into its context.

Plugin for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Claude Code
/plugin marketplace add n24q02m/claude-plugins
agentmods
npx agentmods add plugins/n24q02m/claude-plugins/better-code-review-graph
Clone the repo
git clone --depth 1 https://github.com/n24q02m/claude-plugins

Made for: Claude Code.

Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. Scan, not verified.
Origin 98% copy Near-identical to another mod in the catalogue.
Security

Grade A, and why

better-code-review-graph scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

98% identical to better-code-review-graph — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/better-code-review-graph/.claude-plugin/plugin.json · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

{
  "name": "better-code-review-graph",
  "description": "Knowledge graph for token-efficient code reviews -- semantic search and call-graph resolution across your codebase.",
  "version": "3.22.0",
  "userConfig": {
    "EMBEDDING_MODELS": {
      "type": "string",
      "title": "Embedding model selection (optional)",
      "description": "CSV 'provider/model,provider/model'; the current runtime selects the first entry and infers its provider from the prefix. Empty = local fastretrieval registry. Example: jina_ai/jina-embeddings-v5-text-small",
      "required": false
    },
    "LOCAL_EMBEDDING_MODEL": {
      "type": "string",
      "title": "Local embedding model (optional)",
      "description": "Built-in fastretrieval model ID, or a local directory containing fastretrieval-manifest.json. External IDs require LOCAL_EMBEDDING_DIM.",
      "required": false
    },
    "LOCAL_EMBEDDING_DIM": {
      "type": "number",
      "title": "Local embedding dimension",
      "description": "Required output dimension for an external LOCAL_EMBEDDING_MODEL ID without a manifest.",
      "required": false
    },
    "LOCAL_EMBEDDING_MODEL_FILE": {
      "type": "string",
      "title": "Local embedding model file",
      "description": "ONNX file path inside a manifest-backed local artifact directory.",
      "required": false
    },
    "LOCAL_EMBEDDING_POOLING": {
      "type": "string",
      "title": "Local embedding pooling",
      "description": "Explicit pooling for an external ID without a manifest: CLS, MEAN, LAST_TOKEN, or DISABLED.",
      "required": false
    },
    "LOCAL_EMBEDDING_NORMALIZE": {
      "type": "boolean",
      "title": "Normalize local embeddings",
      "description": "Apply explicit L2 normalization for an external ID without a manifest.",
      "required": false
    },
    "SUMMARY_MODELS": {
      "type": "string",
      "title": "Summarizer model chain (optional)",
      "description": "CSV 'provider/model,...' for the graph summarize action

Read the full file on GitHub · 107 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 107 lines scan A 4f96a4c3d836

Subscribe to this mod's changes

better-code-review-graph is a plugin published in the GitHub repository n24q02m/claude-plugins (3 stars, last pushed 2d ago), licensed Apache-2.0. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. It is 98% identical to better-code-review-graph, differing in 4 lines, and is treated as a copy.