Skip to content
FossShelf
Home / Categories / For Engineers

repowise

Codebase intelligence: MCP tools for agents, health scores for teams.

Replaces Codescene, Codeant Ai, Sonarcloud

8.16K starsAGPL-3.0reviewed 13 Aug 2026last commit 13 Nov 2026
Screenshot of repowise

Who it's for

AI coding teams using Claude Code, Cursor, or Codex

Teams whose agents guess at which files matter, change callers they never found, and generate diffs requiring lengthy reviews. repowise gives agents a pre-built dependency graph, decision records, and health scores via ten MCP tools, reducing output tokens 31.6% and tool calls from 7.2 to 3.8 in a measured benchmark.

Teams not yet using AI coding agents or MCP-compatible editors. The MCP tools are the primary value delivery mechanism; without an MCP client, only the CLI and web UI are available.

Solo developers auditing a complex or inherited codebase

A developer taking over an unfamiliar repo gets a dependency graph, file-level health scores with concrete refactoring plans (Extract Class, Break Cycle, Split File), ownership history, and a generated wiki in one pip install. The first index needs no API key.

Developers working on small or greenfield projects where the architecture is already well-understood. repowise's value grows with codebase complexity and age.

Platform engineers tracking ownership and bus factor

repowise computes ownership percentages and bus factor from full git blame across the org's codebase and surfaces co-change pairs that reveal hidden coupling. Portfolio health dashboards show which teams own the highest-risk files. The Teams plan at $20/seat/month covers a shared index and credit pool.

Teams on a single small repository with a stable, well-documented ownership structure.

Enterprise teams requiring air-gapped deployment

The enterprise tier supports on-premises deployment inside a private network with zero telemetry, no phone-home, BYO LLM or fully offline mode via Ollama. A commercial license removes the AGPL obligation and adds IP indemnification, a defensive patent grant, SAML/OIDC SSO, and SCIM provisioning.

Teams comfortable with AGPL-3.0 terms and a cloud-connected deployment. The enterprise tier addresses compliance, air-gap, or IP requirements; the self-hosted AGPL tier covers all other cases.

The problem

AI coding agents make teams fast at first, then slower. Agents grep through codebases to find relevant files, change functions with dozens of callers they never discovered, and generate diffs that senior engineers spend hours reviewing because nobody has a shared model of what the code does or why it is shaped that way. These are knowledge problems, not model problems. A repository's dependency graph, change history, architectural decisions, and code health signals are all computable ahead of time. Instead, agents rediscover them from scratch on every task: grep, read, re-read, forget. The exploration phase burns tokens and tool calls on work the next agent will repeat in full. Review becomes the bottleneck because generation got fast but confidence did not.

How it works

Ten MCP tools for agent context

Ten task-shaped MCP tools expose the codebase index to Claude Code, Cursor, Codex, and any MCP-compatible client. Tools are built around tasks rather than data entities: pass several targets in one call and get the complete context, dependency graph, health, and architectural decisions back in one response rather than chains of sequential file reads.

Defect-validated code health scoring

Every file is scored 1-10 by 49 deterministic detectors across three lenses: defect risk, maintainability, and static performance risk. The score is validated at ROC AUC 0.74 across 21 repositories and 9 languages, with repowise-flagged files containing 2.3x the defects of a leading commercial tool under the same review budget. No LLM calls; runs in under 30 seconds on a 3,000-file repo.

Architectural decision records

Decisions are mined from five sources: pull requests, inline markers, README archaeology, CLI captures, and documentation generation. Each decision is evidence-backed, traced to a verbatim source span, and attached to the files it governs. MCP tools deliver the decision to an agent or reviewer before a change is made rather than after.

Dependency graph across 18 languages

Tree-sitter ASTs across 18 languages resolve into a directed graph of imports, calls, inheritance, and co-changes. PageRank and betweenness centrality rank structurally load-bearing files, so blast radius from a planned change is computed rather than guessed. Route-to-handler edges span 22 frameworks.

Git intelligence: hotspots, ownership, and co-change pairs

Hotspots combine decayed churn against complexity to surface files accumulating risk. Ownership percentages and bus factor are computed from full git blame. Co-change pairs surface hidden coupling: files that move together across commits with no import between them. All signals filter out doc, test, and config commits so the counts mean what they say.

Command output distillation

The distill command compresses command output before an agent reads it, keeping errors first and exit code intact. On a pytest run it delivers 61% fewer tokens; on git log it reaches 89% fewer tokens. Every omission leaves an inline reference marker that the agent can expand on demand, so no information is lost.

