<?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: chandni</title>
    <description>The latest articles on DEV Community by chandni (@chandni_8b89a0126408ba8e1).</description>
    <link>https://dev.to/chandni_8b89a0126408ba8e1</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%2F4066788%2Fff174ff9-5cd1-4b74-8ef4-08741a64ca79.png</url>
      <title>DEV Community: chandni</title>
      <link>https://dev.to/chandni_8b89a0126408ba8e1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chandni_8b89a0126408ba8e1"/>
    <language>en</language>
    <item>
      <title>What We Learned Building Enterprise AI Agents: Five Challenges Nobody Talks About</title>
      <dc:creator>chandni</dc:creator>
      <pubDate>Fri, 07 Aug 2026 08:13:05 +0000</pubDate>
      <link>https://dev.to/chandni_8b89a0126408ba8e1/what-we-learned-building-enterprise-ai-agents-five-challenges-nobody-talks-about-1i5b</link>
      <guid>https://dev.to/chandni_8b89a0126408ba8e1/what-we-learned-building-enterprise-ai-agents-five-challenges-nobody-talks-about-1i5b</guid>
      <description>&lt;p&gt;We live in an era of AI agents where every conference discussion these days is centered around slides showing robot icons linked by arrows, and the word 'agentic' pops up on every new product roadmap.  &lt;/p&gt;

&lt;p&gt;If you have only built demos on it, it looks pretty easy. All you need to do is give the model a goal, hand it a couple of API tools, and then you let it run. But that’s not the case when it comes to the real production part of it.  &lt;/p&gt;

&lt;p&gt;There is a severe gap between making an agent that books a flight in a Jupyter notebook and deploying one that handles travel for 40000 employees without overspending or leaking sensitive data. Tutorials often display only the happy part of things, and we do not realize how wide this gap is.   &lt;/p&gt;

&lt;p&gt;Let us briefly discuss five real-world engineering challenges that caught us off guard when taking agentic systems into production. &lt;/p&gt;

&lt;h2&gt;
  
  
  Challenge 1 — Agents Fail Because They Lack Context
&lt;/h2&gt;

&lt;p&gt;When an agent gives a bad answer, the first instinct would be to blame the model. That's usually the wrong instinct. The model is fine; it's just that it was not provided sufficient context needed for an appropriate answer.  &lt;/p&gt;

&lt;p&gt;Context windows are enormous now, but "large" isn't the same as "unlimited attention." Giving more information may not make the model smarter. In fact, it tends to get distracted. So, the ideal solution would be to curate the smallest set of high-signal information needed for that exact step.  &lt;/p&gt;

&lt;p&gt;Imagine you stuff thousands of tokens into a prompt such as uploading your entire product catalog. It may not get smarter. Besides that, there is this knowledge that never gets documented at all, i.e. the logic that lives in a senior’s head, or buried in stale docs, slack threads, or hidden in an unwritten exception rule which we call tribal knowledge. Such context may not always be translated into a prompt in the window because certain knowledge may be in the form of organizational memory.  &lt;/p&gt;

&lt;p&gt;This is usually where people reach out for RAG and believe the problem is solved. RAG and vector search indeed help a lot. But it may also turn up five confident, irrelevant chunks in a beautifully formatted way, and if your embeddings miss semantic nuance, then the wrong output would be generated.  &lt;/p&gt;

&lt;p&gt;There are a lot of external factors which come into play during vector search. Factors like freshness of the underlying data, retrieval quality and how you rank your documents all play a vital role. &lt;/p&gt;

&lt;p&gt;Take, for instance, a situation where an agent dealing with supplier exceptions kept suggesting a resolution path that had been outdated for eight months. The previous policy document was still indexed in the vector database, and it was not removed. Surprisingly, it was ranked just a bit higher than the updated version. The model wasn’t hallucinating. But it fetched out the outdated information that it considered to be the truth. &lt;/p&gt;

&lt;h3&gt;
  
  
  Key takeaway
&lt;/h3&gt;

&lt;p&gt;Building the right context should really be seen as an engineering discipline, not just an afterthought when it comes to writing prompts. Because the information you give for building context matters as much as what you put in.    &lt;/p&gt;

&lt;h2&gt;
  
  
  Challenge 2 — Tool Calling Is Less Reliable Than It Looks
&lt;/h2&gt;

