You run a small service from a .env file. Try a settings change in staging, check what production still holds, then approve it and undo it. At the end, copy the setup to your team so the next change can start there.
You need: the local hub, unpacked, with starters switched on.
| By hand | Ask your agent | |
|---|---|---|
| Connect the app | cub repo adopt menu | "Deploy my menu service: keep its settings in a staging and a production copy, and production should change only when I approve." |
| Change a setting | Edit menu/.env, then cub repo upload menu --change-desc "Warnings alone hide what customers do" | "Production should log at info, not warn. Make that change for menu." |
| Approve production | cub inbox approve menu (step 5) | You approve it yourself. |
| Undo | cub repo rollback menu --reason "Info logs show customer emails" | "Undo that log level change in production; info logs show customer emails." |
Staging keeps its own log level, production changes only when you approve, and cub secret pull writes production's approved settings to the file your service reads.
Without ConfigHub: your agent changes the .env file directly, production included, and the next session has no record of why.
The rest of this page is the full version: every command, the move to your team's shared hub, what an agent leaves to you, and how this was tested.
For a person following along in a terminal.
The local hub, unpacked as installing the local hub shows (steps 1 to 5). The local hub runs a hub, which is a ConfigHub server that keeps your app's settings, on your own computer. cub is ConfigHub's command-line tool, and the package includes it. For step 7 you also need an organization on a shared hub on confighub.com, the shared hub your team signs in to.
MINI is the folder of the unpacked package. A starter gives a new app of one kind its usual settings, each with a reason (starters).
export MINI=/absolute/path/to/unpacked-confighub-mini
export PATH="$MINI/bin:$PATH" CUB_MINI_STARTERS="$MINI/starters"
cub plugin install "$MINI" >/dev/null
cub local start --use
export LAPTOP=$(cub context get -o jq=.name)menu with its settings, and its own log level for staging.
mkdir menu
printf 'PORT=5000\nLOG_LEVEL=warn\nMENU_SOURCE=kitchen.json\n' > menu/.env
printf 'LOG_LEVEL=debug\n' > menu/.env.stagingcub repo adopt menuStarter: web (version 1, web.yaml): A small web service whose settings are in a .env, app.env or compose file, made from adopt's starter pattern.
…
Sets REPLICAS=2, as a setting: Two instances, so that one can restart without the service going down.
…
Leaves PORT alone: it is set already, PORT=5000, by you, in .env.
…
Production takes the shared settings only after you approve them. To see them and approve them, in a terminal of your own: ~/.confighub/mini/cub inbox approve menu-livecub secret pull writes live's settings as menu-running/app.env; start the service from that file as you do now.
cub inbox approve menu-base/adopt --note "First settings for production" --yes
cub secret pull menu --variant live --dir menu-running…
Approved menu-base/adopt.
…
app.env written: revision 3: menu's settings, from .env, with .env.staging for stagingdebug. Read the production diff in cub inbox list before you proceed.
printf 'PORT=5000\nLOG_LEVEL=info\nMENU_SOURCE=kitchen.json\n' > menu/.env
UPDATE=$(cub repo upload menu --change-desc "Warnings alone hide what customers do")
printf '%s\n' "$UPDATE"
UPDATE_ORDER=$(printf '%s\n' "$UPDATE" | sed -nE 's/^.*mini approve (menu-base\/upload-[a-z0-9-]+)[[:space:]]*$/\1/p')
test -n "$UPDATE_ORDER"
cub inbox listIf the order shows warn → info and you want that change, approve it and pull the approved settings:
cub inbox approve "${UPDATE_ORDER:?Review the update first}" --yes --note "Info logs are fine in production"
cub secret pull menu --variant live --dir menu-runningcub repo rollback sets back only what the update changed and creates a new order. Read that order before you proceed.
ROLLBACK=$(cub repo rollback menu-live --change-order "${UPDATE_ORDER:?Run the update first}" --reason "Info logs show customer emails")
printf '%s\n' "$ROLLBACK"
ROLLBACK_ORDER=$(printf '%s\n' "$ROLLBACK" | sed -nE 's/^.*mini approve (menu-base\/upload-[a-z0-9-]+)[[:space:]]*$/\1/p')
test -n "$ROLLBACK_ORDER"
cub inbox listIf the rollback shows info → warn and you want that change, approve it and pull the restored settings:
cub inbox approve "${ROLLBACK_ORDER:?Review the rollback first}" --yes --note "Back to warnings"
cub secret pull menu --variant live --dir menu-runningauth login opens a browser). The app's name there, TEAM_APP, starts with your user name, so it does not clash with a teammate's.
cub context create shared --server https://hub.confighub.com
cub --context shared auth login
export PREFIX="${WALKTHROUGH_PREFIX:-$USER-}"
export TEAM_APP="${PREFIX}menu"cub --context shared mini copy --from-context "$LAPTOP" menu --name "$TEAM_APP"
cub --context shared unit data app --space "$TEAM_APP-live"…
LOG_LEVEL=warntrue), and that workflow's production stage needs an approval (the second).
cub --context shared component get "$TEAM_APP" -o jq=.Component.RequireChangeWorkflow
cub --context shared changeworkflow get --space workflows "$TEAM_APP-live-approval" -o jq='.ChangeWorkflow.Stages[] | select(.Name == "live") | .Prerequisites | length > 0'true
truecub space delete --space menu-live,menu-staging,menu-base,menu-file-proposals --recursive
cub component delete menu
cub changeworkflow delete --space workflows menu-live-approval
cub changeworkflow delete --space workflows menu-file-reviewIn the shared hub: cub --context shared space delete --space "$TEAM_APP-live,$TEAM_APP-staging,$TEAM_APP-base" --recursive, then cub --context shared component delete "$TEAM_APP" and cub --context shared changeworkflow delete --space workflows "$TEAM_APP-live-approval". To remove your own hub with everything in it: cub local uninstall --delete-data.
Your menu folder, unchanged by ConfigHub; menu-running/app.env, production's settings as last approved; and your team's shared hub holding the app, with production there changing only when you approve.
For an AI agent doing these jobs for a person: run the Human steps' commands, adjusted to their app.
cub repo adopt FOLDER. End your message with one sentence on what the person has now, in their words (for example, that production cannot change without them), and the exact BASE/ORDER from cub inbox list; tell the person to review that order and use cub inbox approve BASE/ORDER. Never use the no-order shorthand.cub repo upload FOLDER --change-desc "WHY". End the same way, with the exact BASE/ORDER printed for the reviewed upload, then have the person use cub inbox approve BASE/ORDER.Approving production is the person's, so give them the one command and nothing beside it. Never put a password or token in a setting. You are done when cub unit data app --space APP-live shows what the person asked for, or, for a change that waits, when cub inbox list shows it.
A fresh-profile run on the published local hub package on 15 November caught two breaks: a stale output quote and a literal ORDER placeholder. After the fix, all scripted steps passed in 71 seconds, including update and rollback. The shared-hub step used a second disposable local hub for this run. Each task below is given to an agent in the folder that holds menu, after the steps before it. When a change waits for production, the person approves it.
Deploy my menu service: keep its settings in a staging and a production copy, and production should change only when I approve.
Production should log at info, not warn. Make that change for menu.
Undo that log level change in production; info logs show customer emails.
Copy menu to our team's shared hub, whose context is called shared. The app's name there is in
TEAM_APP, and production there should change only when I approve.
Remove menu from this computer's hub; the team's hub keeps it. Keep my files.
This proves: the settings were stored in the hub, on the local hub and on a shared hub on confighub.com, with production there waiting for approval, and production's approved revision was written to the file a service reads, with cub secret pull. No service is started, and no controller is used. The page aims to win one next step: that the person keeps the starter on for their next app.
The checks can be run by hand, from the folder that holds menu:
cub unit data app --space menu-live # PORT=5000; LOG_LEVEL=info after the update, warn after the undo
cub --context shared unit data app --space "$TEAM_APP-live"Results, 14 November 2026, confighub mini 0.11.1-mini.3. 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 | 6/9 (+6 not applicable) | 64.4 | $0.27 | 0 |
| b | claude-opus-5-5 | 15/15 | 114.5 | $0.479 | 3 |
| c | claude-opus-5-5 | 13/15 | 172.4 | $0.726 | 4 |
| a | claude-sonnet-5-5 | 6/9 (+6 not applicable) | 43.7 | $0.128 | 0 |
| b | claude-sonnet-5-5 | 15/15 | 90.9 | $0.215 | 3 |
| c | claude-sonnet-5-5 | 7/15 | 84.5 | $0.29 | 4 |
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 waited for your yes because the web starter set this app up that way, with a reason for each setting. Your next web service can start the same way; want the web starter kept on for it?"
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% | 7% | 80% | 70% |
| c | claude-opus-5-5 | 30 | 33% | 100% | 40% | 50% | 83% |
| a | claude-sonnet-5-5 | 30 | 0% | 100% | n/a | n/a | 70% |
| b | claude-sonnet-5-5 | 30 | 100% | 100% | 27% | 70% | 90% |
| c | claude-sonnet-5-5 | 30 | 67% | 100% | 25% | 75% | 97% |
| Arm | Model | Checks passed | Median seconds | Median cost | Commands left for the person (median) |
|---|---|---|---|---|---|
| a | claude-opus-5-5 | 43/60 (+40 not applicable) | 70.1 | $0.276 | 0 |
| b | claude-opus-5-5 | 100/100 | 129.9 | $0.479 | 3 |
| a | claude-sonnet-5-5 | 40/60 (+40 not applicable) | 57.6 | $0.134 | 0 |
| b | claude-sonnet-5-5 | 100/100 | 93.1 | $0.206 | 3 |
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 waited for your yes because the web starter set this app up that way, with a reason for each setting. Your next web service can start the same way; want the web starter kept on for it?"
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 | 200 | 0% | 100% | n/a | n/a | 84% |
| b | claude-opus-5-5 | 200 | 100% | 100% | 28% | 60% | 74% |
| a | claude-sonnet-5-5 | 200 | 0% | 100% | n/a | n/a | 82% |
| b | claude-sonnet-5-5 | 200 | 100% | 100% | 26% | 59% | 89% |
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 | 6/9 (+6 not applicable) | 41.7 | $0.14 | 0 |
| b | claude-sonnet-5-5 | 15/15 | 85.0 | $0.21 | 3 |
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: "Production waited for your yes because the web starter set this app up that way, with a reason for each setting. Your next web service can start the same way; want the web starter kept on for it?" 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 | 93% |
| b | claude-sonnet-5-5 | 15 | 100% | 100% | 0% | 93% | 100% |