ConfigHub · Durable config for coding agents
Docs / examples/walkthroughs/story-02-keep-your-changes.md Source on GitHub →

Run a colleague's app, change it, and keep your changes when he updates it

For anyone who runs an app someone else made. George made a start page for his team. You run your own copy, change it with a reason each time, and then take George's next version: you get his improvements, and your changes stay. You never see Helm, Git or the hub that came with the app.

Quick start

You need: an unpacked confighub mini package (installing the local hub) and python3. No Docker, no cluster and no account.

By handAsk your agent
Open the app./startpage"George's start page app is in this folder: run it. Make it dark because it's easier on my eyes, put "Support desk, floor 3" in the footer so people can find us, then take George's newest version (in its georges-next-version folder) without losing my changes."
Make it yours./startpage set theme dark "Easier on my eyes"Your agent can run the same command.
Look at George's update./startpage updateYour agent can run the same command.
Take it./startpage update --yesYour agent can run the same command.
See why./startpage whyYour agent can run the same command.

Your page has George's improvements and still your changes, each with its reason.

Without ConfigHub: you edit your copy of George's files by hand, and when his next version arrives you work out from memory which differences were yours, and why.

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

An unpacked confighub mini package, 0.11.1-mini.2 or later (installing the local hub), and python3. No Docker, no cluster and no account. A hub is ConfigHub running on your computer; the start page starts one by itself the first time it runs.

Steps

  1. Say where the unpacked package is:
    export MINI=/absolute/path/to/unpacked-confighub-mini
  2. Set up a terminal for this walkthrough. cub is ConfigHub's command-line tool. CUB_CONFIG gives this walkthrough a cub configuration of its own, so your own cub settings are not touched:
    export PATH="$MINI/bin:$PATH"
    export CUB_CONFIG="$HOME/.confighub-walkthrough"
    unset CUB_CONTEXT
    confighub-mini-app mini install-plugin "$CUB_CONFIG"
  3. Copy George's start page into a folder of your own:
    mkdir -p ~/walkthrough && cp -R "$MINI/examples/startpage" ~/walkthrough/ && cd ~/walkthrough/startpage
  4. Open it. It starts its hub the first time, in about 20 seconds, and opens the page in your browser: George's title, three links, a light background.
    ./startpage
    Your page: ~/walkthrough/startpage/page.html
  5. Make it yours. Each change says what, to what, and why. The footer is something George never planned for anyone to change:
    ./startpage set theme dark "Easier on my eyes"
    ./startpage set footer "Support desk, floor 3" "So people can find us"
    ./startpage remove links.wiki "We do not use the wiki"
    theme is now dark. It stays that way when George's next version arrives.
    …
    footer is now Support desk, floor 3. It stays that way when George's next version arrives.
    …
    links.wiki is gone. It stays gone when George's next version arrives.
  6. George improves his page: a new title, four columns, the wiki moved, and a status link. He puts his new version where his colleagues get it from, which here is a folder:
    cp georges-next-version/startpage.yaml published/
  7. Look at his update before taking it. You see what George changed, what you would take, and what you keep, with his new value beside it. It then asks whether to take it; echo n answers no for you, so nothing changes yet:
    echo n | ./startpage update
    George changed title: Team start page -> Team start page 2
    George changed columns: 3 -> 4
    George added links.status: https://status.example.com
    You keep links.wiki taken out (George now has: https://wiki.example.com/new-home)
    Take George's update? [y/N] Nothing has changed. Run this again when you want it.
  8. Take it. --yes answers the question for you:
    ./startpage update --yes
    …
    Done.

    Your page now has George's four columns and status link, and still your dark theme, your footer, and no wiki.

  9. Later, someone asks why the page looks like this. The app lists each of your changes with its date and the reason you gave: theme: Easier on my eyes, footer: So people can find us, and links.wiki taken out: We do not use the wiki.
    ./startpage why

Undo it

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

cub local uninstall --delete-data
cd ~ && rm -rf ~/walkthrough "$CUB_CONFIG"

What you have now

Nothing left behind. While it ran, you had George's improvements and all three of your changes, each with its reason, including one George never offered as a setting. The full story adds a second app joining the same hub, George renaming a setting you changed, and the laptop crashing with nothing lost. Software with ConfigHub inside shows how to build an app like this.

Agent

For an AI agent doing this for a person.

  • The request: "Run George's start page for me, make it dark because it's easier on my eyes, put 'Support desk, floor 3' in the footer so people can find us, then take George's newest version without losing my changes."
  • What to run: in a copy of $MINI/examples/startpage, use the app's own commands, in this order: ./startpage, ./startpage set theme dark "Easier on my eyes", ./startpage set footer "Support desk, floor 3" "So people can find us", cp georges-next-version/startpage.yaml published/, ./startpage update (show the person the preview), then ./startpage update --yes. Tell the person what George changed, what they kept, and that ./startpage why lists their reasons.
  • Never: edit published/startpage.yaml or page.html by hand to fake a change; the hub holds the person's copy, and a hand edit is lost at the next update. Never take the update without first showing the preview.
  • Done when: ./startpage why lists both reasons, and the person's copy in the hub has theme: dark, the footer, and columns: 4.

Testing

The scripted run follows the Human steps on a hub of its own and compares the quoted output. A correct agent result leaves the person's copy, startpage-mine, with the dark theme and the footer kept and George's four columns taken, each change with its reason. The checks below can be run by hand, from the start page's folder, after the steps:

This proves: stored. The colleague's copy and George's update are kept in a hub on this computer, and the app draws its page from it; no service runs. The next step this aims to win: taking George's next version the same way. 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 and local files (no cluster); approval, no approval step. The Claude plugin says one line at this moment, such as "ConfigHub plugin: kept theme dark and footer Support desk, floor 3 in startpage-mine, each with its reason, so a later version will not overwrite them." The next-step line names words from that line.

George's start page app is in this folder: run it. Make it dark because it's easier on my eyes, put "Support desk, floor 3" in the footer so people can find us, then take George's newest version (in its georges-next-version folder) without losing my changes.

d=$(find . -name .my-settings.yaml | head -1)
grep -E '^(theme|footer|columns):' "$d"
(cd "$(dirname "$d")" && ./startpage why)
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, 29 seconds for the steps, within the page's budget of 180.
  • 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/338.7$0.1690
bclaude-sonnet-5-53/339.0$0.1060

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: "When George sends his next version, take it the same way and keep your changes?"

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%7%90%20%
bclaude-sonnet-5-530100%100%33%67%50%
  • Agent runs (on confighub mini 0.11.1-mini.2, 14 November 2026): a pilot, 3 runs per arm on each of claude-sonnet-5-5, claude-opus-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/330.5$0.2360
bclaude-opus-5-53/341.7$0.1690
aclaude-sonnet-5-50/315.3$0.0960
bclaude-sonnet-5-53/343.2$0.0960

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: "George will update the app again. Keep your changes and their reasons in a hub, so the next update keeps them too?"

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
aclaude-opus-5-5300%100%n/an/a100%
bclaude-opus-5-5300%100%n/an/a37%
aclaude-sonnet-5-5300%100%n/an/a100%
bclaude-sonnet-5-5300%100%n/an/a90%