1
0
forked from jason/echo
Files
chorus/chorus-memory.plugin.src/commands/chorus-sweep.md
T

17 lines
1.2 KiB
Markdown
Raw Normal View History

2026-06-21 11:46:54 -05:00
---
description: Bring the CHORUS vault up to the current feature spec (entity index + cross-links)
2026-06-26 20:05:47 -05:00
allowed-tools: Bash(python3 *sweep.py*), Bash(python *sweep.py*), Bash(ls /sessions/*), Bash(dirname *)
2026-06-21 11:46:54 -05:00
---
Use the **chorus-memory** skill to bring the vault up to the current spec. Run the sweep **dry-run first**, show the member the plan, and only `--apply` on their go-ahead:
2026-06-21 11:46:54 -05:00
```bash
SDIR="${CLAUDE_PLUGIN_ROOT}/skills/chorus-memory/scripts"
[ -d "$SDIR" ] || SDIR=$(dirname "$(ls /sessions/*/mnt/.remote-plugins/*/skills/chorus-memory/scripts/sweep.py 2>/dev/null | head -1)") # CoWork sandbox fallback
2026-06-26 20:05:47 -05:00
python3 "$SDIR/sweep.py" # plan (read-only)
python3 "$SDIR/sweep.py" --apply # write
2026-06-21 11:46:54 -05:00
# Windows: use `python` or `py -3` if `python3` is not on PATH.
```
The sweep (1) creates `_agent/index/`, (2) rebuilds the entity index from existing notes, (3) symmetrizes `## Related` cross-links (adds only the missing reciprocal direction — never invents new links), and (4) stamps the marker `schema_version`. It is idempotent and read-only without `--apply`. If `schema_version` is behind, run `migrate.py` first. After applying, run `/chorus-health` to confirm invariants.