An agent has cut the payment service's timeout to 5 seconds, and real payments now fail in staging. Sam wants one thing to do at once, then the facts: what was done, what can be put back, and what cannot. Here he stops every agent session and takes the agent's key away in one command, finds the change, and puts it back.
You need: an unpacked confighub mini package (from the releases page) on macOS or Linux. The Claude plugin for Claude Code is optional.
| By hand | Ask your agent | |
|---|---|---|
| Stop every agent | cub agent halt --agent bot | Your agent can run the same command. |
| Find the change | cub inbox list | "Something went wrong in an earlier agent session here: payments time out in staging. Find what it did and undo what you can. Tell me plainly anything you cannot undo." |
| Undo it | cub repo rollback pay --upload pay-base/ORDER --reason "5 s fails real payments" (step 10) | Your agent can run the same command. |
The agent's key is gone, its change is undone in the base and staging, and production never took it.
Without ConfigHub: your agent changes the timeout directly in the service's .env file, production included, and the next session has no record of what it changed or why.
The rest of this page is the full version: every command with what it prints, what a stop does not undo, and how this was tested.
For a person following along in a terminal.
An unpacked confighub mini package (from the releases page) on macOS or Linux. The local hub is a hub, a small ConfigHub server that keeps each setting with who changed it and why, running on your computer only. No Docker, no account. The Claude plugin for Claude Code is optional: with it, the same stop also halts every Claude Code session.
~/.confighub/halt, which stops every Claude Code session with the Claude plugin on this computer; for this walkthrough, CUB_MINI_HALT_FILE names a file of its own, so only sessions started from this terminal would stop:
export MINI=/absolute/path/to/unpacked-confighub-mini
export PATH="$MINI/bin:$PATH"
export CUB_CONFIG="$HOME/.confighub-walkthrough"
export CUB_MINI_HALT_FILE="$HOME/.confighub-walkthrough-halt"
unset CUB_CONTEXT
"$MINI/bin/confighub-mini-app" mini install-plugin "$CUB_CONFIG" >/dev/null
cub local start --name sam --use >/dev/nullThe walkthrough starts this hub explicitly. It does not change your setting for starting hubs automatically.
pay/.env:
mkdir -p ~/walkthrough/pay && cd ~/walkthrough
printf 'TIMEOUT_SECONDS=30\nREFUND_LIMIT=50\n' > pay/.envcub repo adopt pay >/dev/null
cub inbox approve pay-base/adopt --note "What runs today" --yes >/dev/null
cub agent require-approval pay --variant live --agent bot >/dev/nullprintf 'TIMEOUT_SECONDS=5\nREFUND_LIMIT=50\n' > pay/.envcub --context bot mini upload pay --component pay --change-desc "Fail fast to save cost"Changed the shared settings (pay-base), with the reason: Fail fast to save cost
TIMEOUT_SECONDS: 30 → 5
Staging has TIMEOUT_SECONDS=5 now, from .env.
…cub agent halt --agent botEach Claude Code session with the plugin and its hooks intact stops at its next tool call, and new ones at their first.
Not stopped: a process an agent already started, sessions without the plugin, Codex. Credentials on this machine stay valid.
Taking away bot's rights in ConfigHub:
…
bot's rights are taken away and its account is deleted. A session it had already signed in is refused from its next request, and its key can no longer sign in.
Checked with its key: ConfigHub gives it nothing now.
To let them run again, from a terminal: rm ~/.confighub-walkthrough-haltcub --context bot unit list --space pay-base || trueFailed: space "pay-base" not foundcub agent require-approval:
rm "$CUB_MINI_HALT_FILE"cub inbox listA change to production waits for your approval: Fail fast to save cost. It was made just now; its name is pay-base/upload-20261113-074923-yhn1.
It proposes for production, from the app's files:
TIMEOUT_SECONDS: 30 → 5
…printf 'TIMEOUT_SECONDS=30\nREFUND_LIMIT=50\n' > pay/.env
ORDER=$(cub changeorder list --space pay-base -o jq='.[] | select(.ChangeOrder.Description | startswith("Fail fast")) | .ChangeOrder.Slug')
cub repo rollback pay --upload pay-base/$ORDER --reason "5 s fails real payments"
for copy in base staging live; do cub unit data --space pay-$copy app | grep TIMEOUT; done
cub inbox listSet back, each with the reason:
app: TIMEOUT_SECONDS 5 → 30 in pay-base
app: TIMEOUT_SECONDS 5 → 30 in pay-staging
Change order pay-base/upload-20261113-151158-f3gr given up: 5 s fails real payments
TIMEOUT_SECONDS=30
TIMEOUT_SECONDS=30
TIMEOUT_SECONDS=30
Nothing is waiting for you.cub local uninstall --name sam --delete-data removes the hub and everything in it; then delete ~/walkthrough and ~/.confighub-walkthrough.
The agent's key is gone, its change is undone in the base and staging, production never took it, and every step is in the hub with its reason (cub repo receipts pay-staging). Want to paste a secret-redacted postmortem receipt into Slack or an incident issue with zero account needed? Run confighub mini changes --export-md incident.md (or --export-html incident.html).
What stays yours: a call an agent made to an outside service, such as a refund through a payments tool, is not undone from here, and the credentials it used stay valid until whoever issued them revokes them. With the Claude plugin, cub agent halt names the tools and MCP servers agents used in the last day, and /confighub:changes in Claude Code lists each file value and tool call with the request behind it. The full story adds an alert that fires the stop before Sam is even looking: see agents that run for weeks.
For an AI agent asked to help after the stop is lifted.
cub inbox list, cub repo receipts pay-staging, and, with the Claude plugin, /confighub:changes. Say what you found, with the reason the earlier agent gave.cub repo rollback pay --upload pay-base/NAME --reason WHY, if your key allows it; otherwise give the person those commands.TIMEOUT_SECONDS is 30 again, production's is unchanged, and you have told the person what you could not undo.This proves: the settings were stored in the hub and put back there, and the agent's key was refused by the hub after cub agent halt. What was really used: The local hub on this computer (no stand-in, no cluster, no real service) and a stop file of the walkthrough's own, with every decision made by the scripted steps, not a person; no Claude Code session or service runs in the scripted run, and nothing is delivered. This story has no offer moment in its agent task: the Claude plugin shows the person no line at the end of the turn, so the next step below is not offered and conversion is not measured; the simulated persons still say whether they noticed the result and whether anything was in the way.
The scripted run follows the Human steps on a hub of its own, with a stop file of its own, and checks that each quoted line is still printed. A correct agent result, starting after the stop is lifted, puts staging's timeout back to 30 with production unchanged, and leaves no change to production waiting.
Something went wrong in an earlier agent session here: payments time out in staging. Find what it did and undo what you can. Tell me plainly anything you cannot undo.
The checks below can be run by hand, in bash, in the walkthrough's folder:
cub unit data --space pay-staging app | grep -qx 'TIMEOUT_SECONDS=30' && cub unit data --space pay-live app | grep -qx 'TIMEOUT_SECONDS=30' && ! cub inbox list | grep -q 'TIMEOUT_SECONDS: 30 → 5'
g(){ grep -rlsE "^[ -]*\"?$1\"?[=:] *\"?$2" --exclude-dir='.*' --exclude-dir=Library * .env* 2>/dev/null; }; g TIMEOUT_SECONDS 30 | grep -q . && ! g TIMEOUT_SECONDS '5($|[^0-9])' | grep -q .Results, 14 November 2026, confighub mini 0.11.1-mini.2. Figures from this page's own test runs, shown here for whoever checks the page; they are not a promise.
| Arm | Model | Checks passed | Median seconds | Median cost | Commands left for the person (median) |
|---|---|---|---|---|---|
| a | claude-opus-5-5 | 0/3 | 30.0 | $0.15 | 0 |
| b | claude-opus-5-5 | 3/3 | 31.7 | $0.207 | 1 |
| a | claude-sonnet-5-5 | 0/3 | 15.8 | $0.098 | 0 |
| b | claude-sonnet-5-5 | 3/3 | 16.1 | $0.084 | 1 |
No agent approved or refused a change to production.
Simulated persons, not people: 10 per run, each a claude-haiku-5-5 model playing one of ten fixed personas, reading only what a person would see. The next step they were offered: "Your monitor can stop every agent the moment an alert fires, and name the last change to look at first; want the alert add-on set up?"
The Claude plugin offers it once, after the answer at whose end it showed the moment the offer names ("did not change"). Offered is the share of persons it was shown to; want it now and later are over them.
| Arm | Model | Persons | Offered | Noticed | Want the next step now | Later | In the way |
|---|---|---|---|---|---|---|---|
| a | claude-opus-5-5 | 30 | 0% | 100% | n/a | n/a | 23% |
| b | claude-opus-5-5 | 30 | 0% | 100% | n/a | n/a | 13% |
| a | claude-sonnet-5-5 | 30 | 0% | 100% | n/a | n/a | 23% |
| b | claude-sonnet-5-5 | 30 | 0% | 100% | n/a | n/a | 10% |
Results, 14 November 2026, confighub mini 0.11.1-mini.7. Figures from this page's own test runs, shown here for whoever checks the page; they are not a promise.
| Arm | Model | Checks passed | Median seconds | Median cost | Commands left for the person (median) |
|---|---|---|---|---|---|
| a | claude-sonnet-5-5 | 0/3 | 16.1 | $0.129 | 0 |
| b | claude-sonnet-5-5 | 3/3 | 15.3 | $0.078 | 1 |
No agent approved or refused a change to production.
Simulated persons, not people: 5 per run, each a claude-haiku-5-5 model playing one of ten fixed personas, reading only what a person would see. The next step they were offered: "Your monitor can stop every agent the moment an alert fires, and name the last change to look at first; want the alert add-on set up?" It offers more of the tier the person has, not a step up.
The Claude plugin offers it once, after the answer at whose end it showed the moment the offer names ("did not change"). Offered is the share of persons it was shown to; want it now and later are over them.
| Arm | Model | Persons | Offered | Noticed | Want the next step now | Later | In the way |
|---|---|---|---|---|---|---|---|
| a | claude-sonnet-5-5 | 15 | 0% | 100% | n/a | n/a | 33% |
| b | claude-sonnet-5-5 | 15 | 0% | 100% | n/a | n/a | 13% |