| name | archive-run |
| description | Archive old completed benchmark runs to save disk space and speed up scans. Triggers on archive runs, clean up runs, disk space, old runs. |
| user-invocable | true |
Archive Run
Move old completed run directories to runs/official/archive/ to save disk and speed up scans.
Steps
1. Show what can be archived
cd ~/CodeScaleBench && python3 scripts/archive_run.py --older-than 7
2. Present the candidates
Show the list of directories that would be archived, with their age, size, and result count.
3. Archive if user approves
python3 scripts/archive_run.py --older-than 7 --execute
Variants
Archive a specific run
python3 scripts/archive_run.py --run-dir pytorch_opus_20260203_160607 --execute
Compress while archiving (saves more disk)
python3 scripts/archive_run.py --older-than 7 --execute --compress
List already-archived runs
python3 scripts/archive_run.py --list-archived
JSON output
python3 scripts/archive_run.py --older-than 7 --format json