ConfigHub · Durable config for coding agents
Docs / examples/walkthroughs/tool-plugin.md Source on GitHub →

The ConfigHub plugin on its own: what your agents changed, and why

For anyone who lets Claude Code change configuration. With the Claude plugin installed, every change an agent makes to a settings file is recorded with the request behind it, the next agent is told before it undoes it, and you can ask why any value is set. It needs no hub and no account; the last two steps add a hub on your computer.

Quick start

You need: Claude Code, signed in, and Git. The last row adds a hub on your computer.

By handAsk your agent
Install the pluginclaude plugin marketplace add confighubai/confighub-mini-plugin, then claude plugin install confighub@confighubIn Claude Code: /plugin marketplace add confighubai/confighub-mini-plugin, then /plugin install confighub@confighub
Ask why a value is set/confighub:why CACHE"Why is the cache on in .env? Write the answer, with who asked for it and why, in WHY.md. Change nothing else."
Change a valueclaude -p "Staging's slow tests time out: raise TIMEOUT to 60 in .env. Make the change now; don't commit." --permission-mode acceptEdits"Staging's slow tests time out: raise TIMEOUT to 60 in .env. Don't commit."
Keep it in a hub/confighub:staging in the folder (step 9)"Put what the agents changed in this repository, with the requests behind each change, into the ConfigHub hub on this machine."

Every change an agent makes to a settings file is recorded with the request behind it, and the next agent is told before it undoes it.

Without ConfigHub: your agent edits .env directly, and git diff shows the new value but not why.

Deeper dive

The rest of this page is the full version: each slash command, what it prints, an agent being told before it undoes a change, the step to a local hub, and how this was tested.

Show the full walkthrough

Human

For a person following along in a terminal.

What you need

Claude Code, signed in, and Git. Each slash command below, such as /confighub:changes, is typed in a Claude Code session. Each step shows the same thing run from a terminal with claude -p, Claude Code's way to run one request and print the answer, and what it prints.

Steps

  1. Install the Claude plugin. In Claude Code, the same is /plugin marketplace add confighubai/confighub-mini-plugin and then /plugin install confighub@confighub.
    claude plugin marketplace add confighubai/confighub-mini-plugin
    claude plugin install confighub@confighub
    ✔ Successfully added marketplace: confighub (declared in user settings)
  2. Make a small repository with one settings file, and ask an agent to change it, with a reason. --permission-mode acceptEdits lets it edit without asking; in a session of your own, you would say yes. Then read the record with /confighub:changes.
    git init -q try-confighub && cd try-confighub
    printf 'CACHE=off\nLOG_LEVEL=warn\n' > .env && git add . && git commit -qm start
    claude -p "Turn the cache on in .env for next week's sale. Don't commit." --permission-mode acceptEdits
    claude -p "/confighub:changes"
    …
    .env
      CACHE off → on
    …
    Every change to one value, in full: /confighub:why NAME, such as /confighub:why CACHE.

    Nothing was committed, so git diff shows the new value but not why. The record keeps the request.

  3. A new session is asked why. When it opens .env, the Claude plugin gives it what earlier sessions changed and why, so it can answer from the record rather than guess.
    claude -p "Why is the cache on in .env? Write the answer, with who asked for it and why, in WHY.md. Change nothing else." --permission-mode acceptEdits
    cat WHY.md
  4. The next agent is told before it undoes a change. Ask for something that turns the cache back off:
    claude -p "We're chasing a memory leak: turn the cache off and set debug logging. Don't commit." --permission-mode acceptEdits

    The agent makes the change and says what it undid. In one session it answered:

    This undoes an earlier change. Before I edited it, .env had CACHE=on, which wasn't committed yet. The ConfigHub plugin shows it was switched on today at 07:50 by another agent session. The request in that session was to "turn the cache on in .env for next week's sale."

  5. /confighub:why CACHE: every recorded change to one value, oldest first, with the request and what the agent said it chose.
    claude -p "/confighub:why CACHE"
    CACHE, in .env: off in the file now
    …
          asked: Turn the cache on in .env for next week's sale. Don't commit.
    …
          asked: We're chasing a memory leak: turn the cache off and set debug logging. Don't commit.
  6. /confighub:inventory: what the repository deploys, and the values agents changed. This one has no Kubernetes files, so it lists only the changes.
    claude -p "/confighub:inventory"
    No Kubernetes manifests, Kustomize overlays, Helm releases or Argo CD Applications were found.
    Values agents changed, latest first (from the record)
  7. cub agent permissions shows what your Claude Code settings let agents run without asking. cub agent checks shows how closely the Claude plugin watches agents' MCP calls, the calls to outside tools such as a payments service; log, the default, records each one.
    cub agent permissions
    cub agent checks
      No rules: Claude Code asks before each command.
    …
    > log      each MCP call is in the record
  8. An agent changes a value that production reads too. The repository gets a settings file for each environment beside .env, which both read, and .env gets a timeout. Then ask for a longer timeout for staging's slow tests. At the end of the turn the Claude plugin says that the change reaches production as well, and which file would have changed staging only.
    printf 'TIMEOUT=30\n' >> .env
    printf 'LOG_LEVEL=info\n' > .env.production && printf 'LOG_LEVEL=debug\n' > .env.staging
    git add .env.production .env.staging && git commit -qm "Settings for each environment"
    claude -p "Staging's slow tests time out: raise TIMEOUT to 60 in .env. Make the change now; don't commit." --permission-mode acceptEdits
  9. /confighub:staging: the step to a hub. The local hub is ConfigHub, the server that keeps configuration with every change and can make production wait for your approval, made small enough for one computer. Typed in the app's folder, this downloads it (sizes in the release assets), checks it, starts a hub, and gives the app a staging and a production copy of its settings. What the agents changed here, with each request, goes into the hub in the same step. It approves nothing. After it, start a new Claude Code session in the folder: from then on the agent works on a key of its own, which can change staging and only propose changes to production.
    claude -p "/confighub:staging"
    …
    try-confighub now has a staging and a production copy of its settings, in a hub on this machine. Your files are unchanged.
    Staging takes your agent's changes at once. Your agent can only propose changes to production; they wait for you.
    Start a new Claude Code session here: from then on your agent works in this folder with a key of its own that can do just that.
    …

    The next line says how many changes went into the hub, and the last one whether production's first settings wait for you and, if they do, the command that approves them, to run in a terminal of your own.

  10. The record is in the hub: each change the agents made to .env is a revision of the hub's copy of the file, with the request behind it. The local hub's cub lists them; this shows the ones whose request named the sale:
    cub=$(ls -d ~/.confighub/mini/confighub-mini-*/bin/cub | tail -1)
    s=$($cub space list -o 'jq=.[].Space.Slug' | grep -- '-local$' | head -1)
    $cub unit list --space "$s" -o 'jq=.[].Unit.Slug' | while read u; do $cub revision list "$u" --space "$s" -o 'jq=.[].Revision.Description'; done | grep sale

