Agentic DevOps with Snowflake CoCo
Scaffold an autonomous scan-issue-fix pipeline on GitHub Actions or GitLab CI
in one CoCo conversation. No stored secrets. No manual provisioning.
ICR 48 — one instruction, 48 distinct state-changing operations.
CoCo provisions a complete Agentic DevOps pipeline — repo, Snowflake OIDC trust,
CI secrets, branch protection — without a single manual step. The agent then scans
every push, opens issues, and decides per-finding whether to raise a fix PR or wait
for a human.
Quick start
-
Install Cortex Code (CoCo)
-
Install the plugin:
cortex plugin install https://github.com/Snowflake-Labs/devops-snowflake-coco-agents
-
In the CoCo chat panel, just describe what you want:
scaffold for agentic devops with GitHub
scaffold for agentic devops with GitLab
Or use the explicit plugin command:
$devops-coco-agents:scaffold-for-github # GitHub Actions
$devops-coco-agents:scaffold-for-gitlab # GitLab CI
Done in under 10 minutes. The scaffold executes 48 state-changing operations so you don't have to.
[!TIP]
New to CoCo? Start with scaffold for agentic devops with GitHub and the agent handles everything.
Smart fix mode
Most tools treat every finding the same: auto-fix everything, or do nothing.
CoCo scores each finding before acting and documents the decision in the issue body:
Severity: HIGH | Complexity: LOW | Confidence: HIGH | Fix mode: auto
Decision matrix
| Ceiling | Severity | Complexity | Confidence | Action |
|---|
conservative | LOW | LOW | HIGH | auto-fix |
conservative | LOW | LOW | MEDIUM | needs-review |
conservative | MEDIUM+ | any | any | needs-review |
conservative | any | MEDIUM+ | any | needs-review |
aggressive | any | any | MEDIUM+ | auto-fix |
aggressive | any | any | LOW | needs-review |
off | any | any | any | needs-review |
Config
The team controls the fix ceiling via config-as-code:
# .github/coco-config.yml
coco_max_auto: conservative # off | conservative | aggressive
[!IMPORTANT]
Change it in a PR -- the git history is your audit trail. A COCO_MAX_AUTO
CI/CD variable overrides the file at runtime for experiments without touching code.
What CoCo provisions
[!NOTE]
Zero long-lived secrets. All authentication uses Snowflake OIDC / Workload Identity Federation.
- GitHub / GitLab repo from a hardened template, clean single-commit history
- Snowflake SERVICE user, role, and warehouse with OIDC / Workload Identity Federation
- CI secrets and fix-mode policy committed to the repo
- Branch protection requiring at least one PR review before merge
Prerequisites
[!WARNING]
Both gh/glab and snow must be authenticated before running the scaffold.
- Cortex Code -- the agentic IDE this plugin runs inside
gh authenticated (gh auth login) -- GitHub path
glab authenticated (glab auth login) -- GitLab path
snow CLI connected to Snowflake
- Python 3.11+
Documentation
Documentation source lives in docs/. Preview locally:
task docs:serve # http://localhost:8000
Templates
Testing (Eval Suite)
Determinism of the smoke-test demo generation is validated with an eval suite
in evals/. Two tasks run 5 attempts each to measure the pass rate of the
generation prompt:
| Task | What it checks |
|---|
smoke-test-de | DE (Snowpark ETL) app: 1 auto-fix + ≥2 needs-review, SQL injection + subprocess present |
smoke-test-streamlit | Streamlit app: same routing constraints |