Archive
Use archive when an older project needs a recovery kit: source, setup, useful runtime/data and instructions for running it again. It prepares the kit locally; ship handles the later private backup.
Flow
Start the command
Codex → $archive Claude → /archive
Use your client’s command prefix. Start on the clean attached branch you want to preserve. Archive checks checkout eligibility and existing progress before source exploration, then asks you to confirm its commit and exclusions. It does not switch branches or merge missing work.
A failed prerequisite stops the run before the gated phase, including additional planning. Completed reports and actual artifacts remain preserved; a limited preservation outcome must be chosen explicitly.
Choose what recovery should achieve: source preservation, a runnable demonstration, offline runtime recovery or rebuild inputs. Those goals need different evidence; a saved image alone cannot prove them all.
The five steps
| Step | What you review |
|---|---|
| Explore | The project, recovery goal and missing materials. |
| Restore and freeze | An isolated restoration plan, results and capture choices. |
| Postman collection | Useful API collections or specifications, when applicable. |
| Documentation | The recovery entry point and ordered instructions. |
| Prepare locally | Storage, exclusions and the exact local payload commit. |
Each phase needs report approval. When the next plan is ready, you can approve both together, choose Save report and stop, revise, or stop without saving the report. Execution needs explicit reviewed effects; restored-result feedback and the final payload commit keep separate decisions.
Output files
Existing suitable locations can stay. The kit normally includes:
- An index, usually
README.md, explaining what recovery can achieve. - Setup instructions and artifact metadata under
docs/. - Selected runtime, API and data materials under
recovery/. - Progress and approved reports in
.helm/archive/.
Only useful outputs are created. Secrets and unrelated work stay out.
Returning to an existing archive
Rerun archive to check progress and continue pending work. Proven preparation is reported without repeating restoration or replacing reports. Unexplained changes need reconciliation; unsupported bundles and existing recovery evidence remain intact.
Your result
You get a local payload commit or pending drafts, recovery instructions and explicit limitations on the same branch. Deferred checks stay unverified.
Prepared locally is not backed up remotely. Use ship separately to approve and verify the private payload and completion receipt.