tc_compress
Delete old change-layer payloads beyond a retention window to reclaim checkpoint storage; step baselines remain, so restoring by index still works.
Instructions
Reclaim checkpoint space by deleting change-layer payloads older than the retention window. Use it when the store has grown large. Reclaimed layers can no longer be restored, but step baselines are untouched, so tc_restore by index still works.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"root": "<root>"
},
"name": "tc_compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | Workspace root | |
| maximum | No | Maximum number of layers to keep per path; default 50 | |
| minimum | No | Minimum number of older layers to keep per path; default 20 | |
| keep_seconds | No | Keep change layers newer than this many seconds; default 7 days |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maximum | Yes | ||
| minimum | Yes | ||
| eligible | Yes | Passed the safety checks and were eligible for reclaiming | |
| converted | Yes | Payloads actually deleted | |
| bytes_freed | Yes | Bytes freed | |
| already_gone | Yes | Marked unrestorable but the payload was already absent | |
| keep_seconds | Yes |