Other commands
One-shot utilities — costs, dead-code, doctor, export, generate-claude-md, augment.
repowise costs
LLM cost history. Aggregates calls made during init and update.
repowise costs [PATH] [OPTIONS]Prop
Type
repowise costs
repowise costs --since 2026-01-01 --by model
repowise costs --by dayrepowise dead-code
Detect unused code via the dependency graph. No LLM calls.
repowise dead-code [PATH] [OPTIONS]Prop
Type
repowise dead-code
repowise dead-code --safe-only
repowise dead-code --kind unused_export --format json
repowise dead-code --include-internals --min-confidence 0.8The agent-facing equivalent is get_dead_code.
repowise doctor
Health check. Validates: git repo, .repowise/ directory, database,
state.json, provider config, stale pages, and store consistency
(SQL/vector/FTS sync).
repowise doctor [PATH] [OPTIONS]Prop
Type
repowise doctor
repowise doctor --repairFirst port of call when something looks wrong. --repair fixes
the common mismatches automatically.
CLI version check
doctor also prints a best-effort CLI version row that compares your
installed CLI against the latest release on PyPI.
When an update is available it shows the right upgrade command for your
install method (uv tool upgrade repowise, pipx upgrade repowise, or
python -m pip install -U repowise). It surfaces both the repowise resolved
on your PATH and the command that launched the current process, since these
can differ — useful when an MCP client is running a stale executable.
This row is advisory only: it never updates anything automatically, never
fails doctor when PyPI is unreachable, and an unparsable latest version is
reported as "unknown" rather than a false "up to date".
After upgrading, restart Claude/Codex/Cursor or any MCP client so it picks up the new executable.
repowise export
Export wiki pages to files.
repowise export [PATH] [OPTIONS]Prop
Type
repowise export
repowise export --format html -o ./docs/wiki
repowise export --format json --full -o /tmp/backuprepowise generate-claude-md
Regenerate CLAUDE.md from the index. Two-section file: a custom
section above the markers (never modified) and the
repowise-managed section (auto-updated).
repowise generate-claude-md [PATH] [OPTIONS]Prop
Type
repowise generate-claude-md
repowise generate-claude-md --workspace
repowise generate-claude-md --stdout > preview.mdrepowise augment
Internal hook command. Runs as a Claude Code PreToolUse /
PostToolUse hook to enrich Grep and Glob calls with related
files, top symbols, importers, and dependencies. Detects git commits
and notifies when the wiki is stale.
repowise augment # stdin hook modeDon't invoke augment directly. repowise init wires it into
~/.claude/settings.json automatically.
Hooks — auto-sync on commit
Install, check, and remove the post-commit git hook that keeps the repowise wiki current after every commit.
MCP tools — overview
The nine MCP tools repowise exposes to Claude Code and any MCP-compatible AI agent. Task-shaped, batched, and built to collapse long tool-call chains into one round-trip.