Repository navigation
14 Claude Code Plugin
One command installs the MCP server, four hooks, the skill and two slash commands. The plugin is the Community edition — free, local, no licence file needed.
RAGRAF indexes a repository on the machine it runs on: a symbol tree, a call graph,
full-text search, vectors and the database schema parsed from migrations. Every answer
carries a path:line reference, so a claim can be checked instead of trusted.
/plugin marketplace add paulmann/RAGRAF
/plugin install ragraf@ragraf
Then, in the project you want indexed:
ragraf init . --name my-project
ragraf index -p <config>Requirements:
-
RAGRAF itself — a checkout (
RAGRAF_HOME, or a known location such asC:\AutoClaw\RAGRAF,~/RAGRAF,/opt/ragraf) or the package (pip install ragraf). The plugin ships the glue, not the indexer:plugin/scripts/ragraf_launcher.pyfinds the installation at start-up and prefers its.venv, so dependencies resolve. -
pythonon PATH — Claude Code starts the launcher with it.
Check what the plugin thinks it found:
python plugin/scripts/ragraf_launcher.py where| Component | What it does |
|---|---|
MCP server ragraf
|
tools mcp__plugin_ragraf_ragraf__ragraf_*: search, symbols, callers, impact, code, schema, write-check, freshness |
SessionStart hook |
adds one line to the session: corpus, revision, whether the index is fresh |
UserPromptSubmit hook |
the first prompt of a session becomes the task label in usage statistics |
PreToolUse hook |
before file search and reads, reminds the model to ask the index first (warn by default) |
Stop hook |
appends a per-task usage line: calls, facts, share with file:line
|
skill ragraf-core
|
when and how to use the index; what to do when it is stale |
/ragraf-status |
corpus state as a table |
/ragraf-task <name> |
name the current task so index calls are counted in it |
Measured with claude plugin details ragraf (Claude Code 2.1.316): 3 skills, 4 hooks,
1 MCP server, about 120 always-on tokens per session. Tool schemas are resolved at
runtime and are not counted.
Claude Code builds a plugin MCP tool name as
mcp__plugin_<plugin>_<server>__<tool>. For this plugin that is
mcp__plugin_ragraf_ragraf__ragraf_search — not mcp__ragraf__ragraf_search, which is
what a server registered directly in ~/.claude.json gets. Both forms are recognised by
the gate and by the skill: the plugin skill names the long form, the manual installation
names the short one.
| Included in Community | Requires a licence |
|---|---|
search, graph, schema, db-live, audit, documents
|
doc-ocr, doc-graph, exclude-management, shared-index, secret-broker, quality-loop (Pro) |
| MCP, hooks, skill, commands as above |
sso, siem-export, offline-license, attestation (Enterprise) |
Without a licence file the server runs as Community and refuses gated operations with a
message naming the edition — it does not degrade silently. Terms for paid tiers are in
EULA.md, shipped inside the plugin.
- Local stdio MCP subprocess: no listening port, no outbound traffic during search, embeddings computed locally.
- No telemetry by default; usage statistics stay in the local index database.
- The hooks do not read source code — they open the index, read the session id and the tool name, and write one JSON line back. The gate can advise or block a call; it cannot rewrite a command.
- Secret values are never indexed; they live in RAGRAF's local vault and are handed out only with a recorded reason.
- Hooks need a checkout (they run
tools/harness_gate.py). With a package-only installation the server, skill and commands work, and hooks say on stderr why they are skipped — a session is never broken by that. - The hook never reindexes: a full rebuild takes minutes. Freshness is reported and the
model is asked to call
ensurefirst. - The plugin does not grant itself permissions; allow
mcp__plugin_ragraf_ragraf__*inpermissions.allowif you do not want a prompt per tool call. - Directory submission is prepared (
claude plugin validate --profile directorypasses); publication is the owner's step.
- Manual installation without a plugin — 06 · MCP Integration
- Full operations list — 04 · Operations Reference
- Troubleshooting — 10 · Troubleshooting