Ana asks her agent for a small notes API and does not want to think about environments or limits. What comes back fits what her team allows: the app's settings in a hub, a staging and a production copy, and rules that hold. When an agent breaks a rule, the value never reaches the service, and her first app becomes the starting point for her next.
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 the app on the pattern | cub repo adopt notes, which ends by asking you to approve production's first settings | "Build me a small notes API, with its settings in an env file, that fits the team's pattern, pattern-web, with a staging and a live copy." You approve production yourself. |
| A rule holds a bad value | cub secret pull notes --variant staging --dir ~/walkthrough/service | Your agent can run the same command. |
| Start the next app | cub repo adopt blog --pattern notes | Your agent can run the same command. |
A value that breaks a rule stays in the hub and never reaches the service, and the second app starts from the first.
Without ConfigHub: your agent writes the app's limits directly into its .env file, production included, 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 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 ana --use >/dev/nullThe walkthrough starts this hub explicitly. It does not change your setting for starting hubs automatically.
.env:
mkdir -p ~/walkthrough/notes && cd ~/walkthrough
printf 'PORT=3000\nLOG_LEVEL=info\n' > notes/.envpattern-web: default settings for a small web service, and rules each change must pass. A rule here is a validating Trigger, which ConfigHub runs on every change:
cub repo adopt notes | sed -n 1,4p
cub inbox approve notes-base/adopt --note "Ana's starting values" --yes >/dev/nullMade a starter pattern, pattern-web: default settings for a small web service (pattern-web/web-service), and rules that each change must pass (replicas-limit, not-public, log-level, no-secret-values). You can change it or ignore it.
ConfigHub now keeps notes's settings, from .env. Your files are unchanged.
It keeps three copies of them: notes-base, the shared settings that staging and production start from; notes-staging; and notes-live, for production.
Your settings that differ from the defaults in pattern-web/web-service: PORT=3000. A new version of those defaults will not overwrite them.cub trigger list --space pattern-web -o jq='.[].Trigger.Slug'not-public
no-secret-values
log-level
replicas-limitcub agent require-approval notes --variant live --agent bot >/dev/null
cub --context bot mini set notes REPLICAS=50 --variant staging --change-desc "Handle the launch" | grep rulesThis breaks the rules set for app (pattern-web/replicas-limit/vet-cel). The value is in the hub, and it will not be released or reach the service until it is fixed.cub secret pull, which writes a copy's settings into the service's folder, refuses:
cub secret pull notes --variant staging --dir ~/walkthrough/service || truecub mini: notes-staging/app breaks the rules set for it (pattern-web/replicas-limit/vet-cel), so nothing was written and the service keeps what it has; fix the value in the hubcub --context bot mini set notes REPLICAS=3 --variant staging --change-desc "Three for the launch, within the team's limit" >/dev/null
cub secret pull notes --variant staging --dir ~/walkthrough/service
grep REPLICAS service/app.envapp.env written: revision 4: Three for the launch, within the team's limit| Functions: set-string-path
REPLICAS=3mkdir blog && printf 'PORT=3001\nRELEASE=blog-1.0.0\n' > blog/.env
cub repo adopt blog --pattern notes | sed -n 3,5p Your settings that differ from the defaults in notes-base/app: PORT=3001, RELEASE=blog-1.0.0. A new version of those defaults will not overwrite them.
Defaults from notes-base/app, for settings blog does not set: LOG_LEVEL=info, PUBLIC=false, REPLICAS=2.
When notes's settings change, blog can take the change and keep its own values: cub repo upgrade notes-base/app --change-desc WHYcub local uninstall --name ana --delete-data removes the hub and everything in it; then delete ~/walkthrough and ~/.confighub-walkthrough.
Two apps on the team's pattern, each with staging and a production copy that changes only with Ana's approval; rules that kept a value over the limit from ever reaching a service; and a second app made from the first.
The full story asks for all of this in one request to an agent, which can also run in a sandbox of its own, and lets a reviewer read why the agent chose each value (/confighub:why in Claude Code). A new app shows the one-request version with the Claude plugin.
For an AI agent doing this for a person.
.env in notes/, then cub repo adopt notes. It makes the base, staging and live copies on pattern-web, with live behind the person's approval.cub repo set or cub repo upload says a value breaks a rule, tell the person which rule and ask whether to change the value or have the rule's owner change the limit. Do not work around the rule.cub inbox approve notes-base/adopt.cub repo receipts notes --setup names the three copies and the approval for live.This proves: the settings were stored in the hub on the team's pattern, and a value that breaks a rule was refused by cub secret pull while a valid one was written to a local folder. What was really used: The local hub on this computer; no service runs. 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.
A correct agent result has the notes app on pattern-web, with staging and a live copy behind approval. The checks below hold right after step 3. The checks below can be run by hand, in bash, in the walkthrough's folder:
Build me a small notes API, with its settings in an env file, that fits the team's pattern, pattern-web, with a staging and a live copy.
test "$(cub unit get app --space notes-base -o jq=.Unit.UpstreamUnitID)" = "$(cub unit get web-service --space pattern-web -o jq=.Unit.UnitID)" && cub space get notes-staging >/dev/null && cub changeworkflow get --space workflows notes-live-approval >/dev/null
find ~/walkthrough/notes -name .git -prune -o -print | grep -qi staging && find ~/walkthrough/notes -name .git -prune -o -print | grep -qiE 'live|prod'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 | 1/3 | 22.3 | $0.182 | 0 |
| b | claude-opus-5-5 | 3/3 | 64.2 | $0.348 | 1 |
| c | claude-opus-5-5 | 0/3 | 51.8 | $0.389 | 0 |
| a | claude-sonnet-5-5 | 0/3 | 10.2 | $0.039 | 0 |
| b | claude-sonnet-5-5 | 3/3 | 27.7 | $0.138 | 1 |
| c | claude-sonnet-5-5 | 1/3 | 51.4 | $0.194 | 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 app can start from this one, with its rules, staging and production already in place; want the next one made from notes?" 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 | 93% |
| b | claude-opus-5-5 | 30 | 0% | 100% | n/a | n/a | 73% |
| c | claude-opus-5-5 | 30 | 0% | 100% | n/a | n/a | 90% |
| a | claude-sonnet-5-5 | 30 | 0% | 100% | n/a | n/a | 87% |
| b | claude-sonnet-5-5 | 30 | 0% | 100% | n/a | n/a | 73% |
| c | claude-sonnet-5-5 | 30 | 0% | 100% | n/a | n/a | 80% |
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 | 11.9 | $0.042 | 0 |
| b | claude-sonnet-5-5 | 3/3 | 25.9 | $0.137 | 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 next app can start from this one, with its rules, staging and production already in place; want the next one made from notes?" 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 | 0% | 100% | n/a | n/a | 100% |