rag-rat

A local code-intelligence index and MCP server for understanding a software repository. It provides search, code-symbol and relationship navigation, change-impact checks, Git and GitHub history, and a source-linked memory graph.

In plain words
What is it for?
Use it to search a repository, navigate symbols and code relationships, check what a change may affect, inspect Git or GitHub history, and retain source-linked project knowledge.
Why use it?
It helps an AI coding assistant find relevant code and understand how files and symbols are connected without relying only on plain text search.

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 cq27-dev/rag-rat
agentmods
npx agentmods add plugins/cq27-dev/rag-rat/marketplace
Clone the repo
git clone --depth 1 https://github.com/cq27-dev/rag-rat

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 original No closer match found in the catalogue.
Security

Grade A, and why

rag-rat 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.

.claude-plugin/marketplace.json · 22 lines

What it actually says

{
  "name": "rag-rat",
  "description": "rag-rat — local repo-intelligence index + MCP server for coding agents.",
  "owner": {
    "name": "Kristaps Karlsons",
    "url": "https://github.com/cq27-dev/rag-rat"
  },
  "plugins": [
    {
      "name": "rag-rat",
      "description": "Local repo-intelligence index + MCP server: semantic search, symbol/graph navigation, impact-surface preflight, git + GitHub papertrail, and a source-anchored memory graph.",
      "version": "0.23.0",
      "source": "./plugin",
      "category": "developer-tools",
      "license": "MIT",
      "homepage": "https://github.com/cq27-dev/rag-rat",
      "keywords": ["mcp", "code-intelligence", "semantic-search", "code-graph", "repo-memory"],
      "author": { "name": "Kristaps Karlsons" }
    }
  ]
}
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 · 22 lines scan A 7520e3500f85

Subscribe to this mod's changes

rag-rat is a plugin published in the GitHub repository cq27-dev/rag-rat (17 stars, last pushed 3d ago), licensed MIT. 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. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other plugins, from other repositories

pad

Talk to your project. Pad is local-first project management for developers and AI agents — this plugin gives Claude Code a conversational Pad skill, typed shortcuts (/pad:status, /pad:capture, /pad:onboard, /pad:connect, /pad:disconnect), and consent-gated live item-change notifications.

PerpetualSoftware/pad · not measured

tree-ring-memory

Local-first memory lifecycle, project bootstrap, and receipt-backed harness guidance for Claude Code using Tree Ring Memory v0.15+.

TerminallyLazy/Tree-Ring-Memory · not measured

cortex

Remembers your decisions, coding conventions, and debugging lessons across every Claude Code session. Persistent local memory for AI coding agents.

AdityaVG13/cortex · not measured

lians

Bitemporal memory for Claude Code with deterministic supersession, point-in-time recall, local MCP, erasure proofs, and tamper-evident history.

Lians-ai/Lians · not measured

memtrace-skills

Memtrace skills for codebase exploration, code search, relationship analysis, temporal evolution, blast radius impact, code quality, graph algorithms, API topology, GitHub PR code review, multi-agent fleet coordination (branch-scoped intents, conflict classification, and agent-judged Class C resolution), and…

syncable-dev/memtrace-public · not measured

dekko

Adds a /map command that programmatically scans the repository: every code file, function, parameter, type, return type, and the call relationships between functions. Writes MAP.md and map.json without spending model tokens on parsing.

aahlijia/dekko · not measured