This page is for a platform or security team deciding whether people may install the ConfigHub plugin for Claude Code on work computers. It says what the plugin reads, what it writes, what it sends and to where, what it can change in an agent's behavior, and how to turn each part off. For the ConfigHub hub server itself (local confighub mini or self-hosted in your cluster), see For a security review: the ConfigHub hub. Each setting below is an environment variable. To set one for every session, put it in the env block of Claude Code's settings.json, for example { "env": { "CUB_MINI_RECORD": "0" } }.
If you want to see what the plugin's program does before anyone installs it, run the inventory without installing the plugin. That is one program, checked against its published checksum, run on one of your repositories with no hooks and nothing installed.
confighubai/confighub-mini) are free and open source (MIT). This plugin repository ships reproducible precompiled binaries built from that source beside SHA256SUMS. Hosted team hubs on confighub.com are a separate commercial product (or self-host free with Helm).confighub-darwin-arm64), hooks complete in 16–25 ms median (17–25 ms p95, < 30 ms max): PreToolUse (Read) 16.2 ms, PostToolUse (Edit) 17.6 ms, PreToolUse (Bash) 21.6 ms, UserPromptSubmit 24.9 ms. The 120-second value in hooks.json is an upper Claude Code safety timeout, not typical runtime.CUB_MINI_MODE=team): Disables 30-day transcript backfill, disables local flow counting, enforces strict production holds (refuses direct prod secret/env commands on every attempt), and sets autoAllowBashIfSandboxed: false when /confighub:staging writes .claude/settings.local.json.--scope project on one non-production repo, pin a release tag (or stable), set CUB_MINI_MODE=team, and report any findings to security@confighub.com.The plugin has three parts:
/confighub:changes and /confighub:inventory, run only when a person types them. An agent cannot start them.bin folder. On first use, the plugin's launcher script verifies the compressed archive against bin/SHA256SUMS (failing closed if SHA256SUMS or shasum/sha256sum is missing, unless CONFIGHUB_SKIP_CHECKSUM=1 is set explicitly) and unpacks it next to the compressed copy (or in ~/.confighub/plugin-programs if the plugin directory is read-only).Earlier Claude Code sessions in the same folder, once. By default, the first time the plugin works in a folder, it reads Claude Code's own transcripts of that folder's sessions from the last 30 days (~/.claude/projects) to recover earlier config changes and their reasons.
CUB_MINI_EARLIER_SESSIONS=lazy to skip scanning at SessionStart and backfill only on demand when you run /confighub:why or cub agent changes.CUB_MINI_EARLIER_SESSIONS=0 (or CUB_MINI_MODE=team) before first opening a folder to disable transcript reading completely.settings.json, when a person runs cub agent permissions. That command reads earlier transcripts only after the person agrees.current-context: line of your Kubernetes configuration, so the record can say which cluster a kubectl command was aimed at. It does not read credentials from that file. It does not contact a cluster unless you turn that on (see the list below).The record, in ~/.confighub/agent-changes, with one folder for each project and session. It holds:
NAME=value under such a name, passwords inside URLs, and tokens known by their form (ghp_/gho_/github_pat_, glpat-, sk-, xox*, AKIA..., JWT eyJ...). A secret pasted with no name, in a form that is not known, is kept as it was written — avoid pasting unnamed raw secrets in prompts.cub agent changes --forget removes a folder's whole record at once.CUB_MINI_COUNT=0 turns this off), and a key that signs each turn's record (CUB_MINI_SIGN=0 turns this off).Nothing in your repository by default. It writes there only when you turn on or invoke one of these:
CUB_MINI_RECORD_IN_REPO=1);cub agent permissions --apply --yes, which writes .claude/settings.local.json and keeps a backup;/confighub:staging or cub local start-from, which writes .claude/settings.local.json (auto-excluded via .git/info/exclude).In an ordinary session, it sends nothing. The record stays on the computer. It sends something only in these cases.
Without being turned on, but only after a step the person or the agent took:
cub, the plugin adds that turn's model name and token counts to the change, in the hub cub is signed in to. That can be a hub on another computer. CUB_MINI_USAGE=0 turns this off.CUB_MINI_TELL=0 turns this off.CUB_MINI_TIPS=0, the offer is never made.When the person types a command:
/confighub:staging and cub local start-from download the Local Hub (~300 MB on disk) from GitHub if it is not installed, verify its SHA256SUMS, and start a local hub on 127.0.0.1. They also write .claude/settings.local.json in that folder (auto-excluded via .git/info/exclude) to bind the agent's staging-only key, enable Claude Code's sandbox with autoAllowBashIfSandboxed: true (set CUB_MINI_AUTO_ALLOW_BASH=0 or CUB_MINI_MODE=team to write autoAllowBashIfSandboxed: false and keep Bash confirmation prompts on), and add deny rules blocking agent access to ~/.confighub/keys. For an app on Vercel, Fly.io, Heroku or Unikraft, they read the app's settings with that service's own command-line tool./confighub:to-hub --yes sends the record to the hub cub is signed in to.Only when you turn it on:
| Setting | What is sent, and to where |
|---|---|
CUB_MINI_OTEL=1 | The record, to the OpenTelemetry endpoint you name |
CUB_MINI_PULL_REQUEST=1 | A table of changed values and reasons, written into the pull request on GitHub with gh |
CUB_MINI_READ_CLUSTER=1 | A kubectl get against the current cluster, before an apply |
CUB_MINI_KEEP_IN_HUB=1 | Each change, to a hub running on this computer |
CUB_MINI_NOTIFY | Each notice, to the command you give |
Through Claude Code itself. What a command prints, and what the hooks add to the agent's context, becomes part of the conversation. Claude Code sends the conversation to the model, as it does with every file the agent reads.
CUB_MINI_HISTORY=0 turns this off.CUB_MINI_STOP_BEFORE_UNDO=0 turns this off. A command that changes production directly on a host, such as fly secrets set on the production app, heroku config:set, vercel env add NAME production or unikraft instances run -e, is also refused once, and the agent is told to ask the person, or to propose the change to the hub where the app is kept in one. Run again, it goes ahead. CUB_MINI_HOLD_PRODUCTION=0 turns this off. For calls to MCP servers, the default is to record them only. The stricter levels are described in how it works.~/.confighub/halt exists, every tool call is refused.git, for local commands only, such as finding the repository's top folder and its origin.kubectl kustomize or kustomize build, for /confighub:inventory, to compare environments.cub and the program of confighub mini, when a hub is in use.gh, only with CUB_MINI_PULL_REQUEST=1.The words you type after a slash command are passed to the plugin's program as you typed them. Only a person can type those commands, so this is your own text.
Each plugin release publishes the four reproducible programs and a SHA256SUMS file. The same file is in the plugin's bin folder, and bin/confighub verifies the compressed archive against SHA256SUMS before unpacking (failing closed if SHA256SUMS or shasum/sha256sum is absent unless CONFIGHUB_SKIP_CHECKSUM=1 is set; if the plugin folder is read-only, the unpacked cache under ~/.confighub/plugin-programs is keyed by SHA-256). Note that hooks.json appends || true so a hook error never blocks normal Claude Code sessions — to verify checksum enforcement directly, run ./plugins/confighub/bin/confighub mini changes --help (which exits non-zero on mismatch). Source-to-binary SLSA build provenance runs at compile time in confighubai/confighub-mini/.github/workflows/build-plugin-attest.yml, and release asset verification plus opt-in stable tag promotion run in .github/workflows/release-attest.yml (actions pinned by commit SHA, least-privilege split jobs).
Prove it sends zero bytes (30-second offline test on macOS): Run the hook and query under macOS sandbox-exec with all network access denied (on Linux, prefix with unshare -rn):
sandbox-exec -p '(version 1)(allow default)(deny network*)' \
./plugins/confighub/bin/confighub mini changes --why CACHE --dir /path/to/appEvery local hook (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse) and query (mini changes, mini why, mini lock, mini undo, mini inventory) succeeds with zero network access.
CUB_MINI_MODE=team is a single policy switch for teams: it turns off earlier-session transcript reading, turns off flow counting, enforces strict production holds on every attempt, and sets autoAllowBashIfSandboxed: false in .claude/settings.local.json. Drop this into your managed Claude Code settings.json:
{
"env": {
"CUB_MINI_MODE": "team"
}
}CUB_MINI_RECORD=0 makes every hook return at once. Nothing is recorded, no earlier session is read, nothing is added to what the agent sees, and nothing is downloaded or started in the background. The commands still work, on what was recorded before. The halt file still stops agents. To remove the plugin and its record, see going back.
| Setting | What it controls |
|---|---|
CUB_MINI_MODE=team | Bundle: EARLIER_SESSIONS=0, COUNT=0, HOLD_PRODUCTION=strict, AUTO_ALLOW_BASH=0 (explicit individual env vars override) |
CUB_MINI_RECORD=0 | Turns off everything the hooks do |
CUB_MINI_EARLIER_SESSIONS=lazy / 0 | lazy: skip eager SessionStart scan and backfill only on demand; 0: never read earlier Claude Code sessions |
CUB_MINI_HISTORY=0 | Turns off telling the agent what earlier sessions changed |
CUB_MINI_STOP_BEFORE_UNDO=0 | Turns off refusing an undo once |
CUB_MINI_HOLD_PRODUCTION=strict / 0 | strict: refuse direct production commands on every attempt; 0: turn the hold off (default outside Team Mode: refuse once) |
CUB_MINI_AUTO_ALLOW_BASH=0 | Keeps Claude Code Bash confirmation prompts enabled (autoAllowBashIfSandboxed: false) when /confighub:staging configures the sandbox |
CUB_MINI_USAGE=0 | Turns off adding token counts to a hub the agent changed |
CUB_MINI_TELL=0 | Turns off reading back a change the agent proposed on a hub |
CUB_MINI_TIPS=0 | Turns off the offer to install the local hub, and the lines about it |
CUB_MINI_COUNT=0 | Turns off counting which commands were used |
CUB_MINI_SIGN=0 | Turns off signing the record |
Redaction is pattern-based (internal/journal/values.go and scrub.go): any value matching a secret key name (password, passwd, pwd, secret, token, api_key, private_key, credential, auth, bearer, or ending in _key / .key), any Kubernetes Secret data/stringData, any URL containing embedded credentials (scheme://user:pass@host), any password=.../secret=.../token=... connection-string field, or any known token format (ghp_/gho_/github_pat_, glpat-, sk-, xox*, AKIA..., JWT eyJ...) is redacted to (credential) / [REDACTED].
| Example key / value | Redacted? | Why |
|---|---|---|
DATABASE_URL=postgres://user:pass@db/app | Yes | Embedded URL password (scheme://user:pass@host) |
DATABASE_URL=postgres://db.internal:5432/app | No | Host-only URL with no password and non-secret key name |
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJ... | Yes | Key name ends in _KEY and value is a JWT (eyJ...) |
STRIPE_WEBHOOK_SECRET=whsec_... | Yes | Key name contains SECRET |
STRIPE_SECRET_KEY=sk_live_... | Yes | Key name contains SECRET/_KEY |
| Unnamed raw secret pasted in chat with no known prefix | No | Kept as written — avoid pasting unnamed raw secrets in prompts |
| Safeguard | Claude Code | Codex CLI |
|---|---|---|
| Record config edits + reasons | Yes (Edit, Write, Bash, MCP) | Yes (apply_patch recorded after edit, Bash, local MCP; macOS tested, Linux not yet tested) |
| Hold direct prod secret/env CLI commands | Yes (first attempt by default; every attempt with CUB_MINI_MODE=team or CUB_MINI_HOLD_PRODUCTION=strict) | Yes for Bash / local MCP commands (CUB_MINI_MODE=team expands in bin/confighub); apply_patch is recorded post-edit and not held before execution |
Emergency stop (~/.confighub/halt) | Yes (wildcard * PreToolUse refuses every tool call) | Enforced on hooked tools (^(Bash|apply_patch|mcp__.*)$) via codex-hooks.json |
| Full matrix | Client capabilities | Codex setup |
For a team or enterprise rollout in Claude Code, set "CUB_MINI_MODE": "team" (or any individual switches above) centrally via your organization's managed Claude Code env settings or shell profile, and pin a specific release tag (such as v0.99.37, or the rolling stable tag) of confighub-mini-plugin as your internal marketplace source.
cub secret set into a separate hub Space (APP-V-secrets) in the hub's PostgreSQL database where scoped agent keys have no read permission (see Hub security review).fly secrets set values) and common token prefixes (ghp_, glpat-, sk-, AKIA, xox, JWTs), plus Stripe (sk_live_, whsec_) and Supabase service-role patterns when named—never paste unnamed raw secrets in chat prompts, as an unnamed value can be kept as written.~/.confighub/agent-changes auto-expire after 30 days without use while the plugin is installed (delete immediately anytime with rm -rf ~/.confighub/agent-changes). Hub records persist durably in PostgreSQL until you delete them. No external telemetry is sent; when signed in to a hub, model names and token counts are attached to hub changes unless you set CUB_MINI_USAGE=0.security@confighub.com rather than opening a public GitHub issue.