<?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: Bill Liao</title>
    <description>The latest articles on DEV Community by Bill Liao (@bill_liao).</description>
    <link>https://dev.to/bill_liao</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%2F2772596%2Fe1893580-3f06-49e8-824f-967fe6b114f2.png</url>
      <title>DEV Community: Bill Liao</title>
      <link>https://dev.to/bill_liao</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bill_liao"/>
    <language>en</language>
    <item>
      <title>Building AI Agents in 2026: What I Learned After Shipping to Production</title>
      <dc:creator>Bill Liao</dc:creator>
      <pubDate>Fri, 31 Jul 2026 09:04:13 +0000</pubDate>
      <link>https://dev.to/bill_liao/building-ai-agents-in-2026-what-i-learned-after-shipping-to-production-75</link>
      <guid>https://dev.to/bill_liao/building-ai-agents-in-2026-what-i-learned-after-shipping-to-production-75</guid>
      <description>&lt;p&gt;Everyone can build an AI agent.&lt;/p&gt;

&lt;p&gt;Very few can keep one running reliably in production.&lt;/p&gt;

&lt;p&gt;That was the biggest lesson I learned in 2026.&lt;/p&gt;

&lt;p&gt;After months of building, deploying, monitoring, and improving AI agents used by real users, I realized something surprising:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The hardest problems have almost nothing to do with the LLM.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The model is just one component in a much larger distributed system.&lt;/p&gt;

&lt;p&gt;Production AI engineering is no longer about prompts. It's about software architecture.&lt;/p&gt;




&lt;h3&gt;
  
  
  The Demo Ends Where Production Begins
&lt;/h3&gt;

&lt;p&gt;A prototype usually looks impressive.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User → LLM → Answer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Production looks very different.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User
 ↓
Authentication
 ↓
Memory
 ↓
Planner
 ↓
Tool Selection
 ↓
Knowledge Retrieval
 ↓
Vector Database
 ↓
Multiple APIs
 ↓
LLM
 ↓
Guardrails
 ↓
Validation
 ↓
Observability
 ↓
Response
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Most failures don't happen inside the model.&lt;/p&gt;

&lt;p&gt;They happen between components.&lt;/p&gt;




&lt;h3&gt;
  
  
  Lesson 1: The Agent Is Only 20% of the System
&lt;/h3&gt;

&lt;p&gt;Early this year I believed improving the model would improve the product.&lt;/p&gt;

&lt;p&gt;I was wrong.&lt;/p&gt;

&lt;p&gt;The majority of engineering effort went into:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  orchestration&lt;/li&gt;
&lt;li&gt;  retries&lt;/li&gt;
&lt;li&gt;  caching&lt;/li&gt;
&lt;li&gt;  monitoring&lt;/li&gt;
&lt;li&gt;  permissions&lt;/li&gt;
&lt;li&gt;  rate limiting&lt;/li&gt;
&lt;li&gt;  tool integration&lt;/li&gt;
&lt;li&gt;  state management&lt;/li&gt;
&lt;li&gt;  evaluation&lt;/li&gt;
&lt;li&gt;  cost optimization&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The LLM eventually became one dependency among many.&lt;/p&gt;

&lt;p&gt;The architecture mattered far more than the prompt.&lt;/p&gt;




&lt;h3&gt;
  
  
  Lesson 2: Tool Calling Is the Real Product
&lt;/h3&gt;

&lt;p&gt;The most capable AI agents don't answer questions.&lt;/p&gt;

&lt;p&gt;They perform work.&lt;/p&gt;

&lt;p&gt;That means interacting with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  GitHub&lt;/li&gt;
&lt;li&gt;  Jira&lt;/li&gt;
&lt;li&gt;  Slack&lt;/li&gt;
&lt;li&gt;  Databases&lt;/li&gt;
&lt;li&gt;  REST APIs&lt;/li&gt;
&lt;li&gt;  Internal services&lt;/li&gt;
&lt;li&gt;  MCP servers&lt;/li&gt;
&lt;li&gt;  Search systems&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An agent that can reliably execute business workflows delivers significantly more value than one that simply generates polished text.&lt;/p&gt;

&lt;p&gt;The engineering challenge shifts from prompting to orchestrating reliable tool execution.&lt;/p&gt;




