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 you added | To undo it | What stays |
|---|---|---|
| Agent config edits in your working folder | confighub mini undo --dry-run, then confighub mini undo | Your source-code edits stay untouched; only tracked config edits are reverted |
| A change that waits for you | cub inbox refuse APP-base/ORDER --reason "WHY" | Your reason, which the agent can read |
| A change live already has | Ask the agent to set the value back. It proposes that, and you approve it. Going back is a change like any other | Both changes, with their reasons |
| The agent's key | cub 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 it | What the agent did, in the hub |
| Every agent session, at once | touch ~/.confighub/halt stops every Claude Code session with the Claude plugin at its next tool call. Remove the file to let them run again | A process an agent already started keeps running |
| The hub as the source for an app on Argo CD or Flux | Write 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 itself | For one folder, cub agent changes --arrival off. For the machine, cub local start --arrival no | What the hub already holds, until you remove the local hub |
| the local hub | Take your apps out as plain files (below), then cub local stop, or cub local uninstall --delete-data | The files you wrote out. Your app's own files, which the hub never changed |
| The Claude plugin | claude plugin uninstall confighub@confighub, then rm -rf ~/.confighub/agent-changes | Removing ~/.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 |
cub local copy APP --to-dir DIR--variant live writes only the live copy and the copies it was made from.
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.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.
/confighub:staging, typed in a connected app's folder, can start it again later:
cub local stopcub local uninstall --delete-dataWithout --delete-data, it refuses and says what would be lost. A hub holds the record of someone's choices.
.confighub-app from each app's repository.~/.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 binariescub 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).