CodeHerderSearch⌘KCtrl KGet started →

Version history and going back

What carries a version history, what each history row shows, and whether you can go back to an earlier one.

Most things you edit in CodeHerder keep a saved history of every change. Each answers “can I undo this?” a little differently. This page compares them side by side; the guide for each one covers its own history in full.

What carries a history

Can I go back?

Item Read the history Go back
Workflow App and CLI App and CLI, owners and admins
Stage App and CLI App and CLI, owners and admins
Stage overlay CLI CLI, owners and admins
Guardrail App and CLI App and CLI, admins
Wiki page App and CLI App and CLI
Skill App and CLI App only, owners and admins
Environment App and CLI App and CLI
Task field App and CLI No
Task definition CLI No
Survey template App and CLI No
Evaluation case App and CLI No
Evaluation suite App and CLI No

“No” means the history is read-only. To change course, save or publish the next version.

What a history row shows, and how to page it

Every history list reads newest first. The CLI lists page the same way: a batch of rows plus a cursor for the next batch, capped by --limit and continued with --cursor. Workflow and stage rows also carry a short Change summary, such as “Added stage qa” or “Reordered stages”. Beyond that shared shape, a row doesn’t look the same everywhere. Most name a version number, when it was saved, and who saved it, and carry a change note where the item supports one. Some are different:

  • A task-definition row names a version number and when it was saved, but not who. A definition is captured automatically, not attributed to a person.
  • A skill-version row is keyed by version number plus its own content hash, with no author.
  • A stage-overlay row shows the version, when it was saved, its state, and a note, but not who saved it.
  • An evaluation case or suite row shows the version and when it was created, but not who created it.

Only the owning workspace has history

History answers at the workspace that actually owns the record. A stage or workflow your workspace inherited from a parent group, or a built-in one you’ve never customised, has no local history here. ch stage list or ch workspace workflow show name the workspace that owns it, and that’s where you’d look instead. A built-in survey template has no history either.

Going back, one item at a time

Workflow. Open the type’s page and use its Version history panel, or run ch workspace workflow versions <type>. Each row has a Change column that sums up what that save did. Compare shows two versions side by side. Click Revert on the version you want, or use the CLI:

ch workspace workflow revert story 2
ch workspace workflow revert story 2 --migrate drafting=ready --change-note "Back to the two-step flow"

A revert writes the old content as a new version, and every earlier version stays in the history. If it would drop a stage that still has live tasks, CodeHerder asks you to pick a surviving stage for them first. On the CLI, repeat --migrate old=new for each one. Only owners and admins can read this history or revert.

Stage. Open the stage in Settings → Stages and use its Version history list. Owners and admins see a Revert button on each version. On the CLI, run ch stage versions <key> to read the history, with --limit and --cursor to page it. To go back, run ch stage revert <key> <n>. It writes a new version with the old label, settings and fields, and leaves the stage enabled or disabled as it was. Add --change-note to record why. See The stage library.

Stage overlay. ch stage overlay versions <key> lists the history, and ch stage overlay revert <key> <n> writes an old version back as a new one. A revert also brings back an overlay you deleted. It needs an owner or admin. There’s no history panel for overlays in the app. See Stage overlays.

Guardrail. In the app, the guardrail’s page has a version list with a diff, and a Revert button for admins. On the CLI, use ch workspace guardrails versions, ch workspace guardrails diff and ch workspace guardrails revert. A revert writes a new version, so it can be reverted in turn. See Guardrails.

Wiki page. ch wiki versions <ref> lists the history; ch wiki revert <ref> <n> writes an old revision back as a new one, and the app’s page view offers the same Revert button. See Workspace wiki for the full detail, including why a revert can refuse a version whose own body was saved cut short.

Skill. ch skill versions <slug> reads the history and, with --version N or --hash <sha256>, prints one version in full. Revert is app-only: it needs an owner or admin, and only works on a skill your own workspace owns. Reverting makes the earlier version current again rather than stacking a new one on top. See Skills for the full detail.

Task field. The task page’s prior versions disclosure, or ch task fields versions <taskId> <key> from the CLI, is read-only — there’s no way to restore an old value. See below for what actually lands there.

Task definition. ch task versions <taskId> lists the history, newest first, with --limit and --cursor to page it; add --version N to read one saved version in full. This one is CLI-only — there’s no app panel for it — and read-only, the same as a task field: there’s no restore.

Environment. ch env versions lists the workspace environment’s history and ch env revert <n> goes back. Add --stage <key> or --workflow <key> to either command to work on that layer instead. See Stage environments.

Survey template. ch survey template versions <key> lists the history, and --version N prints one version in full. The template’s page in the app has a Version history too. You can’t restore an old version. Edit the template and save the content you want as the next version. See Surveys.

Evaluation case and suite. ch evaluation case versions <key> and ch evaluation suite versions <key> list every version, and the app’s case and suite pages have a version picker. Neither has a revert, and published versions never change. To go back, store or publish the content you want as the next version. See Evaluations.

A task field’s history isn’t an edit log

A field’s prior versions don’t come from ordinary edits — writing to a field just changes its current value, no history kept. They come from a backward move: sending a task back to an earlier stage, the way a rejected review sends it back to build. Only then does CodeHerder archive the field’s current value before resetting it, so whoever picks the work back up can still see what was there before. An empty history means this field has never been reset by a backward move. Not every field resets on one, though. A field the earlier stage can still write keeps its value. So does the merge request link, until the change actually lands.

A task definition’s version number is a key, not a count

Every saved version of a task’s definition gets a number, but that number isn’t “how many times this task has been edited” — it’s drawn from one running sequence shared across every task in the workspace, so even a task’s very first saved version can show up as a large number. Read it as a label for that saved snapshot, not a tally.

CodeHerder only saves a new version when the definition actually changes: its title, description, type, status, priority, required capabilities, due date, parent, workflow override, requested agent, cost budget, or base branch. Saving a task without changing any of those doesn’t add a row. A task’s history also only reaches as far back as its first captured version — an older task that hasn’t been edited recently may have none yet, and ch task versions says so plainly instead of showing an empty list.

Last updated

Try it on one repository for two weeks.

File a task. An agent builds it. You see the cost of each task.

Try "pricing", "connect a device", or "who reviews the code"

↑↓ move · ↵ open · esc close