Commands that move the index's data out of .repowise/ or remove it:
exports, the managed CLAUDE.md block, retired page records and deleting a
repository's stored data. augment is listed here because agents call it,
not people.
repowise export
Export the documentation, or the architecture model, to files.
repowise export [PATH] [OPTIONS]| Parameter | Type | Default | Description |
|---|---|---|---|
--format | string | markdown | Output format: markdown, html, json, structurizr. structurizr writes one Structurizr DSL file describing the architecture in place of a directory of documentation pages. |
--output / -o | string | .repowise/export | Output directory. For --format structurizr, a path ending in .dsl names the file itself. |
--full | boolean | false | Include decisions, dead code, git metadata, and provenance in the JSON export. |
--standalone | boolean | false | structurizr only: emit a complete workspace with default views instead of a model fragment to include from your own workspace.dsl. |
--components | boolean | false | structurizr only: include the component level (one box per directory). |
--no-externals | boolean | false | structurizr only: leave third-party dependencies out of the model. |
--force | boolean | false | structurizr only: overwrite the output file even if repowise did not write it. --standalone targets workspace.dsl, which may be your own. |
repowise export
repowise export --format html -o ./docs/wiki
repowise export --format json --full -o /tmp/backup
repowise export --format structurizr -o architecture.dsl
repowise export --format structurizr --standalone --components -o workspace.dslrepowise generate-claude-md
Regenerate CLAUDE.md from the index. Your own content outside the
repowise markers is never modified; the managed block between them is
rewritten. The block is lean by default, and editor_files.sections in
config.yaml adds or drops sections; see
The editor_files: block.
repowise generate-claude-md [PATH] [OPTIONS]| Parameter | Type | Default | Description |
|---|---|---|---|
--output | string | — | Write to a custom path. Default: .claude/CLAUDE.md |
--stdout | boolean | false | Print to stdout instead of writing a file. |
--workspace / -w | boolean | auto-detect | Force workspace mode: a workspace-level CLAUDE.md at the workspace root with cross-repo contracts, co-changes and per-repo summaries. |
--no-workspace | boolean | false | Force single-repo mode from a workspace root. |
--verbose / -v | boolean | false | Show debug logs from the pipeline. |
repowise generate-claude-md
repowise generate-claude-md --workspace
repowise generate-claude-md --stdout > preview.mdrepowise pages retired
List the documentation pages a rebuild retired, or read one without restoring it to live retrieval. Retired pages keep their body and history.
repowise pages retired [--path DIR] [--page-id ID] [--archive-id ID] [--limit N] [--offset N] [--json]| Parameter | Type | Default | Description |
|---|---|---|---|
--path | string | — | Repository directory. Defaults to the current directory. |
--page-id | string | — | Read this old page's complete body and history. |
--archive-id | string | — | Select an exact retirement of --page-id. |
--limit | number | 100 | Rows to list, 1 to 5000. |
--offset | number | 0 | Rows to skip. |
--json | boolean | false | Emit machine-readable records. |
repowise delete
Delete a repository's stored index and generated data (not the source
files). Interactive picker when REPO_ID is omitted.
repowise delete [REPO_ID] [OPTIONS]| Parameter | Type | Default | Description |
|---|---|---|---|
--path / -p | string | — | Path to the repository directory. |
--force / -f | boolean | false | Skip the confirmation prompt. |
repowise delete # pick from a list
repowise delete abc123def456 # delete by repo id
repowise delete --path ../backend --forceThis only removes what's in .repowise/wiki.db (pages, FTS index) for the
chosen repo. For a full cleanup of everything repowise has written for a
repo, including agent wiring and machine-wide state, see
repowise uninstall.
repowise augment
The agent hook entry point. It runs as a Claude Code PreToolUse /
PostToolUse hook (and as the Codex and Cursor hooks) to enrich Grep and
Glob calls with related files, top symbols, importers and dependencies, and
to note when a commit left the documentation stale.
repowise augment [--client codex|cursor] [--coverage-only] [-v]| Flag | What it does |
|---|---|
--client codex|cursor | Hook client marker; the Codex and Cursor hooks pass it |
--coverage-only | Run only the coverage re-ingest for shell tools (the repo-local hook entry) |
-v, --verbose | Show debug logs from the hook pipeline |
Do not run augment by hand. repowise init and repowise agents refresh
wire it into each agent's hook config.
Next
- Uninstall removes everything repowise wrote, not only the index.
- Architecture diagrams covers the Structurizr export.
- Agent hooks explains what
augmentadds to Grep and Glob calls.