&lt;p&gt;In a local demo, your mock APIs work every single time. But that’s not the case in the real production environment; it may throw random 500 internal server errors, cause timeout issues, change schemas or rate-limit mid-execution. &lt;/p&gt;

&lt;p&gt;Building a production-ready tool execution wrapper requires much higher standards than test execution. As &lt;a href="https://openai.com/business/guides-and-resources/a-practical-guide-to-building-ai-agents/" rel="noopener noreferrer"&gt;OpenAI notes in its Practical guide to building agents&lt;/a&gt;, a production agent should recognize when a workflow is complete. It should be able to correct its own course whenever something goes wrong, keep trying if it's a temporary issue and make every possible effort to get things done. If it cannot be resolved, it should halt execution and get back to a human, all while operating within defined boundaries. That's a much higher bar than a unit test passing in a test run. &lt;/p&gt;

&lt;p&gt;Authentication is another layer of complexity that developers often overlook. Very often the tokens expire mid-task or scoped permissions block actions silently. For instance, an agent that has only ‘read access’ to a calendar might silently fail ‘to create an event’ because nobody granted it the write access. The agent might not even realize the write didn't happen. &lt;/p&gt;

&lt;h3&gt;
  
  
  Key takeaway
&lt;/h3&gt;

&lt;p&gt;An agent system is only as reliable as its flakiest tool. Budget development time for handling tool failures the same way you would for third-party microservices. &lt;/p&gt;

&lt;h2&gt;
  
  
  Challenge 3 — Multi-Agent Systems Become Complex Very Quickly
&lt;/h2&gt;

&lt;p&gt;Multi-agent architectures may seem attractive where several AI agents co-ordinate to make the system better. One agent plans, another researches, the next writes, and the other reviews; it feels like assembling a team. And sometimes it genuinely helps. &lt;/p&gt;

&lt;p&gt;While understanding &lt;a href="https://thinkpalm.com/blogs/what-are-ai-agents-and-how-are-they-transforming-developer-workflows/" rel="noopener noreferrer"&gt;how AI agents transform developer workflows&lt;/a&gt; helps clarify where individual automation adds value, stacking multiple agents together introduces massive coordination overhead. &lt;/p&gt;

&lt;p&gt;Anthropic's own writeup on their multi-agent research system is a good reality check here. When you split your work across parallel subagents, there could be significant improvement in terms of accuracy, especially broad research tasks. But it comes with a real cost: the multi-agent version could burn something like 15 times the tokens of a single conversational exchange. Hence, it is advisable not always to use multiple agents. Instead, use them wisely only if the task is complex and valuable enough to justify the payment.  and valuable enough to justify the payment.  &lt;/p&gt;

&lt;p&gt;Coordination is another roadblock where teams get into trouble. When subagents can't see what their counterparts are doing, they might end up cheerfully duplicating tasks. For instance, Anthropic shared a scenario where one subagent investigated an old supply chain event while two others redid the same research on the current one. Now, imagine this happening with ten agents all sharing a task queue; you could find yourself in a sort of soft deadlock, with two agents stuck waiting for the output that the other was supposed to deliver first. &lt;/p&gt;

&lt;h3&gt;
  
  
  Prototype AI Agent vs. Enterprise AI Agent
&lt;/h3&gt;

&lt;p&gt;By now, we understand that there is a gap between a prototype and an enterprise AI agent which is not really about model capability, but the engineering discipline around it. The table below helps us understand the differences. &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Prototype Agent&lt;/th&gt;
&lt;th&gt;Enterprise Agent&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Context source&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Static prompt, maybe one document&lt;/td&gt;
&lt;td&gt;Curated retrieval, governed knowledge base, freshness checks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Tool failures&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Assumed away&lt;/td&gt;
&lt;td&gt;Retried, logged, degraded gracefully&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Number of agents&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;As many as seems fun&lt;/td&gt;
&lt;td&gt;As few as the task actually requires&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Approval model&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;None, agent just acts&lt;/td&gt;
&lt;td&gt;Human-in-the-loop at defined checkpoints&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Audit trail&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Console output, if that&lt;/td&gt;
&lt;td&gt;Structured logs, traces, retained for compliance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Cost visibility&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Unknown until the bill arrives&lt;/td&gt;
&lt;td&gt;Tracked per task, per agent, per token&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Failure mode&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Silent, discovered by a user&lt;/td&gt;
&lt;td&gt;Detected by monitoring before a user notice&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Key takeaway
&lt;/h3&gt;

