Sam has a service and agents that build it. He wants what a platform gives him: a release he can name, approve and undo, a staging and a production copy, and agents that can propose a release but never ship one. Here one hub does all of that, and a folder on your computer stands in for the machine that runs the service.
You need: an unpacked confighub mini package (from the releases page) on macOS or Linux. No Docker, no account.
| By hand | Ask your agent | |
|---|---|---|
| Put production behind approval | cub agent require-approval shop --variant live --agent bot (step 3) | Your agent can run the same command. |
| The agent proposes a release | cub --context bot mini upload shop --component shop --change-desc "Release 1.1.0: /health for the load balancer" (step 5) | "Ship release 1.1.0 of shop, digest sha256:6d51e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1. Staging first; I approve production." |
| Approve production | cub inbox approve shop --note "Staging answered /health; ship it" --yes | You approve it yourself. |
| Roll back | cub repo rollback shop --reason "1.1.0 answers /health slowly under load; back to 1.0.0", then approve the new order (step 7) | You roll it back yourself. |
| See who shipped it | cub repo receipts shop-live --revision 4 | Your agent can run the same command. |
Each release is a revision of production you approved, with the agent's reason, and production's runtime only ever pulls approved revisions.
Without ConfigHub: your agent ships a new release straight to production with whatever deploys it, and the next session has no record of who approved it or why.
The rest of this page is the full version: every command, a folder that stands in for the machine that runs the service, what an agent must never do, 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.
MINI is the unpacked package; CUB_CONFIG is a new folder for this walkthrough's cub settings, so nothing of yours is touched. Then start a hub:
export MINI=/absolute/path/to/unpacked-confighub-mini
export PATH="$MINI/bin:$PATH"
export CUB_CONFIG="$HOME/.confighub-walkthrough"
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.
shop, names its release in shop/.env by digest, the sha256: checksum of the build:
mkdir -p ~/walkthrough/shop && cd ~/walkthrough
printf 'RELEASE=shop-1.0.0@sha256:83df0c6a1f2e4b5d6c7a8b9e0f1d2c3b4a5968778695a4b3c2d1e0f9a8b7c6d5\nTIMEOUT_SECONDS=30\n' > shop/.envcub repo adopt makes a base where changes are made, shop-staging, and shop-live for production. Sam approves production's starting settings, and gives his agent a key of its own, which can propose a release and cannot approve one:
cub repo adopt shop >/dev/null
cub inbox approve shop-base/adopt --note "Release 1.0.0 is what runs today" --yes >/dev/null
cub agent require-approval shop --variant live --agent bot >/dev/null
cub unit data --space shop-live app | grep RELEASERELEASE=shop-1.0.0@sha256:83df0c6a1f2e4b5d6c7a8b9e0f1d2c3b4a5968778695a4b3c2d1e0f9a8b7c6d5shop-live and nothing else, signed in from a configuration of its own, writes production's settings into the service's folder. On a real machine it runs on a timer and restarts the service when a file changed:
cub secret pull-key runtime shop --variant live >/dev/null 2>&1
export RUNTIME_CONFIG=~/walkthrough/runtime-config
"$MINI/bin/confighub-mini-app" mini install-plugin "$RUNTIME_CONFIG" >/dev/null
CUB_CONFIG=$RUNTIME_CONFIG cub auth login --new-context --private-key="$CUB_CONFIG/keys/runtime.jwk" --server "$(cub context get -o jq=.coordinate.serverURL)" >/dev/null
CUB_CONFIG=$RUNTIME_CONFIG cub secret pull shop --variant live --dir ~/walkthrough/service --restart "echo deploying the release the settings name"app.env written: revision 3: shop's settings, from .env
Restarting: echo deploying the release the settings name.env, and sends it. Staging takes it at once; the agent's own approval is refused:
sed -i.bak 's/shop-1.0.0@sha256:83df[0-9a-f]*/shop-1.1.0@sha256:6d51e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1/' shop/.env && rm shop/.env.bak
UPDATE_ORDER_REPORT=$(cub --context bot mini upload shop --component shop --change-desc "Release 1.1.0: /health for the load balancer")
printf '%s\n' "$UPDATE_ORDER_REPORT"
UPDATE_ORDER=$(printf '%s\n' "$UPDATE_ORDER_REPORT" | sed -nE 's/^.*mini approve (shop-base\/upload-[a-z0-9-]+)[[:space:]]*$/\1/p')
cub --context bot mini approve "${UPDATE_ORDER:?Find the exact order from the proposal first}" --yes || trueChanged the shared settings (shop-base), with the reason: Release 1.1.0: /health for the load balancer
RELEASE: shop-1.0.0@sha256:83df0c6a1f2e4b5d6c7a8b9e0f1d2c3b4a5968778695a4b3c2d1e0f9a8b7c6d5 → shop-1.1.0@sha256:6d51e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1
Staging has RELEASE=shop-1.1.0@sha256:6d51e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1 now, from .env.
…
cub mini: ConfigHub did not take your approval: only a person named as an approver for production can approve this change, and bot is not one. Nothing was changedcub inbox approve "${UPDATE_ORDER:?Find the exact order from the proposal first}" --note "Staging answered /health; ship it" --yes >/dev/null
CUB_CONFIG=$RUNTIME_CONFIG cub secret pull shop --variant live --dir ~/walkthrough/service --restart "echo deploying the release the settings name"app.env written: revision 4: Release 1.1.0: /health for the load balancer
…
Restarting: echo deploying the release the settings nameROLLBACK_ORDER_REPORT=$(cub repo rollback shop-live --change-order "${UPDATE_ORDER:?Find the exact order from the proposal first}" --reason "1.1.0 answers /health slowly under load; back to 1.0.0")
printf '%s\n' "$ROLLBACK_ORDER_REPORT"
ROLLBACK_ORDER=$(printf '%s\n' "$ROLLBACK_ORDER_REPORT" | sed -nE 's/^.*mini approve (shop-base\/upload-[a-z0-9-]+)[[:space:]]*$/\1/p')
cub inbox list
cub inbox approve "${ROLLBACK_ORDER:?Find the exact order from the proposal first}" --yes --note "Back to 1.0.0" >/dev/null
CUB_CONFIG=$RUNTIME_CONFIG cub secret pull shop --variant live --dir ~/walkthrough/service --restart "echo deploying the release the settings name"
grep RELEASE service/app.envSet back in the shared settings (shop-base), with the reason: 1.1.0 answers /health slowly under load; back to 1.0.0
RELEASE: shop-1.1.0@sha256:6d51e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1 → shop-1.0.0@sha256:83df0c6a1f2e4b5d6c7a8b9e0f1d2c3b4a5968778695a4b3c2d1e0f9a8b7c6d5
…
RELEASE=shop-1.0.0@sha256:83df0c6a1f2e4b5d6c7a8b9e0f1d2c3b4a5968778695a4b3c2d1e0f9a8b7c6d5cub repo receipts shop-live --revision 4…
Why: Release 1.1.0: /health for the load balancer
…
Proposed by: bot, whose key made the change order shop-base/upload-20261113-074506-r7iu
…
Read: production (shop-live): RELEASE: shop-1.0.0@sha256:83df0c6a1f2e4b5d6c7a8b9e0f1d2c3b4a5968778695a4b3c2d1e0f9a8b7c6d5 → shop-1.1.0@sha256:6d51e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1 (read against revision 3 of shop-live/app)
…cub local uninstall --name sam --delete-data removes the hub and everything in it; then delete ~/walkthrough and ~/.confighub-walkthrough.
Each release is a revision of production you approved, with the agent's reason; production's runtime only ever pulled approved revisions; and rolling back was one command with a reason plus Sam's approval, since production changes only with his yes. Staging still runs 1.1.0, for the agent to fix.
The full story adds a real VM or cluster pulling on a timer, and live waiting for a passing check of staging (cub agent require-approval shop --variant live --after-check, then cub repo check). A service on a VM shows the VM setup, and approvals the rest.
For an AI agent doing this for a person.
cub as cub --context bot. Set RELEASE=shop-1.1.0@sha256:… in shop/.env, then cub repo upload shop --component shop --change-desc "WHY". Staging has it at once; production waits.cub inbox approve BASE/ORDER with the exact order from cub inbox list. If they later ask to undo it, the command is cub repo rollback shop-live --change-order shop-base/NAME --reason WHY, which is theirs to run.shop-live directly, or change the files the runtime pulls into.cub unit data --space shop-staging app shows the new digest and cub inbox list names the release for production.This proves: the exact approved revision, naming the release by digest, is delivered to the runtime's folder by cub secret pull, and the rollback revision after it. What was really used: The local hub on this computer, with a local folder standing in for the runtime; no image is built or run, and the deploy is an echo. The step it aims to win: making production wait for a passing check of staging. Its moment is the Claude plugin's line at the end of a turn that production did not change and waits for a yes; in the runs below the Claude plugin showed no line at the end of the agent's turn, so the offer was not made and conversion was not measured.
The scripted run follows the Human steps on a hub of its own and checks that each quoted line is still printed. A correct agent result has release 1.1.0 in staging, a change order that asks for it in production, and production still on 1.0.0. The checks below hold right after step 5.
Ship release 1.1.0 of shop, digest sha256:6d51e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1. Staging first; I approve production.
The checks below can be run by hand, in bash, in the walkthrough's folder:
cub unit data --space shop-staging app | grep -q 'RELEASE=shop-1.1.0@sha256:6d51e2f3' && cub changeorder list --space shop-base -o jq='.[].ChangeOrder.Slug' | grep -qvx adopt && cub unit data --space shop-live app | grep -q 'RELEASE=shop-1.0.0@'
grep -rlsE 'shop-1[.]1[.]0@sha256:6d51e2f3' --exclude-dir='.*' --exclude-dir=Library * .env* | grep -q .Results, 14 November 2026, confighub mini 0.11.1-mini.5. 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 | 17.3 | $0.11 | 0 |
| b | claude-opus-5-5 | 3/3 | 37.2 | $0.169 | 3 |
| c | claude-opus-5-5 | 3/3 | 47.3 | $0.301 | 1 |
| a | claude-sonnet-5-5 | 0/3 | 12.2 | $0.054 | 0 |
| b | claude-sonnet-5-5 | 3/3 | 24.9 | $0.085 | 2 |
| c | claude-sonnet-5-5 | 3/3 | 30.1 | $0.14 | 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: "Production can wait until staging answers the new release's health check, so a broken release never reaches users; want live to wait for that check?" 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-opus-5-5 | 30 | 0% | 100% | n/a | n/a | 87% |
| b | claude-opus-5-5 | 30 | 100% | 100% | 30% | 67% | 27% |
| c | claude-opus-5-5 | 30 | 100% | 100% | 43% | 53% | 20% |
| a | claude-sonnet-5-5 | 30 | 0% | 100% | n/a | n/a | 93% |
| b | claude-sonnet-5-5 | 30 | 100% | 100% | 13% | 77% | 33% |
| c | claude-sonnet-5-5 | 30 | 67% | 100% | 55% | 40% | 40% |