&lt;h3&gt;
  
  
  Lesson 3: Context Is More Valuable Than Model Size
&lt;/h3&gt;

&lt;p&gt;A smaller model with excellent context often outperformed a larger model with poor context.&lt;/p&gt;

&lt;p&gt;High-quality context includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  current system state&lt;/li&gt;
&lt;li&gt;  architectural knowledge&lt;/li&gt;
&lt;li&gt;  user intent&lt;/li&gt;
&lt;li&gt;  previous interactions&lt;/li&gt;
&lt;li&gt;  business rules&lt;/li&gt;
&lt;li&gt;  permissions&lt;/li&gt;
&lt;li&gt;  relevant documentation&lt;/li&gt;
&lt;li&gt;  execution history&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Retrieval quality mattered more than adding another ten billion parameters.&lt;/p&gt;




&lt;h3&gt;
  
  
  Lesson 4: Multi-Agent Systems Create New Problems
&lt;/h3&gt;

&lt;p&gt;Splitting work across specialized agents sounds elegant.&lt;/p&gt;

&lt;p&gt;In reality, it introduces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  coordination failures&lt;/li&gt;
&lt;li&gt;  duplicated reasoning&lt;/li&gt;
&lt;li&gt;  conflicting decisions&lt;/li&gt;
&lt;li&gt;  token explosion&lt;/li&gt;
&lt;li&gt;  increased latency&lt;/li&gt;
&lt;li&gt;  debugging complexity&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Adding agents is similar to adding microservices.&lt;/p&gt;

&lt;p&gt;More flexibility.&lt;/p&gt;

&lt;p&gt;More complexity.&lt;/p&gt;

&lt;p&gt;Unless each agent has a clear responsibility, multiple agents often make the system harder—not easier—to operate.&lt;/p&gt;




&lt;h3&gt;
  
  
  Lesson 5: Evaluation Never Stops
&lt;/h3&gt;

&lt;p&gt;Traditional software has tests.&lt;/p&gt;

&lt;p&gt;AI systems need continuous evaluation.&lt;/p&gt;

&lt;p&gt;Every production deployment should answer questions like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Did answer quality improve?&lt;/li&gt;
&lt;li&gt;  Did costs increase?&lt;/li&gt;
&lt;li&gt;  Did latency change?&lt;/li&gt;
&lt;li&gt;  Did tool success rates decrease?&lt;/li&gt;
&lt;li&gt;  Did hallucinations increase?&lt;/li&gt;
&lt;li&gt;  Did users become more successful?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Without automated evaluation, every release becomes an experiment on your customers.&lt;/p&gt;




&lt;h3&gt;
  
  
  Lesson 6: Observability Is More Important Than Intelligence
&lt;/h3&gt;

&lt;p&gt;When an agent fails, developers need to know:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Which prompt was used?&lt;/li&gt;
&lt;li&gt;  Which tools were called?&lt;/li&gt;
&lt;li&gt;  Which documents were retrieved?&lt;/li&gt;
&lt;li&gt;  Which model made the decision?&lt;/li&gt;
&lt;li&gt;  Why was that decision chosen?&lt;/li&gt;
&lt;li&gt;  Where did latency occur?&lt;/li&gt;
&lt;li&gt;  What did the user actually experience?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Without end-to-end tracing, production debugging quickly turns into guesswork.&lt;/p&gt;

&lt;p&gt;Observability is what transforms AI systems from mysterious black boxes into maintainable software.&lt;/p&gt;




&lt;h3&gt;
  
  
  Lesson 7: Cost Becomes an Architectural Decision
&lt;/h3&gt;

&lt;p&gt;During prototyping, token costs feel insignificant.&lt;/p&gt;

&lt;p&gt;At production scale, they become impossible to ignore.&lt;/p&gt;

&lt;p&gt;Successful teams optimize through:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  semantic caching&lt;/li&gt;
&lt;li&gt;  model routing&lt;/li&gt;
&lt;li&gt;  context compression&lt;/li&gt;
&lt;li&gt;  selective retrieval&lt;/li&gt;
&lt;li&gt;  batching&lt;/li&gt;
&lt;li&gt;  asynchronous workflows&lt;/li&gt;
&lt;li&gt;  smaller specialized models&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The cheapest token is the one you never send.&lt;/p&gt;




