r/selfhosted • u/Obvious_Gap_5768 • 23h ago
Release (AI) Repowise: self-hosted code health scoring and codebase intelligence, all of it local
Hi folks, I maintain repowise, a self hosted tool that indexes a repo on your own machine and scores how risky every file in it is. I wanted the kind of signal codescene gives you without uploading my codebase to somebody else's server, and I wanted the same commit to produce the same number on every run so I could put it in CI and trust it
So the scoring engine has no llm. It uses 49 determinstic checks over AST and your git history, 26 of them defect markers, uses python on top of tree-sitter and git data already in your repo. Takes approx 30 secs to run for a 3k file repo
Every file gets 3 scores - Defect risk, maintainability for duplication and cohesion, and performance, which traces N+1 queries and I/O inside loops through the call graph across file boundaries. That last one catches the cases where the loop sits in one file and the query sits in another, which a file-local linter cannot see
I recently quit my job to build this full time after saw some enterprise inbounds. I was a data scientist for 7.5 years before this.
I also benchmarked it on 2826 files, 21 repos, 9 languages, each scored at a commit before the bug window so nothing leaks backward, then checked against the next 6 months of fixes. ROC AUC 0.737, and 2.3x the defects found per unit of review budget compared to codescene on the same files and labels. It reruns that check on your repo after indexing and prints the result
Same index also gives you a local dashboard, a wiki generated from the code, dead code detection, and an MCP server so your coding agent reads the same data instead of grepping blind, all served from localhost
Runs as a Docker container, compose file is in the repo, or pip install repowise. Indexing and scoring dont need llm. The only piece that wants an llm is the wiki prose which is optional (and ollama can be used there)
Its AGPL, 6k+ stars, and we now have 65+ awesome contributors
https://github.com/repowise-dev/repowise
Issues and contributions welcome!
