prune_flatten_artifacts
Delete leftover flatten artifacts (.bak, .preunflatten.bak, stale .tmp files) to reclaim disk space. Optionally remove .flat.jsonl sidecars when retrieval no longer needed.
Instructions
Reclaim disk by deleting leftover flatten artifacts (.bak, .preunflatten.bak, and stale .tmp- files) for a project. By default keeps .flat.jsonl sidecars (retrieve_flattened needs them) and runs dry. Set include_sidecars=true only when you no longer need to retrieve/unflatten those sessions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_dir | No | Absolute path to project. Default: the project the CLI runs in (cwd) | |
| older_than_days | No | Only delete artifacts whose mtime is older than N days. 0 = no age limit. | |
| include_sidecars | No | Also delete .flat.jsonl sidecars. WARNING: retrieve_flattened/unflatten_session stop working for those sessions. | |
| dry_run | No | Report what would be deleted without deleting. Default true for safety. |