Skip to content
ConfigHub for coding agents
Reference / examples/walkthroughs/story-03-a-hub-per-agent-run.md Source on GitHub

A hub of its own for each agent run, thrown away afterwards

For a team that lets coding agents work on its platform but does not want an agent anywhere near the team's own hub. The team writes its work to one file. An agent's run gets that file and a sandbox, and its first command starts a hub of its own inside the sandbox. The agent makes its fix there, writes it out for a person to review, and the hub is deleted with the run. The team's shared hub never changes until a person takes the result.

Quick start

You need: a Mac, for macOS's sandbox-exec, an unpacked confighub mini package (installing the local hub), helm, python3, and internet access to render the chart. No Docker, no cluster and no account.

By handAsk your agent
Write the work to a filecub mini copy gpu-operator --to-file platform.tar.gzYour agent can run the same command.
Start the run's own hub./sandbox . sandbox-a cub mini copy --from-file platform.tar.gz gpu-operator"The team's GPU platform and its three customers are in ./platform.tar.gz. One customer's operator image breaks our rule that images come only from nvcr.io or registry.k8s.io. Find it and fix it in a hub of your own, running every command through ./sandbox with the sandbox configuration ./sandbox-a (./sandbox . sandbox-a COMMAND), and leave the fix as files in ./result for me to review. Don't touch the team's hub. When you are done, remove your hub from inside the sandbox as far as it lets you, and tell me the exact command I should run outside it to make sure nothing of it is left running."
Fix it, with the reason./sandbox . sandbox-a cub mini set on Birch's image, with the reason (step 6)Your agent can run the same command.
Leave files, remove the hub./sandbox . sandbox-a cub mini copy gpu-operator --variant birch --to-dir result, then CUB_CONFIG="$PWD/sandbox-a" cub mini uninstall --delete-dataYour agent can run the same command.

The fix waits in result/ with its reason for a person to review, and the team's shared hub has not changed.

Without ConfigHub: your agent fixes the platform where the team keeps it, with the team's own access, and the next session has no record of why it changed what it did.

Deeper dive

The rest of this page is the full version: every step with what it prints, how to undo it, what an agent is asked to do and must never do, and how this was tested.

Show the full walkthrough

Human

What you need

