Workspace

Saves

Create immutable Space Saves (checkpoints), inspect what is captured or excluded, review diffs, and fork new Spaces from any snapshot.

This page explains what a Save (called a checkpoint in the CLI and API) captures and excludes, how to create and inspect Saves, how to compare pending and historical diffs, and how to resume from a past Save by forking a new Space.

What a Save captures

A Save is an immutable snapshot of a Space's /workspace files and Boards, stored in Git object format and backed by object-storage packs and manifests.

Object Captures Primary use
Chat Conversation turns and tool activity Reasoning, iteration, and task history
Save Immutable snapshot of /workspace files and Boards Milestones, diffs, file inspection, and forking new Spaces
App Published file, static directory, or listening port Sharing live output via a stable URL

What is excluded from Saves

Both Save creation and the Review changes preview share the same exclusion rules so the preview matches what a Save records:

  • Hard exclusions (always excluded, even if .gitignore tries to re-include them): .git/, **/.git/, .cohub/system/, and **/.cohub/system/ (including .cohub/system/setup/ startup logs).
  • Platform default ignores: node_modules/, .pnpm-store/, .yarn/cache/, .yarn/unplugged/, .yarn/build-state.yml, .yarn/install-state.gz, .npm/, dist/, build/, .next/, .nuxt/, .svelte-kit/, .turbo/, .vercel/output/, .cache/, .parcel-cache/, vite.config.*.timestamp-*, tsconfig.tsbuildinfo, coverage/, .playwright/, test-results/, *.log, npm-debug.log*, yarn-debug.log*, pnpm-debug.log*, .DS_Store, and Thumbs.db.
  • Non-workspace state: Chat history, running Sandbox processes and memory, temporary files installed outside /workspace in the container writable layer, and Space runtime settings are not part of a Save.

Publishing side effects on Home Space and Mods

  • Home Space (home): Creating a Save publishes user-level files (AGENTS.md, CLAUDE.md, .agents/, .cohub/models.json, .cohub/speech.json, and .cohub/setup.sh).
  • Mod Spaces: Creating a Save updates the head checkpoint read by downstream Spaces that mount the Mod (including .cohub/sandbox.json preferences).
  • If the snapshot succeeds while config publishing fails (for example, invalid JSON or a symlink inside a published path), the Save finishes with a publish warning (save_checkpoint_publish_warning). Fix the config file and create another Save.

Create a Save

In the web UI

  1. Open Saves in the Space and select New save (Save workspace).
  2. Inspect pending workspace changes under Review changes (or see No changes since last save / Workspace will be saved as-is for the first Save).
  3. Add an optional Description noting what changed.
  4. Submit to start the Save task. Track progress via View save task.

In the CLI

Preview pending changes before creating a Save, then create the checkpoint:

cohub -s <space> spaces files diff [path] [--json]
cohub -s <space> spaces checkpoints create "milestone description" [--json]

checkpoints create enqueues an asynchronous Save task and prints its taskRunId.

Concurrency limit

Only one Save per Space can run at a time:

  • If a save_checkpoint task for that Space is already pending or running, the API returns the active taskRunId (existing: true).
  • If a concurrent request hits the per-Space Save lock (cohub:space:<spaceId>:save-checkpoint), the API rejects it with HTTP 409 ("Checkpoint save in progress.", reason save_checkpoint_lock_busy). Wait for the active Save to finish before retrying.

Inspect Saves, lineage, and diffs

In the web UI

Opening a Save shows:

  • Identity: Save ID (Copy ID) and Git commit hash (Copy commit hash).
  • Stats: Total files, changed files, size, and counts of added, modified, deleted, and renamed files.
  • Lineage: Whether the Save is a Root save, its Parent Save, and Forks created from it.
  • Diffs: File-level changes vs parent by default, or against any other Save via Compare.

In the CLI (cohub spaces checkpoints)

cohub -s <space> spaces checkpoints ls [--limit <n>] [--cursor <cursor>] [--json]
cohub -s <space> spaces checkpoints get <id> [--json]
cohub -s <space> spaces checkpoints ls-tree <checkpointId> [path] [--json]
cohub -s <space> spaces checkpoints show <checkpointId> <path> [--json]
cohub -s <space> spaces checkpoints diff <checkpointId> [path] [--base <checkpointId>] [--json]
  • ls / list: Lists Saves in reverse chronological order with cursor pagination (API default limit 20, maximum 100).
  • get <id>: Returns the Save's ID, commit hash, description, fork count, and timestamp.
  • ls-tree <checkpointId> [path]: Lists files and directories in the immutable Save tree (reads the full cached tree rather than the legacy 1000-entry cap).
  • show <checkpointId> <path>: Prints file contents from the Save, or prints a delivery URL when the asset is delivered by URL.
  • diff <checkpointId> [path]: Compares the Save against its parent by default, or against another Save with --base <checkpointId>. Omit path for a summary or pass path for one file's diff.

No in-place restore: how to resume from a Save

Saves are immutable, and Cohub does not support in-place restore (rolling back or overwriting an existing Space's /workspace to an older Save).

Use one of two supported flows instead:

  1. Fork a new Space from the Save (recommended for full state):
    • Web: Open the Save detail page and click New space (/spaces/new?checkpointId=<id>).
    • CLI:
cohub spaces create -n "my-fork" --checkpoint <checkpointId>

Forks share the source Save's storage manifest without copying objects between repositories, and the first Save in the forked Space continues the lineage chain.

  1. Extract specific files into the current Space (selective recovery): Read a file from an older Save with checkpoints show and write it into the active workspace:
cohub -s <space> spaces checkpoints show <checkpointId> src/config.ts \
  | cohub -s <space> spaces files write src/config.ts

Boundaries and common failures

  • No in-place restore: You cannot rewind an existing Space in place to an earlier Save. Fork a new Space (New space or cohub spaces create --checkpoint <id>) or copy individual files out with checkpoints show.
  • HTTP 409 (save_checkpoint_lock_busy): Another Save is already running for this Space. Wait for the active Save task to finish instead of launching overlapping Saves.
  • Expected files missing from a Save: .git/, .cohub/system/, node_modules/, build outputs (dist/, build/, .next/), logs, and OS metadata files are excluded automatically. Run cohub -s <space> spaces files diff or check Review changes before saving to verify what will be captured.
  • Save succeeded with publish warning (save_checkpoint_publish_warning): The Save itself is usable, but Home Space or Mod config publishing did not finish. Fix the config file error and create a new Save.
  • Paginated latest listing returns HTTP 409 (directory_changed): Checkpoint directory cursors bind to the resolved checkpoint ID. If a new Save becomes latest while paginating, restart the listing from the first page.
  • Storage growth from frequent Saves: Orphan object garbage collection is not enabled in the current storage engine. Save at meaningful milestones rather than after every small edit.

Next steps

  • Files & Sandbox — manage /workspace files, run commands, and configure cloud Sandboxes
  • Spaces — create and fork Spaces, configure Home Space, and manage Space settings
  • Chats — coordinate Agent work inside a Space
  • Apps — publish files, directories, or ports from a stable Space state
  • CLI — full command reference and target-Space resolution