repo-index

repo-index is an agent for Claude Code from SuperClaude-Org/SuperClaude_Framework. It costs 10 tokens per session (314 once invoked), scanned A, original, MIT.

A repository index assistant creates a compact briefing of a code repository. A repository is the project’s shared folder of source code, tests, documentation, configuration, and scripts.

In plain words
What is it for?
Use it to inspect project structure, find entry points and service boundaries, identify recently changed or risky files, and create or refresh project index files when needed.
Why use it?
It reduces the time and context needed to understand a codebase, especially at the start of a session or after major changes.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the superclaude plugin — 5 skills, 30 commands, 20 agents, 1 hook, 2 MCP servers shipped together

Good fit Use it to inspect project structure, find entry points and service boundaries, identify recently changed or risky files, and create or refresh project index files when needed.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/superclaude-org/superclaude_framework/repo-index
About the project

SuperClaude Framework is a configuration framework that organizes Claude Code into a structured development environment with specialized commands, AI agents, behavioral modes, and integrations. It is for developers who want guided workflows covering activities from brainstorming through deployment. The catalogue entries are its commands, agents, skills, instructions, integrations, settings, hooks, and plugin components.

SuperClaude-Org/SuperClaude_Framework · 23,873 stars · on GitHub · superclaude.netlify.app

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.

Clone the repo
git clone --depth 1 https://github.com/SuperClaude-Org/SuperClaude_Framework

Made for: Claude Code.

Or install superclaude, the plugin that ships this one along with the rest of its 5 skills, 30 commands, 20 agents, 1 hook, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for repo-index

README.md
[![agentmods](https://agentmods.dev/badge/agents/superclaude-org/superclaude_framework/repo-index.svg)](https://agentmods.dev/agents/superclaude-org/superclaude_framework/repo-index)
Your own site
<a href="https://agentmods.dev/agents/superclaude-org/superclaude_framework/repo-index"><img src="https://agentmods.dev/badge/agents/superclaude-org/superclaude_framework/repo-index.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 314 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00010 $0.00314
Opus 5 $0.00005 $0.00157
Sonnet 5 $0.00002 $0.00063
Haiku 4.5 $0.00001 $0.00031

Measured 9d ago against content hash 244018fd303b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

repo-index 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 9d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/superclaude/agents/repo-index.md · 31 lines

What it actually says

Repository Index Agent

Use this agent at the start of a session or when the codebase changes substantially. Its goal is to compress repository context so subsequent work stays token-efficient.

Core Duties

  • Inspect directory structure (src/, tests/, docs/, configuration, scripts).
  • Surface recently changed or high-risk files.
  • Generate/update PROJECT_INDEX.md and PROJECT_INDEX.json when stale (>7 days) or missing.
  • Highlight entry points, service boundaries, and relevant README/ADR docs.

Operating Procedure

  1. Detect freshness: if an index exists and is younger than 7 days, confirm and stop. Otherwise continue.
  2. Run parallel glob searches for the five focus areas (code, documentation, configuration, tests, scripts).
  3. Summarize results in a compact brief:
    📦 Summary:
      - Code: src/superclaude (42 files), pm/ (TypeScript agents)
      - Tests: tests/pm_agent, pytest plugin smoke tests
      - Docs: docs/developer-guide, PROJECT_INDEX.md (to be regenerated)
    🔄 Next: create PROJECT_INDEX.md (94% token savings vs raw scan)
    
  4. If regeneration is needed, instruct the SuperClaude Agent to run the automated index task or execute it via available tools.

Keep responses short and data-driven so the SuperClaude Agent can reference the brief without rereading the entire repository.

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. 9d ago First seen · 31 lines · 10 tokens per session scan A 244018fd303b

Subscribe to this mod's changes

repo-index is an agent published in the GitHub repository SuperClaude-Org/SuperClaude_Framework (23,873 stars, last pushed 18d ago), licensed MIT. It adds 10 tokens to every session and 314 once invoked, about $0.0001 per session on Opus 5. 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.