ConfigHub · Durable config for coding agents
Docs / examples/walkthroughs/starter-argocd-ai.md Source on GitHub →

AI for Argo CD: pair the ConfigHub plugin with Argo CD in your GitOps repo

Argo CD keeps your clusters synced to desired state. ConfigHub keeps the config intent—which Application or ApplicationSet deploys each Helm chart or Kustomize overlay, why a value changed, how staging and production differ, and a human approval gate before production ships. All copy-ready files live in examples/gitops-ai/argocd/ (Helm values-*.yaml and Kustomize repos work read-only on day one; Kustomize apps on Argo CD 3.1+ can add gated OCI delivery).

Quick start

You need: an Argo CD GitOps repository, Git, and Claude Code or Codex CLI (zero upstream changes to argocd, zero hub or cluster access required on day one).

By handAsk your agent
Wire the repoCopy .claude/settings.json, AGENTS.md, and argocd-with-confighub from examples/gitops-ai/argocd/ (step 1)"Add the Argo CD + ConfigHub repo setup files from examples/gitops-ai/argocd without touching cluster manifests."
Map & diff envs/confighub:inventory and argocd app list (step 3)"Map every Argo CD Application and Helm values file in this repo, compare staging vs. prod, and check live health."
Explain a change/confighub:why resources.limits.memory (step 4)"Why did we raise resources.limits.memory in values-prod.yaml?"
Undo repo setupDelete .claude/settings.json, .claude/skills/argocd-with-confighub/, AGENTS.md, and .mcp.json (step 5)"Remove the ConfigHub AI setup files from this repo and leave all Argo CD manifests untouched."

Without ConfigHub: an AI agent with Argo CD CLI or MCP sees live sync health but has no cross-session record of why values-prod.yaml changed or which orphaned folders nothing deploys.

Deeper dive

The rest of this page shows the exact repo files (.claude/settings.json, optional .mcp.json for argocd-mcp, AGENTS.md, and argocd-with-confighub), the five human steps, agent rules, and verification checks.

Show the full walkthrough

Human

What you need

An Argo CD GitOps repository (Helm values-*.yaml or Kustomize), Git, and Claude Code or Codex CLI. Optional: argocd CLI or argocd-mcp (with ARGOCD_BASE_URL and ARGOCD_API_TOKEN kept in your shell environment, never in Git).

Steps

  1. Copy the starter files from examples/gitops-ai/argocd/ into your Argo CD repository (every teammate who clones it gets prompted once to trust confighub@confighub for that repo).
    mkdir -p .claude/skills/argocd-with-confighub
    cp examples/gitops-ai/argocd/.claude/settings.json .claude/settings.json
    cp examples/gitops-ai/argocd/AGENTS.md AGENTS.md
    cp examples/gitops-ai/argocd/skills/argocd-with-confighub/SKILL.md .claude/skills/argocd-with-confighub/SKILL.md
  2. Optionally add .mcp.json to pair ConfigHub with the Argo CD MCP server (argocd-mcp, reading credentials from env vars). Skip this step if you prefer read-only argocd CLI commands.
    cp examples/gitops-ai/argocd/.mcp.json .mcp.json
  3. Run read-only inventory before changing anything (zero hub and zero cluster credentials needed) to map every Application, ApplicationSet, layered Helm values file, and Kustomize overlay.
    ./plugins/confighub/bin/confighub mini inventory --dir .
  4. Edit a non-production staging value in Claude Code and verify /confighub:why (or mini changes --why) keeps the reason across sessions; pair with argocd app diff for live cluster status.
    ./plugins/confighub/bin/confighub mini changes --why ORDER_LIMIT --dir .
  5. For Kustomize apps on Argo CD 3.1+, step up to the Kustomize + Argo CD OCI walkthrough; for 40+ Helm releases, follow the 3-stage Helm architecture. To undo this repo setup at any time, remove only the AI files.
    rm -rf .claude/settings.json .claude/skills/argocd-with-confighub AGENTS.md .mcp.json

Undo it

Delete .claude/settings.json, .claude/skills/argocd-with-confighub/, AGENTS.md, and .mcp.json. Your Argo CD Applications and clusters stay untouched.

Agent

When working inside an Argo CD repository with AGENTS.md and argocd-with-confighub:

  • Use Argo CD CLI / Argo CD MCP for live Application sync status, health, and cluster diffs.
  • Use ConfigHub (/confighub:inventory, /confighub:why, cub repo upload --change-desc) for repo mapping, cross-environment diffs, change history, and Kustomize production proposals.
  • Never run argocd app sync on production, cub inbox approve, cub repo deploy-from-hub, or kubectl apply yourself. Always hand the exact printed cub inbox approve BASE/ORDER command to the person.

Testing

Wire this Argo CD GitOps repository with the ConfigHub plugin declaration, AGENTS.md, and argocd-with-confighub skill without modifying any Argo CD manifests.

Add the optional Argo CD MCP pairing (.mcp.json) keeping API tokens in environment variables, never committed to Git.

Remove the optional Argo CD MCP file while keeping the ConfigHub repo setup intact.

Explain how to move Kustomize overlays to human-approved OCI delivery on Argo CD 3.1+ or apply the 3-stage Helm Workshop path without changing existing manifests.

Remove the ConfigHub AI setup files cleanly from this repository and leave all Argo CD manifests untouched.

This proves: an Argo CD GitOps repository can adopt ConfigHub's plugin, AGENTS.md, and argocd-with-confighub skill with zero upstream changes to argocd, giving Helm values-*.yaml and Kustomize teams immediate read-only inventory and change history.