Repowise for Claude Code

Claude stops guessing about your codebase.

One plugin gives Claude the map of your repository: who calls what, what changes together, which decisions govern a file and what an edit reaches. It reads less, answers with citations, and hears about a risky file before it edits one.

  • One plugin install
  • No API key needed
  • Runs on your machine
  • Ten MCP tools
claude · ~/payments

> Make refund webhooks safe to retry

repowise · get_answer("where are webhook retries handled?")

payments/hooks.py:41-58 · ledger.py:12 · cited

repowise · get_risk(payments/hooks.py)

reaches 6 files · 2 with no test · moves with ledger.py

Edit payments/hooks.py

[repowise] payments/hooks.py is governed by a standing decision: Idempotent by event id

[repowise] payments/hooks.py has been bug-fixed 4x in the last 6 months, last 9 days ago (bug magnet).

Lens · change review

Tests to run: tests/test_hooks.py, tests/test_replay.py, inferred from the dependency graph, not measured

An illustrative Claude Code turn on a sample repository. The notices are worded as the plugin's hooks and Lens write them.

What changes

Less hunting. More of the turn spent on the change.

Without an index, Claude rebuilds its picture of your repository on every task: grep, open, read, guess. Repowise builds that picture once, offline, and hands Claude the part it needs.

Stops guessing

Answers come from the index, with citations.

Claude asks who calls a function, what changes with a file and why the code is shaped this way, and gets an answer that names the file and line it came from.

Reads less

Fewer greps, fewer whole-file reads.

A triage card instead of a file dump, one symbol's exact bytes instead of the whole module, and command output with the noise taken out before Claude reads it.

Edits safer

It hears about a risky file before it edits one.

Before an edit it checks what the file reaches and which tests guard it. During one, a bug magnet or a standing decision gets a one-line notice. After the turn, Lens shows what changed.

31.6%

fewer output tokens for the agent, on the same questions.

n = 43 · p = <0.0001 · django/django at a single pinned commit · 2026-08

The MCP server

Ten tools Claude calls instead of grepping.

Registered the moment the plugin is enabled. Each one answers from the index of your repository: the graph, git history, health and the decisions behind the code.
get_answer
One-call cited Q&A over the documentation, with a calibrated confidence score.
get_context
A triage card for files, modules, or symbols: summary, signatures, hotspot bit, governing decisions.
get_symbol
Raw source bytes for one indexed symbol with exact, verified line bounds.
search_codebase
Hybrid full-text and semantic search over the documentation, routed by query shape.
get_why
Architectural decision archaeology: why the code is shaped this way, with lineage.
get_risk
Hotspot score, dependents, co-change partners, and PR-mode break/test directives.
get_change_risk
Pre-merge defect-risk score for a commit or diff range, computed from its shape alone.
get_health
Per-file code-health scores across three pillars, plus ranked refactoring targets.
get_dead_code
Unreachable files, unused exports, and zombie packages, tiered by confidence.
get_overview
Architecture map, module list, entry points, and tool recipes. First call on any repo.

The rest of the plugin

Context that arrives before Claude asks for it.

