# repowise-dev/repowise — AlpLab Radar Static Code Audit

- Ring: `adopt`
- Category: `dev`
- Overall score: `4.3/5`
- Implementation check: `verified`
- Maturity: `active`
- Audited commit: `176dad778f2e` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-01T20:26:55Z
- Repository: https://github.com/repowise-dev/repowise
- Radar entry: https://radar.alplab.co/#repo/repowise-dev/repowise
- License: `AGPL-3.0`
- CI workflows: `.github/workflows`
- Tags: `dev`, `code-intelligence`, `mcp`, `static-analysis`, `code-health`, `agent-context`

## Summary

A local codebase-intelligence platform: tree-sitter ingestion and call-graph resolution across ~30 languages plus git-history mining, with code-health, dead-code, security, doc-drift and change-risk analyzers persisted to SQLite/Postgres and served through a ~70-command CLI, a FastAPI dashboard, and a 17-tool MCP server for coding agents.

## Implementation Check

README claims map to working code: the ten MCP tools are real (e.g. get_risk in packages/server/src/repowise/server/mcp_server/tool_risk/get_risk.py, get_answer in tool_answer/answer.py), the CLI's ~68 lazily-registered commands in packages/cli/src/repowise/cli/main.py each resolve to substantive modules, and the 30-language claim is backed by 28 tree-sitter .scm query files plus ~40 import resolvers under packages/core/src/repowise/core/ingestion/ — though the benchmark figures are unverifiable statically.

## When to Use

Use when you or your MCP-capable coding agent (Claude Code, Codex, Cursor) need a local, keyless index of a codebase — callers, blast radius, health, dead code, impacted tests — or want CI gates (patch coverage, security, doc drift) with no LLM spend. Not for teams needing a permissive license (AGPL-3.0), minimal dependency footprints, or environments where the default-on anonymous telemetry (opt-out) is unacceptable.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 5.0/5 |
| usability | 4.5/5 |
| reliability | 3.0/5 |
| security | 4.0/5 |
| integration | 5.0/5 |

## Code Evidence

packages/cli/src/repowise/cli/main.py (InstrumentedGroup, _OSS_COMMANDS lazy registry of 68 commands all present under cli/commands/); packages/server/src/repowise/server/mcp_server/__init__.py (_TOOL_MODULES registering 10 core + 7 opt-in tools, tool_middleware composition of shield/trust/budget/savings layers); packages/server/src/repowise/server/mcp_server/tool_risk/get_risk.py (get_risk with _load_dependency_graph, _pr_blast_radius, PR directive mode); packages/core/src/repowise/core/ingestion/ (call_resolver.py 154KB, traverser.py 92KB, queries/*.scm for 28 languages, resolvers/ for ~40 ecosystems, git_indexer/indexer.py 70KB); packages/core/src/repowise/core/persistence/models.py with 156 alembic migrations in packages/core/alembic/versions/; packages/core/src/repowise/core/analysis/security/patterns.py (pickle_loads/os_system/subprocess_shell_true/tls_verify_false detectors) and security_gate.py; packages/server/src/repowise/server/deps.py (client_is_local peer-address fail-closed auth, verify_api_key with scoped principals); packages/core/src/repowise/core/redaction.py (redact_secrets before logging); tests/conftest.py and tests/integration/test_cli.py run the real init/update/delete/status pipeline end-to-end; .github/workflows/ci.yml runs unit+integration suites on Python 3.11/3.12/3.13, an MCP response gate against an indexed sample repo, a footprint budget, a tree-sitter floor compile test, and a Windows cp1252 smoke test; action.yml exposes the gates as a composite GitHub Action with SARIF output.

## Issues Found

pickle.loads on locally cached blobs (packages/core/src/repowise/core/ingestion/parse_cache.py:211,243; packages/core/src/repowise/core/analysis/health/walk_cache.py:149; packages/core/src/repowise/core/analysis/change_health/child.py:99) executes arbitrary code if a .repowise/ cache directory is attacker-controlled — e.g. a shared or compromised checkout or a poisoned restored CI cache, which the project's own CI does (ci.yml 'Restore the previous index' step); .env.example and docker-compose.yml default REPOWISE_HOST=0.0.0.0, mitigated by fail-closed peer-address auth in deps.py but still a risky example default; 81 GitHub Actions uses pinned by tag rather than commit SHA (supply-chain surface).

## Key Risks

Nothing was executed; all claims are from static reading, and the README's benchmark numbers (99% fewer files, 2.3x CodeScene) cannot be verified statically. Heavy dependency footprint (20+ tree-sitter grammar packages, numpy, fastapi, anthropic/openai/google-genai SDKs by default; lancedb read-only transition noted in pyproject.toml). Dashboard requires Node 20+; Postgres/pgvector and fastembed embeddings are opt-in extras. Optional LLM prose sends code-derived prompts to your configured provider; anonymous CLI telemetry is on by default with DO_NOT_TRACK/REPOWISE_OFFLINE/repowise telemetry disable opt-outs, honored throughout (packages/core/src/repowise/core/platform/telemetry.py). AGPL-3.0. Version 0.62.0 self-classifies as Alpha. The web UI and VS Code extension were only spot-checked (TypeScript sources were not deeply read).

## Reviewed Files

- `README.md`
- `pyproject.toml`
- `Makefile`
- `.env.example`
- `action.yml`
- `docker/entrypoint.sh`
- `.github/workflows/ci.yml`
- `packages/cli/src/repowise/cli/main.py`
- `packages/cli/src/repowise/cli/providers/keys.py`
- `packages/server/src/repowise/server/mcp_server/__init__.py`
- `packages/server/src/repowise/server/mcp_server/tool_risk/get_risk.py`
- `packages/server/src/repowise/server/deps.py`
- `packages/core/src/repowise/core/command_runner.py`
- `packages/core/src/repowise/core/redaction.py`
- `tests/conftest.py`
- `tests/integration/test_cli.py`
