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.
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 seven 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.