Hooks, skills and a generated CLAUDE.md put the right fact in front of Claude at the moment it matters. The hooks make no model calls and no network calls, and stay silent unless they have something to add.
  1. Context at session start

    Whether the index is current, and the standing decisions most relevant to the files you are working on, under a hard 400-token cap. When nothing clears the bar, nothing is injected.

  2. Warnings at edit time

    When Claude edits a file governed by a decision, or one with a repeated bug-fix history, it gets one line saying so, once per session. Guidance that stops being true stops being injected.

    [repowise] payments/hooks.py has been bug-fixed 4x in the last 6 months, last 9 days ago (bug magnet).

  3. Help on searches and reads

    A zero-result grep gets the closest indexed symbol, a flood of matches is ranked by graph centrality, and a wrong path is answered with the one indexed file of that name.

  4. Skills and slash commands

    Six skills route the work without being asked: exploring the codebase, checking before an edit, reviewing a change, code health, architectural decisions and dead-code cleanup. Slash commands cover the rest.

    /repowise:why /repowise:risk /repowise:health /repowise:dead-code

  5. distill for noisy commands

    Test runs, builds, diffs and logs are compressed errors-first before Claude reads them. Every failure survives, the exit code is kept, and repowise expand restores anything cut.

    [repowise#a1b2c3d4e5f6: 230 lines omitted (~6.1k tokens); restore: repowise expand a1b2c3d4e5f6]

  6. A CLAUDE.md written from the index

    repowise init writes CLAUDE.md and AGENTS.md from the real index: architecture, key modules, entry points, the files that need care and the standing decisions. It keeps them current, so Claude starts informed before its first tool call.

Lens

See what Claude reads and changes, while it works.

Lens is the part of the plugin you see: a map of the repository lit by Claude's turn, a review under each turn that edits files, and a Flow dashboard of what an edit reaches. It runs locally and makes no model calls of its own.
Lens in Claude Code on Django: the map lights query.py in amber and its 12 importers in plum, then the 248 importers of django/conf/__init__.py, and Flow lists what to check before accepting
Lens in Claude Code on Django.
  1. A band above the prompt

    It stays empty until there is something to say. When the index is behind your checkout, or something stops Lens from showing everything, it names the command to run. Lens shows the command and never runs it for you.

    Lens map needs the local server: repowise serve --no-ui

  2. A review after each turn that edits files

    When Claude edits files, Lens reviews the working tree and puts one row under Claude's answer: what the change did to code health, the tests to run, and whether another branch edits the same files. It says whether the tests are measured or inferred from the dependency graph. A button can send Claude the tests to run, and nothing is sent unless you press it.

    Change review (working tree, <N> changed files) · Health: no new findings in all <N> changed files · Tests to run: <N> tests, inferred from the dependency graph, not measured

  3. The /lens pane and its Flow dashboard

    Flow adds up each turn: what an edit reaches that Claude did not look at, where Claude's context came from, and what each Repowise call answered and how. The pane also has tabs for the map, for asking the index a question, and for a recap of the session.

    BEFORE YOU ACCEPT · <N> direct importers; Claude opened <N>

  4. A map of the repository lit by Claude's turn

    Every file is a quiet tile. As Claude works, the files it searches, opens and edits light up, and the files that import an edit ripple out from it. A story strip under the map says in words what happened, so the map reads without colour.

    SEARCHED · OPENED · EDITED · REACHES

  5. Inspect and zoom from the keyboard

    Step through the files the turn lit, zoom into the folder holding the selection, clear the selection and switch to health colours. The map needs the local server. Without it, the Map tab shows the setup hint.

    j next · k previous · z zoom in · u up · x clear · h Health colours: off

Wording as Lens draws it; <N> is filled from your index.

It makes no model calls of its own
Lens makes no model calls of its own and reads the local index. The one case to know about is Ask: a question that does not start with "why" goes to get_answer, which may use the model your repository already configures. The Recap counts those replies.
It never blocks Claude
Lens never denies, holds, rewrites or approves Claude's tool calls. Every call and its result pass through unchanged.
It sends Claude nothing unless you press a button
Run tests and Brief Claude submit a prompt you can see in the transcript. Why only fills the Ask field. Your prompts and the compaction are left alone.
It talks only to local servers
Lens talks only to the plugin's own server and to the local Repowise server at a loopback address. It runs read-only git commands, writes no files in your repository and shows setup commands for you to run. The Repowise servers it talks to send anonymous usage telemetry unless you turn it off.
Read the Lens guide

Install

Install inside Claude Code, then give it a task.

Prefer a terminal? repowise init registers the same MCP server and hooks for Claude Code.

pip install repowise
repowise init

Requirements

  • Python 3.11 or later and git, for the repowise CLI.
  • An indexed repository; /repowise:init builds it.
  • For Lens, Claude Code 2.1.287 or later. Older versions load the rest of the plugin and skip Lens.
  • For the Lens map, repowise serve --no-ui running on this machine for this repository.
  1. Install the plugin

    Run these inside Claude Code. The MCP server, hooks, skills and Lens all ship in the plugin.

    /plugin marketplace add repowise-dev/repowise
    /plugin install repowise@repowise
  2. Set up and index

    Claude walks you through it: installing the repowise CLI if you need it, choosing a mode and indexing the repository. The default needs no API key and makes no model calls.

    /repowise:init
  3. Start the local server for the Lens map

    Optional, in a terminal in your repository. Without it, everything except the map and the savings row still works.

    repowise serve --no-ui

Hosted MCP

The same index in Claude.ai and Claude Desktop.

Index a repository on Repowise and Claude can use it anywhere you chat: on the web, on desktop and on mobile. It connects over OAuth, so there is no key to copy.

Claude.ai and Claude Desktop

  1. In Claude, open Customize, then Connectors, and add a custom connector.
  2. Paste your repository's server URL.
  3. Click Connect and approve access in the Repowise sign-in window.
https://api.repowise.dev/mcp/OWNER/REPO

On a Team or Enterprise plan, an organization owner adds the connector once for everyone.

Claude Code, against the hosted index

Mint a key in your settings and add the server with one command. A workspace URL answers across all of its repositories.

claude mcp add --transport http repowise \
  https://api.repowise.dev/mcp/OWNER/REPO \
  --header "Authorization: Bearer YOUR_API_KEY"
The same server also works inCursorWindsurfAny MCP client

FREQUENTLY ASKED

Questions people ask first

Do I need an API key?

No. The default setup makes no model calls and still builds the graph, git history, code health, dead code and a full wiki rendered from structure. A provider key changes who writes the wiki pages and turns on decision mining; with none configured, get_answer answers from local retrieval.

Does the plugin send my code anywhere?

The hooks make no model calls and no network calls; they read the local index and git. The MCP server reads the index in your repository's .repowise folder. Your model provider sees code excerpts only if you configure one. The CLI sends anonymous usage telemetry (command and tool names, coarse counts and timings, never code, paths or queries) unless you set DO_NOT_TRACK=1.

Does it work in Claude.ai or Claude Desktop?

Yes, through the hosted MCP server. Add a custom connector in Claude with your repository's URL and sign in; there is no key to copy. Claude Code can use the same hosted index with one claude mcp add command, or the local plugin.

Will the hooks slow Claude down or block it?

No. Each hook reads the local index, stays silent unless it has something to add, and exits quietly on any failure, so a broken environment never blocks Claude.

Does Lens send my code anywhere?

Lens itself does not. It talks only to the plugin's MCP server and the local Repowise server on a loopback address, and it makes no model calls of its own. An Ask question that does not start with "why" goes to get_answer, which may use the model your repository configures.

Where does Lens show up?

In Claude Code's terminal interface and the desktop app. Nothing from Lens appears in the VS Code chat panel, in claude -p, in the Agent SDK, in cloud sessions or in desktop sessions running in WSL. In those places the rest of the plugin works as before.

Can I turn parts of Lens off?

Yes. The plugin has settings for margin notes, squeeze rows, the change review and the Flow tab, plus two that start off: opening the map pane on its own, and health colours on the map.

Give Claude the map, then give it a task.

Two commands inside Claude Code, one to set up. Or start free on Repowise and connect Claude.ai to your hosted index.