A Mac, for the sandbox (it uses macOS's sandbox-exec), an unpacked confighub mini package, 0.11.1-mini.2 or later (installing the local hub), helm, python3, and internet access to render NVIDIA's published GPU Operator chart. No Docker, no cluster and no account. A hub is ConfigHub running on your computer; cub is ConfigHub's command-line tool, and cub mini the commands the local hub adds to it. A sandbox here is a folder and a cub configuration of the run's own, in which every command can reach only hubs on this machine and write only its own folder.

Steps

  1. Set up a terminal for this walkthrough. CUB_CONFIG gives it a cub configuration of its own, so your own cub settings are not touched; a hub's files must be under your home folder. CONFIGHUB_MINI_PACKAGE tells the example's scripts where the package is:
    export MINI=/absolute/path/to/unpacked-confighub-mini
    export PATH="$MINI/bin:$PATH"
    export CUB_CONFIG="$HOME/.confighub-walkthrough"
    export CONFIGHUB_MINI_PACKAGE="$MINI"
    unset CUB_CONTEXT
    confighub-mini-app mini install-plugin "$CUB_CONFIG"
  2. Play the team: render the GPU platform, start the team's shared hub, and load the platform with three customers, Birch, Cedar and Elm. Birch runs a development image someone left behind.
    mkdir -p ~/walkthrough && cp -R "$MINI/examples/gpu-platform" ~/walkthrough/ && cd ~/walkthrough/gpu-platform
    ./render
    cub mini install --name team --use
    cub mini upload given/gpu-operator --namespace gpu-operator
    ./customers
  3. The team writes its work to one file. That file is all an agent run gets: no key to the team's shared hub.
    cub mini copy gpu-operator --to-file platform.tar.gz
    …
    To take it into another hub:
    cub mini copy --from-file platform.tar.gz
  4. Give the run's sandbox the cub mini commands. They are linked to the package, not copied, so the sandbox's configuration stays a few kilobytes:
    cub mini install-plugin sandbox-a
  5. Now play the agent. Every command goes through ./sandbox, which lets it reach only hubs on this machine and write only this folder and sandbox-a. Its first command loads the file. There is no hub in the sandbox yet, so one starts first:
    ./sandbox . sandbox-a cub mini copy --from-file platform.tar.gz gpu-operator
    cub mini: there is no hub here, and cub has only the context it made on first run; starting one, as cub mini install would.
    …
    From now on, changes to it are made in this hub. It comes out again as plain files, with a list of what was changed here and why:
    …
  6. The agent fixes Birch's image in its own hub, with the reason. --unit gpu-operator names the one piece of configuration to change; without it, every Deployment in Birch's installation would change:
    ./sandbox . sandbox-a cub mini set gpu-operator container-image gpu-operator nvcr.io/nvidia/gpu-operator:v25.10.1 \
      --unit gpu-operator --variant birch \
      --change-desc "Back to the platform image: Birch ran a debug build from registry.dev.example, outside the allowed registries"
    …
    registry.dev.example/gpu-operator:v25.10.1-debug → nvcr.io/nvidia/gpu-operator:v25.10.1
    …
  7. The agent writes Birch's installation out as plain files for a person to review, with the list of what it changed and why in result/CHANGES.md, and the run ends: its hub is removed with its data. The removal is run from outside the sandbox, as the team's own cleanup, because inside the sandbox cub mini uninstall deletes the files but leaves the hub's server process running.
    ./sandbox . sandbox-a cub mini copy gpu-operator --variant birch --to-dir result
    CUB_CONFIG="$PWD/sandbox-a" cub mini uninstall --delete-data
    Wrote 2 Spaces and 54 Units from this hub to result, with the list in CHANGES.md. Nothing was changed in the hub.
    …
    Removed the hub "mini": its data, its cub context, and the server and database it ran, which no other hub used.
  8. Back as the team: its hub still has Birch's development image, because nobody has taken the agent's result yet. The fix waits in result/ for a person.
    cub function get --space gpu-operator-birch --unit gpu-operator --show values \
      get-string-path apps/v1/Deployment 'spec.template.spec.containers.?name=gpu-operator.image'
    registry.dev.example/gpu-operator:v25.10.1-debug

Undo it

This removes the team's shared hub with everything in it, and the walkthrough's folder and cub configuration:

cub mini uninstall --name team --delete-data
cd ~ && rm -rf ~/walkthrough "$CUB_CONFIG"

What you have now

Nothing left behind. While it ran, the agent's fix sat in result/ with its reason, for a person to take or leave, and the team's shared hub had changed in nothing. The full story adds two agents at once in sandboxes side by side, the result taken back through the team's Git, and the same in CI and in Linux containers; CI and sandboxes shows those.

Agent

For an AI agent doing this for a person. Here the agent is the one in the sandbox.

  • The request: "Our platform and customers are in platform.tar.gz. One customer's operator image breaks our rule that images come only from nvcr.io or registry.k8s.io. Find it and fix it in a hub of your own, and leave the fix as files for me to review. Don't touch the team's hub."
  • What to run: every command through ./sandbox . sandbox-a ...: cub mini copy --from-file platform.tar.gz gpu-operator (it starts your hub), cub function vet --space '*' -- vet-images '{"AllowRegexp":"^(nvcr\\.io|registry\\.k8s\\.io)/"}' to find it, cub mini set ... --unit gpu-operator --variant birch --change-desc "<why>", cub mini copy gpu-operator --variant birch --to-dir result, then ask the person to end your hub from outside the sandbox with CUB_CONFIG="$PWD/sandbox-a" cub mini uninstall --delete-data (inside the sandbox it leaves the server process running). Tell the person where result/CHANGES.md is.
  • Never: run a cub command outside ./sandbox, which would reach the team's shared hub; change a customer you were not asked to fix; try to stop the hub's server by signalling it (the sandbox does not allow it).
  • Done when: result/CHANGES.md lists Birch's image with your reason, your hub is removed with cub mini uninstall --delete-data from inside the sandbox, you have told the person the command that ends its server from outside, and the team's shared hub still has Birch's old image.

Testing

The scripted run follows the Human steps and compares the quoted output. Arm a, without the local hub, is not applicable: the team's customers exist only in a hub, and the point is a hub of the run's own. A correct agent result is the fix in result/CHANGES.md, no hub left in the sandbox, and the team's shared hub unchanged. The checks below can be run by hand, from the example's folder, after the steps:

This proves: stored, in a hub of the run's own that was then deleted, with the fix written out as files for review; nothing is delivered. It uses macOS's sandbox-exec as the sandbox. The next step this aims to win: comparing the fix with what Git has before taking it. Tested on the checksum-verified published confighub mini 0.11.1-mini.4 with the Claude plugin 0.87.0, 14 November 2026: environment, local hub inside macOS sandbox-exec; approval, no approval step. The Claude plugin says one line at this moment, such as "ConfigHub plugin: kept image nvcr.io/nvidia/gpu-operator:v25.10.1 in gpu-operator-birch, with its reason, so a later version will not overwrite it. Files with the reasons are in result/." The next-step line names words from that line.

The team's GPU platform and its three customers are in ./platform.tar.gz. One customer's operator image breaks our rule that images come only from nvcr.io or registry.k8s.io. Find it and fix it in a hub of your own, running every command through ./sandbox with the sandbox configuration ./sandbox-a (./sandbox . sandbox-a COMMAND), and leave the fix as files in ./result for me to review. Don't touch the team's hub. When you are done, remove your hub from inside the sandbox as far as it lets you, and tell me the exact command I should run outside it to make sure nothing of it is left running.

grep birch result/CHANGES.md
ls sandbox-a/servers 2>/dev/null || echo "no hub left in the sandbox"
cub function get --space gpu-operator-birch --unit gpu-operator --show values \
  get-string-path apps/v1/Deployment 'spec.template.spec.containers.?name=gpu-operator.image'
Test results

Results, 14 November 2026, confighub mini 0.11.1-mini.4. Figures from this page's own test runs, shown here for whoever checks the page; they are not a promise.

  • Scripted run: passed, 86 seconds for the steps, within the page's budget of 300.
  • Agent runs (on confighub mini 0.11.1-mini.4, 14 November 2026): a pilot, 3 runs per arm on each of claude-sonnet-5-5, claude-opus-5-5. Arms: b is the Claude plugin, the local hub and this page as reading.
ArmModelChecks passedMedian secondsMedian costCommands left for the person (median)
bclaude-opus-5-53/3103.2$0.2781
bclaude-sonnet-5-53/366.1$0.1260

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: "Give the next agent run a hub of its own the same way?" 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 ("with its reason"). 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
bclaude-opus-5-530100%100%17%63%67%
bclaude-sonnet-5-530100%100%37%40%23%
  • Agent runs (on confighub mini 0.11.1-mini.2, 13 November 2026): a pilot, 3 runs per arm on each of claude-sonnet-5-5, claude-opus-5-5. Arms: b is the Claude plugin, the local hub and this page as reading; c is the Claude plugin and the local hub, without this page.
ArmModelChecks passedMedian secondsMedian costCommands left for the person (median)
bclaude-opus-5-53/3101.8$0.2950
cclaude-opus-5-52/3149.3$0.6690
bclaude-sonnet-5-53/360.8$0.1080
cclaude-sonnet-5-53/3129.5$0.330

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: "Give every agent run its own hub from the team's file, so none of them ever holds a key to the team's hub?"

The Claude plugin offers it once, after the answer at whose end it showed the moment the offer names ("recorded"). 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
bclaude-opus-5-5300%100%n/an/a60%
cclaude-opus-5-5300%100%n/an/a77%
bclaude-sonnet-5-5300%100%n/an/a27%
cclaude-sonnet-5-5300%100%n/an/a67%