This page is for running the Claude plugin in a CI job, a container, or any machine that is thrown away afterwards. The problem is that the Claude plugin's record lives on the machine, so it goes when the machine goes. This page shows how to load the Claude plugin, how to keep its record, and what it does there.
The record is the Claude plugin's list of what agents changed, with the request that caused each change and the reason given (how it works).
From a checkout of this repository, this loads the Claude plugin for one session, with no install step:
claude --plugin-dir plugins/confighubEach setting is an environment variable, so a job sets them in its environment.
The record is kept in ~/.confighub/agent-changes, which goes when the sandbox goes. To keep it, turn on one of these:
CUB_MINI_RECORD_IN_REPO=1 puts the record in each commit the agent makes.CUB_MINI_PULL_REQUEST=1 puts it in each pull request the agent opens.An agent in a fresh checkout has no record of its own. When it reads a file that the records in the repository cover, it is told the history from those records.
The Claude plugin stops a deploy that would undo an earlier agent's change, once, and gives the reason (the stop). This works in a new sandbox with an empty configuration too. The records in the repository are enough to hold the agent back, with the reason the earlier sandbox gave.
For this, turn on CUB_MINI_ASK_REASONS=1 with CUB_MINI_RECORD_IN_REPO=1. This is because a record kept in the repository has reasons, and never requests.
Without the Claude plugin, a second sandbox often undoes the first sandbox's change without a word. With it, the second sandbox is told the earlier change and its reason before it deploys.
The same works in a GitHub Actions job on ubuntu-latest, with a kind cluster (Kubernetes in Docker) in the runner. An agent with the Claude plugin is told about the earlier change before it applies the manifests, whether or not there's anyone to ask.
The pull-request review Action needs neither the Claude plugin nor a hub (a ConfigHub server).
See ci/. The agent makes its change in a local hub of its own. The local hub is ConfigHub, small, for one machine (install the local hub). The agent's local hub is started from a file in the repository. The job hands back a pull request with each changed value, and a CHANGES.md that says why each is set.
For example, asked to roll out a new image to every environment, the agent took the image into dev and prod after a dry run of each, and kept production's 4 replicas for a sale. The branch it handed back said why in CHANGES.md.
See ci/agent-proposes.yml. This runs on the organization's shared hub. The agent has a key of its own. With it, the agent can change the base, which is the version of the configuration you change, and ask for approval. It can never approve. The person you name approves in ConfigHub, and Argo CD or Flux deploys the change. The words are explained in approvals.
It works from GitHub against a shared hub on confighub.com. For example, the agent proposes 3 replicas, production stays at 2 until the approval, and runs 3 a few seconds after it.
mini exec and .confighub/connections.yamlFor local nono containers, Daytona sandboxes, Google AX cloud agents, Unikraft microVMs, or CI test runners where live production credentials must never enter the environment:
.confighub/connections.yaml (env://VAR, 1password://vault/item, vault://path#field, or host-only host://...) and pass --mode test or --env sandbox|staging: confighub mini exec --app shop --mode test --connections .confighub/connections.yaml --capture -- CMD (or the equivalent confighub env exec ...)..confighub-app, mini exec pulls approved staging settings (<app>-staging falling back to <app>-base) into the sandbox process at boot before resolving typed connections (pass --no-pull to skip or --pull to require it).sk_live_, rk_live_, pk_live_, or pointing at mode: prod, fails before the child process boots.--capture (including on SIGTERM / SIGINT preemption) or persistent-shell mode (eval "$(confighub env shell --app shop --mode test --capture-on-exit)"), tuned non-secret changes survive sandbox teardown: they propose into cub inbox list --card when attached, or save locally in ~/.confighub (confighub mini exec --list). See the nono + Daytona safe sandbox guide.Daytona (.devcontainer/devcontainer.json):
{
"name": "shop-sandbox",
"postStartCommand": "confighub env exec --app shop --env sandbox --mode test --capture -- npm run test:smoke"
}Unikraft (Kraftfile / entrypoint wrapper):
confighub env exec --app shop --env sandbox --mode test --connections .confighub/connections.yaml --capture -- ./servernono / Google AX interactive shell (starters/nono.yaml & starters/google-ax.yaml):
nono run -- sh -c 'eval "$(confighub env shell --app shop --env sandbox --mode test --capture-on-exit)" && claude'.env in SlackWhen a teammate or an agent in a fresh sandbox clones your repo and needs your staging settings + test service keys to boot the app, you do not need to paste a .env in Slack or force the recipient to create a ConfigHub account:
confighub env share publishes a short-lived invite card; the recipient (or their sandbox/agent) runs confighub env join <invite-url> --capture -- npm run dev (generating an ephemeral X25519 keypair locally so test keys seal end-to-end straight into child process memory, never written to .env, with sk_live_* / prod keys refused under --mode test).--proxy openai=OPENAI_API_KEY --max-requests 50 (presets: openai, anthropic, stripe, resend, or custom=KEY_ENV:BASE_URL_ENV:UPSTREAM_URL) to mint a scoped ch_proxy_... capability token with TTL, method/path allowlists, and a request cap. The recipient's app receives OPENAI_BASE_URL=<relay>/v1/proxy/pg_... + OPENAI_API_KEY=ch_proxy_... — never possessing the owner's real upstream API key — and revoking the grant cuts off access immediately with zero upstream key rotation.--server at your team's self-hosted hub/relay (or optionally https://confighub.com if you already have an account — Provisional: hosted confighub.com relay not yet live)./auth.md: If an unauthenticated agent in a cloned repo explicitly needs to connect to a shared hub (self-hosted or confighub.com), it can follow /auth.md to mint a local Ed25519 key and hand the owner a browser approval link — never nagged or auto-triggered during local plugin or local hub use.