Repowise is a codebase intelligence tool for AI and humans, designed to let engineers and coding agents understand a codebase like its maintainers do: what calls what, what is likely to break, which code is no longer used, and why it was built this way. Through a single local index, it unifies code, call graphs, Git history, tests, documentation, and design decisions into one index, which users and coding agents can then query, avoiding agents repeatedly searching and rereading files.
Main Capabilities
- Code understanding: Provides structured codebase overviews, call relationships, change impact analysis, dead code detection, and architecture decision queries.
- Code health scoring: Uses 53 deterministic detectors (such as McCabe complexity, LCOM4 cohesion, god classes, clone detection, untested hotspots, change entropy, historical defects, etc.) to score each file from 1-10, evaluating it from three perspectives: defect risk, maintainability, and performance. Of these, 25 detectors affect the defect score.
- Automatically generated documentation: Generates and maintains CLAUDE.md and AGENTS.md from the real index, so agents that do not support MCP can also get context.
- Git analysis: Analyzes commit history, defect history, change risk, change coordination (such as branch overlap), etc.
- Test intelligence: Infers test coverage from imports and call graphs without coverage reports, supports formats such as LCOV, Cobertura, Clover, JaCoCo, and Go coverprofile, and labels them as "measured" or "inferred."
- Dead code detection: Identifies code that is no longer used.
- Architecture decisions: Records and tracks design decisions, and supports learning repeated corrections from agent sessions and turning them into decisions.
- Command output compression:
repowise distill <cmd>Can compress command output before the agent reads it, preserving errors and exit codes, with omitted parts recoverable viarepowise expand <ref>. - CI integration: Runs patch coverage, documentation drift, security, and change risk gates in pipelines via GitHub Action, GitLab templates, or CLI, outputting annotations, SARIF, and GitLab Code Quality formats, with no API key required.
- PR bot: A free GitHub App can provide symbol-level impact scope, missing tests, change risk, and other analysis on every PR, with zero LLM calls, so the same diff always gets the same review.
- Change records: Reads every merged PR, MR, or commit as a change record, including commits, components, owners, tests, contracts, decisions, and downstream impact, with every entry labeled by basis (measured, inferred, declared, or unknown).
- Dashboard:
repowise serveStarts a local web dashboard, including views such as architecture and C4, knowledge graph, risk, hotspots, coupling, blast radius, contributors and ownership, decisions, symbols, security, dead code, cost, and workspace. - Workspace: Supports a unified intelligence layer across multiple repositories, identifying cross-repository contracts, downstream services, and architecture rule violations.
How to Use
In Claude Code, Codex, Cursor, or any agent that supports MCP, paste a one-line command in the repository to install Repowise, index the repository, and connect the agent, with no API key required, and it will ask the user before incurring costs. It can also be installed manually:init will automatically connect to Claude Code. Afterward, you can ask the agent questions, such as "Use Repowise get_overview to summarize this repository" or "What would break if I modify src/auth.py?".
Repowise provides 7 task-oriented MCP tools, based on a unified index of graphs, Git, documentation, and decisions, supporting passing multiple targets in a single call and returning complete information.
Use Cases
- Developers want coding agents to stop repeatedly discovering code, reducing token consumption and the number of tool calls.
- Platform teams need to show what changed, who owns it, and the affected tests.
- Enforce change risk, documentation drift, and security gates in CI.
- Understand inter-system dependencies and architectural rules across multiple repositories.
Limitations and Notes
- Graph, risk, health, test, and dead code analysis do not call an LLM, and results are deterministic.
- Model-generated documentation is an optional upgrade, generated by page or directory.
- Transcript capture is disabled by default; once enabled, transcript content does not leave the local machine.
- The free version is intended for a single developer on a laptop, while the commercial version adds organization-level operational capabilities.
- Licensed under AGPL-3.0 or a commercial license.
- Some features (such as Foresight) are offered first on the hosted service repowise.dev; specific availability is not yet provided.
- Performance data is based on a specific test set, and actual results may vary depending on the codebase.