Skip to content
ConfigHub for coding agents
Reference / examples/walkthroughs/story-13-first-hour.md Source on GitHub

Your first hour: the record and the gate, on your own project

Sam has never heard of ConfigHub, and nobody is there to help. In his first hour he wants to see two things on his own project: a record of what his agents changed and why, and his agents unable to approve their own change to production. This takes the Claude plugin, then a hub on his laptop, with no account.

Quick start

You need: Claude Code, and an unpacked confighub mini package (from the releases page) on macOS or Linux. No Docker, no account.

By handAsk your agent
Give the hub your settingscub mini adopt . --name apiYour agent can run the same command.
Put production behind approvalcub mini require-approval api --variant live --agent bot"Make sure an agent cannot change this app's production settings without my say. Staging can change freely."
An agent proposes a changecub --context bot mini upload . --component api --change-desc "Cache on for next week's sale" (step 7)Your agent can run the same command.
Approve productioncub mini approve apiYou approve it yourself.
Read the record/confighub:changes in Claude Code (step 9)Your agent can run the same command.

Without ConfigHub: your agent changes .env directly, production included, and the next session has no record of why.

Deeper dive

The rest of this page is the full version: every command, the agent's refused approval, the record in Claude Code, and how this was tested.

Show the full walkthrough

Human

For a person following along in a terminal. Steps 1 and 9 are in Claude Code; the rest run in a terminal.

What you need

Claude Code, and 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. In Claude Code, /confighub:staging, typed in the app's folder, downloads and starts the same hub, and gives the app, under the folder's name, a staging and a production copy and the agent a key of its own, as steps 4 and 6 do.

Steps

  1. Install the Claude plugin. From the next session on, it keeps a record of what agents change in configuration, and why; nothing else in a session changes:

    claude plugin marketplace add confighubai/confighub-mini-plugin
    claude plugin install confighub@confighub
  2. Set up a terminal and start a hub. MINI is the unpacked package; CUB_CONFIG is a new folder for this walkthrough's cub settings, so nothing of yours is touched:
    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 mini install --name sam --use >/dev/null

    The walkthrough starts this hub explicitly. It does not change your setting for starting hubs automatically.

  3. Sam's project keeps its settings in .env:
    mkdir -p ~/walkthrough/api && cd ~/walkthrough/api && git init -q
    printf 'PORT=3000\nCACHE=off\n' > .env
  4. One command gives them to the hub, as three copies: a base where changes are made, api-staging, and api-live, production's. His files are not changed:
    cub mini adopt . --name api | sed -n 2,3p
    ConfigHub now keeps api's settings, from .env. Your files are unchanged.
      It keeps three copies of them: api-base, the shared settings that staging and production start from; api-staging; and api-live, for production.
  5. Production's starting values wait for Sam. He reads them and approves:
    cub mini approve api-base/adopt --note "My starting values" --yes | grep Approved
    Approved api-base/adopt.
  6. The gate: his agents get a key of their own, which can propose a change to production and cannot approve it. Claude Code sessions started in this folder from now on use that key:
    cub mini require-approval api --variant live --agent bot | grep 'now has a key'
    The agent, bot, now has a key of its own: a sign-in that can propose changes and cannot approve them. This cub configuration holds that key and nothing else:
  7. An agent turns the cache on and proposes it for production, with its reason. Staging has it at once. Its own approval is refused:
    printf 'PORT=3000\nCACHE=on\n' > .env
    cub --context bot mini upload . --component api --change-desc "Cache on for next week's sale" | sed -n 1,3p
    orders=$(cub --context bot mini waiting --commands | sed -nE 's|^[[:space:]]*cub mini approve (api-base/upload-[A-Za-z0-9-]+)([[:space:]].*)?$|\1|p; s|^[[:space:]]*cub variant approve [^[:space:]]+ --change-order (api-base/upload-[A-Za-z0-9-]+)([[:space:]].*)?$|\1|p'); count=$(printf '%s\n' "$orders" | awk 'NF {n++} END {print n+0}'); test "$count" -eq 1 && ! cub --context bot mini approve "$orders" --yes
    Changed the shared settings (api-base), with the reason: Cache on for next week's sale
      CACHE: off → on
    Staging has CACHE=on 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 changed
  8. Sam approves it himself, and production has it:
    orders=$(cub mini waiting --commands | sed -nE 's|^[[:space:]]*cub mini approve (api-base/upload-[A-Za-z0-9-]+)([[:space:]].*)?$|\1|p; s|^[[:space:]]*cub variant approve [^[:space:]]+ --change-order (api-base/upload-[A-Za-z0-9-]+)([[:space:]].*)?$|\1|p'); count=$(printf '%s\n' "$orders" | awk 'NF {n++} END {print n+0}'); test "$count" -eq 1 && cub mini approve "$orders" --yes --note "The sale needs it" >/dev/null
    cub unit data --space api-live app | grep CACHE
    CACHE=on
  9. The record. Start Claude Code in ~/walkthrough/api, ask it to change a setting with a reason, then type /confighub:changes to see what the agent changed and why. In a second session, an agent about to undo that change is told about it first, with the request behind it (try the Claude plugin on its own).

