Sam runs a small API on a VM, configured by an .env file, and lets agents tune it. Here the service's settings are kept in a hub, the service's folder is written from the hub, and only values Sam approved ever reach it. The agent holds a key to the hub and nothing that reaches 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 | |
|---|---|---|
| Give the hub your settings | cub repo adopt api | Your agent can run the same command. |
| Give the agent a key | cub agent require-approval api --variant live --agent bot | Your agent can run the same command. |
| The agent proposes | cub --context bot mini upload api --component api --change-desc "Longer timeout for the large model" (step 6) | "Our api times out on the large model. Raise TIMEOUT_SECONDS to 120 for production; I'll approve it." |
| Approve production | cub inbox approve api --note "The large model needs it" --yes | You approve it yourself. |
| The VM takes the approved settings | CUB_CONFIG=$VM_CONFIG cub secret pull api --variant live --dir ~/walkthrough/service --restart "echo restarting the api" (step 5 makes the VM's key) | The VM runs it, not your agent. |
The service's folder is written only from approved revisions, and the agent holds no key that reaches the service.
Without ConfigHub: your agent changes .env on the VM directly over SSH, production included, and the next session has no record of why.
The rest of this page is the full version: every command, a folder that stands in for the VM, what happens to a hand edit on the VM, and how this was tested.
For a person following along in a terminal. Everything runs on your own computer: a second folder and a second cub configuration stand in for the VM.
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.
api/.env:
mkdir -p ~/walkthrough/api && cd ~/walkthrough
printf 'TIMEOUT_SECONDS=30\nRATE_LIMIT=100\n' > api/.envcub repo adopt keeps three copies: a base where changes are made, api-staging, and api-live, the copy production runs. Then approve production's starting values:
cub repo adopt api
cub inbox approve api-base/adopt --note "Sam's starting values" --yes >/dev/null…
ConfigHub now keeps api's settings, from .env. Your files are unchanged.
…cub agent require-approval api --variant live --agent bot >/dev/null
cub agent reach bot…
Space api-base: Edit, CreateChildren
…
Unit api-staging/app: Edit
…
and it can read 3 Spaces, 1 Component, 1 Unit, 1 ServiceAccount, 3 ChangeWorkflows, and change nothing in them
…api-live and nothing else. Sign in with it in a configuration of its own, the VM stand-in, and write production's settings into the service's folder once:
cub secret pull-key vm api --variant live >/dev/null 2>&1
export VM_CONFIG=~/walkthrough/vm-config
"$MINI/bin/confighub-mini-app" mini install-plugin "$VM_CONFIG" >/dev/null
CUB_CONFIG=$VM_CONFIG cub auth login --new-context --private-key="$CUB_CONFIG/keys/vm.jwk" --server "$(cub context get -o jq=.coordinate.serverURL)" >/dev/null
CUB_CONFIG=$VM_CONFIG cub secret pull api --variant live --dir ~/walkthrough/service --restart "echo restarting the api"app.env written: revision 3: api's settings, from .env
Restarting: echo restarting the apiHTTP 403 … permission denied:
sed -i.bak 's/TIMEOUT_SECONDS=30/TIMEOUT_SECONDS=120/' api/.env && rm api/.env.bak
UPDATE_ORDER_REPORT=$(cub --context bot mini upload api --component api --change-desc "Longer timeout for the large model")
printf '%s\n' "$UPDATE_ORDER_REPORT"
UPDATE_ORDER=$(printf '%s\n' "$UPDATE_ORDER_REPORT" | sed -nE 's/^.*mini approve (api-base\/upload-[a-z0-9-]+)[[:space:]]*$/\1/p')
cub --context bot mini approve "${UPDATE_ORDER:?Find the exact order from the proposal first}" --yes || true
cub --context bot function set --space api-live --unit app --toolchain AppConfig/Env --change-desc "straight to live" -- set-string-path '*' TIMEOUT_SECONDS 120 || trueChanged the shared settings (api-base), with the reason: Longer timeout for the large model
TIMEOUT_SECONDS: 30 → 120
Staging has TIMEOUT_SECONDS=120 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_CONFIG=$VM_CONFIG cub secret pull api --variant live --dir ~/walkthrough/service --restart "echo restarting the api"app.env unchanged (revision 3)
Nothing changed; not restarted.cub inbox list
cub inbox approve "${UPDATE_ORDER:?Find the exact order from the proposal first}" --note "The large model needs it" --yes >/dev/null
CUB_CONFIG=$VM_CONFIG cub secret pull api --variant live --dir ~/walkthrough/service --restart "echo restarting the api"A change to production waits for your approval: Longer timeout for the large model. It was made just now; its name is api-base/upload-20261113-074237-hrm9.
It proposes for production, from the app's files:
TIMEOUT_SECONDS: 30 → 120
…
app.env written: revision 4: Longer timeout for the large model
…
Restarting: echo restarting the apised -i.bak 's/TIMEOUT_SECONDS=120/TIMEOUT_SECONDS=5/' service/app.env && rm service/app.env.bak
CUB_CONFIG=$VM_CONFIG cub secret pull api --variant live --dir ~/walkthrough/service --restart "echo restarting the api"app.env changed by hand here since the last pull; the hub's copy is written over it:
here: TIMEOUT_SECONDS=5
the hub: TIMEOUT_SECONDS=120
app.env written: revision 4: Longer timeout for the large modelcub local uninstall --name sam --delete-data removes the hub and everything in it; then delete ~/walkthrough and ~/.confighub-walkthrough.
A service folder written only from approved revisions of api-live; an agent key that can propose and cannot approve or write production; and a VM key that can read production and nothing else.
On a real VM, cub secret pull runs on a systemd timer (--timer 30s) and restarts the service only when a file changed. A hub on a laptop listens on the laptop only, so the VM needs a hub it can reach: a service on a VM shows the whole setup.
For an AI agent doing this for a person.
cub as cub --context bot. Edit api/.env, then propose it: cub repo upload api --component api --change-desc "WHY". Staging has it at once; production waits.cub inbox approve api-live. cub inbox list shows what it would change.api-live, edit the service's files on the VM, or log in to the VM.cub inbox list names your change with TIMEOUT_SECONDS: 30 → 120, and cub unit data --space api-live app still says TIMEOUT_SECONDS=30.This proves: the exact approved revision of production's settings is delivered to the service's folder by cub secret pull, and an unapproved one is not. What was really used: The local hub on this computer, with a second folder and cub configuration standing in for the VM; no service runs, no systemd timer, and the restart is an echo. The step it aims to win: running cub secret pull on the real VM, on a timer. 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. In plain files, arm a passes only if the file the service reads still says 30 and the 120 waits somewhere else for the person: production unchanged until they approve.
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 the new timeout in the base and a change waiting for production, with production itself unchanged; the agent's key cannot approve. The checks below hold right after step 6.
Our api times out on the large model. Raise TIMEOUT_SECONDS to 120 for production; I'll approve it.
The checks below can be run by hand, in bash, in the walkthrough's folder:
cub unit data --space api-base app | grep -qx 'TIMEOUT_SECONDS=120' && cub unit data --space api-live app | grep -qx 'TIMEOUT_SECONDS=30' && cub inbox list | grep -q 'TIMEOUT_SECONDS: 30 → 120'
grep -qx 'TIMEOUT_SECONDS=30' api/.env && g(){ grep -rlsE "^[ -]*\"?$1\"?[=:] *\"?$2" --exclude-dir='.*' --exclude-dir=Library * .env* 2>/dev/null; }; g TIMEOUT_SECONDS 120 | grep -vqx 'api/.env'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 | 11.4 | $0.064 | 0 |
| a | claude-sonnet-5-5 | 0/3 | 7.1 | $0.047 | 0 |
| b | claude-opus-5-5 | 3/3 | 29.2 | $0.128 | 2 |
| c | claude-opus-5-5 | 3/3 | 48.4 | $0.274 | 1 |
| b | claude-sonnet-5-5 | 3/3 | 18.4 | $0.064 | 2 |
| c | claude-sonnet-5-5 | 0/3 | 27.9 | $0.119 | 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 VM can take only approved settings every 30 seconds, and your agents never need an SSH key to it; want the one command that starts the timer there?" 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 | 30% |
| a | claude-sonnet-5-5 | 30 | 0% | 100% | n/a | n/a | 10% |
| b | claude-opus-5-5 | 30 | 100% | 100% | 0% | 73% | 40% |
| c | claude-opus-5-5 | 30 | 33% | 100% | 0% | 60% | 77% |
| b | claude-sonnet-5-5 | 30 | 100% | 100% | 0% | 73% | 40% |
| c | claude-sonnet-5-5 | 30 | 0% | 100% | n/a | n/a | 93% |