Repowise indexes a repository (its code, git history, tests and decisions) so a coding agent can ask the index instead of grepping and opening files. It also gives you a dashboard with the same answers: what calls this, what breaks if I change it, and what to fix first.

I wanted the code health part. Before installing it, I had three questions: how do I build it, is it something that “runs” like a database, and what does it need from Ollama?

You don’t build it, and it doesn’t run in the background

Repowise is a CLI. Install it as a tool:

uv tool install repowise    # needs Python 3.11+ and Git

My reference point was Forgetful, which I run as an always-on launchd agent serving MCP over HTTP on localhost:8020, backed by Postgres on Supabase. Repowise is different:

  Forgetful (my setup) Repowise
Process launchd agent, always on nothing running by default
MCP HTTP on localhost:8020/mcp stdio, Claude Code starts repowise mcp when it needs it
Data remote Postgres (Supabase) local SQLite: .repowise/wiki.db in each repo
Staying current n/a a git post-commit hook runs repowise update

So there’s no service to keep alive and no database server. The .repowise/ folder is gitignored and you can delete and rebuild it. If you do want it served like Forgetful, repowise mcp --transport streamable-http serves HTTP on port 7338, but stdio is the normal path. The dashboard (repowise serve, which needs Node 20+) is also something you start when you want to look, not a service.

Turn off telemetry first

The CLI sends anonymous usage telemetry by default: counts of which commands and MCP tools ran, with no code, file paths or repo names. Telemetry isn’t the only thing that goes out, though. Repowise also checks for new releases, checks whether agent CLIs like claude are signed in, and can sync decisions. There are three switches, and each one turns off more than the one before:

Switch What it turns off
repowise telemetry disable Telemetry only. Saved in ~/.repowise/platform.json, so it sticks.
DO_NOT_TRACK=1 or REPOWISE_TELEMETRY_DISABLED=1 Telemetry, plus update checks and agent sign-in checks.
REPOWISE_OFFLINE=1 All of Repowise’s own network calls: telemetry, update checks, plan status, sign-in checks and decision sync.

I want none of it, so I set the strictest one in my shell profile and also run the command, so telemetry stays off even in a shell that doesn’t have the variable:

export REPOWISE_OFFLINE=1     # in your shell profile
repowise telemetry disable
repowise telemetry status     # says why it's off

REPOWISE_OFFLINE only covers Repowise’s own calls. It doesn’t block a model provider you choose for generate.

Index, then look at code health

cd ~/Projects/some-repo
repowise init --yes --no-prose
repowise health
repowise next

Code health is part of the basic index. It scores every file from 1 to 10 using the parse tree, the dependency graph and git history, and makes no LLM calls. repowise health prints a ranked “Fix first” list, the overall scores and the lowest-scoring files. repowise next prints a short to-do list across everything Repowise tracks.

Don’t use --mode fast if you care about health. It skips per-file blame and co-change history, and part of the score comes from how often a file changes.

If the repo has a coverage report, add it to get the untested-hotspot findings:

repowise coverage add coverage.lcov
repowise health --recompute

init also connects Claude Code to the repo, so after a restart (or /mcp) you can ask “use Repowise get_health” in a session.

The dashboard

The same numbers are in the dashboard:

repowise serve --ui-port 3001

It starts an API server and a web UI and opens the UI in your browser. The UI wants port 3000, which on my machine is Langfuse, so I pass --ui-port. Stop it with Ctrl-C when you’re done.

I pointed it at a small example project, jev-sales-calls: four Python files, two commits. The overview shows the health score, how many doc pages exist, and cards for ownership, architecture, decisions and refactoring. The “Code health map” card says 30 files scored, but only the four Python files get a health score. The 30 is everything Repowise indexed: those four, 24 Markdown capability files, the README and pyproject.toml. The Code Health page further down has the right count, 4.

261124_1541280-repowise-overview

The Code Health page has the score, a “Highest-interest technical debt” list (empty here), and a map where each folder is a circle sized by lines of code and colored by score. The side panel lists the lowest-scoring files and has a “Copy prompt for the top finding” button that gives you a prompt to paste into your agent.

261124_1541282-repowise-code-health-map

A four-file repo scores 9.5 and has nothing to fix, so this is a screenshot of the layout, not a review. A real codebase would fill those lists.

Change risk, also without a model

Health scores files. Change risk scores a change: your uncommitted work, a commit, or a branch.

repowise risk                  # uncommitted work (HEAD if the tree is clean)
repowise risk main..HEAD       # a branch
repowise risk -t src/app.py    # what history says about one file

This doesn’t use an LLM either. The score is a logistic regression over the change features from a 2013 study on predicting buggy commits (Kamei et al.): lines added and deleted, the number of files, directories and subsystems touched, how scattered the change is, and how familiar the author is with those files. Repowise then ranks the change against a sample of the repo’s recent commits, so you get “bigger than most commits here” instead of a bare number.

It’s honest about its limits. Repowise’s own docs report it barely beats counting changed lines (0.772 vs. 0.766 on their test), and say the value is “in the reasons it gives, not in beating churn.” The CLI says so too, right in the output:

Diff-size score: 4.5/10 — how big and spread out the change is, not where it lands.
The rank is a diff-size statistic: it barely beats churn alone and cannot rank danger.