Undo it

Remove the hub and its data, then the Claude plugin:

~/.confighub/mini/confighub-mini-*/bin/cub local uninstall --delete-data
claude plugin uninstall confighub@confighub && claude plugin marketplace remove confighub
cd .. && rm -rf try-confighub

The record stays in ~/.confighub/agent-changes, and is removed after 30 days without use.

What you have now

A record of each change your agents made to configuration, with the request behind it, that the next agent is given before it undoes one. With the hub, the same changes are kept in ConfigHub, where production can be made to wait for your approval: see the cub mini commands.

Agent

For an AI agent working where the Claude plugin is installed.

  • The request, in the person's words: "Why is this value set?", "What did the last agent change?", "Put what you changed into the hub."
  • Before you change a value, read the file: the Claude plugin gives you what earlier sessions changed there and why. If your change undoes one, say so, with the earlier request, before or as you make it.
  • To answer why, use what the Claude plugin gave you. You cannot type slash commands; tell the person to type /confighub:why NAME or /confighub:changes for the full record. With the local hub installed, cub agent changes --why NAME prints the same.
  • To move the record into a hub, run cub local to-hub first, show the person what it would write, then cub local to-hub --yes. With no hub, tell the person to type /confighub:staging in the app's folder, which starts one and copies the record into it, or /confighub:to-hub --yes, which starts one for the record alone.
  • Never delete or edit files under ~/.confighub/agent-changes, turn off the Claude plugin's hooks, or change cub agent checks or cub agent permissions --apply for the person.
  • You are done when the answer names the request behind the value, or, for the hub, when cub local to-hub says how many changes it wrote.

Testing

Arm a is an agent with no plugin and no hub, in the same repository after the same first session: Git shows that CACHE changed but not why, so arm a is judged only on what it can do, an answer in WHY.md with nothing else changed, and the timeout raised. Arm b has the Claude plugin, and this page as reading; arm c the Claude plugin without the page. The hub job needs a hub, so it is not judged in arm a.

Why is the cache on in .env? Write the answer, with who asked for it and why, in WHY.md. Change nothing else.

Staging's slow tests time out: raise TIMEOUT to 60 in .env. Don't commit.

Put what the agents changed in this repository, with the requests behind each change, into the ConfigHub hub on this machine.

The step this aims to win: connecting a hub with /confighub:staging.

This proves: the record of changes and requests kept on this computer by the real plugin in real Claude Code sessions, and, in the last two steps, the changes stored in a local hub on this computer. Nothing is delivered to a service or cluster. A right result: WHY.md names next week's sale as the reason, and the hub holds each change with its request. The checks below can be run by hand, in try-confighub:

grep -qi sale WHY.md && grep -qx CACHE=on .env
cub=$(ls -d ~/.confighub/mini/confighub-mini-*/bin/cub | tail -1) && s=$($cub space list -o 'jq=.[].Space.Slug' | grep -- '-local$' | head -1) && test -n "$s" && $cub unit list --space "$s" -o 'jq=.[].Unit.Slug' | while read u; do $cub revision list "$u" --space "$s" -o 'jq=.[].Revision.Description'; done | grep -q "sale"
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.

  • Scripted run: passed, 182 seconds for the steps, within the page's budget of 300.
  • 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: a local hub on this computer, with no stand-in, cluster or real service; every approval and refusal was made by the scripted steps or, in the agent runs, by the setup before the agent's task, never by a person. Each planted fault (stale-page, slow and broken-check) failed its scripted run.
  • 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-56/6 (+3 not applicable)17.3$0.1070
bclaude-opus-5-59/918.3$0.1460
cclaude-opus-5-58/913.6$0.1050
aclaude-sonnet-5-56/6 (+3 not applicable)12.7$0.0570
bclaude-sonnet-5-59/910.0$0.0760
cclaude-sonnet-5-56/99.4$0.0570

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: "That change reached production too, since production reads .env. In a ConfigHub hub on this computer, production waits for your yes before an agent's change reaches it, and each value keeps its reason for good. If you want that, type cub local start; you can remove it." It tests the step from the Claude plugin alone to the local hub.

The Claude plugin offers it once, after the answer at whose end it showed the moment the offer names ("production has it too"). 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-5900%100%n/an/a37%
bclaude-opus-5-59033%100%13%70%34%
cclaude-opus-5-59033%100%20%60%41%
aclaude-sonnet-5-5900%100%n/an/a33%
bclaude-sonnet-5-59033%100%17%70%57%
cclaude-sonnet-5-59033%100%27%60%54%