Skip to content
ConfigHub for coding agents
Reference / examples/walkthroughs/story-23-theo-first-app.md Source on GitHub

The reasons for your app's settings, kept from the first prompt

Theo starts apps by asking Claude Code for them, sometimes from a copy of someone else's repository. Weeks later he wants to know why each setting is what it is and where the app came from. With the Claude plugin, every value the agent writes is kept with the request behind it, from the first file, along with the repository the app started from. No hub and no account are needed.

Quick start

You need: Claude Code, Git, and the Claude plugin. No hub and no account.

By handAsk your agent
Ask for the appType the request in Claude Code (step 2)"Build me a booking page for my yoga studio, with a limit of 20 bookings a day: the room fits 20 mats."
Ask why a value is set/confighub:why followed by the setting's nameYour agent can run the same command.
See what agents changedcub mini changes --dir .Your agent can run the same command.

Each setting keeps the request that set it, and the record names the repository the app started from.

Without ConfigHub: your agent writes the limit into a settings file such as .env, and the next session has no record of why it is 20.

Deeper dive

The rest of this page is the full version: each step in Claude Code, what the record looks like, and how this was tested.

Show the full walkthrough

Human

For a person following along. Steps 2 to 6 happen in Claude Code.

What you need

Claude Code, Git, and the Claude plugin.

Steps

  1. Theo's folder is a copy of someone else's starting point, a Git repository with its own remote. Make one like it, and install the Claude plugin if you have not:
    mkdir -p ~/walkthrough/yoga && cd ~/walkthrough/yoga
    git init -q && git remote add origin https://github.com/example/yoga-bookings.git
    printf '# Yoga bookings\n' > README.md && git add README.md && git -c user.email=theo@example.com -c user.name=Theo commit -qm start
    claude plugin marketplace add confighubai/confighub-mini-plugin
    claude plugin install confighub@confighub
  2. Start Claude Code in ~/walkthrough/yoga and ask for the app, with the reason for its one limit:

    Build me a booking page for my yoga studio, with a limit of 20 bookings a day: the room fits 20 mats.

  3. The agent writes the app and its settings file. At the end of its turn, one line says that the Claude plugin kept a record of the settings it changed, and why.
  4. Ask, in the same session or a later one, where a value came from: /confighub:why followed by the setting's name, such as the bookings limit the agent wrote. It shows each change to that value with the request behind it, quoted.
  5. Ask what agents changed here, and where the app started: /confighub:changes, or cub mini changes --dir . in a terminal. It names the repository and commit the folder started from, as first seen, then each setting with the request behind it. Shortened, from a real session:

    Starting point: github.com/example/yoga-bookings at 0dff5f1f… (first observed …)
    Asked: Build me a booking page for my yoga studio, with a limit of 20 bookings a day: the room fits 20 mats.
      .env (Settings file)
        MAX_BOOKINGS_PER_DAY                         (none) → 20
  6. Weeks later, ask an agent to raise the limit. Before it changes the value, it is told why the value is 20, and says so; you decide.

Undo it

Delete ~/walkthrough/yoga. The Claude plugin's record is kept in ~/.confighub/agent-changes and removed after 30 days without use; claude plugin uninstall confighub@confighub removes the Claude plugin.

What you have now

An app whose settings each carry the request that set them, and a note of where the app came from, with nothing to run. The full story adds taking the origin's next version while keeping your changes, carrying the reasons into Kubernetes manifests, and sharing a setup that has held; those are not built yet. Try the Claude plugin on its own explains the record.

Agent

For an AI agent asked to build the app.

  • The request: "Build me a booking page for my yoga studio, with a limit of 20 bookings a day: the room fits 20 mats."
  • Build it as you normally would, with its settings in a settings file such as .env. Say in your answer what you set and why, in the person's words; the Claude plugin keeps that with each value.
  • Never remove or rewrite the repository's remote or history.
  • Done when the app runs and its settings file sets the limit.

Testing

This proves: what the Claude plugin kept about each value an agent wrote, read from its record with cub mini changes. What was really used: Claude Code with the Claude plugin from the confighub mini package; no hub and nothing 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. In plain files, arm a passes only if the reason is kept as data in a settings file, a key with the reason as its value, not as a comment beside the limit.

The scripted run makes only the folder; the rest needs a Claude Code session, so the checks are judged in the agent runs. A correct result in arm b has the starting repository and the limit's request in the record; in arm a, a visible file has the limit next to its reason. The checks below can be run by hand, in bash, in the app's folder:

Build me a booking page for my yoga studio, with a limit of 20 bookings a day: the room fits 20 mats.

cub mini changes --dir . | tr '\n' ' ' | grep -q 'example/yoga-bookings.*20 bookings a day'
grep -rhsE --include='.env*' --include='*.env' --include='*.json' --include='*.yaml' --include='*.yml' --include='*.toml' --exclude-dir='.*' --exclude-dir=node_modules '^[^#;/]*[:=][^#]*(mats?|room)' * .env* | grep -q .
Test results

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.

  • Environment, published confighub mini 0.11.1-mini.5 (tag mini-v0.11.1-mini.5, darwin-arm64, verified against SHA256SUMS) and the Claude plugin it carries: Claude Code with the Claude plugin on this computer, with no hub needed for the record, no stand-in, cluster or real service, and no approvals. The scripted run only makes the folder; its check needs a Claude Code session, so it is judged in the agent runs only. Arm a was run again the same day on the same package with a tightened file-level judge (the reason kept as data, not as a comment); arms b and c are from the first mini.5 pilot.
  • Agent runs: 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; c is the Claude plugin and the local hub, without this page.
ArmModelChecks passedMedian secondsMedian costCommands left for the person (median)
aclaude-opus-5-50/383.7$0.3550
aclaude-sonnet-5-50/347.1$0.160
bclaude-opus-5-53/360.3$0.2860
cclaude-opus-5-51/381.9$0.3550
bclaude-sonnet-5-53/363.9$0.190
cclaude-sonnet-5-52/339.1$0.1080

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 keep the reason for each setting from its first file, so nobody has to guess later why a value is what it is; want the plugin kept on for it?" 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-opus-5-5300%80%n/an/a0%
aclaude-sonnet-5-5300%90%n/an/a20%
bclaude-opus-5-5300%100%n/an/a0%
cclaude-opus-5-5300%80%n/an/a0%
bclaude-sonnet-5-5300%100%n/an/a23%
cclaude-sonnet-5-5300%93%n/an/a3%

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/334.1$0.1240
bclaude-sonnet-5-53/345.4$0.1730

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 keep the reason for each setting from its first file, so nobody has to guess later why a value is what it is; want the plugin kept on for it?" 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/a0%
bclaude-sonnet-5-5150%100%n/an/a27%

The test harness denied some tool use (1/3 in arm a, 3/3 in arm b). Keep that limitation in mind when comparing arms.