jev-sales-calls has only two commits, so that run also said “unranked (no baseline to rank it against)”. The per-file view was more useful:

$ repowise risk -t src/jev_sales_calls/app.py
  hotspot 100% (increasing) · 1 direct dependents · churn-heavy · owned 100% by wsmoak
  health 9.2/10
  complex_method (medium) in main
  +212 / -1 lines in 90d · avg commit 106.5 lines · 1 contributor(s), bus factor 1
  No test is shown to reach this file.
  Co-changes with
    README.md x2
    pyproject.toml x2
    src/jev_sales_calls/brief.py x2

That’s what I’d want before reviewing a change to that file: one author, no tests reaching it, and the files that usually change along with it. Claude Code gets the same through the get_change_risk and get_risk MCP tools. Repowise’s MCP instructions tell the agent to call get_risk before editing a widely imported file and get_change_risk before committing.

Scoring uncommitted work needs the index on your own machine, next to your working tree. A shared server only sees what’s been pushed.

What --no-prose means

I assumed --no-prose would turn off a lot. It turns off one thing: LLM calls. It’s the only setting in init that spends money, and by default init writes prose whenever it finds an API key. --no-prose makes sure it doesn’t, even if a key is set.

What you still get, free: code health, change risk, dead code, ownership, the call graph, full-text search, and wiki pages for each file, symbol and API built from the code’s structure.

What it skips: the repo overview, the subsystem pages, the architecture diagram, the onboarding pages, and decisions pulled from PRs and commits. You get stubs for those, and repowise generate fills them in later without re-indexing.

Where Ollama fits

Ollama isn’t needed for any of the above. It can do two optional jobs: semantic search and writing the docs.

Semantic search finds pages by meaning, so “where do we handle billing” can find a page that never uses the word:

ollama pull embeddinggemma
repowise reindex --embedder ollama

reindex makes no LLM calls. It turns each wiki page into an embedding and stores the results in .repowise/lancedb/. There’s nothing to look at afterwards. You see it work when repowise search (or the agent’s search_codebase) finds things by meaning.

Writing the docs fills in the pages --no-prose left as stubs:

repowise generate --provider ollama --model gemma4:26b

generate writes only the pages that need a model: the repo overview, the module (subsystem) pages and the onboarding pages. Everything else is built from the code. It saves the provider and model in .repowise/config.yaml, so later runs don’t need the flags. Add --dry-run to see the plan first.

Gemma vs. Claude, on the same repo

On jev-sales-calls, generate wrote four pages. I read them against the source.

gemma4:26b (local, free): nothing made up, and the module page had a correct sequence diagram. But the line citations were off by a few lines, and “How It Works” spent the whole page on loading the capability files and never got to the API call or the results. It was usable, but thin.

Claude Sonnet, through my Claude Code subscription. Repowise can run your logged-in claude CLI instead of calling the API, so it needs no API key:

repowise generate --all --provider claude_cli --model claude-sonnet-5-5 --yes

--all rewrites the pages gemma already wrote. Without it, generate only fills in stubs. The run took 43 seconds and 37,548 tokens against my plan. It runs claude -p in a neutral folder with no tools and no MCP servers, so my CLAUDE.md doesn’t leak into the docs. One catch: if ANTHROPIC_API_KEY is set in your shell, claude -p may bill that key instead of your plan.

Each page shows which model wrote it. Here’s the repo overview Sonnet wrote:

261124_1541283-repowise-docs-written-by-sonnet

Sonnet’s pages were clearly better. “How It Works” walks through the whole run in nine steps, from reading the arguments to the API call to printing the results. It also covers the second command, which gemma skipped. And it picked up details gemma missed, like optional environment variables and a flag on the brief command.

The module page starts with a plain explanation of what the code is for and who runs it, then a sequence diagram of how the analysis command loads the capability files and calls the model:

261124_1541284-repowise-module-page-diagram

It wasn’t perfect. The module page says “seven commits landed in the last 90 days” in a repo with two. And one page includes the sentence “that part is truncated here”: Repowise had cut a long function short in the prompt, and Sonnet mentioned it in the page instead of leaving it out. Read the generated pages before you trust them.

For a small repo I’d use Claude: it took 43 seconds and covered more. On a big repo every page counts against your plan’s limits, so gemma for a first pass and Claude for the overview and module pages is a reasonable split. generate --page <id> rewrites a single page.

Summary

uv tool install repowise
export REPOWISE_OFFLINE=1        # no telemetry, update checks or other calls home
repowise telemetry disable
cd ~/Projects/some-repo
repowise init --yes --no-prose
repowise health
repowise risk                    # score your uncommitted change
repowise serve --ui-port 3001    # optional: the dashboard

No daemon, no database server, no API key, and with REPOWISE_OFFLINE=1, nothing sent home. When you want written docs, repowise generate uses either a local Ollama model or your Claude Code subscription, and neither needs an API key.

Claude Code and Opus 5.5 were instrumental in trying out Repowise, checking what it told me against the jev-sales-calls source and Repowise’s own code, and drafting this blog post. Repowise also wrote some of the docs shown in the screenshots, using Gemma and Sonnet.

Copyright 2026 Wendy Smoak - This post first appeared on wsmoak.net and is CC BY-NC licensed.