Skip to content
ConfigHub for coding agents
Reference / examples/gitops-ai/argocd/AGENTS.md Source on GitHub

Argo CD + ConfigHub Agent Instructions

This repository is synced by Argo CD and tracked by ConfigHub. Use each tool for the half it owns, never mix their responsibilities or bypass production approval.

Division of labor

Question or taskUseExamples
Live Application sync status, health, diffs against the cluster, eventsArgo CD CLI or Argo CD MCP server (argocd-mcp)argocd app list, argocd app get orders, argocd app diff orders
What this repo deploys, which Application or ApplicationSet points to each path/chart, which values file winsConfigHub plugin (read-only, no hub or cluster access needed)/confighub:inventory, confighub mini inventory .
Why a value was changed, cross-env diff (values-staging.yaml vs values-prod.yaml), change history across sessionsConfigHub plugin or local/shared hub/confighub:why KEY, /confighub:changes, cub mini changes --why KEY
Staging edits & human-gated OCI releases (Kustomize repos, Argo CD 3.1+)ConfigHub hub (kustomize-argocd starter)cub mini upload APP --component APP --change-desc "WHY"

Rules for coding agents

  1. Start read-only. Before proposing any edit in an Argo CD repo, run /confighub:inventory (or confighub mini inventory .) to map every Application, ApplicationSet, Helm values file, and Kustomize overlay, and check Argo CD status (argocd app get or Argo CD MCP) if a server context is active.
  2. Respect the Helm vs. Kustomize boundary.

    • For Helm values-*.yaml repos, use ConfigHub read-only (inventory, ignored-key checks, PR review comments, and cub helm value tracking) while Argo CD keeps syncing from Git.
    • For Kustomize repos (Argo CD 3.1+), you may adopt with the kustomize-argocd starter and propose changes via cub mini upload with a clear --change-desc.
  3. Never write directly to production clusters. Do not run argocd app sync --force, kubectl apply, kubectl patch, cub mini approve, or cub mini deploy-from-hub. Always leave the printed cub mini approve BASE/ORDER command for the human owner.
  4. Always state why. Every config edit or cub mini upload must include the business or operational reason so the next agent or on-call engineer can trace the change without digging through old chats.