-
Notifications
You must be signed in to change notification settings - Fork 0
Run The Wiki Watcher
Note
Goal: Run the wiki-watch engine over a watched repo and drive it on a loop, so the documenter keeps a wiki in sync — PR by default, direct-commit opt-in per trusted repo.
Prereqs: the wiki-maintenance plugin installed (Install crickets plugins); the watched repo registered in repo_registry (<vault>/_meta/repos.json) with a wiki_path; git and — for PR dispatch — an authenticated gh. Optional: a durable-memory vault for cross-device cursors + audit log; without one, state falls back to <repo>/.harness/wiki-watch/.
The wiki-watcher is an idempotent single-cycle engine you run on a loop, not a daemon: one invocation runs one poll → detect → judge → dispatch cycle and exits. It's cooldown-gated and cursor-backed, so re-running it (/loop or cron) never drops a change or double-dispatches. The full config contract is in Wiki-watch config.
-
Enable it for this host (opt-in). In
<install-prefix>/.agentm-config.json(default~/.claude) set{"wiki_watch": {"enabled": true}}. Absent or falsey leaves the watcher off. -
Opt the repo in. Create
<repo>/.harness/wiki-watch.json— its presence is the per-repo opt-in. Setwatch_sources(paths to watch) anddispatch_mode("pr"or"direct"). Field shapes + defaults: Wiki-watch config. -
Register the repo in
repo_registry(<vault>/_meta/repos.json) with awiki_pathso the engine knows which wiki to write, then confirm it resolves:python3 scripts/wiki_watch_config.py wiki-target <repo-root> [--slug X]
It prints the resolved target (exit
0) or a{"skipped": …}reason (exit1). -
Run one cycle. On Claude Code,
/wiki-watch(or/wiki-watch --repo <name>):python3 scripts/wiki_watch_cycle.py run --repo <repo-root> [--slug X] [--no-cooldown]
One cycle detects changes since the cursor, judges which are doc-worthy (docs always, code maybe, tests/CI never), dispatches the
documenter, advances the cursor, and prints a JSON report. A cooldown (default 15 min) skips within-window re-runs;--no-cooldownforces one. -
Review the output by
dispatch_mode. The flow is always branch → documenter authors → commit → PII guard → push:-
pr(default): opens a pull request viagh— open it and merge (the PR is the human-review boundary). -
direct(opt-in): commits straight to the wiki's default branch — inspect the commit.
The full behavior table (branch naming, the
gh-unavailable skip) is in Wiki-watch config. -
-
Drive it on a loop. Re-invoke under the host's loop —
/loop /wiki-watch, or a cron line:*/30 * * * * cd <repo> && claude -p "/wiki-watch"
The cooldown + cursors make repeated runs safe. Antigravity has no installable scheduling path for a shipped plugin yet, so the loop is Claude-first — run the skill manually there (Antigravity limitations).
- Wiki-watch config — the three config sources, state/audit, and what's watched vs. filtered.
- Antigravity limitations — the scheduling gap that makes the loop Claude-first.
- Style-learning loop — the sibling wiki-maintenance reference (how the wiki stays in your voice).
-
Install crickets plugins — get
wiki-maintenanceonto your host. - Wiki-watcher design — why the watch loop, PR-default, and idempotency exist.
🔧 How-to
- Install plugins
- Using code review
- Provision a repo's wiki
- Declare a project's Architecture
- Maintain a wiki — wiki-watcher
- Review a change — code review
- In-flight decision review — /doubt
- Author a design (pending)
- Run a named plan
- Spawn a worker in a worktree
- Run isolated tasks
- Configure main branch protection
- Integrate a worker
- See every active plan
- Run a coordinator-directed worker team (pending)
- Install the vault backend (pending)
- Sync a project board