ConfigHub · Durable config for coding agents
Docs / docs/try-the-plugin.md Source on GitHub →

Try the plugin on its own (changing env & config settings safely)

No need to worry about fiddly .env files, mystery settings, or agents accidentally breaking things. The plugin runs offline on your machine—zero servers, zero accounts—so every chat remembers why a setting changed, earlier edits stay intact, direct production writes wait for your yes, and confighub mini undo makes it easy to go back. When you’re ready to deploy to any service easily (Vercel, Fly, Heroku, Unikraft, or Kubernetes), add /confighub:staging anytime.

Already in your own app? Ask “What does ConfigHub remember about a setting we changed here, and why?” If your local record is empty, make one change with a reason. Starting from an empty folder? Build & deploy your first app · Bring your own app · Learn step by step.

Once the plugin has recorded an edit, open a fresh chat in the same app and ask “What did we change here and why?” The answer can include settings Git ignores. See both clients’ answers.

Try it in five minutes

Use your own Git app or the sample below. You ask for an edit, then open a fresh chat. Your agent edits the setting and later reads the record to explain why.

  1. Install the plugin (skip if already installed):

    Claude Code:

    claude plugin marketplace add confighubai/confighub-mini-plugin
    claude plugin install confighub@confighub

    (Using Codex CLI? Follow the one-command Codex setup and approve /hooks instead.)

    If Claude Code says the marketplace’s “network source differs,” run claude plugin marketplace list. If confighub points to the older skills repository, follow its one-time migration, then retry the install.

  2. Open a fresh session in your app folder so the plugin is active. Pick a non-secret setting you actually want to change and give the reason in your request. To try the example without changing your app (uses app-config.json to avoid Claude Code's default .env permission prompt; .env.local works too):
    mkdir try-confighub && cd try-confighub && git init -q &&
      printf '{"cache": false}\n' > app-config.json && git add app-config.json
  3. Ask for the edit. Here’s the request for the sample folder. In your own app, use the setting and reason you picked.
    Turn cache to true in app-config.json for next week's sale. Don't commit.
  4. Open a fresh session in the same folder and ask:
    Why is the cache on?

What you should see

Even though nobody made a Git commit, the fresh session recovers both the previous value (false → true) and your reason about next week's sale.

You can also inspect the record directly:

cache: true in app-config.json
  false → true
  asked: "Turn cache to true in app-config.json for next week's sale. Don't commit."

If you used the sample, you can delete try-confighub when you're done.

Want to see a change running? In an existing Node app with a heading read from .env, ask “Try the heading ‘Evening collection’ in a preview I can keep until tomorrow. Leave my usual app alone.” Your agent offers to attach the app locally. Say yes. On first use it downloads mini, then checks the page and gives you its address in this chat. When you come back, ask “Where’s the preview, and what does it say?” Run a preview of my app.

See measured session timings or the full plugin walkthrough.


Why Git alone misses this

Suppose Session 1 raises replicas from 2 to 4 for Friday's flash sale without committing, and Session 2 is asked to cut costs and sets replicas: 1. Comparing the original file with the final one shows 2 → 1. The intermediate value and the sale request are missing from that diff.

On a supported Claude Code edit, a later session can see this warning before changing the value:

This change undoes an earlier one. The file already had an uncommitted change that raised replicas from 2 to 4. A session earlier today made it, with this request: "Friday's flash sale will quadruple traffic to the api: give it 4 replicas."

Codex can recover the same history. Its hooks record apply_patch edits after they run. The capability table identifies which operations get a warning or can be refused. See the measured runs.

What it records (and never records)

Personal field locks, config-only undo, status card & redacted diff export
  • Lock a critical key locally: confighub mini lock STRIPE_MODE --reason "Keep test mode" makes PreToolUse refuse agent overwrites until you run confighub mini lock --unlock STRIPE_MODE. Check active locks and recent reasons anytime with confighub mini card.
  • Undo only config edits cleanly: confighub mini undo --dry-run previews reverting tracked settings recorded by the plugin without touching source code (confighub mini undo applies it).
  • Share a redacted diff report: confighub mini changes --export-html diff.html or --export-md diff.md writes a standalone secret-redacted diff summary (or --upload-diff URL on a server supporting /v1/diffs).
Emergency stop & MCP tool guardrails
  • Pause all Claude Code sessions at their next tool call:

    touch ~/.confighub/halt   # remove the file to resume

    See Sam's bad afternoon for full incident recovery.

  • Control MCP write calls: Use cub agent checks (log, warn, repeats, or ask) in your terminal to hold back duplicate side effects (like double refunds) or require human confirmation (how MCP checks work).
Share plugin setup with your team via Git

Add these keys to .claude/settings.json in your repository so teammates opening the project in Claude Code get the marketplace automatically:

{
  "extraKnownMarketplaces": {
    "confighub": { "source": { "source": "github", "repo": "confighubai/confighub-mini-plugin" } }
  },
  "enabledPlugins": { "confighub@confighub": true }
}

If /plugin reports the plugin is enabled but not yet installed, run claude plugin install confighub@confighub --scope project once.

Share what worked (zero account, zero pressure)

Everything below works locally with no ConfigHub account required:

When you want more than a local record

A record informs you and your agents, but an agent running with your credentials can still touch production. Add a hub when you want hard environment boundaries:

GoalNext step
Comment changed config values + reasons on every GitHub PRAdd the one-step PR review Action
Review a proposed production changeSee what you are approving
Keep your overrides cleanly across upstream Helm chart upgradesInstall the local hub (install) and see your own Helm chart
Run agents in CI or sandboxes with disposable hubsSee agents in CI and CI & sandboxes
Share records, keys, and approvals across teammatesConnect to a shared hub or see unattended agents