ConfigHub · Durable config for coding agents
Docs / docs/journeys/going-back.md Source on GitHub →

Going back: from a hub to plain files, and removing each part

This page is for anyone who added the Claude plugin, the local hub or a hub as a source, and wants to undo one step or all of them. Each step can be undone on its own. Nothing here asks you to keep ConfigHub to keep your work: it comes out as plain files, with the reason for each value.

If an agent has done damage and you want it stopped at once, follow the walkthrough Sam's bad afternoon: one command stops every agent session and takes the agent's key away, then you find its change and put it back.

The words on this page, such as hub, base and change order, are explained in the glossary.

What to undo, and how

What you addedTo undo itWhat stays
Agent config edits in your working folderconfighub mini undo --dry-run, then confighub mini undoYour source-code edits stay untouched; only tracked config edits are reverted
A change that waits for youcub inbox refuse APP-base/ORDER --reason "WHY"Your reason, which the agent can read
A change live already hasAsk the agent to set the value back. It proposes that, and you approve it. Going back is a change like any otherBoth changes, with their reasons
The agent's keycub agent revoke APP-agent. Its sessions lose their rights at once, those already signed in too. Then delete .claude/settings.local.json in the repository, or take out what the agent setup added to itWhat the agent did, in the hub
Every agent session, at oncetouch ~/.confighub/halt stops every Claude Code session with the Claude plugin at its next tool call. Remove the file to let them run againA process an agent already started keeps running
The hub as the source for an app on Argo CD or FluxWrite the app back to Git and point the controller at Git again (hand it back to Git)The same Deployment and pods, and a CHANGES.md in Git
A hub that starts by itselfFor one folder, cub agent changes --arrival off. For the machine, cub local start --arrival noWhat the hub already holds, until you remove the local hub
the local hubTake your apps out as plain files (below), then cub local stop, or cub local uninstall --delete-dataThe files you wrote out. Your app's own files, which the hub never changed
The Claude pluginclaude plugin uninstall confighub@confighub, then rm -rf ~/.confighub/agent-changesRemoving ~/.confighub/agent-changes wipes local records immediately (automatic 30-day cleanup does not run once the plugin is uninstalled). Nothing remains in your repository unless you turned on in-repo recording

Take an app out as plain files

  1. Write the app's copies as files, one folder for each copy:
    cub local copy APP --to-dir DIR

    --variant live writes only the live copy and the copies it was made from.

  2. Read DIR/CHANGES.md. It lists each value changed in the hub, its reason, who changed it and when, and, for live, the change order and who approved it. It starts:
    # What this directory is
    
    Configuration written out of a ConfigHub hub (growl-cub) as plain files, one directory for each Space. It is what the hub held when this was written. Nothing here needs the hub.
    
    Settings files keep their native format, with ConfigHub bookkeeping removed. Have your application read the files for its environment using its normal configuration loader. Kubernetes resources can still be delivered by Argo CD or Flux. Writing these files does not start a service.
    
    If your repository makes its files from something else, Helm values or Kustomize overlays, those do not know about the changes below. The files here do. To keep working from values or overlays, put the changes you care about back there.
  3. Commit the files where you want them. If your repository makes its files from Helm values or Kustomize overlays, put the changes you want to keep back there, as the file says.

For an app you attached, your own .env, .tfvars or Kustomize files were never changed by the hub. A change an agent proposed went through those files first. What lives only in the hub is the reasons, the approvals, and any value set with cub repo set.

Remove confighub mini

  1. Stop the hub, keeping its data, so that /confighub:staging, typed in a connected app's folder, can start it again later:
    cub local stop
  2. Or remove the hub and its data:
    cub local uninstall --delete-data

    Without --delete-data, it refuses and says what would be lost. A hub holds the record of someone's choices.

  3. Delete .confighub-app from each app's repository.

Complete wipe (plugin + marketplace + all ~/.confighub files)

To remove every ConfigHub binary, marketplace clone, local signing key, log, and journal file from your machine (export any apps you want to keep with cub local copy APP --to-dir DIR first):

claude plugin uninstall confighub@confighub
claude plugin marketplace remove confighub
cub local uninstall --delete-data   # if the local hub was installed
rm -rf ~/.confighub                # WARNING: deletes all local records, keys, and cached binaries

Leave your organization's ConfigHub

cub local copy copies an app between any two hubs your cub can reach, base and copies together, with each kept value's reason. It reads the hub it copies from and changes nothing there. To bring an app down to the local hub, make the local hub the current cub context and run cub local copy --from-context ORG APP, where ORG is your organization's context. To disconnect a cluster from ConfigHub, cub cluster detach CLUSTER leaves the cluster as it is (your own cluster).