kage_refresh
Rebuild repo indexes, code graph, memory graph, metrics, and stale-memory metadata after meaningful file changes. Use before PR checks; non-default branches skip metadata rewrites unless force is set.
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 | ||
| force | No | Persist packet metadata rewrites even on a non-default branch |