<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Samridhi Vig</title>
    <description>The latest articles on DEV Community by Samridhi Vig (@yeeehzus).</description>
    <link>https://dev.to/yeeehzus</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1048167%2Fec2fa83e-f16d-4170-848d-908520fa990f.png</url>
      <title>DEV Community: Samridhi Vig</title>
      <link>https://dev.to/yeeehzus</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yeeehzus"/>
    <language>en</language>
    <item>
      <title>The Unsexy Way to Deploy an AI Agent</title>
      <dc:creator>Samridhi Vig</dc:creator>
      <pubDate>Sat, 03 Oct 2026 08:53:59 +0000</pubDate>
      <link>https://dev.to/yeeehzus/the-unsexy-way-to-deploy-an-ai-agent-31al</link>
      <guid>https://dev.to/yeeehzus/the-unsexy-way-to-deploy-an-ai-agent-31al</guid>
      <description>&lt;p&gt;I've been building AI workflows that run locally.&lt;/p&gt;

&lt;p&gt;Initially, I manually triggered them when something happened. Then I added cron jobs to run them at intervals.&lt;/p&gt;

&lt;p&gt;That works, but eventually you want the workflow to run without you.&lt;/p&gt;

&lt;p&gt;You don't want your laptop open. You don't want it consuming your personal AI API quota. And you don't want to be there to trigger it.&lt;/p&gt;

&lt;p&gt;So I started looking at how to move these workflows to the cloud.&lt;/p&gt;

&lt;h2&gt;
  
  
  The options
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Hosting approach&lt;/th&gt;
&lt;th&gt;How it works&lt;/th&gt;
&lt;th&gt;Pros&lt;/th&gt;
&lt;th&gt;Cons&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Managed agent platform&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The AI provider runs the agent and execution loop&lt;/td&gt;
&lt;td&gt;Built-in; little infrastructure&lt;/td&gt;
&lt;td&gt;Vendor lock-in; requires giving the provider access to your code/systems&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Headless agent + custom orchestrator&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Run something like Claude Code headlessly and use ADK/LangGraph to orchestrate it&lt;/td&gt;
&lt;td&gt;Minimal changes to an existing workflow&lt;/td&gt;
&lt;td&gt;Not really using the orchestrator to its full potential&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Rewrite in custom orchestrator&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Rewrite the workflow natively in ADK/LangGraph&lt;/td&gt;
&lt;td&gt;Full control; proper orchestration&lt;/td&gt;
&lt;td&gt;Complete rewrite&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;CI/CD + scheduler&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Run the existing workflow as a scheduled CI job&lt;/td&gt;
&lt;td&gt;Almost no changes; existing repo, secrets and Git access&lt;/td&gt;
&lt;td&gt;Not designed for long-running workflows&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;My initial instinct was to use an agent framework.&lt;/p&gt;

&lt;p&gt;But for repo-based workflows, &lt;strong&gt;CI/CD turned out to be a surprisingly good fit.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Git problem
&lt;/h2&gt;

&lt;p&gt;Consider an investigation agent.&lt;/p&gt;

&lt;p&gt;It needs to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;read a ticket&lt;/li&gt;
&lt;li&gt;inspect the codebase&lt;/li&gt;
&lt;li&gt;search Git history&lt;/li&gt;
&lt;li&gt;read markdown files&lt;/li&gt;
&lt;li&gt;inspect recent commits&lt;/li&gt;
&lt;li&gt;diagnose the issue&lt;/li&gt;
&lt;li&gt;produce a report&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Locally, this is easy. The agent has the repository and can just run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git log
git diff
&lt;span class="nb"&gt;grep
&lt;/span&gt;find
&lt;span class="nb"&gt;cat&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Move the workflow to a generic cloud runtime and suddenly you need to solve how the agent gets that context.&lt;/p&gt;

&lt;p&gt;You can clone the repository, use Git APIs, download archives, build repository tools, etc.&lt;/p&gt;

&lt;p&gt;But if the workflow is already in GitLab, &lt;strong&gt;the CI runner already has most of this.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;check out the repository&lt;/li&gt;
&lt;li&gt;access Git history&lt;/li&gt;
&lt;li&gt;run scripts&lt;/li&gt;
&lt;li&gt;access CI secrets&lt;/li&gt;
&lt;li&gt;install dependencies&lt;/li&gt;
&lt;li&gt;run containers&lt;/li&gt;
&lt;li&gt;call external APIs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And it already has a scheduler.&lt;/p&gt;

&lt;h2&gt;
  
  
  A real example
&lt;/h2&gt;

&lt;p&gt;I built an internal investigation agent that periodically picks up newly triaged engineering issues, investigates the relevant codebase and Git history, and produces an investigation report.&lt;/p&gt;

&lt;p&gt;My first instinct was to move the workflow into a dedicated agent runtime.&lt;/p&gt;

&lt;p&gt;Instead, I put the existing workflow behind a scheduled CI pipeline.&lt;/p&gt;

&lt;p&gt;The repository was already there. Git history was already there. The secrets and execution environment were already there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Zero rewrite.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That experience changed how I think about deploying agentic workflows to the cloud.&lt;/p&gt;

&lt;h2&gt;
  
  
  When CI/CD isn't enough
&lt;/h2&gt;

&lt;p&gt;I'm not saying CI/CD is an agent runtime.&lt;/p&gt;

&lt;p&gt;It's a good fit when the workflow is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;start → investigate → finish
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's a different story when you need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;persistent state&lt;/li&gt;
&lt;li&gt;specialised agents&lt;/li&gt;
&lt;li&gt;parallel execution&lt;/li&gt;
&lt;li&gt;complex retries&lt;/li&gt;
&lt;li&gt;human approval&lt;/li&gt;
&lt;li&gt;event-driven workflows&lt;/li&gt;
&lt;li&gt;long-running execution&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At that point, I'd consider something like ADK or LangGraph and rewrite the workflow around proper orchestration.&lt;/p&gt;

&lt;p&gt;The CI/CD implementation can also be a transient solution. Get the workflow running first, then rewrite the internals later without necessarily changing the system that calls it.&lt;/p&gt;

&lt;h2&gt;
  
  
  My current approach
&lt;/h2&gt;

&lt;p&gt;I'm now thinking about this less as:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Which agent framework should I use?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;and more as:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;"What does this workflow actually need from its runtime?"&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For a scheduled workflow that needs repository access, Git history, secrets and bounded execution, &lt;strong&gt;CI/CD may be enough.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For a complex multi-agent system with state and orchestration requirements, use an orchestration framework.&lt;/p&gt;

&lt;p&gt;Don't introduce an agent platform just because the thing you're running happens to be an agent.&lt;/p&gt;

&lt;p&gt;Sometimes the simplest cloud runtime is the infrastructure you already have.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>automation</category>
      <category>cloud</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
