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.
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.
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.
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.jsonTurn cache to true in app-config.json for next week's sale. Don't commit.Why is the cache on?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:
/confighub:why cache~/.codex/confighub/bin/confighub mini changescache: 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.
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.
.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).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.confighub mini undo --dry-run previews reverting tracked settings recorded by the plugin without touching source code (confighub mini undo applies it).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).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.
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).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.
Everything below works locally with no ConfigHub account required:
cub agent 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..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.cub repo starter-export --out starter.yaml to strip credentials, keep every recorded tuning reason, and commit or share a reusable YAML starter in Git..env in Slack: Zero-knowledge cub env share / cub env join loads staging settings + X25519-sealed test keys straight into a teammate's or sandbox's process memory — no recipient account ever required, pointing --server at a self-hosted hub or optionally confighub.com (Provisional — hosted relay endpoint not yet live on confighub.com). See In CI or a sandbox.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 |