Features

  • Ten MCP tools for agent context
  • Defect-validated code health scoring
  • Architectural decision records
  • Dependency graph across 18 languages
  • Git intelligence: hotspots, ownership, and co-change pairs
  • Command output distillation

How to install

Install repowise via pip, then run init to index your repository and serve the local dashboard.

pip install repowise
repowise init .
repowise update
repowise serve

Recommended for this setup

Strengths

  • Zero LLM calls in the indexing pipeline: Every intelligence layer (graph, health, git, documentation, decisions) is computed deterministically over tree-sitter ASTs and git data. No model call runs during indexing, which means results are reproducible, auditable, and free from model hallucination in the analysis path. EU AI Act high-risk obligations do not apply because scoring is fully deterministic.
  • Benchmarks published with losses included: repowise publishes its benchmark harness, corpus, and sample sizes, including the rows where a competitor wins. In file-retrieval accuracy it ranked #1 of 6 at 0.876 file coverage against the next tool's 0.610 on a sealed 42-instance split (p=0.00004). CodeGraph is a genuine second at -24.4% token reduction, and that result is reported rather than buried.
  • Self-hosted with zero telemetry: Source code is processed transiently and never persisted outside the graph and git metadata. Self-hosting requires no cloud account, no API key for the first index, and no external calls. Enterprise deployment supports fully air-gapped networks with BYO LLM or Ollama for fully offline operation.
  • CLAUDE.md generated from the real index: repowise generates your CLAUDE.md and AGENTS.md from the live codebase index rather than templates, so agents without MCP support still start each session with accurate architecture context. The wiki generation budget tilts toward the modules you and your agents ask about most, based on actual usage patterns read from your own agent transcripts.

Trade-offs

  • AGPL-3.0 requires source disclosure for network services: The core engine is AGPL-3.0. Teams that modify and run repowise as a service for others must publish their source changes under the same license. Commercial users who need proprietary modification rights, embedding, or IP indemnification require the enterprise commercial license.
  • Indexing speed is the slowest in its benchmark field: repowise publishes this itself: it is the slowest indexer in its benchmark comparison. The under-30-second figure applies to incremental updates on a 3,000-file repo, enforced by a CI test. Cold initial indexing time scales with repository size and may be a consideration for very large monorepos.
  • 104 open GitHub issues at time of indexing: With 5,441 stars and rapid adoption since its March 2026 launch, the issue tracker has 104 open items. This is expected for a tool gaining traction quickly. Users building workflows that depend on specific language support or edge-case handling should review open issues for anything relevant to their setup before committing.

Tech stack

Languages
Python, TypeScript, Tree-sitter Query, Jinja, JavaScript, CSS, Shell, HTML, Makefile, Dockerfile, Mako
Frameworks
React
Databases
—
Tooling
esbuild

FAQ

Does source code leave my machine when using repowise?

No. repowise is self-hosted with zero telemetry, and source code is processed transiently and never persisted. What is stored is the dependency graph, non-reversible embeddings, generated wiki pages, and git metadata. You can bring your own LLM API key or run fully offline using a local model via Ollama.

How much does repowise reduce AI agent token usage?

In a measured agent loop (Codex, django/django, 43 questions against a bare-agent control), repowise cut output tokens 31.6% (p<0.0001) and reached answers in 3.8 tool calls instead of 7.2. Loading a single commit's context costs 393 tokens versus 13,984 raw (35.6x fewer). A second run on Claude Code held at 15.9% reduction.

Is repowise free to use?

Yes. The core engine is AGPL-3.0, runs 100% locally, and the first index needs no API key. Paid hosted tiers start at $15/month for Pro (private repos, hosted re-indexing) and $20/seat/month for teams (3-seat minimum). Enterprise pricing covers on-premises, air-gapped, or commercially licensed deployments.

Which AI editors and agents does repowise work with?

repowise exposes your codebase over the Model Context Protocol, so it works with Claude Code, Cursor, Cline, Codex, and any MCP-compatible client. One index serves every agent; no separate integrations are needed per tool.

Does the code health score actually predict bugs?

Yes, and it is externally validated. Across 21 repositories and 9 languages, the cross-project ROC AUC is 0.74 (confidence interval 0.683 to 0.787, with up to 0.90 per repo). Ranking by repowise health surfaces 2.3x the defects of a leading commercial code health tool under the same review budget on the same 2,770 files. The benchmark harness and corpus are published.

Similar tools

More in Engineers