feat: add team snapshot/restore for checkpoint and recovery#24
Closed
he-yufeng wants to merge 1 commit intoHKUDS:mainfrom
Closed
feat: add team snapshot/restore for checkpoint and recovery#24he-yufeng wants to merge 1 commit intoHKUDS:mainfrom
he-yufeng wants to merge 1 commit intoHKUDS:mainfrom
Conversation
New commands under `clawteam team`: - `snapshot` — capture full team state (config, tasks, events, sessions, costs, pending inbox messages) into a single bundle - `snapshots` — list available snapshots with metadata - `restore` — restore team state from a snapshot (with --dry-run) - `snapshot-delete` — remove a snapshot Useful for long-running agent swarms that need pause/resume, disaster recovery, or rollback to a known-good state. Includes 16 new tests covering create, list, restore, delete, dry-run, round-trip cleanup→restore, and edge cases.
Contributor
Author
tjb-tech
added a commit
that referenced
this pull request
Mar 19, 2026
Collaborator
|
Thanks for the feature work here. I didn’t merge this PR as-is, but I did absorb it into What landed in
Merged into
So I’m closing this PR since the functionality is now in Thanks again — the feature direction was good and this PR directly led to the final implementation. |
Contributor
Author
|
Thanks for the review and the hardening pass! Glad the feature direction worked out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
clawteam team snapshot/restore/snapshots/snapshot-deletecommands{data_dir}/snapshots/{team}/--dry-runto preview before writing,--forceto skip confirmationMotivation
Long-running agent swarms need a way to checkpoint and recover. Today, if a session crashes mid-way there's no holistic team-level snapshot —
session saveonly covers individual agents. This fills that gap.What's included
clawteam/team/snapshot.pySnapshotManager— create, list, restore, delete snapshotsclawteam/cli/commands.pyteamsubgrouptests/test_snapshots.pyTest plan
pytest tests/test_snapshots.py— 16/16 passedpytest tests/— 151/151 passed (no regressions)ruff check— clean