rag-your-code

A local code-search plugin that builds an index of functions, methods, and classes across Python and 14 other programming languages. It also records where each result came from and can follow code relationships such as calls, imports, and containment.

In plain words
What is it for?
Use it to search a local codebase, understand how parts of the code connect, and provide structured search results to coding agents through JSON lines.
Why use it?
It helps an agent find relevant code in a large codebase without sending the code to a network service. Results include file locations, line ranges, matched terms, and source details for easier checking.

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

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-your-code 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 yesterday.

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 · 46 lines

What it actually says

{
  "name": "rag-your-code",
  "owner": {
    "name": "rag-your-code contributors"
  },
  "homepage": "https://github.com/skymanbp/rag-your-code",
  "repository": "https://github.com/skymanbp/rag-your-code",
  "metadata": {
    "description": "Single-plugin marketplace for the rag-your-code local codebase RAG index.",
    "version": "1.5.2"
  },
  "plugins": [
    {
      "name": "rag-your-code",
      "source": "./",
      "description": "Local, explainable codebase RAG for coding agents. Indexes functions, methods and classes across Python and 14 other languages with no network calls and no runtime dependencies; every result carries a file, a line range, its matched terms and its source. Adds bounded graph expansion over calls/imports/contains edges and a JSON-lines agent protocol.",
      "version": "1.5.2",
      "author": {
        "name": "rag-your-code contributors"
      },
      "license": "MIT",
      "homepage": "https://github.com/skymanbp/rag-your-code",
      "repository": "https://github.com/skymanbp/rag-your-code",
      "keywords": [
        "claude-code",
        "plugin",
        "rag",
        "code-search",
        "retrieval",
        "indexing",
        "graphrag",
        "offline",
        "explainable"
      ],
      "category": "search",
      "tags": [
        "claude-code",
        "plugin",
        "retrieval",
        "code-search",
        "offline"
      ]
    }
  ]
}
Files

What ships with it

1 file beside marketplace.json in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 46 lines scan A 868b5d28b55a

Subscribe to this mod's changes

rag-your-code is a plugin published in the GitHub repository skymanbp/rag-your-code (1 stars, last pushed 6d 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-31.