kage_refresh
Rebuild repository indexes, code graph, memory graph, and metrics after file changes to prepare for PR checks. Skips metadata rewrites on non-default branches to avoid merge conflicts, unless forced.
Instructions
Rebuild repo indexes, code graph, memory graph, metrics, and stale-memory metadata. Agents should run this after meaningful file/content changes before PR checks; push-only or same-tree commits do not need another refresh. On non-default git branches metadata-only packet rewrites are skipped (quiet refresh) to avoid merge conflicts; pass force to persist them anyway.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_dir | Yes | Absolute path to the repository root. | |
| force | No | Persist packet metadata rewrites even on a non-default branch |