Get startedGet started for free

Using CoCo for DevOps

1. Using CoCo for DevOps

Running a specialized AI agent on your laptop is a massive productivity boost. As long as it only lives on your machine, it's just a personal assistant. When your team submits a pull request, you're back to manual reviews. But what if you could turn your agent into an automated, 24-7 gatekeeper for your entire repository? That's where CI/CD comes in. Everything we've built so far in this course your AGENTS.md configuration, custom skills, plugins, hooks, and specialized subagents was designed with this exact moment in mind. How to use CoCo and CI/CD pipelines. In this module, we're bridging the gap between local agent development and team-wide governance. Here is what we'll be covering. We'll walk through the shift from local workflows to automated CI/CD pipelines wiring our local subagent directly into GitHub Actions. Second, we'll explore why local asset consistency matters and how your repository's AGENTS.md file keeps local and CI behavior identical. Third, we'll break down pipeline mechanics and non-interactive triggers covering path filtering, headless permissions, and non-interactive authentication. And finally, we'll look at the automated review output seeing how the agent posts structured feedback directly onto your pull request. Let's dive in. Up until now, you've been running your agent locally from your computer. Let's bridge the gap between local development and team-wide governance. We're taking the exact same subagent architecture you built locally and wiring it into a GitHub Actions workflow so it runs automatically on every pull request that touches your data models. Same agent, same conventions. Now running in CI. The key benefit of this architecture is portability. You don't need to rewrite complex agent instructions or hard code prompts inside a continuous integration YAML file. Because the agent reads your repository's AGENTS.md and loads your custom skills and plugins dynamically, its behavior in CI is identical to its behavior on your desktop. If your team updates a coding convention or custom review rule in AGENTS.md, your CI runner inherits that logic immediately. No pipeline modification is required. Let's look at how the workflow operates under the hood. First, the pipeline is scoped using path filters. It only fires when a pull request actually modifies a relevant file, such as a dbt data model or SQL transformation script. Next, the runner authenticates to Snowflake headlessly using non-interactive authentication like OIDC or a programmatic access token. Finally, the workflow invokes your subagent in headless mode using bypassPermissions. The subagent initializes, loads its assigned skills and hooks, and begins inspecting the modified files against your defined standards. When the agent completes its review, it uses the GitHub API to post structured feedback directly onto the pull request thread. Because it leverages your subagent's specialized context, the feedback isn't generic AI advice. It evaluates your model's materialization strategies, naming conventions, join conditions, and documentation requirements based on the exact rules you configured in earlier modules. If the code passes, the pipeline succeeds. If critical issues are found, the subagent flags them before any code reaches production. In the upcoming lab, you'll put this into practice. You will take the dbt review subagent you built locally, trigger the pre-configured GitHub Actions pipeline, and observe how it automatically evaluates incoming pull requests. Let's jump into the lab and see your agent in action.

2. Let's practice!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.