repo-intel
Claude Code plugin that installs codegraph
and graphify in a repository, keeps both graphs
fresh, and routes the agent to the right one. graphify's semantic extraction runs on an
LLM backend you choose (LiteLLM, Ollama, any OpenAI- or Anthropic-compatible endpoint)
instead of Claude Code subagents.
Install
/plugin marketplace add kolezka/marketplace
/plugin install repo-intel@kolezka
/reload-plugins
Then, in the repository: /repo-intel:setup, or by hand:
repo-intel doctor
repo-intel install # install or upgrade to latest: graphify via uv/pipx, codegraph via pnpm/npm,
# and import this plugin's CLAUDE.md from the global one
repo-intel config --backend litellm --model deepseek/deepseek-v4-flash
repo-intel setup # index, .gitignore, graphify git hooks, first build
repo-intel instructions # CLAUDE.md/AGENTS.md note so agents without this plugin use the graphs too
repo-intel migrate-hooks # dry run: old global hooks this plugin replaces
Requirements: git, jq, and uv/pipx plus pnpm/npm for the installs.
DeepSeek Harness
The dsh/ adapter imports the published claude-plugin-dsh runtime directly. Install
its dependencies with Bun before adding it to a DSH profile:
cd /abs/path/to/repo-intel/dsh && bun install --frozen-lockfile
dsh plugin --profile <profile> add file:/abs/path/to/repo-intel/dsh
Do not rely on dsh plugin add to install claude-plugin-dsh for you; that has not
been checked. To check what the adapter registers without a DSH profile:
bun x [email protected] inspect /abs/path/to/repo-intel
Do not run the package's sync or scaffold commands on this adapter: as of 0.2.1 they
write a vendored claude-compat.js, which this adapter no longer uses. To move to a newer
runtime, change the exact version in dsh/package.json, run bun install in dsh/ to
refresh dsh/bun.lock, then run node --test tests/dsh.test.mjs.
The adapter registers the repo-intel skills, the routing instructions and the PreToolUse
guard. It does not run the Claude Code SessionStart link hook. scripts/bump-version.sh
keeps dsh/package.json at the plugin version.
What the agent gets
Routing lives in claude/CLAUDE.md: codegraph for structure, graphify
for concepts, rg for literal text and complete call-site lists. repo-intel install (or
repo-intel install claude-md alone) links ${CLAUDE_CONFIG_DIR:-~/.claude}/repo-intel/CLAUDE.md
to the installed plugin's copy and adds a managed block to
${CLAUDE_CONFIG_DIR:-~/.claude}/CLAUDE.md that imports that link with @<path>. Re-running
replaces the block in place, backs up the file first, and edits through a symlink. A block
written by an older version, importing a versioned cache path, is rewritten to the link. If
a regular file sits where the link goes, install stops and changes nothing.
The link path has no version in it, so the import survives plugin updates. A SessionStart
hook repoints an existing link at the new version; it never creates one. Claude Code loads
memory before SessionStart hooks run, so the first session after an update may still read
the previous version's file (or nothing, if that directory is gone), and the next one reads
the new one. repo-intel doctor reports the link (ok, dangling, points elsewhere, or a
regular file) and whether the block imports it.
repo-intel doctor also reports a graphify graph as stale when docs changed since the
last repo-intel build (graphify's own git hook keeps code current).
Besides that link hook, there is a guard on PreToolUse Skill, Agent and Task. With a backend configured
it denies /graphify builds and graphify extraction subagents (also in a repo with no
graph yet) and points to repo-intel build. /graphify query, path and explain stay
allowed. repo-intel config --backend agent turns the guard off. It costs one sh and
one jq call for unrelated tools. There are no per-prompt or per-search hooks.
The global import covers your own sessions in every repo. The per-repo block below covers
everyone else. Where both exist, the agent sees the same advice twice, which is harmless.