<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by manisha gupta on Medium]]></title>
        <description><![CDATA[Stories by manisha gupta on Medium]]></description>
        <link>https://medium.com/@manishagupta81?source=rss-543683015e6c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZhvBJdt4NEP2O8f002K6Uw.jpeg</url>
            <title>Stories by manisha gupta on Medium</title>
            <link>https://medium.com/@manishagupta81?source=rss-543683015e6c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:13:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manishagupta81/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Harness Matters More Than the Model]]></title>
            <link>https://medium.com/@manishagupta81/the-harness-matters-more-than-the-model-3bd426e73917?source=rss-543683015e6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bd426e73917</guid>
            <dc:creator><![CDATA[manisha gupta]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 23:54:01 GMT</pubDate>
            <atom:updated>2026-10-04T23:54:01.882Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part 2 of “Your AI Agent Needs a Map”: once your agent understands the business, how do you keep it safe and reliable?</em></p><p>In Part 1, we looked at a hotel assistant that impressed everyone in the demo, then fell apart after launch. It mixed up “booking” and “reservation” because nobody had taught it how the hotel’s departments use those words. The fix was <strong>Domain-Driven Design</strong>: give the agent a map of the business, with clear areas, shared words and a translator between your systems and the outside world.</p><p>But a map isn’t enough. An agent that understands the hotel perfectly can still loop forever on a broken system, show one guest another guest’s booking, or approve a late checkout for a room that’s already taken. Understanding the business is one half of the job. <strong>Controlling what the agent does with that understanding is the other half.</strong></p><p>That second half has a name: the H<strong>arness</strong>.</p><h3>What is a harness?</h3><p>A language model on its own can only read text and write text back. That’s useful, but it isn’t an agent. An agent needs tools to take action, memory to know what’s going on, rules for when to stop, and someone checking its work. Everything around the model that makes this possible is the harness.</p><p><strong>The model is the engine. The harness is the rest of the car:</strong> steering, brakes, dashboard and seatbelts. A powerful engine without brakes isn’t something you’d want to drive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U6JsU95fU8OKR_SJK8qJ5w.png" /></figure><h3>The seven parts, in a hotel</h3><p>Picture the same hotel assistant from Part 1, now handling guest requests. A good harness answers seven questions for it:</p><ol><li><strong>When do I stop?</strong> After three failed tries, hand over to staff instead of looping forever.</li><li><strong>What can I see?</strong> Only this guest’s booking, never anyone else’s.</li><li><strong>What can I do?</strong> Look up rooms and bookings, but never change prices.</li><li><strong>Who checks my work?</strong> Code confirms the room is actually free before a late checkout is approved.</li><li><strong>How do I scale?</strong> A helper agent handles big group bookings.</li><li><strong>Who sees what happened?</strong> Every action is logged for the front-desk manager.</li><li><strong>Who gives permission?</strong> Refunds and upgrades need a manager’s approval.</li></ol><h3>One request, step by step</h3><p>A guest messages: <em>“Can I check out at 2pm tomorrow?”</em></p><p>The model makes one small decision: check whether the room is free. The harness does everything else. It loads the booking, runs the availability lookup, applies the hotel’s rules in code, and logs the result. If the lookup keeps failing, a stop rule hands the request to a person.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A5ZmG6MDHkPBSZjI_NdxEQ.png" /></figure><p>That’s the point: <strong>the model brings understanding, and the harness brings reliability.</strong></p><h3>Words shrink, walls grow</h3><p>Good harnesses are changing in a clear direction: <strong>fewer words and stronger walls.</strong></p><ul><li><em>Words</em> are instructions in the prompt: “Always double-check the dates.” “Follow these 12 steps.”</li><li><em>Walls</em> are limits enforced by code: “Guests can only see their own booking.” “Refunds need approval.”</li></ul><p>A wall works no matter what the model decides. An instruction only works if the model follows it.</p><p>As models get smarter, many instructions stop being needed. Teams building agents report removing 80% or more of their instructions and getting the same or better results. One team cut its tools by 80% and its agent became 3.5 times faster.</p><p>The reason is simple: <strong>every instruction is a bet about what the model can’t do.</strong> When the model improves, the bet expires, and an old instruction starts getting in the way.</p><p>Walls are different. “Refunds need a manager’s approval” isn’t about the model being weak. It’s a business rule, and it stays no matter how smart the model becomes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9vP4u8kkNeZ-btvVDCrfDw.png" /></figure><h3>Why this matters for your budget</h3><p>With the very best models, a better harness adds only a little. With smaller, cheaper models, the harness can make a huge difference. In one test, the same model scored about 19% with a bare setup and over 70% with a full harness.</p><p>So if you use cheaper models to save money, your harness is doing much of the work. It also means you can’t fairly compare two agents without knowing what harness each one runs in.</p><h3>Five habits for a harness that ages well</h3><ol><li><strong>Separate guesses from rules.</strong> “Remind it to check dates” is a guess about the model and should be reviewed. “Never show one guest another guest’s booking” is a business rule and should never be removed.</li><li><strong>Write down why each part exists.</strong> Note when you added it and which model you were using. Review the list whenever you upgrade the model.</li><li><strong>Test by removing.</strong> Take an instruction out. If results don’t get worse, delete it for good.</li><li><strong>Give maps, not scripts.</strong> Tell the agent <em>where</em> to find the cancellation policy, not every step to follow.</li><li><strong>Always have a referee.</strong> Keep an independent check on the agent’s output, especially if anything changes automatically.</li></ol><h3>How the map and the harness fit together</h3><p>Domain-Driven Design and the harness solve different problems, and a reliable agent needs both.</p><ul><li><strong>DDD gives the agent the map.</strong> It defines the business areas (Reservations, Housekeeping, Billing), the shared words (“late checkout” means the same thing everywhere), and the translator that turns outside codes like “DBL-NR-BB” into plain hotel language.</li><li><strong>The harness gives the agent the guardrails.</strong> It decides what the agent can see, what it can do, when it stops, who checks its work and who gives permission.</li></ul><p>They also meet in the middle:</p><ul><li><strong>Business areas become harness boundaries.</strong> The Reservations area gets its own tools and permissions. Billing gets different ones. The agent can’t wander from one into the other.</li><li><strong>Domain rules become walls.</strong> “A room can’t be booked twice for the same night” is a business rule from Part 1, and in the harness it’s enforced in code, not left to the model.</li><li><strong>The translator becomes part of the toolset.</strong> The tools the harness hands the agent are the same translators from Part 1. They speak hotel language and hide the vendor’s codes.</li><li><strong>Shared words keep the instructions short.</strong> When the whole system uses one agreed vocabulary, you need far fewer instructions to explain things to the model. That’s the “words shrink, walls grow” trend in action.</li></ul><p>Put simply: <strong>DDD tells the agent where it is. The harness makes sure it behaves while it’s there.</strong></p><h3>The takeaway</h3><p>In Part 1, the lesson was that an agent without a domain is a tourist without a map. Part 2 adds the other half: a tourist with a map still needs rules of the road.</p><p>Design the map with Domain-Driven Design: clear business areas, shared words and a translator at every boundary. Then build the harness around it: firm walls for the business rules, as few instructions as possible, and checks you review every time the model changes.</p><p><strong>Give your agent a map. Build it a harness. Then trust it to do the work in between.</strong></p><p><em>Missed Part 1? Read “</em><a href="https://medium.com/@manishagupta81/domain-driven-design-for-ai-agents-bounded-contexts-mcp-and-the-anti-corruption-layer-be21d58723da"><em>Your AI Agent Needs a Map: Domain-Driven Design for Building Better Agents</em></a><em>”</em></p><p><em>Further reading:</em></p><ul><li><a href="https://levelup.gitconnected.com/agent-harness-a-no-bs-guide-8f69e3c0a3da">Agent Harness: A No-BS Guide</a> (Level Up Coding)</li><li><a href="https://polomodov.tech/en/2026-10-01-agent-harness-evolution/">The Agent Harness: Past, Present, and Future</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bd426e73917" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Agent Needs a Map: Domain-Driven Design for Building Better Agents]]></title>
            <link>https://medium.com/@manishagupta81/domain-driven-design-for-ai-agents-bounded-contexts-mcp-and-the-anti-corruption-layer-be21d58723da?source=rss-543683015e6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/be21d58723da</guid>
            <dc:creator><![CDATA[manisha gupta]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 23:20:10 GMT</pubDate>
            <atom:updated>2026-10-04T23:23:03.125Z</atom:updated>
            <content:encoded><![CDATA[<p>How bounded contexts, shared language and a simple translator layer keep agents from getting lost</p><p>Oct 4, 2026 · @Manisha Gupta</p><p><em>Most enterprise agents don’t fail because the model is weak. They fail because nobody told the agent which part of the business it lives in.</em></p><p>Imagine a hotel assistant that impresses everyone in the demo, then falls apart after launch. The cause is small and painful: it treated “booking” and “reservation” as the same thing. To the front desk, a reservation is a room held for a guest. To finance, a booking is money the hotel has actually earned. The assistant mixed them up and reported rooms that were only held as revenue. The AI worked fine. What it lacked was an understanding of how the hotel’s own departments use those words.</p><p>The fix is not a new framework. It is a twenty-year-old discipline: <strong>Domain-Driven Design (DDD)</strong>. Teams building agents and MCP servers are rediscovering its core patterns, often without the names. Lets go over them and explore how three ideas fit together:</p><ol><li>Start agent design from the domain model, not the prompt.</li><li>Treat each MCP server or tool set as a bounded context.</li><li>Build your own anti-corruption layer instead of conforming to a vendor’s schema.</li></ol><h3>A five-minute DDD refresher for agent builders</h3><p>You only need four ideas from DDD to follow the rest of this article.</p><p><strong>1. Bounded context.</strong> A boundary inside which a model and its words have one precise meaning. For agents: one agent, tool server or skill set owns one context, such as Risk or Billing.<br> <em>Example:</em> At a hotel, “room” means a clean, available space to the front desk, a cleaning task to housekeeping, and a line on the bill to accounts. Each team keeps its own meaning.</p><p><strong>2. Ubiquitous language.</strong> The shared vocabulary of domain experts and developers. For agents: the words in your prompts, tool names and parameters.<br> <em>Example:</em> If staff say “late checkout”, the booking system, the guest app and the AI all say “late checkout”. Not “extended stay” in one place and “delayed departure” in another.</p><p><strong>3. Anti-corruption layer (ACL).</strong> A translation layer that stops an outside model from leaking into yours. For agents: typed tools that turn agent-friendly inputs into domain objects and back.<br> <em>Example:</em> A booking site sends a reservation as “DBL-NR-BB”. The ACL turns it into “Double room, non-refundable, breakfast included” before the hotel’s AI sees it.</p><p><strong>4. Conformist.</strong> A downstream system that simply adopts the upstream model. For agents: plugging a vendor’s raw API or MCP server straight into the agent.<br> <em>Example:</em> The hotel’s AI uses the booking site’s codes directly. When the site changes “BB” to “BKF”, the AI starts telling guests breakfast isn’t included.</p><p>Why does this matter more for agents than for microservices? When a person meets an ambiguous term, they pause and ask. An agent picks the nearest match and keeps going. Ambiguity that a human would catch becomes a silent wrong action.</p><h3>Principle 1: Give the agent a map before you give it a prompt</h3><p>An agent without a domain model is a tourist without a map. It can move, but it doesn’t know where anything is. One useful framing for fixing this is <strong>DICE</strong>, Domain-Integrated Context Engineering. It has four parts:</p><ul><li><strong>Domain:</strong> the business objects, behaviours and constraints.<br> <em>Example:</em> In a hotel, the objects are Guest, Room and Booking. A behaviour is “check in a guest”. A constraint is “a room can’t be booked twice for the same night”.</li><li><strong>Integration:</strong> inputs and outputs both flow through a shared domain model.<br> <em>Example:</em> Whether a booking comes from the website, a travel site or the front desk, it becomes the same Booking record before the AI uses it.</li><li><strong>Context engineering:</strong> the context window is filled with structured, relevant domain information, not loose text.<br> <em>Example:</em> Instead of pasting a guest’s full email history, the AI gets “Guest: John Doe, Room 304, checkout 12 Oct, requested late checkout.”</li><li><strong>Bidirectionality:</strong> the same business language is used going into the agent and coming out of it.<br> <em>Example:</em> If the AI receives “late checkout”, it replies with “late checkout approved until 2pm”, not “extended departure granted”.</li></ul><p>In practice, that turns into six habits:</p><ol><li><strong>Run event storming with domain experts to uncover real behaviour and edge cases.</strong><br> <em>Example:</em> Front desk, housekeeping and revenue staff map out what happens when a guest books, checks in and checks out. They uncover edge cases such as “a guest arrives before their room is cleaned” and “a group booking cancels one room”.</li><li><strong>Define bounded contexts before you write prompts.</strong><br> <em>Example:</em> Decide that Reservations, Housekeeping and Billing are separate areas, each with its own agent or tools, before writing any AI instructions.</li><li><strong>Treat domain objects as first-class context. Put a typed </strong><strong>Invoice or </strong><strong>Position in the window, not a paragraph about one.</strong><br> <em>Example:</em> Give the AI Booking(guest=&quot;John Doe&quot;, room=304, check_in=&quot;10 Oct&quot;, check_out=&quot;12 Oct&quot;), not &quot;John is staying in a room on the third floor for a couple of nights.&quot;</li><li><strong>Shape prompts with domain types.</strong><br> <em>Example:</em> “Given this Booking and this RoomStatus, can the guest check in early?” rather than “Look at the guest info and tell me if they can come in early.”</li><li><strong>Validate outputs against domain rules before anything leaves the agent.</strong><br> <em>Example:</em> If the AI offers a late checkout until 4pm, code first checks the room isn’t booked by another guest arriving at 3pm.</li><li><strong>Integrate with other systems through shared domain models.</strong><br> <em>Example:</em> The booking site, the door-key system and the billing system all exchange the same Booking record, so room 304 and the 12 October checkout mean the same thing everywhere.</li></ol><p>Watch for three traps: letting a vendor dictate your domain model, building one agent that spans several contexts, and treating the agent as a black box.</p><p>Think back to the hotel assistant that failed. If the team had mapped the business first, kept the front desk and finance as separate areas with their own meanings, and built a focused agent around that, they would have caught the “booking” mix-up before launch.</p><p><strong>The takeaway:</strong> the domain model is the agent’s real specification. The prompt is just one way of expressing it.</p><h3>Principle 2: Treat every MCP server as a bounded context</h3><p>Ask engineers how to keep MCP servers safe, and they’ll say things like “keep risky tools apart” or “don’t put file access and command-running in the same server.” Without realising it, they’re describing an old idea from software design: give each part of the system one clear area of responsibility.</p><p><strong>MCP already builds in walls.</strong> Each MCP server connects to the agent separately, so one server can’t accidentally reach into another. But the walls only help if each server has one job. In a hotel, a server that handles room bookings, guest payments <em>and</em> housekeeping schedules is three jobs squeezed into one, like a single employee who runs reception, does the accounts and cleans the rooms.</p><p><strong>Tools should translate, not decide.</strong> When an agent calls a tool, two worlds meet. The AI speaks in simple text, like “book a double room for Priya from 10 to 12 October.” The hotel speaks in rules: is a double room free on those dates? Is check-out after check-in? Has the booking been recorded?</p><p>Here’s how most people write it first, with all the hotel rules crammed inside the tool:</p><pre>@mcp.tool()<br>async def book_room(guest_name: str, room_type: str, check_in: str, check_out: str):<br>    start = date.fromisoformat(check_in)<br>    end = date.fromisoformat(check_out)<br>    if end &lt;= start:<br>        return &quot;Check-out must be after check-in&quot;<br>    room = await db.find_free_room(room_type, start, end)<br>    if room is None:<br>        return &quot;No rooms available&quot;<br>    await db.create_booking(guest_name, room.number, start, end)<br>    await audit_log.record(guest_name, room.number, start, end)<br>    return f&quot;Booked room {room.number} for {guest_name}&quot;</pre><p>Here’s the better version. The tool only translates the AI’s request and passes it on. A separate booking service, which knows nothing about AI, applies the hotel’s rules:</p><pre>@mcp.tool()<br>async def book_room(guest_name: str, room_type: str, check_in: str, check_out: str):<br>    result = await booking_service.book(<br>        guest_name=guest_name,<br>        room_type=RoomType(room_type),<br>        stay=Stay(date.fromisoformat(check_in), date.fromisoformat(check_out)),<br>    )<br>    return result.to_agent_summary()</pre><pre>class BookingService:<br>    async def book(self, guest_name, room_type, stay) -&gt; BookingResult:<br>        stay.validate()                                   # check-out after check-in, stay length allowed<br>        room = await self.rooms.find_free(room_type, stay)  # stops if nothing is free<br>        booking = room.reserve(guest_name, stay)<br>        await self.bookings.save(booking)<br>        await self.audit.record(booking)<br>        return BookingResult(booking)</pre><p>Why is the second version better?</p><ul><li>You can test the booking rules without involving the AI at all.</li><li>The front desk, the website and other agents can use the same rules.</li><li>You can change the AI side or the hotel side without breaking the other.</li></ul><p>The tool works like a translator standing between two people who speak different languages. Your hotel’s rules don’t get messed up by loose AI input, and the AI doesn’t get buried in hotel system detail.</p><p><strong>Two more lessons:</strong></p><ul><li><strong>Watch the chain, not just the step.</strong> One booking on its own may be fine. The danger is a series of actions that together break a rule, such as an agent holding ten rooms one at a time for a group and leaving none for the conference already promised those dates. Rules like that should be checked across the whole sequence.</li><li><strong>The extra layer is worth it, if it has a purpose.</strong> People complain that MCP adds an extra layer. That’s fine when the layer keeps areas separate, such as bookings apart from payments. A layer that doesn’t separate anything is just extra work with no benefit.</li></ul><blockquote><strong>The takeaway:</strong> <strong><em>name MCP servers after the domains you own, not the APIs you wrap.</em></strong></blockquote><h3>Principle 3: <strong>Build your own translator, don’t plug in a vendor’s MCP server as-is</strong></h3><p>Before we talk about MCP, one idea is worth knowing: the <strong>anti-corruption layer</strong>, or ACL. It’s a translator that sits between your system and someone else’s. The outside system uses its own words and codes, and the ACL turns them into your business’s language before they reach your agent.</p><p>Think of a hotel that gets bookings from a big travel website. The website sends a code like “DBL-NR-BB”. The ACL turns it into “double room, non-refundable, breakfast included”, which is how your staff and your AI talk. If the website changes its codes tomorrow, only the translator needs updating. Your agent, your prompts and your staff carry on as normal.</p><p>Without an ACL, the outside system’s language leaks into yours, and that’s exactly what happens when you plug a vendor’s MCP server straight into your agent.</p><p>MCP is often called “USB-C for AI”. Follow the analogy through: USB-C is great on your desk, but you would not wire a data centre with it.</p><p>When you plug a vendor’s MCP server straight into your agent, the agent starts using the vendor’s names, fields and structure instead of your own. In design terms this is called being a <strong>conformist</strong>: your agent gives up its own way of seeing the business and copies whatever the vendor shows it. Three things go wrong:</p><ul><li><strong>Things break quietly.</strong> If the vendor changes their system, your agent starts behaving differently, and nothing in your code warns you.</li><li><strong>The agent gets overloaded.</strong> Generic servers offer dozens of tools the agent doesn’t need. That costs money and makes it harder for the agent to pick the right one.</li><li><strong>Rules end up in the wrong place.</strong> Instead of business rules living in code, people try to explain them in prompts, where they’re easy to miss.</li></ul><p><strong>A hotel example.</strong> The word <em>reservation</em> means three different things in one hotel:</p><ul><li><strong>Front desk:</strong> a room held for a guest who hasn’t checked in yet.</li><li><strong>Finance:</strong> money the hotel expects to earn, but only once the guest pays.</li><li><strong>Events team:</strong> a block of rooms set aside for a wedding or conference, waiting for a signed contract.</li></ul><p>A vendor’s MCP server doesn’t know any of this. It just passes on its own version of “reservation”. Only code written around your hotel’s own vocabulary can translate correctly between the three.</p><p><strong>The fix.</strong> Build your own small, clear tools for each area, such as hold_room_for_guest, get_expected_revenue and get_event_room_block. Each tool uses your hotel&#39;s words, checks its inputs before acting, and translates to and from the vendor&#39;s system in code. Behind the scenes, these tools can call the vendor&#39;s systems directly.</p><p><strong>MCP is still useful.</strong> It’s a good fit:</p><ul><li>when you’re experimenting and speed matters more than reliability;</li><li>as the connection for your own custom-built server that does the translating;</li><li>when the vendor’s system rarely changes and everyone understands it, so copying it is low-risk;</li><li>when you want to quickly try out many ready-made tools.</li></ul><p><strong>The turning point is reliability.</strong> Once an agent runs hundreds of times a day or serves thousands of guests or staff, treat its tools as a core part of your system, designed with care, not something you just plug in and hope for the best.</p><h3>Putting it together: a reference architecture</h3><p>Combine the three principles and you get a simple shape. Using the travel example, each bounded context gets its own typed tool layer, which can be native tools or your own curated MCP server. That layer is the ACL. Behind it, a domain service enforces the rules. The upstream vendor system sits at the bottom, and its schema never travels further up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b9X0uVfaOZMDPvhf1nRI4A.png" /></figure><p>Read it top down. The agent only ever sees words like <em>reservation</em> in the sense of the context it is calling. Each translation happens in code, inside the box that owns it.</p><h3>So is MCP the boundary or the shortcut?</h3><p>The fundamentals are not controversial. Boundaries should follow the domain, not the API. Business rules belong in code. Language must be precise, because agents may not ask clarifying questions.</p><p>The open question is <strong>MCP itself</strong>, and there are two reasonable views:</p><ul><li><strong>The optimistic view:</strong> MCP’s one-client-per-server design already enforces boundaries, so the tool layer <em>is</em> an anti-corruption layer if you design it that way.</li><li><strong>The cautious view:</strong> in practice most teams plug in <em>generic</em> servers, which makes them conformist. For production, native typed tools are safer, with MCP kept for exploration or for your own curated servers.</li></ul><p>Both views agree that the boundary is what matters. The first describes MCP done right; the second describes MCP as many teams actually use it. <strong>So the real question is not “MCP or not”, but “who owns the translation?”</strong> If your team owns it, you have an ACL. If a vendor’s schema flows straight into your prompt, you don’t.</p><h3>A checklist for your next domain agent</h3><ul><li><strong>Talk to the experts first.</strong> Before writing any AI instructions, sit down with the people who run the business (front desk, housekeeping, finance) and map out how things really work, including the awkward cases.</li><li><strong>Name your areas and their words.</strong> List the separate parts of the business, such as Reservations, Housekeeping and Billing, and note any word that means something different in each, like “reservation” or “room”.</li><li><strong>Give each area its own tools.</strong> Name them after the business area, such as “reservations tools”, not after the software vendor.</li><li><strong>Keep tools simple.</strong> A tool should only translate the request and pass it on. Put the business rules, such as “a room can’t be booked twice for the same night”, in separate code you can test without the AI.</li><li><strong>Send back clear answers, not raw data.</strong> Give the agent short summaries in business language, plus clear error messages like “No double rooms free on those dates”, not the vendor’s raw output.</li><li><strong>Check every vendor MCP server you use.</strong> Ask yourself: did we choose to use the vendor’s language on purpose, or did it just happen?</li><li><strong>Check the agent’s answers before anyone sees them.</strong> Before a reply reaches a guest or another system, confirm it follows the rules, such as offering a late checkout only if the room is free.</li><li><strong>Don’t build one agent that does everything.</strong> Keep each agent focused on one area, and translate between areas where they meet.</li></ul><h3>Closing thought</h3><p>We spent the 2010s learning, sometimes painfully, that microservice boundaries should follow the domain. Agents give us a chance to skip that lesson the hard way. The model is the easy part. <strong>The map is the domain model, the borders are your bounded contexts, and the customs office is your anti-corruption layer.</strong> Build those deliberately, and the agent has somewhere solid to stand.</p><h3>Further reading</h3><ul><li><a href="https://engineeringagents.substack.com/p/domain-driven-agent-design">Domain Driven Agent Design</a> (Engineering Agents)</li><li><a href="https://dev.to/aws/rediscovering-domain-driven-design-one-mcp-server-at-a-time-1i79">Rediscovering Domain-Driven Design, one MCP server at a time</a> (AWS on DEV Community)</li><li><a href="https://www.thoughtworks.com/en-ca/insights/blog/generative-ai/your-agent-skill-not-anti-corruption-layer">Your agent skill is not an anti-corruption layer</a> (Thoughtworks)</li><li><em>Domain-Driven Design: Tackling Complexity in the Heart of Software</em> (2003), the book that introduced bounded contexts, ubiquitous language and the anti-corruption layer</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be21d58723da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The New AI Race Isn’t About Being Smartest. It’s About Being Cheapest.]]></title>
            <link>https://medium.com/@manishagupta81/the-new-ai-race-isnt-about-being-smartest-it-s-about-being-cheapest-528eee11bb66?source=rss-543683015e6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/528eee11bb66</guid>
            <dc:creator><![CDATA[manisha gupta]]></dc:creator>
            <pubDate>Mon, 13 Jul 2026 09:56:10 GMT</pubDate>
            <atom:updated>2026-07-13T09:56:10.945Z</atom:updated>
            <content:encoded><![CDATA[<h3>A plain-English guide to why price, chips, and “digital employees” now decide who wins.</h3><p>For years, the AI contest was simple: whoever built the smartest model won. That era just ended. On <strong>July 9</strong>, <strong>OpenAI</strong> launched GPT-5.6 and <strong>SpaceXAI</strong> launched <strong>Grok 4.5</strong> on the same day — and the more interesting model wasn’t the smartest one.</p><p>Grok 4.5 came in only <a href="https://www.buildfastwithai.com/blogs/ai-news-today-july-10-2026"><strong>fourth on the main intelligence ranking</strong></a>. But it may still win, because it’s dramatically cheaper to run. That single fact explains almost everything happening in AI right now.</p><h3>First, two words worth knowing</h3><p><strong>Frontier model</strong> = the most advanced AI systems from the top labs (OpenAI, Anthropic, Google, xAI). <strong>Inference</strong> = the cost of <em>using</em> a model to answer each question, as opposed to the one-time cost of training it. Training is a big upfront bill; inference is the meter that runs every single time someone uses the AI.</p><p>Here’s the shift: inference is now <a href="https://www.gpunex.com/blog/ai-inference-economics-2026/"><strong>two-thirds of all AI computing</strong></a>. The meter, not the model, is where the money is.</p><h3>1. Frontier model prices are collapsing</h3><p>Using a GPT-4-class model now costs about <a href="https://www.gpunex.com/blog/ai-inference-economics-2026/"><strong>$0.40 per million words of output — a 1,000x drop in three years</strong></a>. Grok 4.5 leaned into this hard, pricing itself far below rivals and claiming it finishes the same task using roughly <strong>a quarter of the “words”</strong> its competitors need — about <strong>$2.49 per task versus $11.80 for a top Anthropic model.</strong></p><p><strong>Why this matters:</strong> When every good model is cheap and capable, buyers stop asking <em>“which is smartest?”</em> and start asking <em>“which is cheapest for the job I actually need?”</em> Being #1 on a benchmark stops being a selling point.</p><h3>2. Custom chips (ASICs) are the next battleground</h3><p>An <strong>ASIC(Application-Specific Integrated Circuit)</strong> is a chip built to do one job extremely well, instead of a general-purpose graphics chip (GPU) that does many things. For AI, a purpose-built inference chip can be far cheaper to run than renting Nvidia’s general-purpose hardware.</p><p><strong>Microsoft</strong> now has its own inference chip, <strong>Maia 200</strong>, and OpenAI is building its own too. Analysts expect the big cloud companies to move <a href="https://www.trendforce.com/insights/ai-inference-chip-architecture"><strong>60–70% of their AI usage onto custom chips by 2028</strong></a>.</p><p><strong>Why this matters:</strong> You can’t win a price war while paying someone else’s markup on hardware. Owning the chip is how you own the cost.</p><h3>3. The hyperscalers are buying their way past the hard part</h3><p><strong>Hyperscalers</strong> are the giant cloud providers — Microsoft, Amazon, Google. They’ve realized the bottleneck is no longer the technology; it’s getting companies to actually adopt it.</p><p>So they’re spending to fix that. <strong>Microsoft</strong> launched <strong>Frontier Company</strong> — <a href="https://www.hpcwire.com/bigdatawire/2026/07/06/microsoft-launches-new-2-5b-ai-initiative-with-6000-experts-to-help-enterprises-deploy-a/"><strong>$2.5 billion and 6,000 experts sent to work inside customers’ offices</strong></a> — and <strong>Amazon</strong> added $1 billion to a similar effort. The reason: <a href="https://www.pymnts.com/news/artificial-intelligence/2026/ai-giants-spend-8-billion-dollars-fix-enterprise-adoption/"><strong>71% of executives at big companies</strong></a> say their own organization isn’t ready, not that the AI is bad.</p><p><strong>Why this matters:</strong> Whoever helps companies <em>deploy</em> AI — not just buy it — captures the enterprise.</p><h3>4. “Digital employees” are real, but go slow</h3><p>A <strong>digital employee</strong> is an AI agent given a login, tasks, and performance metrics — software treated like a staff member. This is no longer hype: <strong>Salesforce Agentforce</strong> already brings in <a href="https://www.salesforce.com/agentforce/"><strong>~$540 million a year, up 330%</strong></a>, and 72% of CEOs expect employees to soon have an AI “reporting” to them.</p><p>The catch: today’s agents act less like reliable staff and <a href="https://nhjournal.com/counterpoint-meet-the-ai-agents-of-2026-ambitious-overhyped-and-still-in-training/"><strong>more like fast, confident, frequently wrong junior hires</strong></a>. Analysts still expect <strong>40% of these projects to be canceled by 2027.</strong> And a “cheap” agent that keeps making mistakes a human must fix isn’t actually cheap.</p><p><strong>The smarter path is a phased one: start with the AI as an assistant, not an employee.</strong> Let it draft, suggest, and prepare work while a human stays in control and reviews every output. As it earns trust on a narrow, well-defined task — and you have the metrics to prove it — you gradually hand it more autonomy. <strong>Assistant first, digital employee later.</strong> Companies that skip straight to “give the agent a login and let it run” are the ones filling out that 40%-cancelled statistic. Going slow isn’t caution for its own sake; it’s how you avoid paying for confident mistakes at scale.</p><h3>5. The adoption gap is the quiet story</h3><p>Buying AI and <em>using</em> AI are two different things. In wealth management, <a href="https://www.bcg.com/publications/2026/ai-and-the-future-economics-of-wealth-management"><strong>95% of firms have rolled out AI — but only 10.5% of advisors use it daily</strong></a>. The tools are there; the habits aren’t.</p><p><strong>Why this matters:</strong> The winners of the next year won’t be the ones with the best models. They’ll be the ones who close this last-mile gap — turning software that <em>can</em> help into software people actually rely on.</p><h3>The bottom line</h3><p>The AI race used to reward the smartest model. Now it rewards the cheapest reliable one — and cheapness comes from owning the chips, cutting the price, and getting people to actually use the thing.</p><p><strong>The frontier stopped being intelligence. It’s now the cost of using it — and the smartest model no longer wins by default.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=528eee11bb66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Two Layers Every Agentic Enterprise Needs: Control Plane and Runtime]]></title>
            <link>https://medium.com/@manishagupta81/the-two-layers-every-agentic-enterprise-needs-control-plane-and-runtime-1176adcae2eb?source=rss-543683015e6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1176adcae2eb</guid>
            <dc:creator><![CDATA[manisha gupta]]></dc:creator>
            <pubDate>Sun, 17 May 2026 18:07:30 GMT</pubDate>
            <atom:updated>2026-05-17T18:07:30.132Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>You don’t have an AI agent problem. Lets discuss infrastructure!!!</strong></p><p>Enterprises are deploying agents at speed. The tooling has never been easier — spin up a LangGraph workflow, wire it to an MCP server, point it at a Slack channel, ship. Repeat forty times across six teams.</p><p>Then comes the question nobody planned for: who governs all of this?</p><p>The answer is emerging in the form of two distinct architectural layers that every serious agentic enterprise will need — the <strong>agent control plane</strong> and the <strong>agent runtime</strong>. They solve different problems. They operate at different cadences. And confusing the two is how enterprises end up with ungovernable agent sprawl.</p><p>AWS codified this separation in its <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/agentic-ai-multitenant/employing-control-planes-in-agentic-environments.html">Prescriptive Guidance for multi-tenant agentic AI</a>. WSO2 shipped it as product with <a href="https://wso2.com/about/news/wso2-launches-agent-manager/">Agent Manager</a>, launched in beta on May 5, 2026. The pattern is converging across the industry — and builders who understand it early will avoid the architectural dead ends everyone else is about to hit.</p><h3>What Is an Agent Control Plane?</h3><p>The control plane is the management layer. It doesn’t execute agent logic — it governs, coordinates, and provides visibility across every agent in the enterprise, regardless of where those agents run or which framework built them.</p><p>Think of it the way you think about a Kubernetes control plane: it doesn’t run your containers. It decides <em>which</em> containers run <em>where</em>, enforces policies, manages identity, and gives you a unified view of the system.</p><p>For AI agents, the control plane handles:</p><p><strong>Registry and discovery.</strong> A centralized catalog of every agent, its capabilities, its owner, and its current status. AWS’s <a href="https://aws.amazon.com/blogs/machine-learning/the-future-of-managing-agents-at-scale-aws-agent-registry-now-in-preview/">Agent Registry</a> provides exactly this — a searchable directory where both humans and other agents can discover available tools and capabilities. Without a registry, you get shadow agents: autonomous systems nobody tracks, nobody audits, and nobody can shut down cleanly.</p><p><strong>Identity and access.</strong> Agents need identities as robust as human users. WSO2’s approach makes this explicit — <a href="https://wso2.com/agent-platform/agent-manager/">Agent Manager establishes strong identity for agents</a> and securely delegates access, ensuring every action is authenticated, authorized, and auditable. An agent calling your CRM API should have scoped credentials, rotation policies, and permission boundaries — not a shared API key hardcoded in a .env file.</p><p><strong>Policy enforcement.</strong> Rules evaluated before any agent action executes. AWS’s <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/policy.html">AgentCore Policy</a> intercepts all agent traffic through gateways and evaluates each request against defined policies before allowing tool access. The control plane says “yes” or “no” before the runtime executes anything.</p><p><strong>Task arbitration.</strong> When multiple agents could handle a request, something needs to decide who gets it. AWS’s prescriptive guidance describes arbiter or supervisor agents that route tasks based on context, availability, and policy — all coordinated through the control plane.</p><p><strong>Lifecycle management.</strong> Onboarding new agents, versioning them, deprecating old ones, managing rollbacks. The same operational discipline enterprises learned for microservices now applies to agents — except agents are easier to create, which makes lifecycle management harder.</p><p><strong>Observability and audit.</strong> A unified view of what every agent is doing, has done, and failed to do. Not just logs — structured traces that show the reasoning chain, the tools invoked, the policies evaluated, and the outcomes produced.</p><p>The key insight from AWS’s architecture: the control plane provides a “single pane of glass” without centralizing authority. Agents remain autonomous in execution. The control plane ensures they remain <em>accountable</em> in governance.</p><h3>What Is an Agent Runtime?</h3><p>The runtime is the execution layer. It’s where agent code actually runs — where reasoning happens, tools get invoked, state gets managed, and actions take effect in the world.</p><p>Unlike traditional application runtimes designed for short-lived stateless requests, agent runtimes support long-running, stateful processes. An agent session might persist for minutes or hours, maintaining conversation context, intermediate reasoning, and tool outputs across dozens of interactions. This is fundamentally different from a request-response web server.</p><p>The runtime manages:</p><p><strong>Session state and memory.</strong> Maintaining context across multi-step workflows. When an agent processes an insurance claim, it needs to remember what documents it’s reviewed, what questions it’s asked, and what decisions it’s made — across tool calls that might span hours.</p><p><strong>Tool invocation.</strong> Agents call APIs, execute code, query databases, and interact with other systems. The runtime manages these invocations, handles timeouts, retries failures, and passes results back into the agent’s reasoning loop.</p><p><strong>Sandboxed execution.</strong> When an agent runs code or accesses external systems, the runtime isolates that execution from the host environment. WSO2’s runtime deploys agents in a <a href="https://wso2.com/agent-platform/agent-manager/">Kubernetes-native, zero-trust environment</a> with isolation and lifecycle controls. NVIDIA’s OpenShell provides similar sandboxing for autonomous desktop agents. The blast radius of a failure must be contained.</p><p><strong>Resource governance.</strong> CPU, memory, network access, and token budgets. Without runtime-level resource controls, a single runaway agent can exhaust API quotas, burn through token budgets, or saturate downstream services.</p><p><strong>Real-time intervention.</strong> The ability to pause, redirect, or terminate an agent mid-execution. WSO2 explicitly includes real-time intervention as a runtime capability — because when an autonomous system starts doing something unexpected, you need a kill switch that operates at the execution layer, not just the policy layer.</p><h3>Why the Separation Matters</h3><p>The control plane and runtime serve different masters and operate at different speeds.</p><p>The control plane is <strong>organizational infrastructure</strong>. It changes slowly, enforces enterprise-wide policy, and provides the governance surface that compliance, security, and audit teams need. It’s where you answer: “What agents exist? What can they do? Who’s responsible?”</p><p>The runtime is <strong>execution infrastructure</strong>. It changes per-session, manages the mechanics of running agent logic, and provides the performance and isolation that engineering teams need. It’s where you answer: “Is this agent running correctly? Is it contained? Is it fast enough?”</p><p>Conflating them creates predictable failure modes:</p><p>If you build governance into individual runtimes, you get inconsistent policy enforcement — Team A’s agents have different permission boundaries than Team B’s, and nobody has a unified view. This is the agent equivalent of every microservice implementing its own auth.</p><p>If you try to run execution logic in the control plane, you get a bottleneck — every agent action routes through a central chokepoint that can’t scale and introduces latency into real-time workflows.</p><p>AWS’s architecture makes this separation explicit: the control plane handles registry, policy, and lifecycle; AgentCore provides the model-agnostic runtime where agents actually execute. WSO2 mirrors this with Agent Manager (control plane) and a separate Kubernetes-native secure runtime (execution layer).</p><h3>The Convergence Pattern</h3><p>What’s striking is how quickly the industry is converging on this two-layer architecture:</p><p><strong>AWS</strong> — AgentCore Runtime + Agent Registry + AgentCore Policy. Model-agnostic, supports agents built on any framework, positions the control plane as cloud infrastructure.</p><p><strong>WSO2</strong> — Agent Manager (open control plane, Apache 2.0) + secure Kubernetes-native runtime. Built on open standards (OpenTelemetry, OpenAPI, MCP), supports LangGraph, CrewAI, and Ballerina. Federated management across cloud, on-prem, and hybrid.</p><p><strong>ServiceNow</strong> — AI Control Tower as governance/control plane + Project Arc as desktop runtime. Positions governance as vendor-neutral — governs agents regardless of who built them.</p><p><strong>IBM</strong> — watsonx Orchestrate as multi-agent control plane + streaming data layer (Confluent) feeding agent runtimes with real-time enterprise context.</p><p><strong>Microsoft</strong> — Agent 365 as control plane tightly coupled to the Azure + M365 execution environment.</p><p>The vendors differ on openness (WSO2 is Apache-licensed, AWS is proprietary-managed, ServiceNow is SaaS), scope (some govern only their own agents, others are vendor-neutral), and runtime model (Kubernetes-native vs. serverless vs. desktop). But the two-layer separation is universal.</p><h3>What This Means for Builders</h3><p>If you’re an enterprise architect or platform team building for the agentic era, here’s the practical takeaway:</p><p><strong>Separate your concerns now.</strong> Don’t embed governance in agent code. Don’t build runtime-level isolation into your control plane. Design them as independent layers with clean interfaces between them — even if you’re small enough today that one team owns both.</p><p><strong>Start with the control plane.</strong> Registry first. Know what agents exist, who owns them, what they can access. Then add policy enforcement. Then observability. The runtime matters, but ungoverned agents are a bigger risk than slow agents.</p><p><strong>Choose open standards.</strong> MCP for agent-to-tool connectivity. A2A for agent-to-agent communication. OpenTelemetry for observability. These protocols are becoming the TCP/IP of the agentic layer — and betting on proprietary alternatives is how you get locked in.</p><p><strong>Treat agent identity like human identity.</strong> Scoped credentials. Rotation. Least privilege. Audit trails. If your agents share API keys or run with admin permissions, you don’t have an agentic enterprise — you have a security incident waiting to happen.</p><p><strong>Plan for federated management.</strong> Your agents won’t all run in one place. Some will be on AWS. Some on-prem. Some in SaaS platforms. Some on employee desktops. The control plane must span all of them — which is why WSO2’s federated approach and AWS’s vendor-neutral positioning matter.</p><h3>The Bottom Line</h3><p>The agentic enterprise isn’t a model upgrade. It’s an infrastructure shift as significant as the move from monoliths to microservices — except it’s happening faster, with less operational maturity, and with systems that can take autonomous action in the world.</p><p>The control plane gives you governance. The runtime gives you execution. Together, they give you an enterprise that can deploy autonomous agents at scale without losing visibility, accountability, or control.</p><p>Without both layers, you get agent sprawl — autonomous systems proliferating faster than your ability to govern them, doing things nobody authorized, in ways nobody can trace.</p><p>The enterprises that figure this out first won’t just deploy more agents. They’ll deploy <em>trustworthy</em> agents. And in a world where every competitor has access to the same models, trust infrastructure becomes the differentiator.</p><p><em>Key sources: </em><a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/agentic-ai-multitenant/employing-control-planes-in-agentic-environments.html"><em>AWS Prescriptive Guidance — Control Planes in Agentic Environments</em></a><em> · </em><a href="https://wso2.com/about/news/wso2-launches-agent-manager/"><em>WSO2 Agent Manager</em></a><em> · </em><a href="https://wso2.com/library/blogs/agentic-enterprise-with-wso2/"><em>WSO2 Becoming an Agentic Enterprise</em></a><em> · </em><a href="https://aws.amazon.com/blogs/machine-learning/the-future-of-managing-agents-at-scale-aws-agent-registry-now-in-preview/"><em>AWS Agent Registry</em></a><em> · </em><a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/policy.html"><em>AgentCore Policy</em></a></p><p><em>Published May 17, 2026 | Agentic Enterprise Weekly</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1176adcae2eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Agents Are Easy. Agentic Enterprises Are Hard.]]></title>
            <link>https://medium.com/@manishagupta81/ai-agents-are-easy-agentic-enterprises-are-hard-cbc1083229bf?source=rss-543683015e6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbc1083229bf</guid>
            <category><![CDATA[agentic-enterprise]]></category>
            <dc:creator><![CDATA[manisha gupta]]></dc:creator>
            <pubDate>Mon, 11 May 2026 10:28:54 GMT</pubDate>
            <atom:updated>2026-05-11T10:28:54.702Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>The bottleneck was never the model. It’s the orchestration, governance, and organizational redesign that needs attention.</strong></h3><p>Most enterprises think becoming “agentic” means deploying copilots and calling it transformation. That’s like thinking cloud migration meant installing Dropbox.</p><p>This week made the gap between agent demos and agentic enterprises impossible to ignore. ServiceNow and NVIDIA unveiled <a href="https://fortune.com/2026/05/05/servicenow-knowledge-2026-autonomous-workforce-microsoft-nvidia-ai-announcements/">Project Arc</a> — an autonomous desktop agent governed by ServiceNow’s AI Control Tower. Anthropic launched <a href="https://www.anthropic.com/news/finance-agents">ten pre-built finance agents</a> with full Microsoft 365 integration, targeting pitchbook assembly, KYC screening, and month-end close. OpenAI’s <a href="https://openai.com/index/introducing-workspace-agents-in-chatgpt/">workspace agents</a> moved to credit-based pricing after their research preview, signaling that enterprise is now <a href="https://nextword.substack.com/p/openai-enterprise-ai-strategy-2026">over 40% of OpenAI’s revenue</a>.</p><p>The intelligence layer is becoming a commodity. What isn’t commoditizing — and what separates pilots from production — is everything underneath it.</p><h3>The Five Stages Nobody Finishes</h3><p>The evolution from chatbot to agentic enterprise follows a predictable arc, and most organizations stall at stage two.</p><p><strong>Stage 1: Chat interfaces.</strong> Users paste prompts into a window. Value is real but individual. No workflow integration, no institutional memory. This is where most companies were eighteen months ago.</p><p><strong>Stage 2: Embedded copilots.</strong> AI gets wired into existing tools — code editors, email clients, spreadsheets. Productivity gains are measurable but siloed. The organization’s processes don’t change. Most enterprises are here now, and many mistake it for the destination.</p><p><strong>Stage 3: Workflow agents.</strong> Single agents execute multi-step tasks autonomously — processing invoices, triaging tickets, preparing compliance reports. This is where things start breaking. The agent needs permissions, audit trails, error handling, and human escalation paths that don’t exist in the current stack.</p><p><strong>Stage 4: Multi-agent orchestration.</strong> Specialized agents collaborate under a central orchestrator. Anthropic’s <a href="https://9to5mac.com/2026/05/07/anthropic-updates-claude-managed-agents-with-three-new-features/">new multi-agent orchestration capability</a> inside Claude Managed Agents, Netflix’s production deployment of multi-agent systems, and CrewAI powering <a href="https://crewai.com/">over 12 million daily agent executions</a> all point here. But enterprises underestimate the governance surface area: every agent-to-agent handoff is a potential compliance gap.</p><p><strong>Stage 5: Autonomous enterprise systems.</strong> Entire departments operate with AI-native workflows and human oversight at the strategic layer. Gartner projects that by 2028, the average Fortune 500 will run <a href="https://www.gartner.com/en/newsroom/press-releases/2026-04-28-gartner-identifies-six-steps-to-manage-artificial-intelligence-agent-sprawl">over 150,000 agents</a> — up from fewer than 15 in 2025. Almost nobody is here yet. The ones who think they are usually aren’t.</p><h3>The Real Stack: An AI Operating System</h3><p>The enterprise AI stack is becoming something that looks less like a software layer and more like an operating system. Here’s what it actually requires.</p><p><strong>Orchestration and workflow engines.</strong> Something has to decide which agent runs, when, with what context, and what happens when it fails. ServiceNow’s <a href="https://newsroom.servicenow.com/press-releases/details/2026/ServiceNow-turns-enterprise-AI-chaos-into-control-with-the-platform-for-governed-autonomous-work/default.aspx">AI Control Tower</a> and frameworks like LangGraph and CrewAI Flows are competing to own this layer.</p><p><strong>MCP as the integration backbone.</strong> The Model Context Protocol has hit <a href="https://www.digitalapplied.com/blog/mcp-adoption-statistics-2026-model-context-protocol">97 million monthly SDK downloads</a> and <a href="https://www.digitalapplied.com/blog/mcp-adoption-statistics-2026-model-context-protocol">78% of enterprise AI teams</a> now run at least one MCP-backed agent in production. The <a href="https://blog.modelcontextprotocol.io/posts/2026-mcp-roadmap/">2026 MCP roadmap</a> addresses the exact things blocking enterprise adoption: OAuth 2.1 authentication, gateway behavior, and formal audit support. Moody’s launching an <a href="https://fortune.com/2026/05/05/anthropic-wall-street-financial-services-agents-jamie-dimon/">MCP app for credit data</a> signals that proprietary enterprise data providers see this as the standard connector layer.</p><p><strong>Memory and context infrastructure.</strong> Agents spanning sessions and users need persistent memory — what to keep, what to surface, what to age out. Anthropic’s new “Dreaming” capability inside Managed Agents <a href="https://venturebeat.com/orchestration/anthropic-wants-to-own-your-agents-memory-evals-and-orchestration-and-that-should-make-enterprises-nervous/">collapses memory into the runtime</a>, but that raises lock-in concerns that enterprise architects are right to flag.</p><p><strong>Governance, observability, and audit.</strong> This is where ambition meets reality. <a href="https://venturebeat.com/orchestration/the-ai-governance-mirage-why-72-of-enterprises-dont-have-the-control-and-security-they-think-they-do">IDC predicts 60% of AI failures in 2026</a> will trace to governance gaps, not model performance. Real observability means a team can tell in five minutes whether their last change made the agent better or worse — anything less is logging dressed up as monitoring.</p><h3>Why Builders Will Still Build</h3><p>Anthropic, OpenAI, and Google are each trying to own the full agent stack. Anthropic’s Managed Agents now bundles memory, evals, and orchestration into <a href="https://venturebeat.com/orchestration/anthropic-wants-to-own-your-agents-memory-evals-and-orchestration-and-that-should-make-enterprises-nervous/">a single runtime</a>. OpenAI’s <a href="https://almcorp.com/blog/openai-frontier-enterprise-ai-agent-platform-guide/">Frontier Platform</a> is evolving from API access to a full enterprise operations layer. Google’s <a href="https://cloud.google.com/blog/products/ai-machine-learning/introducing-gemini-enterprise-agent-platform">Gemini Enterprise Agent Platform</a> launched with similar ambitions.</p><p>But enterprises still need to build. KPMG’s latest AI Pulse Survey shows <a href="https://kpmg.com/us/en/articles/2026/agentic-ai-untangled.html">57% of organizations now favor a blended approach</a> — up from 51% last quarter. The pattern emerging is clear:</p><p><strong>Rent the intelligence. Own the workflow layer.</strong></p><p>Build when the agent encodes proprietary logic — a pricing algorithm that reflects a decade of competitive intelligence, a risk model built on underwriting data no vendor can replicate, a compliance workflow shaped by your specific regulatory environment. Buy when the capability is horizontal: document processing, code generation, general research, customer service triage.</p><p>The cost math reinforces this. Custom multi-agent systems run <a href="https://aisera.com/blog/build-vs-buy-ai/">$250,000–$400,000+</a> for development alone, with 65% of total cost coming after deployment. But vendor-led co-builds <a href="https://aisera.com/blog/build-vs-buy-ai/">succeed roughly 67% of the time</a> versus much lower rates for pure builds. The right answer is almost always hybrid — and the strategic question is which layers you own.</p><h3>What Most Enterprises Are Getting Wrong</h3><p><strong>AI demos are not operational systems.</strong> Over <a href="https://www.gartner.com/en/newsroom/press-releases/2026-04-28-gartner-identifies-six-steps-to-manage-artificial-intelligence-agent-sprawl">40% of agentic AI projects</a> face cancellation or major rework by 2027 — not from technical failure, but from escalating costs, missing governance, and no evidence of business value.</p><p><strong>Governance matters more than reasoning quality.</strong> The <a href="https://agenticaiinstitute.org/agentic-ai-enterprise-adoption-2026-governance-gap/">86–89% of agent pilots that fail</a> before production fail overwhelmingly because of governance gaps — inability to inventory agent actions, insufficient monitoring, unclear accountability. Model capability was rarely the issue.</p><p><strong>Agent sprawl is the next SaaS sprawl.</strong> When nobody can answer how many agents your organization is running, you’ve already lost control. <a href="https://www.gartner.com/en/newsroom/press-releases/2026-04-28-gartner-identifies-six-steps-to-manage-artificial-intelligence-agent-sprawl">Gartner’s six-step framework</a> for managing agent sprawl exists because the problem is already widespread.</p><p><strong>Treating agents like employees is a category error.</strong> Harvard Business Review’s <a href="https://hbr.org/2026/05/research-why-you-shouldnt-treat-ai-agents-like-employees">recent research</a> makes this plain. Workers spend an average of nearly two hours cleaning up each instance of substandard AI output. Agents need different management structures, different success metrics, and different failure modes than humans.</p><p><strong>The moat is shifting.</strong> It’s moving from models to context to orchestration. The company that owns the workflow graph, the enterprise memory, and the governance layer has the strategic position — not the company renting the best LLM this quarter.</p><h3>What This Looks Like in Two to Five Years</h3><p>Agent operating systems will emerge as the control plane for enterprise AI. ServiceNow’s AI Control Tower is an early version of this — a single pane governing every agent across the organization, from desktop to data center.</p><p>The economics will drive consolidation. Running 150,000 agents requires infrastructure that looks more like workforce management than software deployment. Expect enterprise agent platforms to absorb identity, billing, compliance, and lifecycle management — the same way cloud platforms absorbed networking and security.</p><p>AI-native workflows will replace AI-augmented ones. The difference matters. Augmented workflows add AI to existing processes. Native workflows are designed from scratch around agent capabilities, with humans at supervision and decision points rather than execution points. Anthropic’s finance agents — designed to <a href="https://www.anthropic.com/news/finance-agents">run end-to-end processes</a> like month-end close rather than assist with individual steps — signal this direction.</p><p>The governance market will become its own category. When 60% of failures trace to governance, governance infrastructure becomes as critical as compute infrastructure.</p><h3>What I’m Watching</h3><p><strong>MCP standardization and the gateway layer.</strong> The <a href="https://blog.modelcontextprotocol.io/posts/2026-mcp-roadmap/">2026 roadmap</a> adding OAuth 2.1 and formal audit support is the enterprise readiness moment. If MCP gateways become the standard choke point for agent-to-tool communication, whoever controls the gateway controls the audit trail. This has 12-month implications for every enterprise security team.</p><p><strong>ServiceNow as the agent governance platform.</strong> <a href="https://newsroom.servicenow.com/press-releases/details/2026/ServiceNow-turns-enterprise-AI-chaos-into-control-with-the-platform-for-governed-autonomous-work/default.aspx">AI Control Tower</a> extending from desktops to data centers, combined with NVIDIA’s OpenShell runtime, positions ServiceNow to do for agent governance what they did for IT service management. The question is whether enterprises will accept a single vendor owning both the workflow and the governance layer.</p><p><strong>Anthropic’s vertical agent strategy.</strong> Ten <a href="https://www.anthropic.com/news/finance-agents">finance-specific agents</a> with Moody’s data integration and Microsoft 365 context sharing is a play for workflow ownership in regulated industries. If this works in finance, expect healthcare, legal, and insurance to follow within 18 months.</p><p><strong>The vendor lock-in reckoning.</strong> VentureBeat’s <a href="https://venturebeat.com/orchestration/anthropic-wants-to-own-your-agents-memory-evals-and-orchestration-and-that-should-make-enterprises-nervous/">analysis of Anthropic’s managed agent stack</a> bundling memory, evals, and orchestration into a single runtime should make enterprise architects nervous. The more your agent’s memory and workflow state lives inside a vendor’s runtime, the harder it is to leave. Portability will become the next battleground.</p><p><strong>The Microsoft Agent Framework consolidation.</strong> Microsoft unifying AutoGen and Semantic Kernel into a <a href="https://gurusup.com/blog/best-multi-agent-frameworks-2026">single v1.0 framework</a> signals that the open-source multi-agent space is maturing. Enterprises evaluating CrewAI, LangGraph, and Microsoft’s framework need to bet on which orchestration pattern — role-based crews, directed graphs, or conversational agents — fits their operational model.</p><p>The future won’t belong to companies using AI agents. It will belong to companies redesigned around them — with the orchestration, governance, and workflow intelligence to make that redesign operational rather than aspirational.</p><p>Models are becoming commodities. Workflow intelligence won’t.</p><p><em>Agentic Enterprise Weekly — May 11, 2026</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbc1083229bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When AI Works Too Well: The Cost No One Modeled]]></title>
            <link>https://medium.com/@manishagupta81/when-ai-works-too-well-the-cost-no-one-modeled-230b8982c453?source=rss-543683015e6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/230b8982c453</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[manisha gupta]]></dc:creator>
            <pubDate>Sat, 02 May 2026 19:40:12 GMT</pubDate>
            <atom:updated>2026-05-02T19:40:12.420Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Uber didn’t blow its AI budget because something failed. It blew it because everything worked.</em></h3><p>In enterprise tech, failure is expected.</p><p>Budgets go over because tools don’t scale, adoption is slow, or systems break. Companies plan for that. They build buffers around it.</p><p>What they don’t plan for is the opposite.</p><p>They don’t plan for a tool that works so well it spreads faster than the financial model behind it.</p><p>That’s exactly what happened at Uber.</p><p>By April 2026, Uber had already burned through its entire annual AI budget. Not due to a failed experiment — but because engineers adopted AI tools at a pace no one anticipated.</p><p>Nearly 95% of engineers were using AI regularly. Around 70% of committed code was being generated by AI. And costs climbed quickly — between $500 and $2,000 per engineer per month.</p><p>At enterprise scale, that’s not noise.</p><p>That’s a new cost center.</p><h3>The Shift No One Modeled</h3><p>For years, AI inside companies lived in a safe zone: pilots, proofs of concept, limited deployments.</p><p>That phase is over.</p><p>AI is now crossing into something much bigger — <strong>default infrastructure</strong>.</p><p>And infrastructure behaves differently.</p><p>Once it proves useful, adoption doesn’t trickle. It explodes.</p><p>Engineers don’t wait for permission. They use what makes them faster. And when every prompt, generation, or workflow is metered, cost scales with usage — not licenses.</p><p>That’s the flaw in most 2026 AI strategies.</p><p>They assumed controlled growth.</p><p>Instead, they’re getting exponential demand.</p><h3>This Isn’t Just an Uber Problem</h3><p>Uber is just the most visible example of a broader shift happening across industries.</p><h3>1. Engineering economics are changing</h3><p>When AI generates a majority of code, engineering is no longer the bottleneck.</p><p>The constraint shifts to decision-making — product, design, compliance.</p><p>Companies aren’t just buying software anymore.</p><p>They’re buying <strong>throughput</strong>.</p><h3>2. The AI stack is splitting globally</h3><p>At the same time, the infrastructure behind AI is diverging.</p><p>China is rapidly building its own AI ecosystem — chips, models, and frameworks — independent of Western companies.</p><p>This isn’t just competition.</p><p>It’s a parallel system emerging.</p><p>For global businesses, that introduces a new layer of complexity: technology choices are now geopolitical decisions.</p><h3>3. Being human is becoming a feature</h3><p>Spotify recently introduced verification badges — for humans.</p><p>Not creators in general.</p><p>Humans.</p><p>It sounds subtle, but it signals something deeper. As AI-generated content scales, authenticity becomes scarce.</p><p>And scarcity creates value.</p><h3>4. The AI jobs narrative is messy</h3><p>Headlines point to massive layoffs driven by AI.</p><p>But the reality is more complicated.</p><p>Some roles are being automated. But in many cases, companies are using AI as a forward-looking explanation for cost cuts that would have happened anyway.</p><p>AI is part of the story.</p><p>It’s just not the whole story — yet.</p><h3>The Real Transformation</h3><p>What ties all of this together is a deeper shift:</p><p>AI is no longer a feature.</p><p>It’s becoming an <strong>operating cost</strong>.</p><p>That changes everything.</p><p>Operating costs scale with usage. They’re embedded into daily workflows. And once teams rely on them, you can’t simply turn them off to manage spend.</p><p>You have to redesign around them.</p><h3>A Different Way to Look at It</h3><p>It’s easy to frame Uber’s situation as a warning.</p><p>But there’s another way to interpret it.</p><p>If engineers adopt a tool this quickly — without mandates, without heavy rollout plans — that’s not a problem.</p><p>That’s product-market fit.</p><p>A strong one.</p><p>The real issue isn’t overspending.</p><p>It’s that pricing models — and budgeting frameworks — haven’t caught up to the value being created.</p><p>Over time, they will.</p><h3>What Comes Next</h3><p>The next phase of AI won’t be defined by better models.</p><p>It will be defined by how companies adapt:</p><ul><li>Managing unpredictable costs</li><li>Governing increasingly autonomous systems</li><li>Balancing speed with control</li><li>Navigating a fragmented global tech landscape</li></ul><p>The winners won’t just be the companies with the best AI.</p><p>They’ll be the ones that restructure themselves around it.</p><h3>Final Thought</h3><p>For years, the biggest risk with AI was that it wouldn’t live up to the hype.</p><p>Now, a different risk is emerging:</p><p><strong>What happens when it does?</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=230b8982c453" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Properly Implement Evaluation for AI and Multi‑Agent Systems]]></title>
            <link>https://medium.com/@manishagupta81/how-to-properly-implement-evaluation-for-ai-and-multi-agent-systems-d4beb0aaf189?source=rss-543683015e6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4beb0aaf189</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[manisha gupta]]></dc:creator>
            <pubDate>Sun, 23 Nov 2025 17:12:55 GMT</pubDate>
            <atom:updated>2025-11-23T17:12:55.060Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>1. What “Eval” Really Means</strong></p><p>In this context, evaluation means:</p><p>Checking whether your agent actually did a good job on a task.</p><p>You are not just asking “did it run?”. You are asking:</p><ul><li>Did it answer the user’s question?</li><li>Did it follow the rules and constraints?</li><li>Did it use tools correctly (APIs, RAG, web, etc.)?</li><li>Did it avoid unsafe or hallucinated answers?</li></ul><p>Good eval gives you a <strong>signal</strong> you can use to:</p><ul><li>Compare different versions of your system</li><li>Decide what to fix next</li><li>Know when you are improving vs. breaking things</li></ul><p>2. <strong>Start With Clear Success Criteria</strong></p><p>You cannot evaluate a system if you never defined what “good” means.</p><p>Before building eval, write down:</p><ol><li>What is a “good” answer for this task?</li></ol><ul><li>Example: “The answer must mention at least three concrete benefits.”</li></ul><p>2. What is a “bad” answer?</p><ul><li>Example: “The answer is vague, too short, or contradicts internal docs.”</li></ul><p>3. What constraints matter?</p><ul><li>Example: “Must not leak confidential data.”</li></ul><p>Try to write success rules in plain language first. You can later turn them into code or prompts for an evaluator model.</p><p>3. <strong>Think in Terms of Trajectories, Not Just Final Answers</strong></p><p>A <strong>trajectory</strong> is the full story of what the system did:</p><ul><li>User question</li><li>Which agent was called</li><li>Agent output</li><li>Any tool calls and their results</li><li>Any retry attempts</li><li>Final answer</li></ul><p>Why does this matter?</p><p>Because the bug is often <strong>in the middle</strong>, not at the end.</p><ul><li>Maybe the tool call failed</li><li>Maybe the agent misunderstood the question</li><li>Maybe the right agent was never called</li></ul><p>If you only look at the final answer, you cannot see where things went wrong.</p><p>So: log the whole trajectory for each run.</p><p>4. A Simple Eval Flow (Step by Step)</p><p>Here is a simple flow for evaluating a single task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*XU8l53wALpXKKYA-ucS_hg.png" /></figure><p>In words:</p><blockquote>Run the system on a task (or many tasks).</blockquote><blockquote>Save the full trajectory.</blockquote><blockquote>Decide which part of the trajectory is the “answer” you care about.</blockquote><blockquote>Score that answer.</blockquote><blockquote>Save the score, reasons, and link it to the trajectory.</blockquote><blockquote>Use those results to guide improvements.</blockquote><p>5. <strong>How to Score Answers (Two Main Styles)</strong></p><p>There are two common ways to evaluate answers.</p><p>5.1 <strong>Rule‑based / deterministic checks</strong></p><p>You write code that checks:</p><ul><li>Is the answer empty?</li><li>Is it longer than N characters?</li><li>Does it contain a required keyword?</li><li>Does it violate a known rule?</li></ul><p>This is simple and very fast. It works well when:</p><ul><li>The task is well defined (for example: “compute 2 + 2”)</li><li>There is a clear right or wrong answer</li></ul><p>5.2 <strong>LLM‑as‑a‑judge (model evaluates another model)</strong></p><p>Here you send the question and answer to a model and ask it to:</p><ul><li>Decide if the answer is correct enough</li><li>Give a score (for example 1–10)</li><li>Provide written feedback about what is missing or wrong</li></ul><p>This is useful when:</p><ul><li>The task is open‑ended (summaries, explanations, plans)</li><li>There can be many “good” answers</li><li>You care about clarity, completeness, or style</li></ul><p>You can also combine both approaches: use rules for basic checks and a model judge for deeper judgment.</p><p>6. <strong>Answer Extraction: What Exactly Are You Scoring?</strong></p><p>In real multi‑agent systems, the answer might not be the last message.</p><p>Example:</p><ul><li>The agent calls a tool</li><li>The tool returns the real result</li><li>The agent says something vague like “Done”</li></ul><p>If you blindly score the last message, you miss the important content.</p><p>You need a simple strategy like:</p><ul><li>“Use the last non‑empty message with real content”</li><li>or “Use only assistant messages, ignore tool messages”</li><li>or “Concatenate all assistant messages into one string”</li></ul><p>The exact rule is up to you, but you must <strong>be explicit</strong> about it, or your evals will be noisy and misleading.</p><p>7. <strong>Building a Small Eval Suite</strong></p><p>Instead of testing with random ad‑hoc prompts, create a small set of tasks (an eval suite).</p><p>Each task should include:</p><ul><li>The input (question, instruction, or scenario)</li><li>Optional reference answer (for tasks where there is a known correct output)</li><li>Any special constraints or notes</li></ul><p>Example of three tasks:</p><ol><li>“Explain GraphRAG benefits for enterprise search in 3–5 bullet points.”</li><li>“Compare two approaches and highlight trade‑offs.”</li><li>“Summarize a long internal document in plain language.”</li></ol><p>You will run your system on this same suite repeatedly. That way you can compare:</p><ul><li>Old version vs. new version</li><li>Different prompts</li><li>Different agent orchestration patterns</li></ul><p>8. <strong>Eval in a Multi‑Agent Setting (Three‑Agent Example)</strong></p><p>Imagine you have three agents working together:</p><blockquote>Graph agent (uses a graph as subject‑matter expert)</blockquote><blockquote>Multi‑document agent (searches your internal documents)</blockquote><blockquote>Web fallback agent (uses the internet only if needed)</blockquote><p>A simple evaluation pass for one task looks like this:</p><ol><li>Run the system end‑to‑end on a question.</li><li>Log which agents were used and in what order.</li><li>For each agent’s answer, run an evaluation:</li></ol><ul><li>Was this step useful?</li><li>Did it add new, correct information?</li></ul><p>4. Evaluate the <strong>final combined answer</strong> from the orchestrator.</p><p>5. Store:</p><ul><li>Final score</li><li>Per‑agent contribution</li><li>Any feedback</li></ul><p>This lets you answer questions like:</p><ul><li>Is the graph agent actually helping?</li></ul><blockquote>Are we calling the web agent too often?</blockquote><blockquote>Which agent tends to introduce errors?</blockquote><p>9. <strong>Closing the Loop: Using Eval to Improve the System</strong></p><p>Eval is not just for dashboards. It should drive changes.</p><p>A simple improvement loop looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*nPZ-ysP76TDlj4GZf8skrg.png" /></figure><p>In words:</p><ol><li>Run the eval suite on your current system.</li><li>Look at the worst‑scoring tasks and read a few trajectories.</li><li>Look for patterns. Examples:</li></ol><blockquote>“The agent often stops too early.”</blockquote><blockquote>“It never uses the graph even when it should.”</blockquote><blockquote>“It hallucinates when documents are missing.”</blockquote><p>4. Make a targeted change:</p><blockquote>Improve the agent instructions</blockquote><blockquote>Adjust which agent is used first</blockquote><blockquote>Add a new rule to the evaluator</blockquote><p>5. Run the same eval suite again.</p><p>6. Compare results.</p><p>Over time, this loop makes the system more stable and predictable.</p><p>10. <strong>Practical Tips and Gotchas</strong></p><ol><li>Start small</li></ol><ul><li>A tiny eval suite (10–20 tasks) is better than none.</li></ul><ol><li>Keep tasks realistic</li></ol><ul><li>Use real user questions when possible.</li></ul><p>2. Log everything</p><ul><li>You will thank yourself later when debugging.</li></ul><p>3. Don’t trust a single number</p><ul><li>Always inspect a few raw examples.</li></ul><p>4. Treat eval like tests</p><ul><li>Run it whenever you make non‑trivial changes.</li></ul><p>11. Summary</p><p>Proper evaluation is not a luxury. It is how you:</p><ul><li>Know whether your multi‑agent system is actually working</li><li>Decide what to fix next</li><li>Avoid regressions when you make changes</li></ul><p>The core ideas are simple:</p><ul><li>Define what “good” means</li><li>Log the full trajectory</li><li>Extract the right answer to score</li><li>Use a mix of rules and model‑based judges</li><li>Build a small, realistic eval suite</li><li>Use results to guide changes</li></ul><p>If you follow these steps, your eval will stop being guesswork and become a powerful tool for shaping and improving your AI systems</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4beb0aaf189" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shift in Agent Development and Evaluation]]></title>
            <link>https://medium.com/@manishagupta81/shift-in-agent-development-and-evaluation-05672207120c?source=rss-543683015e6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/05672207120c</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[agents]]></category>
            <dc:creator><![CDATA[manisha gupta]]></dc:creator>
            <pubDate>Sun, 23 Nov 2025 17:02:46 GMT</pubDate>
            <atom:updated>2025-11-23T17:09:24.493Z</atom:updated>
            <content:encoded><![CDATA[<p>The shift in agent development and evaluation, moving from single models to trajectory-based multi-agent complexity, fundamentally changes both the architecture used to build systems and the methods used to measure their success.</p><p>This progression is driven by the necessity of handling increasingly <strong>complex tasks</strong> that exceed the limitations of single components.</p><p><strong>The Shift in Agent Development</strong></p><p>The development focus moves from crafting internal model prompts to orchestrating sophisticated communication and action pipelines across multiple specialized entities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AyNJGXjFcjljpneBW9kZ4w.png" /></figure><p><strong>Orchestration and Coordination Mechanisms</strong>.</p><p>1. <strong>From Models to Single Agents</strong></p><p>The capabilities of Large Language Models (LLMs) are limited by issues like hallucination and limited performance for multi-step reasoning tasks. The transition to a single <strong>Agent</strong> addresses these limitations by providing the ability to act.</p><p>• <strong>Core Agent Anatomy:</strong> An agent combines a generative AI model (for reasoning), tools (for action), and memory (for adaptation).</p><p>• <strong>Action-Taking:</strong> Development shifts from pure text generation to enabling the agent to engage in an <strong>action-perception loop</strong>. This involves the agent iteratively taking action (like calling an API), perceiving the results (processing the response), and adapting its approach based on outcomes.</p><p>• <strong>Structured Reliability:</strong> Agents rely on <strong>structured output</strong> (like JSON matching predefined schemas) to reliably generate machine-readable data, which is essential for consistent tool calling and taking precise actions.</p><p>2. <strong>From Single Agents to Multi-Agent Complexity</strong></p><p>Multi-agent systems become essential when tasks are long-running, involve multiple steps, require consideration of various perspectives, and necessitate exploration of a dynamic solution space. Tasks suitable for multi-agent approaches often require <strong>planning</strong>, <strong>diverse expertise</strong>, <strong>extensive context</strong>, and <strong>adaptive solutions</strong>.</p><p>• <strong>Development Focus: Orchestration:</strong> Development shifts to focusing on <strong>orchestration</strong>, which refers to the mechanisms and patterns that enable multiple agents to work together effectively toward shared goals, including how they share information and who controls the flow of execution.</p><p>• <strong>The Orchestrator Loop:</strong> All complex multi-agent orchestration patterns share the same foundational loop: select the next agent, prepare context, execute the agent, update shared state, and check termination conditions.</p><p>• <strong>Spectrum of Control:</strong> Development choices align with an autonomy spectrum, moving from <strong>Explicit Control</strong> (Workflow Patterns) to <strong>Emergent Control</strong> (Autonomous Patterns):</p><p>◦ <strong>Workflow Patterns:</strong> Used when the solution is known, deterministic execution is needed, and the flow is developer-defined (e.g., Sequential, Conditional, Parallel workflows modeled as computational graphs).</p><p>◦ <strong>Autonomous Patterns:</strong> Used when the solution path is uncertain and must emerge dynamically from AI-driven decisions (e.g., Plan-Based Orchestration, Handoff Pattern, or AI-Driven Conversation patterns).</p><p>• <strong>UX Paradigm Shift:</strong> The development of user interfaces moves from traditional <em>interface design</em> (direct manipulation) to <strong>delegation design</strong>, where users provide open-ended task instructions to autonomous systems that can execute any combination of available capabilities.</p><p><strong>The Shift in Evaluation</strong></p><p>The complexity of multi-agent interactions necessitates a shift away from traditional metrics toward measuring the complete process of problem-solving, captured in the execution trajectory.</p><p>1. <strong>What We Are Evaluating: Trajectories</strong></p><p>The core unit of measurement shifts from the model’s output to the entire <strong>trajectory</strong>, which is defined as a complete record of the reasoning and actions taken by the system to address a task.</p><p>• <strong>Trajectory Components:</strong> A trajectory includes the conversational flow (messages), actions (tool calls and executions), outcomes (success/failure), and metadata (timing, token usage).</p><p>• <strong>The Problem with Traditional Metrics:</strong> Traditional machine learning metrics (like BLEU or ROUGE) fail because agentic systems produce non-deterministic, heterogeneous outcomes that include text, code, images, tool call sequences, and error messages, which resist simple quantification.</p><p>2. <strong>Evaluation Methodologies</strong></p><p>Evaluation transitions into an engineering discipline centered on transparency, domain expertise, and iterative testing.</p><p>• <strong>Evaluation-Driven Development (EDD):</strong> Evaluation becomes a core concern defined <em>before</em> building the system, ensuring that success criteria and evaluation constraints guide architectural design.</p><p>• <strong>LLM-as-a-Judge:</strong> For the complex, open-ended tasks solved by multi-agent systems, evaluation relies on <strong>Large Language Models as Judges</strong> to assess nuanced qualities (like helpfulness, clarity, and correctness) that traditional metrics miss.</p><p>• <strong>Domain-Specific Evaluation:</strong> Evaluation requires translating domain expertise (e.g., a software engineering expert checking code quality and test coverage) into measurable, often composite, criteria.</p><p>• <strong>Observability as Foundation:</strong> Comprehensive <strong>observability</strong> (using tools like OpenTelemetry) becomes critical for evaluation, as agents must emit structured events during execution so that complete trajectories can be reconstructed for later analysis and debugging.</p><p>In essence, the shift demands that developers choose the simplest architecture justified by task requirements, and evaluation proves whether the architectural complexity — and the 43x token usage overhead observed in some multi-agent configurations compared to direct model calls — is justified by measurable performance benefits.</p><p>The move from single models to trajectory-based multi-agent systems is like moving from a single cook making one specific recipe (a predictable task) to leading a large research team trying to solve an unknown scientific problem. The focus shifts from measuring whether the final dish tastes right (output quality) to rigorously tracking the entire research process — the hypotheses tested, the experiments run, the papers read, and the internal collaborations, captured in the full, complex <strong>trajectory</strong> — to determine if the team’s coordination and approach justified the increased cost and effort.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05672207120c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LLM Agent Series — #1 LLM Reasoning: Enhancing AI’s Thought Process]]></title>
            <link>https://medium.com/@manishagupta81/llm-agent-series-1-llm-reasoning-enhancing-ais-thought-process-9f31a315f41d?source=rss-543683015e6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f31a315f41d</guid>
            <dc:creator><![CDATA[manisha gupta]]></dc:creator>
            <pubDate>Tue, 10 Dec 2024 00:22:16 GMT</pubDate>
            <atom:updated>2024-12-10T00:22:16.289Z</atom:updated>
            <content:encoded><![CDATA[<h3>LLM Agent Series — #1 LLM Reasoning: Enhancing AI’s Thought Process</h3><p><a href="https://arxiv.org/abs/2402.10200">Chain-of-Thought Reasoning Without Prompting</a></p><p>As I progress through the <a href="https://llmagents-learning.org/f24">Large Language Model Agents MOOC</a> course, I am excited to share my learnings in the <em>LLMAgents</em> series.</p><p>Imagine you’re solving a tricky puzzle: “Janet’s ducks lay 16 eggs a day. She eats 3, bakes with 4, and sells the rest for $2 each. How much does she make daily?” If you write down every step, it’s easy to see where you might go wrong or if your answer is solid. But if you just guess, you might get it wrong, and no one can figure out why.</p><p>AI systems face the same challenge. For years, researchers tried to make them reason better. Now, they have found a groundbreaking method — simply changing the way AI “decodes” its answers can make it smarter and more reliable.</p><h3>Traditional Approach: Giving AI Lots of Examples</h3><p>In the early days, making AI reason meant <strong>training it with a lot of labeled examples</strong>. This is like drilling a student with endless practice problems.</p><p>For example, if the AI needed to solve the egg problem, it would see thousands of examples like:</p><ul><li><strong>Input</strong>: “Ducks lay 10 eggs. Eat 2, sell the rest at $3 each. How much is earned?”</li><li><strong>Answer</strong>: “$24.”</li></ul><p>This approach works but has major problems:</p><ol><li><strong>Data Hungry</strong>: Needs vast amounts of examples.</li><li><strong>Rigid</strong>: Can’t generalize well to new or slightly different problems.</li><li><strong>Expensive</strong>: Labeling data is costly and time-consuming.</li></ol><h3>The Chain-of-Thought Revolution: Thinking Step-by-Step</h3><p>Instead of just giving answers, why not train the AI to reason step-by-step, like showing its work in math class? This is the <strong>Chain-of-Thought (CoT) prompting</strong> method. With a little guidance, the AI learns to explain its reasoning.</p><p>For example:</p><ul><li><strong>Input</strong>: “Janet’s ducks lay 16 eggs daily. She eats 3, bakes with 4, and sells the rest for $2 each.”</li><li><strong>CoT Prompting</strong>:</li></ul><ol><li>Janet eats 3 eggs: 16–3 = 13.</li><li>She bakes with 4 eggs: 13–4 = 9.</li><li>She sells 9 eggs at $2 each: 9 × 2 = $18.</li></ol><p><strong>Result</strong>: The AI gets the answer right and explains how.</p><p>This method improves accuracy and makes the reasoning transparent. However, CoT prompting requires carefully crafted examples, which can still be time-consuming.</p><h3>Decoding-Based Approaches: Unlocking Hidden Potential</h3><p>What if AI could reason step-by-step without needing explicit examples? Researchers discovered that reasoning paths are often <strong>inherent in the model</strong> — they just don’t show up with traditional methods like <strong>greedy decoding</strong>.</p><h4>Greedy Decoding: Quick but Shallow</h4><p>Greedy decoding picks the most likely word at every step. It’s like always choosing the shortest route without checking if it’s the best.</p><ul><li><strong>Input</strong>: “Janet’s ducks lay 16 eggs daily. She eats 3, bakes with 4, and sells the rest for $2 each.”</li><li><strong>Greedy Decoding</strong>: “$18.”</li></ul><p>While correct here, greedy decoding often skips over reasoning, which can lead to wrong or incomplete answers.</p><h4>Top-k Decoding: Exploring Multiple Possibilities (Out of the Box thinking)</h4><p>Instead of always picking the top choice, <strong>top-k decoding</strong> explores several likely options. This helps reveal reasoning paths that greedy decoding might miss.</p><p>For example:</p><ul><li><strong>Input</strong>: “Janet’s ducks lay 16 eggs daily. She eats 3, bakes with 4, and sells the rest for $2 each.”</li><li><strong>Top-k Decoding</strong>:</li><li>Option 1: “Janet eats 3 eggs, leaving 13. She bakes with 4 eggs, leaving 9. 9 × $2 = $18.”</li><li>Option 2: “She eats 3 eggs, bakes with 4, and sells 9 eggs. $18 total.”</li></ul><p>By exploring different paths, the AI uncovers the logic behind the answer.</p><h3>Self-Consistency: Double-Checking the Work</h3><p>Even when AI generates reasoning paths, it might still make mistakes. Enter <strong>self-consistency</strong>, which works like asking a group of friends to solve the same problem independently. The answer that shows up most often is likely correct.</p><ul><li><strong>Question</strong>: “Was Nicolas Cage born in an even or odd year?”</li><li><strong>Greedy Decoding</strong>: “Even.”</li><li><strong>Self-Consistency</strong>:</li><li>Path 1: “Nicolas Cage was born in 1964. 1964 is even.”</li><li>Path 2: “1964 is an even year.”</li><li>Path 3: “Even.”</li><li><strong>Final Answer</strong>: “Even” (most consistent answer).</li></ul><p>This approach ensures that reasoning isn’t just correct — it’s reliable.</p><h3>Comparing Approaches with a Fun Example</h3><p>Let’s see how these methods handle a toy problem: “Find the last letters of the names and combine them.”</p><ul><li><strong>Input</strong>: “Barack Obama.”</li><li><strong>Traditional Approach</strong>:</li><li>Train the model with many examples like “Elon Musk → nk” and “Bill Gates → ls.”</li><li><strong>Output</strong>: “ka” (after lots of training).</li><li><strong>Greedy Decoding</strong>:</li><li><strong>Output</strong>: “ka” (correct but no explanation).</li><li><strong>CoT Decoding</strong>:</li><li><strong>Steps</strong>:</li></ul><ol><li>The last letter of “Barack” is “k.”</li><li>The last letter of “Obama” is “a.”</li><li>Combining “k” and “a” gives “ka.”</li></ol><ul><li><strong>Output</strong>: “ka.”</li><li><strong>Self-Consistency</strong>:</li><li>Path 1: “k, a → ka.”</li><li>Path 2: “Barack ends with k. Obama ends with a. ka.”</li><li>Path 3: “Combine k and a → ka.”</li><li><strong>Final Answer</strong>: “ka.”</li></ul><h3>Why It Matters</h3><p>These decoding-based approaches unlock the <strong>intrinsic reasoning abilities</strong> of AI, making it:</p><ol><li><strong>Smarter</strong>: Handles complex problems without extensive training.</li><li><strong>Transparent</strong>: Explains its reasoning so we can trust its answers.</li><li><strong>Reliable</strong>: Uses self-consistency to double-check its work.</li></ol><h3>Conclusion: The Future of AI Reasoning</h3><p>By shifting from traditional data-heavy methods to decoding-based approaches, we’re making AI better at reasoning. Techniques like CoT prompting, top-k decoding, and self-consistency don’t just improve answers — they make AI a more thoughtful problem-solver.</p><p>So, next time you interact with AI, remember: it’s not just spitting out answers. With the right methods, it’s reasoning, explaining, and checking its work — just like the best human thinkers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f31a315f41d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LLM Agent Series — #2 — Exploring LLM Agents: A Journey Through Their Evolution, Capabilities, and…]]></title>
            <link>https://medium.com/@manishagupta81/llm-agent-series-2-exploring-llm-agents-a-journey-through-their-evolution-capabilities-and-bee7fc858312?source=rss-543683015e6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/bee7fc858312</guid>
            <dc:creator><![CDATA[manisha gupta]]></dc:creator>
            <pubDate>Tue, 10 Dec 2024 00:16:54 GMT</pubDate>
            <atom:updated>2024-12-12T10:59:30.485Z</atom:updated>
            <content:encoded><![CDATA[<h3>LLM Agent Series — #2 — Exploring LLM Agents: A Journey Through Their Evolution, Capabilities, and Futur</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/16/0*LiwAVfMSF1jxJRSf.png" /></figure><p><a href="https://arxiv.org/abs/2207.01206">WebShop: Towards Scalable Real-World Web Interaction with Grounded…</a></p><p>As I progress through the <a href="https://llmagents-learning.org/f24">Large Language Model Agents MOOC</a> course <a href="http://llmagents-learning.org/f24">http://llmagents-learning.org/f24</a>, I am excited to share my learnings in the <em>LLMAgents</em> series. It is a great learning experience and MOOC has done a tremendous job creating this course and share the great cutting edge concepts!</p><p>LLM (Large Language Model) agents are transforming the way we approach problem-solving, automation, and interactive learning. By combining advanced reasoning and acting capabilities, they pave the way for sophisticated applications across various domains. This blog delves into their origins, development, and the exciting potential they hold.</p><h3>Understanding LLM Agents</h3><p>An LLM agent is an “intelligent” system that interacts with its environment — whether physical, digital, or human — to perform actions based on observations. These systems can be classified into:</p><ul><li><strong>Text Agents</strong>: Examples include early chatbots like ELIZA, which relied on rule-based designs for specific tasks.</li><li><strong>LLM Agents</strong>: Powered by language models, they leverage vast textual data to execute actions (e.g., SayCan, Language Planner).</li><li><strong>Reasoning Agents</strong>: The most advanced category, which incorporates reasoning to act intelligently. Examples include ReAct and AutoGPT.</li></ul><h3>The Evolution of LLM Agents</h3><ol><li><strong>Early Developments</strong>:</li></ol><ul><li><strong>ELIZA (1966)</strong>: A rule-based text agent, limited to domain-specific applications.</li><li><strong>LSTM-DQN (2015)</strong>: Introduced reinforcement learning for textual environments, enhancing interaction but requiring extensive training.</li></ul><p><strong>2. Emergence of LLMs</strong>:</p><ul><li>The advent of models like GPT showcased the potential of few-shot learning — performing tasks with minimal examples.</li><li>LLMs brought generality, enabling agents to adapt across tasks with zero-shot, one-shot, or few-shot learning.</li></ul><p><strong>3. Advanced Capabilities</strong>:</p><ul><li><strong>Reasoning and Acting</strong>: ReAct, for instance, combines reasoning with action. It can break down complex tasks into manageable steps, making it ideal for multi-hop question answering and decision-making.</li><li><strong>Tool Use</strong>: Integration with external tools like search engines, calculators, and APIs has expanded their utility.</li></ul><h3>Capabilities in Action: Examples</h3><h4>ReAct in Question Answering</h4><p>Consider a query: “If I have $7 trillion, can I buy Apple, Nvidia, and Microsoft?”</p><ul><li>The agent reasons to determine the companies’ market capitalizations.</li><li>It calculates the total cost and provides the shortfall, demonstrating synergy between reasoning and acting.</li></ul><h4>Discovery with ChemCrow</h4><p>In scientific discovery, LLM agents can analyze data, train predictive models, and suggest actionable insights. ChemCrow exemplifies this, aiding chemists in identifying new compounds with specific properties.</p><h3>From Simple Tasks to Advanced Applications</h3><p>LLM agents have evolved from performing single-step tasks to handling multi-faceted problems:</p><ul><li><strong>Mathematical Reasoning</strong>: Solving problems by combining symbolic reasoning and computational tools.</li><li><strong>Commonsense QA</strong>: Using retrieval-augmented generation (RAG) for knowledge-intensive questions.</li><li><strong>Embodied Reasoning</strong>: Agents like ALFRED can interpret and act upon real-world instructions, showcasing their applicability in robotics and automation.</li></ul><h3>The Future of LLM Agents</h3><p>As we look ahead, LLM agents are set to revolutionize multiple domains:</p><ul><li><strong>Scientific Discovery</strong>: From generating hypotheses to executing experiments.</li><li><strong>Digital Automation</strong>: Enhancing tools like WebGPT for seamless web-based interactions.</li><li><strong>Software Engineering</strong>: Automating debugging and development through specialized agents.</li></ul><h3>Diagram: LLM Agent Functionality</h3><p>Here’s a visual representation of how an LLM agent like ReAct works:</p><ol><li><strong>Input</strong>: A question or task.</li><li><strong>Reasoning</strong>:</li></ol><ul><li>Thought generation: Analyzing the task.</li><li>Decision-making: Determining actions based on observations.</li></ul><p><strong>3. Action</strong>: Using tools or APIs to gather information.</p><p><strong>4. Output</strong>: Providing answers or completing tasks.</p><h3>Conclusion</h3><p>LLM agents represent a confluence of cutting-edge AI advancements, capable of reasoning, acting, and learning. From simplifying daily tasks to solving intricate scientific challenges, their versatility continues to grow. As researchers push the boundaries of memory integration and multi-agent collaboration, the possibilities are limitless. Welcome to the future of intelligence in action!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bee7fc858312" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>