Archived sessions include full git worktrees with installed dependencies, which can consume significant disk space over time. Archive retention lets you automatically remove old archived sessions on a per-project basis, while protecting specific sessions you want to keep.
When archive retention is enabled for a project, Braide runs a background pruning sweep every hour across all projects. For each project with retention configured, it checks every archived session:
Archive retention is a per-project setting, allowing different retention policies for each project.
Click the Prune now button to immediately run the pruning logic for the current project, rather than waiting for the next hourly sweep. While running, the button shows Pruning… alongside a progress bar and a checked/total counter (plus a running count of sessions pruned). When complete, a result message is shown:
Individual archived sessions can be protected from automatic pruning regardless of their age. This is useful for sessions you want to keep as reference — for example, a session with an important architectural decision or a complex debugging investigation.
To protect a session, toggle the retainArchive flag on the session. Protected sessions are skipped during both automatic hourly sweeps and manual "Prune now" operations.
The retention setting is stored in the project's settings file:
~/.braide/projects/<project-id>/settings.json
The archiveRetentionDays field is part of the project preferences. When absent or disabled, no automatic pruning occurs for that project.