Configs2026年7月22日·1 分钟阅读

Repowise — Codebase Intelligence for AI and Humans

An open-source codebase intelligence platform that generates code health scores, auto-documentation, dead code detection, and architectural insights via MCP and CLI.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Repowise
直接安装命令
npx -y tokrepo@latest install 49ed659e-85aa-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Repowise is an open-source codebase intelligence tool that analyzes your repository to produce health scores, detect dead code, generate documentation, and surface architectural decisions. It works both as a standalone CLI and as an MCP server for AI coding agents.

What Repowise Does

  • Computes code health scores across complexity, coupling, and test coverage
  • Detects dead code, unused exports, and orphaned files
  • Auto-generates documentation from code structure and patterns
  • Provides git analytics including contributor patterns and churn hotspots
  • Serves insights via MCP for integration with coding agents

Architecture Overview

Repowise is a Python application that combines static analysis with git history mining. The analyzer walks the AST of supported languages to build a dependency graph, then cross-references with git log data to identify churn hotspots and ownership patterns. Results are stored in a local SQLite database for fast querying. The MCP server exposes these insights to coding agents.

Self-Hosting & Configuration

  • Install via pip: pip install repowise
  • Run analysis with repowise analyze <path>
  • Configure analysis rules in .repowise.yml
  • Start the MCP server for agent integration
  • Schedule periodic analysis via cron or CI

Key Features

  • Code health scoring with actionable recommendations
  • Dead code and unused dependency detection
  • Git-based churn and ownership analytics
  • Auto-generated documentation from code patterns
  • MCP server for AI agent integration

Comparison with Similar Tools

  • SonarQube — Enterprise code quality; Repowise is lighter with agent integration
  • CodeClimate — Hosted analysis; Repowise is fully self-hosted and open source
  • Semgrep — Pattern-based security scanning; Repowise focuses on health and architecture
  • Fallow — TS/JS codebase intelligence; Repowise supports multiple languages

FAQ

Q: What languages are supported? A: Python, TypeScript, JavaScript, Go, and Rust. More languages are planned.

Q: How does MCP integration work? A: Run repowise serve --mcp to expose codebase insights as MCP tools that any compatible agent can query.

Q: Does it require a database? A: Repowise uses an embedded SQLite database stored in your project directory. No external database needed.

Q: Can I run it in CI? A: Yes, use repowise analyze --ci for non-interactive mode with exit codes based on health thresholds.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产