&lt;p&gt;Involving more agents is not a strategy. It's a cost multiplier that sometimes buys you accuracy and sometimes just buys you a bigger bill and a harder debugging session. &lt;/p&gt;

&lt;h2&gt;
  
  
  Challenge 4 — Governance Matters More Than Intelligence
&lt;/h2&gt;

&lt;p&gt;Enterprises usually do not deploy the smartest agents. They reward the agent they can trust, and the ones that can easily justify, explain, and provide trails are regarded as trustworthy. As the capabilities increase, governance becomes a major hurdle.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://hai.stanford.edu/ai-index/2026-ai-index-report" rel="noopener noreferrer"&gt;Stanford HAI's 2026 AI Index&lt;/a&gt; put a number on why these matters.  Documented AI-related incidents jumped to 362 in 2025, up from 233 the year before - a real increase, not noise, even as agents got dramatically better at real-world tasks (jumping from roughly 12% to about 66% success on a standard computer-task benchmark).  &lt;/p&gt;

&lt;p&gt;As AI agents are improving rapidly, organizations are not improving at the same pace in terms of controlling, monitoring, and governing them. This is why organizations do not trust AI in critical operations.  &lt;/p&gt;

&lt;p&gt;Most organizations focus on making AI agents autonomous, but what matters even more is the governance aspect of it. Companies really need to have solid mechanisms in place where they keep track of AI operating within clear rules, recording every important decision with strict access controls.  &lt;/p&gt;

&lt;p&gt;So, in situations like these, we really need to tread carefully: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Decision involving high-stakes actions like transferring money, deleting records, or reaching out to a customer, requires human approval every time. &lt;/li&gt;
&lt;li&gt;Maintain detailed records of the actions taken by AI agents and the reasoning behind those actions, instead of just depending on basic console messages. &lt;/li&gt;
&lt;li&gt;Every AI agent should be given only the required access control for the specific task it undertakes. &lt;/li&gt;
&lt;li&gt;Maintain audit records so that evidence can be provided to a compliance officer explaining the specific reason behind actions taken by AI agents. &lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Key takeaway
&lt;/h3&gt;

&lt;p&gt;Enterprises do not need complete autonomy. They need deployments with predictable behaviors from AI agents that operate behind specific guardrails.   &lt;/p&gt;

&lt;h2&gt;
  
  
  Challenge 5 — Observability Is the Missing Piece
&lt;/h2&gt;

&lt;p&gt;Distributed systems have often taught us that if you can’t see it, you can’t manage it. This lesson holds true for agents as well, but the failure modes are a bit more peculiar; an agent doesn’t just crash. It can quietly deliver a seemingly convincing answer that might actually be completely off-base, and you won’t even get an error message to alert you. Therefore, observability is key, not something to think about later. You need detailed tracing for every input, tool call, and decision made. It should be connected in the same way you would trace a request through a network of microservices. Without this level of visibility, the question "why did the agent make that decision?" becomes one that no one in the organization can truly answer. &lt;/p&gt;

&lt;h2&gt;
  
  
  What Actually Needs Watching, In Practice:
&lt;/h2&gt;

&lt;p&gt;Let us delve into some of the factors to be considered while running agentic systems in production:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Build observability from the start&lt;/strong&gt;: Trying to diagnose a blind, production multi-agent system after it's live is one of the most painful tasks in software engineering. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Logging and Tracing&lt;/strong&gt;: Keep track of every single step and tool used, all linked to one specific task ID. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prompt and output Monitoring&lt;/strong&gt;: Spot any drops in performance or changes in the output schema of prompts. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cost tracking&lt;/strong&gt;: Track token usage for each task and its sub-agents.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Latency&lt;/strong&gt;: Set practical response time limits to deliver a consistent user experience. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Audit and Inspection Tools&lt;/strong&gt;: Capture a complete decision trail which makes troubleshooting agent behavior easier. &lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The biggest lesson from building enterprise AI agents wasn't about prompting. It was about designing reliable software systems around them. &lt;/p&gt;

&lt;p&gt;None of the five challenges above talk about model quality. They’re the exact same headaches engineers have been fighting in distributed systems for decades: missing data, unreliable dependencies, messy team coordination, security, and the need to see what's happening inside the box. Agents just make all five of those problems more interesting, because the "code" making decisions is a language model instead of a traditional line of code. &lt;/p&gt;

</description>
      <category>ai</category>
      <category>architecture</category>
      <category>webdev</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
