repowise
Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
What is repowise?
Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Overview of repowise
What it is
Repowise is a codebase intelligence tool that indexes code, call graphs, git history, tests, documentation, and design decisions on your local machine. It provides a local dashboard and an MCP server, enabling both human developers and AI coding agents to query the codebase without requiring an API key. It is free and self-hosted under AGPL-3.0 or commercial license.
Key features
- Call graph across 26 parsed languages with trust stamps on every edge - Code health scores (1–10) from 53 deterministic detectors, validated against real bug history - Dead code detection: unreachable files, unused exports, unused packages with confidence tiers - Git analytics: churn, fan-in, bug history, ownership, bus factor, knowledge-loss risk - Auto-generated documentation for every module and file, with incremental updates after each commit - Change risk analysis: symbol-level blast radius, historical co-change patterns, test coverage from call graph - Architectural decisions mined from ADRs, comments, commit/PR history, and agent sessions - Test intelligence: which tests a diff exercises, patch coverage, test-quality smells - Performance detection: N+1 queries, I/O in loops, blocking calls in async code, quadratic loops - Refactoring plans: Extract Method, Extract Class, Move Method, Split File, Break Cycle - Security signals: secrets in working tree and git history, pre-commit check, CI gate - Workspace support: cross-repo contract matching, breaking-change guard - Distills command output (e.g.,
repowise distill pytest) with expand capability - Writes and keeps currentCLAUDE.mdandAGENTS.mdfrom the real index - New git worktrees start indexed from the base checkout - External dependency mapping from package manifests (PyPI, npm, Cargo, Go, NuGet, Maven, CMake)
Use cases
- Understand code structure and dependencies without manual file reading - Assess the risk of changes before committing or merging - Identify dead code and technical debt for cleanup - Generate and maintain documentation automatically - Improve code health by focusing on highest-impact fixes - Enable AI agents to answer questions about the codebase with cited answers - Detect security secrets and performance bottlenecks - Plan refactorings with concrete symbol-level steps
Getting started
bash uv tool install repowise # or: pipx install repowise / pip install repowise cd /path/to/your/repo repowise init --yes --no-prose # graph, git, health, dead code, docs. No key, no spend. repowise serve # local dashboard + MCP server Alternatively, in an MCP-capable agent (Claude Code, Codex, Cursor) inside your repository, paste: text Read https://docs.repowise.dev/setup.md and set up Repowise in this repository.
License and pricing
Repowise is free and self-hosted under AGPL-3.0 or commercial license. A hosted version is available at repowise.dev.
Based on the project's public README and repository metadata.