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.
- 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
/hooksinstead.)If Claude Code says the marketplace’s “network source differs,” run
claude plugin marketplace list. Ifconfighubpoints to the older skills repository, follow its one-time migration, then retry the install. - 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.jsonto avoid Claude Code's default.envpermission prompt;.env.localworks too):mkdir try-confighub && cd try-confighub && git init -q && printf '{"cache": false}\n' > app-config.json && git add app-config.json - 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. - 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:
- In Claude Code: type
/confighub:why cache - In Terminal (Codex): run
~/.codex/confighub/bin/confighub mini changes
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)
- Recorded: Changed keys in
.env, Kubernetes manifests, Helm values, Kustomize, Compose, GitHub Actions, and Terraform files; state-changing CLI commands (kubectl,helm,terraform,vercel,fly,aws ssm,cub) and MCP tool calls; the user request and the agent's stated rationale. Each entry is cryptographically signed (signed records). - Redacted & skipped: Full file copies and raw command outputs are not stored. Named secret keys and values matching password, token, API key, or connection-string patterns are redacted rather than stored in plain text (pattern-based, an unnamed pasted secret is kept as written; avoid pasting raw secrets in chat). Nothing leaves your machine unless you connect a hub or turn on an opt-in setting (Security review · what we do not claim). Local plugin records auto-expire after 30 days of inactivity; connected hub records persist durably in PostgreSQL.
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"makesPreToolUserefuse agent overwrites until you runconfighub mini lock --unlock STRIPE_MODE. Check active locks and recent reasons anytime withconfighub mini card. - Undo only config edits cleanly:
confighub mini undo --dry-runpreviews reverting tracked settings recorded by the plugin without touching source code (confighub mini undoapplies it). - Share a redacted diff report:
confighub mini changes --export-html diff.htmlor--export-md diff.mdwrites a standalone secret-redacted diff summary (or--upload-diff URLon 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 resumeSee Sam's bad afternoon for full incident recovery.
- Control MCP write calls: Use
/confighub:checks(log,warn,repeats, orask) in Claude Code 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:
- Paste a redacted diff card into Slack, Linear, or a PR: Run
bin/confighub mini changes --export-md diff.md(or--export-html diff.html) after fixing a bug or tuning settings so teammates see what changed and why without leaking credentials. - Share the setup via Git (1-file PR + Approval Card): Commit
.claude/settings.json(optionally with"env": {"CUB_MINI_MODE": "team"}) so teammates who clone the repo get prompted once to enable the plugin: zero surprise global installs. - Export a hardened app as a 1-file MIT starter: Run
bin/confighub mini starter-export --out starter.yamlto strip credentials, keep every recorded tuning reason, and commit or share a reusable YAML starter in Git. - Share a working staging env without pasting
.envin Slack: Zero-knowledgeenv share/env joinloads staging settings + X25519-sealed test keys straight into a teammate's or sandbox's process memory: no recipient account ever required, pointing--serverat a self-hosted hub or optionallyconfighub.com(Provisional: hosted relay endpoint not yet live on confighub.com). See In CI or a sandbox.
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:
| Goal | Next step |
|---|---|
| Comment changed config values + reasons on every GitHub PR | Add the one-step PR review Action |
| Review a proposed production change | See what you are approving |
| Keep your overrides cleanly across upstream Helm chart upgrades | Install the local hub (install) and see your own Helm chart |
| Run agents in CI or sandboxes with disposable hubs | See agents in CI and CI & sandboxes |
| Share records, keys, and approvals across teammates | Connect to a shared hub or see unattended agents |