&lt;h3&gt;
  
  
  Lesson 8: Reliability Beats Intelligence
&lt;/h3&gt;

&lt;p&gt;Users rarely notice a model that's 5% smarter.&lt;/p&gt;

&lt;p&gt;They immediately notice when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  responses take 20 seconds&lt;/li&gt;
&lt;li&gt;  tools fail&lt;/li&gt;
&lt;li&gt;  memory disappears&lt;/li&gt;
&lt;li&gt;  workflows break&lt;/li&gt;
&lt;li&gt;  permissions are incorrect&lt;/li&gt;
&lt;li&gt;  answers become inconsistent&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reliability builds trust.&lt;/p&gt;

&lt;p&gt;Trust drives adoption.&lt;/p&gt;

&lt;p&gt;Consistency often matters more than peak intelligence.&lt;/p&gt;




&lt;h3&gt;
  
  
  Lesson 9: AI Agents Are Distributed Systems
&lt;/h3&gt;

&lt;p&gt;Once an agent depends on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  multiple APIs&lt;/li&gt;
&lt;li&gt;  retrieval pipelines&lt;/li&gt;
&lt;li&gt;  vector databases&lt;/li&gt;
&lt;li&gt;  workflow engines&lt;/li&gt;
&lt;li&gt;  external tools&lt;/li&gt;
&lt;li&gt;  message queues&lt;/li&gt;
&lt;li&gt;  authentication providers&lt;/li&gt;
&lt;li&gt;  memory services&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;…it behaves like any other distributed system.&lt;/p&gt;

&lt;p&gt;That means engineering fundamentals still apply:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  fault tolerance&lt;/li&gt;
&lt;li&gt;  graceful degradation&lt;/li&gt;
&lt;li&gt;  circuit breakers&lt;/li&gt;
&lt;li&gt;  retries&lt;/li&gt;
&lt;li&gt;  idempotency&lt;/li&gt;
&lt;li&gt;  scalability&lt;/li&gt;
&lt;li&gt;  monitoring&lt;/li&gt;
&lt;li&gt;  security&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;AI doesn't replace software engineering.&lt;/p&gt;

&lt;p&gt;It raises the bar for it.&lt;/p&gt;




&lt;h3&gt;
  
  
  Lesson 10: Software Engineering Is Becoming AI Engineering
&lt;/h3&gt;

&lt;p&gt;The biggest mindset shift wasn't learning new models.&lt;/p&gt;

&lt;p&gt;It was realizing that traditional software engineering skills have become even more valuable.&lt;/p&gt;

&lt;p&gt;Architecture.&lt;/p&gt;

&lt;p&gt;Distributed systems.&lt;/p&gt;

&lt;p&gt;API design.&lt;/p&gt;

&lt;p&gt;System reliability.&lt;/p&gt;

&lt;p&gt;Security.&lt;/p&gt;

&lt;p&gt;Testing.&lt;/p&gt;

&lt;p&gt;Observability.&lt;/p&gt;

&lt;p&gt;Performance engineering.&lt;/p&gt;

&lt;p&gt;These disciplines are now the foundation of successful AI products.&lt;/p&gt;

&lt;p&gt;The companies shipping reliable AI systems aren't winning because they found a better prompt.&lt;/p&gt;

&lt;p&gt;They're winning because they built better software.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;In 2024, everyone was asking:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Which LLM should we use?"&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In 2025:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"How do we integrate AI into our applications?"&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In 2026, the conversation has changed again:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;"How do we operate AI systems reliably at scale?"&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's a software engineering problem.&lt;/p&gt;

&lt;p&gt;And that's good news.&lt;/p&gt;

&lt;p&gt;Because the future doesn't belong to people who simply know how to prompt an LLM.&lt;/p&gt;

&lt;p&gt;It belongs to engineers who can design, build, observe, secure, and continuously improve intelligent systems in production.&lt;/p&gt;

&lt;p&gt;The age of AI engineering has officially begun.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;What has been your biggest lesson from deploying AI agents into production?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear what surprised you the most.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>architecture</category>
      <category>production</category>
    </item>
  </channel>
</rss>