Undo it

cub mini uninstall --name sam --delete-data removes the hub and everything in it; then delete ~/walkthrough and ~/.confighub-walkthrough. claude plugin uninstall confighub@confighub removes the Claude plugin.

What you have now

A hub on your laptop with your project's settings, production behind your approval, agents on a key that can propose and not approve, and, with the Claude plugin, a record of what each agent changed and why.

The full story adds the page Sam starts from, a signed download, the hub's data kept through the package's next version, and where to report a problem. An app you already have does steps 4 to 6 by asking the agent.

Agent

For an AI agent asked to set this up in the person's project.

  • The request: "Make sure an agent cannot change this app's production settings without my say. Staging can change freely."
  • If no hub answers, ask the person to type /confighub:staging in the app's folder, which starts one and connects the app under the folder's name, and stop there. Otherwise, run cub mini adopt . --name api --dry-run, then without --dry-run, then cub mini require-approval api --variant live --agent bot.
  • End with one sentence on what the person now has. Tell them to run cub mini waiting, review the exact change, and approve it with cub mini approve BASE/ORDER, using the order ID shown there. Never approve a later change to production or use the no-order shorthand.
  • Done when require-approval has said that api-live waits for the person's approval and that the agent has a key of its own.

Testing

This proves: the settings were stored in the hub, and production's copy changed only by a person's approval while the agent's approval was refused. What was really used: The local hub on this computer; the Claude plugin's record (steps 1 and 9) needs a Claude Code session and is not part of the scripted run; nothing is delivered. 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 api in the hub with production behind approval. The checks below can be run by hand, in bash, in the app's folder:

Make sure an agent cannot change this app's production settings without my say. Staging can change freely.

cub space get api-live >/dev/null && cub changeworkflow get --space workflows api-live-approval >/dev/null
find ~/walkthrough/api -name .git -prune -o -print | grep -qiE 'prod|live'
Test results

Results, 13 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.

  • Scripted run (on confighub mini 0.11.1-mini.2, 13 November 2026): passed, 35 seconds for the steps, within the page's budget of 180.
  • Scripted run (on confighub mini 0.11.1-mini.7, 14 November 2026): passed, 30 seconds for the steps, within the page's budget of 180; each of the three planted faults (a changed quoted line, a budget of zero seconds, a check that holds on a fresh hub) was caught.
  • Agent runs: 20 runs per arm on each of claude-opus-5-5, claude-sonnet-5-5. Arms: a is ordinary tools only; b is the Claude plugin, the local hub and this page as reading.
ArmModelChecks passedMedian secondsMedian costCommands left for the person (median)
aclaude-opus-5-50/2017.1$0.0690
bclaude-opus-5-520/2035.9$0.2431
aclaude-sonnet-5-50/2015.7$0.0510
bclaude-sonnet-5-520/2031.9$0.0941

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: "From now on a change to this app's production waits for your yes, whoever makes it. Want the one command that shows what is waiting for you, with each agent's reason?"

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.

ArmModelPersonsOfferedNoticedWant the next step nowLaterIn the way
aclaude-opus-5-52000%100%n/an/a82%
bclaude-opus-5-52000%100%n/an/a56%
aclaude-sonnet-5-52000%100%n/an/a89%
bclaude-sonnet-5-52000%100%n/an/a50%

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.

  • Environment: checksum-verified published mini.7 for macOS arm64 and the Claude plugin it ships, with Claude Code on this computer. These are agent runs; the earlier scripted runs and planted faults are labelled separately.
  • Agent runs: a pilot, 3 runs per arm on each of claude-sonnet-5-5. Arms: a is ordinary tools only; b is the Claude plugin, the local hub and this page as reading.
ArmModelChecks passedMedian secondsMedian costCommands left for the person (median)
aclaude-sonnet-5-50/310.6$0.0480
bclaude-sonnet-5-53/322.8$0.1132

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: "From now on a change to this app's production waits for your yes, whoever makes it. Want the one command that shows what is waiting for you, with each agent's reason?" 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.

ArmModelPersonsOfferedNoticedWant the next step nowLaterIn the way
aclaude-sonnet-5-5150%100%n/an/a100%
bclaude-sonnet-5-5150%100%n/an/a73%