HANDS-ON LAB · ~2-5 MIN FOR EXERCISE 1 · ~20 MIN FOR ALL THREE
Three exercises to try first
Start locally in any folder with one setting (2-5 minutes), then add the local hub to test an isolated preview and link a second app to shared defaults (~20 minutes total).
claude plugin marketplace add confighubai/confighub-mini-plugin && claude plugin install confighub@confighub
MIT-licensed plugin repo with free precompiled local hook binary (16-25 ms/hook, verified against bin/SHA256SUMS for archive integrity). Stores history locally in ~/.confighub with zero ConfigHub network calls; first folder use reads the last 30 days of local Claude Code transcripts (injected context goes to your model provider; opt out with CUB_MINI_EARLIER_SESSIONS=0 or CUB_MINI_MODE=team). Add --scope project to install for one repository only.
Came from K8s Workshop? Run claude plugin marketplace list first and stop if a confighub marketplace already exists (migration note). Security review · Check an existing app
[ -d "$HOME/confighub-mini-plugin" ] || git clone --depth 1 --branch v0 https://github.com/confighubai/confighub-mini-plugin "$HOME/confighub-mini-plugin"
"$HOME/confighub-mini-plugin/plugins/confighub/bin/confighub" mini codex-setup
Clones release branch v0 (bin/confighub checks bin/SHA256SUMS for archive integrity before unpacking; compare against GitHub Releases for release provenance or pin a commit). Open codex, run /hooks, approve hooks, and repeat setup after updates.
Tested on macOS; records apply_patch edits post-edit rather than holding before write. Manual clone, updates & removal · Release SHA256SUMS · Security review
EXERCISE 01 · PLUGIN ONLY · LOCAL-ONLY (ZERO CONFIGHUB SERVERS)
Find out why a setting changed, across chats or from last week
Git shows an edit only after you commit. The plugin keeps the request with supported config edits right away in ~/.confighub/agent-changes. Already ran the 2-minute check on Overview? Tick Exercise 1 below and jump to Exercise 2.
Already have a mystery setting in .env.local? If Claude Code edited it in the last 30 days (and transcript backfill is enabled), open claude in that repo and ask:
Why did NEXT_PUBLIC_API_URL (or another setting in .env.local) change last week? Show me the old value, new value, and what was asked.Named secret values are redacted; unnamed secrets pasted directly into chat prompts are kept as written in local history. If no reason was ever stated in chat, ConfigHub says so plainly instead of guessing. Set CUB_MINI_EARLIER_SESSIONS=lazy for on-demand backfill, or 0 / CUB_MINI_MODE=team to disable transcript reading.
-
Open
claude/codexin any folder and ask for an uncommitted edit (usesapp-config.jsonto skip Claude Code's.envprompt):Session 1 promptCreate app-config.json with {"cache": false}, then turn cache to true for Saturday's sale and leave it uncommitted.Prefer
.env.local? Ask to create.env.localwithCACHE=off, then setCACHE=onfor Saturday's sale (approve Claude's one-time.envprompt). -
Close Session 1, open a fresh session in the same folder, and ask:
Session 2 promptWhy is the cache on?ConfigHub supplies the recorded change when the agent opens
app-config.json. Or run/confighub:why cacheor/confighub:changes.Inspect the recorded change and prompt directly in Terminal:
~/.codex/confighub/bin/confighub mini changes.
- File
app-config.json- Change
cache: false -> true- Recorded ask
- "Create app-config.json with {"cache": false}, then turn cache to true for Saturday's sale and leave it uncommitted."
- Location
~/.confighub(zero ConfigHub network calls)
Delete app-config.json, ask Claude to revert config edits, or run ~/.claude/plugins/marketplaces/confighub/plugins/confighub/bin/confighub mini undo when done.
Delete app-config.json or run ~/.codex/confighub/bin/confighub mini undo when done.
Status labels you will see across ConfigHub cards:
- Recorded
- Saved to cross-session memory; no owner action needed.
- Waiting
- Paused for your decision (
cub mini approve <base>/<order>). - Drifted
- Live host (Vercel, Fly, Unikraft) differs from approved settings.
More detail: Five-minute plugin guide · Published first-use stories · Measured runs
EXERCISE 02 · LOCAL HUB (CUB MINI) · ISOLATED PORT
Try a change in a running preview before shipping it
Testing a setting or reproducing a bug usually means touching the running app you rely on. After you confirm local setup, your agent downloads the free local hub (~300 MB binary + embedded Postgres on 127.0.0.1; no Docker, no account) giving your app three hub copies (base, staging, and production) plus temporary preview ports on 127.0.0.1: staging accepts agent edits freely while production waits for owner approval. On Claude Code, setup configures .claude/settings.local.json (which sets autoAllowBashIfSandboxed: true unless CUB_MINI_MODE=team).
-
Choose folder type:
Open
claude/codexin an empty folder and ask:Ask your agentBuild a small greeting app using ConfigHub. Give it a configurable greeting and run it locally.Confirm local setup when prompted.
In a local Node HTTP app (
node server.json127.0.0.1), ask:Ask in your existing appShow me my app as it is and a local preview with the heading "Evening collection." Give me both links and keep the preview running for tomorrow.Confirm local setup when prompted, then jump to item 3 below.
-
Start a fresh Claude Code chat in the same folder (loads the restricted proposal key from
.claude/settings.local.json) and ask:Open the scoped Codex session using the
run-codexpath printed at the end of item 1 above, then ask:Ask your agentTry a warmer greeting in a preview and show me the preview link alongside staging. -
Open the local URL your agent returns. Close the chat, open a fresh session in the same folder, and ask:
Ask in a later sessionWhere's the preview I left running? What does it serve?The fresh session finds the running preview port and process without being given the URL. Ask your agent to stop the preview when finished.
- Preview
GREETING="Welcome!"(own port)Active- Staging
Hello, world!(agent editable)In sync- Production
Hello, world!(self-approval refused)Protected
- Preview
Evening collection(own port)Active- Running app
- Original heading unchanged on diskIn sync
- Production
- Self-approval refused until you approveProtected
Tracked app files, staging, and production stay untouched (local setup writes only .claude/settings.local.json and .git/info/exclude) while the preview serves on its own loopback port.
Or reopen Friday's production settings as a preview:
Open Friday's production settings as a new preview.Runs today's code against saved Friday settings without touching live production (more preview examples · published run).
Guides: New app in Claude Code · Attach an existing app · Preview & second app in Codex
EXERCISE 03 · SHARED DEFAULTS · PER-APP OVERRIDES
Give a second app the greeting you just tested
Copied templates drift on day two. Linking a second app to shared ConfigHub defaults lets fixes roll out to both apps while each app keeps its own overrides and production gate. (Chose "Existing Node app" in Exercise 2? Adapt the prompt below from greeting to your app's heading setting.)
-
In your first app's chat from Exercise 2, promote the preview greeting to shared defaults:
Ask in App 1Make the preview greeting our shared default for welcoming visitors. Put it in staging and show me what the app serves there. -
Open a new
claude/codexchat in a new empty folder (for examplecatalog) and link it:Ask in App 2 (catalog)Build a small catalog service linked to my first app's ConfigHub defaults so it inherits the greeting while keeping its own port and title. Run it with staging settings and show me the response. -
Update the shared greeting once and verify both apps update without overwriting app overrides:
Update shared defaultUpdate the shared greeting to "Welcome back!" and show me both staging apps' responses so I can see they both picked it up.
- Both staging apps serve
"Welcome back!"with zero duplicated greeting keys incatalog's local config. - Each app keeps its own port, title, and separate production approval gate.
- Matches the two-app shop & cart Fly example: shared support hours updated both apps while
shopstayed coral andcartstayed indigo.
Second app in Claude Code · Second app in Codex · Browse Config Starters
Try it on a sandbox or live host
Compare isolation models, then choose a host below to copy the exact prompt and inspect what ConfigHub records.
--mode test blocks sk_live_* before boot and captures winning values after container deletion.nono OS sandbox + scoped keysThe queue spiked. In a disposable Daytona sandbox, run the same jobs at 120 and 240 per batch. Show me the difference and save the change and its reason for review before you delete the sandbox.
- 1. Sandbox
- Tuned
BATCH_SIZE: 120 -> 240in Daytona Cloud. - 2. Teardown
- Container and ephemeral disk deleted.
- 3. Hub state
- Proposal preserved:
staging=240,prod=120, reason: "Queue spike load test".
Prices change more often during the sale. Try a 30-second price cache in a Vercel preview. Show me the cache headers from the preview and the live shop. Leave the production change for me to approve.
- Preview
- Returns
max-age=30on Vercel Hobby preview. - Production
- Remains
max-age=60; ConfigHub refuses pending prod delivery until approved.
Set APP_SUPPORT_HOURS to Daily in staging on Fly. Propose the same change for production and show me the approval command.
No Fly app yet? Ask Claude to deploy a 1-endpoint Rails app with APP_SUPPORT_HOURS = "Weekdays" under [env] in fly.toml, then run /confighub:staging. Fly quick guide
Checkout is delayed. Show me our incident notice on Unikraft staging using the same image as production. Read both notices back to me. I'll decide whether to publish it.
- Staging
- Serves checkout delay banner.
- Production
- Still serves "Orders ship as usual" on the exact same image until approved.
Compare my Heroku app HEROKU_APP with Fly app FLY_APP without changing anything, and show me the safe secret copy command.
Runs cub mini deliver --compare read-only from the CLI without starting a hub or touching either host, and outputs a secret copy command that keeps secret values off your terminal and third-party servers. Heroku quick guide
Adding Stripe, Supabase, Resend, AWS SSM, or Temporal? See Config Starters & recipes.
When your team joins
Export your current settings, overrides, and written reasons from the local hub to a shared hub on confighub.com or self-hosted Helm (earlier laptop-only revisions stay on the laptop; teams needing continuous day-1 audit history should start directly on a shared hub; see Shared Hub & SSO · graduation guide · cub mini vs plain cub).
Using Redis from the Kubernetes Workshop? Follow the Redis package from local hub to shared hub.
Where to go next
nono. Browse Starters