claudecodex

codebase-kg

Builds, maintains, and serves a per-repo code graph — a committed SQLite map of any codebase (nodes = components, symbol anchors = where they live, edges = relationships) so an agent can orient and find code without re-deriving the map every session. Constant-time load and indexed full-text search at any size; dangling edges and inconsistent data are impossible to write, not merely reported. Language-agnostic. Cross-codebase parity linking tracks feature gaps between paired repos (e.g. an iOS app and its Android port). A search gate points the agent at the graph before it greps; the commit check advises, and the push check blocks only on stale mapped files.

0 on GitHubby Alexk413xv0.16.0LicenseRef-No-Resale-1.0updated yesterday

Not in a marketplace yet, so it loads for one session with --plugin-dir.

Plugin codebase-kg in Alexk413x/codebase-kg. Commands read from the repo's manifest — yesterday.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Skills (6)

  • audit

    Deep, multi-agent accuracy sweep of a code graph. It partitions the graph, checks each node's anchors and claims against current source, and reports STALE / MISSING / INACCURATE nodes without editing anything. Use when the user asks to "audit the code graph", "is the graph telling the truth", "are t

  • link

    Sets up and maintains parity between two codebases' graphs, such as an iOS app and its Android port. It reads both graphs and both source trees, then writes reciprocal counterpart, parity and divergence fields. Use when the user asks to "link two code graphs", "set up parity between iOS and Android"

  • query

    Finds and explains code in a repo that has a knowledge/code_graph.db. It answers where code lives from the committed graph, then reads the anchored source to confirm what the code does now. Use when the user asks "where does X live", "what handles X", "what depends on X", "how is X wired", "show me

  • refresh

    Re-derives the affected nodes of an existing code_graph.db against current source and rebuilds the committed database. This skill writes the graph. Use when the user asks to "refresh the code graph", "update the KG", "re-sync code_graph.db with the code" or says "the graph is stale", after shipping

  • setup

    Wires codebase-kg into the current repo in one pass. It installs pre-commit and pre-push staleness checks, the textconv driver that makes the committed graph readable in git diffs, and a committed install.sh so every other clone gets the same wiring from one command. It is idempotent, leaves existin

  • validate

    Fast, deterministic drift check on a repo that has a code graph. It reports anchors that no longer resolve, source files no node covers, mapped files changed since the graph was built, and broken or one-way counterpart and external links. Advisory; it blocks nothing. Use when the user asks to "valid

Hooks (30)

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_push_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_push_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PreToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_search_gate.cmd"; exit $LASTEXITCODE

  • PostToolUse

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_post_edit_check.cmd"; exit $LASTEXITCODE

  • SessionEnd

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_session_end.cmd"; exit $LASTEXITCODE

  • SessionStart

    . "${CLAUDE_PLUGIN_ROOT}/mcp/launch/run/kg_server_start.cmd"; exit $LASTEXITCODE

View source on GitHub

Similar plugins

Comprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review

1 command · 3 agents

anthropics/claude-code 155,476

claude-mem

claudecodex

Persistent memory for Claude Code: the next session starts where the last one left off.

29 skills · 1 MCP server · hooks

thedotmack/claude-mem 116,618

AI-powered codebase understanding — analyze, visualize, and explain any project

9 skills · 10 agents · hooks

Egonex-AI/Understand-Anything 92,410

Knowledge graph construction — entity extraction, relation mapping, and pathfinder graph traversal

2 skills · 1 command · 1 agent

ruvnet/ruflo 81,589

Perform AI code review on Git diffs — supports workspace changes, branch ranges, and single commits with concurrent per-file analysis, codebase search, and deep context-aware review.

2 commands

alibaba/open-code-review 50,068

gitnexus

claudecodex

Code intelligence powered by a knowledge graph. Provides execution flow tracing, blast radius analysis, and augmented search across your codebase.

12 skills · 1 MCP server · hooks

abhigyanpatwari/GitNexus 48,482

Maintain codebase-kg?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex pluginslisted