# The Agent Is Now a Pipeline Step: Keeping CoCo Automations and Cloud Agents Reproducible

DevFeed: [The Agent Is Now a Pipeline Step: Keeping CoCo Automations and Cloud Agents Reproducible](<https://devfeed.tech/articles/the-agent-is-now-a-pipeline-step-keeping-coco-automations-and-cloud-agents-reproducible-107020.md>)

Original publisher: [Read original article](<https://medium.com/snowflake/the-agent-is-now-a-pipeline-step-keeping-coco-automations-and-cloud-agents-reproducible-e29cfabde47b?source=rss----34b6daafc07---4>)

Author: Vedprakash

Published: 2026-10-29T21:01:02Z

Content type: article

Language: en

Sources: [Snowflake Builders](<https://devfeed.tech/sources/snowflake-builders.md>)

Topics: [Loop Engineering](<https://devfeed.tech/topics/loop-engineering.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [versioning](<https://devfeed.tech/topics/versioning.md>), [observability](<https://devfeed.tech/topics/observability.md>), [human in the loop agent](<https://devfeed.tech/topics/human-in-the-loop-agent.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [automation](<https://devfeed.tech/tags/automation.md>), [change-management](<https://devfeed.tech/tags/change-management.md>), [cli](<https://devfeed.tech/tags/cli.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cloud-agents](<https://devfeed.tech/tags/cloud-agents.md>), [cortex](<https://devfeed.tech/tags/cortex.md>), [data-engineering](<https://devfeed.tech/tags/data-engineering.md>), [database-change-management](<https://devfeed.tech/tags/database-change-management.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [devops](<https://devfeed.tech/tags/devops.md>), [health-check](<https://devfeed.tech/tags/health-check.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [plan](<https://devfeed.tech/tags/plan.md>), [production](<https://devfeed.tech/tags/production.md>), [proof-of-concept](<https://devfeed.tech/tags/proof-of-concept.md>), [review](<https://devfeed.tech/tags/review.md>), [schedule](<https://devfeed.tech/tags/schedule.md>), [scheduled](<https://devfeed.tech/tags/scheduled.md>), [snowflake](<https://devfeed.tech/tags/snowflake.md>), [snowflake-cortex](<https://devfeed.tech/tags/snowflake-cortex.md>), [sql](<https://devfeed.tech/tags/sql.md>)

## AI overview

The proof of concept found that a scheduled CoCo automation can report success even when its result is wrong, so the post treats unattended agents as pipeline steps that need reviewed changes and separate checks for run status and correctness. It describes Snowflake-hosted CoCo automations as scheduled `AGENT TASK`s using their owner's default role; `EXECUTE AGENT TASK` is granted to `PUBLIC` by default. The author recommends restricting that privilege, giving automation owners narrow default roles, and blocking non-Snowflake egress. For reproducible deployments, agents draft changes on a branch, GitLab merge requests carry a reviewed DCM plan, and deployment follows approval; the agent never holds the production role. Prompts should be versioned in Git, since the excerpt says the automation itself has no described export or versioning mechanism. Task history shows run state, while the transcript is needed to judge the result; both are retained for two months. Cloud Agents and CLI `--cloud` run in managed containers with restricted outbound access, but `--cloud` does not support restricted session scope or `--sql-read-only`. The work is a proof of concept, not production testing.

## Source excerpt

Running Snowflake in the Agent Era, Part 4 of 4. An agent on a schedule is a pipeline step, and it needs the same review, versioning, and deploy path as everything else.An agent on a schedule is one more step on the pipeline, with a review gate before production. During the proof of concept for this post, one of our scheduled agent runs reported success. The result was wrong. The task did not fail, so the run state had nothing to say about it. The agent had simply done the job wrong, on a schedule, with nobody watching. That was the moment I stopped thinking of agents as a chat window. An agent that runs at 3am, reads tables, and writes something somewhere is a pipeline step. And every other pipeline step on my platform is versioned, reviewed, and deployed through a plan. This post is about giving agents the same treatment. In Part 1 of this series I listed "an automation running a nightly health check" as one of the reasons agent SQL is spiky. In this part that automation is the subject. When the agent stops being a chat The first three parts of this series treated agents as consumers. They burn compute (Part 1), they need an organization that governs them (Part 2), and they need budgets and quotas (Part 3). This part treats them as producers: something that runs on its own and changes things. The tooling is now mature enough for that question to be real. Cortex Code (CoCo) CLI has been generally available since February 2026, CoCo in Snowsight since March 2026, and CoCo Desktop since July 2026. In the last few months, Snowflake added the two pieces that move CoCo from "a session I am watching" to "a job that runs without me": automations and Cloud Agents. Like Part 1, this was a proof of concept, not production. We tried CoCo automations, Cloud Agents, the CLI --cloud mode, and DCM Projects (generally available). DCM, short for Database Change Management, is Snowflake's way to describe objects as code in definition files and deploy them through a plan you review f