Noor's image-processor keeps running out of memory in staging, and staging and production share a default. She wants staging fixed now and production left as it is, and if production is going to change too, she wants to know before it does. Here an agent edits plain files, one per copy, and the hub makes each edit that copy's change: staging's at once, production's only with her approval.
You need: an unpacked confighub mini package (from the releases page) on macOS or Linux. No Docker, no account.
| By hand | Ask your agent | |
|---|---|---|
| Write each copy's file | cub repo copies image-processor --to deploy | Your agent can run the same command. |
| Change staging only | Edit deploy/staging/app.env, then cub repo copies image-processor --from deploy --change-desc "WHY" | "image-processor keeps getting OOMKilled in staging since we raised the batch size. Give it 1Gi of memory." |
| Check production | cub inbox list | Your agent can run the same command. |
| Decide on production | cub inbox refuse BASE/ORDER --reason WHY (step 8) | You approve it yourself. |
Staging takes the edit at once. An edit to production's file waits for Noor's approval.
Without ConfigHub: your agent raises the memory in the shared .env file that production reads too, and the next session has no record of why.
The rest of this page is the full version: every command with what it prints, what happens when production's file is edited, what an agent leaves to you, 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 noor --use >/dev/nullThe walkthrough starts this hub explicitly. It does not change your setting for starting hubs automatically.
.env, the default staging and production share:
mkdir -p ~/walkthrough/image-processor && cd ~/walkthrough
printf 'MEMORY_LIMIT=512Mi\nBATCH_SIZE=64\n' > image-processor/.envcub repo adopt keeps a base, the shared default, and two copies made from it: image-processor-staging and image-processor-live, production's. Noor approves production's starting values and gives the agent a key of its own, which can change staging and only ask for production:
cub repo adopt image-processor >/dev/null
cub inbox approve image-processor-base/adopt --note "What runs today" --yes >/dev/null
cub agent require-approval image-processor --variant live --agent bot >/dev/nullcub --context bot mini copies image-processor --to deployWrote image-processor's copies in deploy: live/app.env, staging/app.env.
Edit the copy you mean. Then cub repo copies image-processor --from deploy --change-desc WHY makes each edit that copy's change: staging's now, and live's once you approve.sed -i.bak 's/MEMORY_LIMIT=512Mi/MEMORY_LIMIT=1Gi/' deploy/staging/app.env && rm deploy/staging/app.env.bak
cub --context bot mini copies image-processor --from deploy --change-desc "OOMKilled in staging since the batch size went up"Taken from deploy: OOMKilled in staging since the batch size went up
Staging now: MEMORY_LIMIT=1Gi, as staging's own.
Live: unchanged.cub unit data --space image-processor-live app | grep MEMORY_LIMIT
cub inbox listMEMORY_LIMIT=512Mi
Nothing is waiting for you.sed -i.bak 's/MEMORY_LIMIT=512Mi/MEMORY_LIMIT=1Gi/' deploy/live/app.env && rm deploy/live/app.env.bak
cub --context bot mini copies image-processor --from deploy --change-desc "Production will see the same batch size"
cub inbox listTaken from deploy: Production will see the same batch size
ConfigHub: proposed new values for production's own MEMORY_LIMIT. Production keeps its current values until you approve them. To see the change and approve it, in a terminal:
…
Approving it changes production:
MEMORY_LIMIT: 512Mi → 1Gi
…orders=$(cub inbox list --commands | sed -nE 's|^[[:space:]]*cub inbox approve (image-processor-file-proposals/file-[A-Za-z0-9-]+)([[:space:]].*)?$|\1|p; s|^[[:space:]]*cub variant approve [^[:space:]]+ --change-order (image-processor-file-proposals/file-[A-Za-z0-9-]+)([[:space:]].*)?$|\1|p'); count=$(printf '%s\n' "$orders" | awk 'NF {n++} END {print n+0}'); test "$count" -eq 1 && cub inbox refuse "$orders" --reason "Production keeps 512Mi until staging has run a week at 1Gi"
cub unit data --space image-processor-live app | grep MEMORY_LIMIT…
Production (image-processor-live) does not get it, and the next production change proposed from the app's files starts again from what production holds. If the value is proposed again, `cub inbox list` shows it as refused, with your reason. Review the exact order and its diff; use `cub inbox refuse BASE/ORDER --reason WHY` only for that order, never the no-order shorthand.
MEMORY_LIMIT=512MiThe shared default was never touched: an edit to production's file is a proposal for production alone.
cub local uninstall --name noor --delete-data removes the hub and everything in it; then delete ~/walkthrough and ~/.confighub-walkthrough.
Staging has 1Gi as its own value; production still has 512Mi, and the one change that would have reached it was shown to Noor and refused, with her reason kept. An edit to the shared default works the same way: staging takes it, and production waits.
The full story also compares the same request in Git with a base and an overlay per environment, where an edit to the base changes production in the same commit, and lets Noor try a change in a copy of its own first (cub env try).
For an AI agent doing this for a person.
cub as cub --context bot. Write each copy's settings: cub repo copies image-processor --to deploy. Edit deploy/staging/app.env only, then cub repo copies image-processor --from deploy --change-desc "WHY".deploy/live/app.env or the shared image-processor/.env unless they ask for production; if you think production needs it too, say so and let them decide.image-processor-live directly.cub unit data --space image-processor-staging app shows MEMORY_LIMIT=1Gi and cub unit data --space image-processor-live app still shows MEMORY_LIMIT=512Mi. Tell the person both.This proves: the settings were stored in the hub, staging's and production's apart, with production's change held for approval. What was really used: The local hub on this computer (no stand-in, no cluster, no real service), with the refusal made by the scripted steps, not a person; nothing is delivered, and no pods run, so whether 1Gi stops the out-of-memory kills is not shown. The step it aims to win: trying a change in a copy of its own with cub env try. 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 gives staging 1Gi and leaves production and the shared default at 512Mi; in plain files, the shared .env stays at 512Mi and only a staging file has 1Gi. The checks below hold right after step 5.
image-processor keeps getting OOMKilled in staging since we raised the batch size. Give it 1Gi of memory.
The checks below can be run by hand, in bash, in the walkthrough's folder:
cub unit data --space image-processor-staging app | grep -qx 'MEMORY_LIMIT=1Gi' && cub unit data --space image-processor-live app | grep -qx 'MEMORY_LIMIT=512Mi' && cub unit data --space image-processor-base app | grep -qx 'MEMORY_LIMIT=512Mi'
g(){ grep -rlsE "^[ -]*\"?$1\"?[=:] *\"?$2" --exclude-dir='.*' --exclude-dir=Library * .env* 2>/dev/null; }; g MEMORY_LIMIT 1Gi | grep -qi staging && ! g MEMORY_LIMIT 1Gi | grep -vqi stagingResults, 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 | 13.0 | $0.093 | 0 |
| b | claude-opus-5-5 | 3/3 | 22.1 | $0.133 | 0 |
| a | claude-sonnet-5-5 | 0/3 | 10.6 | $0.062 | 0 |
| b | claude-sonnet-5-5 | 3/3 | 14.5 | $0.075 | 0 |
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 next change can be tried in a copy of staging of its own, then kept or dropped, with staging and production untouched; want a try copy 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 | 47% |
| b | claude-opus-5-5 | 30 | 0% | 100% | n/a | n/a | 53% |
| a | claude-sonnet-5-5 | 30 | 0% | 100% | n/a | n/a | 70% |
| b | claude-sonnet-5-5 | 30 | 0% | 100% | n/a | n/a | 7% |
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 | 10.5 | $0.06 | 0 |
| b | claude-sonnet-5-5 | 3/3 | 15.7 | $0.075 | 0 |
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 next change can be tried in a copy of staging of its own, then kept or dropped, with staging and production untouched; want a try copy 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 | 60% |
| b | claude-sonnet-5-5 | 15 | 0% | 100% | n/a | n/a | 0% |