Draft branches
Put risky edits onto a separate branch, check diffs, and merge when ready.1
Work on a branch
branch_read_file falls back to main for untouched files, while branch_write_file and branch_delete_file stay inside your branch.2
Inspect and merge
--dry-run, fail, ours, or theirs.Locked restore points (Snapshots)
Save a point-in-time snapshot before major cleanups (zd snapshot create --label "before-cleanup", zd snapshot list, zd snapshot restore <id>). Snapshots use zero quota, and restoring saves a safety backup first by default.
File Version History
Every overwrite keeps prior versions (ver_...) for 30 days on Pro or 90 days on Pro Max and Agency. Inspect, diff, and restore anytime (list_file_versions, diff_file_versions, restore_file_version, or zd versions).

