Hooks — auto-sync on commit
Install, check, and remove the post-commit git hook that keeps the repowise wiki current after every commit.
The post-commit hook is the most popular auto-sync method. It runs
repowise update after every successful commit — typically 3–10
pages in under 30 seconds. Other sync options (file watcher, GitHub
webhook, polling) live in Auto-sync.
repowise hook install
Install the post-commit hook in the current repo (or every repo in a workspace).
repowise hook install [PATH] [OPTIONS]Prop
Type
repowise hook install
repowise hook install --workspacerepowise hook uninstall
Remove the repowise post-commit hook.
repowise hook uninstall [PATH] [OPTIONS]Prop
Type
repowise hook status
Check whether the post-commit hook is installed.
repowise hook status [PATH] [OPTIONS]Prop
Type
The hook is non-invasive — it appends to any existing post-commit
hook rather than overwriting. hook uninstall removes only the
repowise lines.
repowise hook rewrite install|uninstall|status
A separate, opt-in agent hook (Claude Code + Codex PreToolUse) that
rewrites noisy agent commands — tests, builds, lint runs,
git status/log/diff, searches, listings — to
repowise distill <command>, pending your approval, so the agent sees a
compact errors-first rendering. Covers both Claude Code shell tools
(Bash and, on Windows, PowerShell).
repowise hook rewrite install # writes ~/.claude/settings.json (idempotent)
repowise hook rewrite status
repowise hook rewrite uninstall # removes only the repowise entriesProp
Type
install also re-enables the current repo's distill.commands config
if a prior repowise init opt-out had gated it off; uninstall removes
the global hook entries plus the repo's AGENTS.md awareness section and
leaves per-repo config untouched. Per-repo posture
(permission: ask | allow, per-family overrides) lives under
distill.commands in .repowise/config.yaml.
When ~/.codex exists, install also writes a Codex hook entry to
~/.codex/hooks.json (Codex ≥ 0.137 only) and maintains an "Output
Distillation" section in the repo's AGENTS.md that works without any
hook. Codex cannot show a rewritten command for approval, so there
rewrites fire only for families set to permission: allow; status
reports exactly what your build supports. Full guide:
Distill.