Project history

Every save to a project's source creates a version. You can list the versions, compare any two of them, and restore an old one. Restoring does not rewrite history: it saves the old files as a new version on top, so the version you replaced stays available too.

What creates a version

One save is one version, whichever way it was made. The History panel shows a label for where it came from:

LabelCreated by
Code tabSave in the Code tab.
LLM tabSaving or ejecting the LLM loop.
Flow tabSaving a flow.
TemplateSeeding a template over the current files, for example Add LLM agent. The files it replaced are kept as the version before it.
CLIAny write made with an API key, including voicethere source push.
RestoreRestoring an older version.
Before historyThe files a project had before history started, stored once when the project is first saved after this feature.

History starts with the first save after this release. Projects that were saved earlier get one Before history version on that first save, and nothing older is recoverable. A save that fails, or that is rejected because someone else saved first, creates no version.

How many versions are kept

Each plan keeps a fixed number of recent versions per project. The newest version is always kept.

PlanVersions kept
Free3
Budget25
Budget+25
Advanced100
Ultimate100

Older versions are removed when you save. A version that a build was made from, or that a compile in progress is using, is kept on top of the limit, so a build always points at source you can still open. If you move to a smaller plan, the extra versions go at your next save. The same numbers appear in the pricing comparison as Source versions kept.

History in the dashboard

Open the History panel in the Code tab. Pick a version to see a side-by-side diff of each changed file against the one before it. Restore asks for a confirmation, then the editor reloads at the new revision.

Build history and deployment history show Source vN on each row that came from a known version. It links to the Code tab with that version open, which is the quickest way to see what a deployed build was made from. Builds uploaded from the CLI have no source version.

API

All routes live under /api/v1/projects/{projectId}/source and take the same authentication as the other control plane routes. A project outside your organization answers 404, and a key that is bound to another project is refused.

List versions

GET /source/versions?limit=20&before=12

{
  "versions": [
    {
      "revision": 11,
      "created_at": "2026-11-06T09:14:02.000Z",
      "source": "cli",
      "message": "fix barge-in",
      "actor": { "type": "api_key", "user_id": null, "api_key_id": "…", "user_api_key_id": null },
      "entry_path": "agent.ts",
      "file_count": 4,
      "total_bytes": 8120,
      "build_ids": ["…"],
      "is_current": true
    }
  ],
  "next_before": 7
}

Newest first. limit is 1 to 100 (default 20). Pass the returned next_before as before for the next page; it is null on the last page.

Read one version

GET /source/versions/11

{ "revision": 11, …same fields as above…, "files": [{ "path": "agent.ts", "content": "…" }] }

Compare two versions

GET /source/versions/diff?from=9&to=11

{
  "from": 9,
  "to": 11,
  "entry_path_from": "agent.ts",
  "entry_path_to": "agent.ts",
  "files": [
    { "path": "agent.ts", "status": "modified", "before": "…", "after": "…" },
    { "path": "flow.json", "status": "added", "before": null, "after": "…" }
  ]
}

status is added, removed, modified or unchanged. A version that no longer exists answers 404.

Restore a version

POST /source/versions/9/restore
{ "revision": 11 }

revision is the workspace revision you last read, the same rule as saving with PUT /source. If someone saved in between, the call answers 409 and changes nothing: read the source again and retry. On success the response is the new workspace, with its new revision.

PUT /source also accepts an optional message of up to 200 characters, stored with the version.

CLI

These commands need @voicethere/cli 0.22.0 or later.

voicethere source history [--limit 20] [--json]
voicethere source diff <from> [to] [--name-only]
voicethere source restore <revision> [--yes]
voicethere source push --message "fix barge-in"

source history prints a table, or JSON with --json. source diff prints a unified diff per changed file; without to it compares against the current source, and --name-only lists just the changed paths. source restore asks before it restores; --yes skips the question and is required when there is no terminal. history, diff and restore accept --project when you are not in a linked repo.

If the source changed on the server since you read it, push and restore stop with Source changed on the server since you read it. Run voicethere source pull, then try again. and exit 1. See the CLI guide for the rest of the commands.

← All documentation