<?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 Gorv on Medium]]></title>
        <description><![CDATA[Stories by Gorv on Medium]]></description>
        <link>https://medium.com/@gor17v?source=rss-5e1c7d0dd674------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*rxhrYBRAazUBW2zt</url>
            <title>Stories by Gorv on Medium</title>
            <link>https://medium.com/@gor17v?source=rss-5e1c7d0dd674------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 07:50:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gor17v/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[We Found a Multi-Agent Protocol Hiding in a Folder of Deploy Notes]]></title>
            <link>https://medium.com/@gor17v/we-found-a-multi-agent-protocol-hiding-in-a-folder-of-deploy-notes-5d40cda7714c?source=rss-5e1c7d0dd674------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d40cda7714c</guid>
            <category><![CDATA[harness-engineering]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[loop-engineering]]></category>
            <category><![CDATA[multi-agent-systems]]></category>
            <dc:creator><![CDATA[Gorv]]></dc:creator>
            <pubDate>Sat, 18 Jul 2026 07:51:29 GMT</pubDate>
            <atom:updated>2026-07-18T07:51:29.314Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q4qZ6rLN7rkh2R4f6Ry8Kg.jpeg" /></figure><p><em>Two of our AI agents had been handing work to each other for weeks — before anyone designed it that way. Productizing that accident taught us how agent-to-agent handoffs should work: the right abstraction is a function signature, not a treaty.</em></p><h2>The protocol we never designed</h2><p>Our platform runs a cast of role-specialized AI agents: a developer, a DevOps engineer, a QA tester, and more. Each has its own tools, its own sandbox, its own sessions. They collaborate the way people do — in shared chat rooms, picture a Slack channel where some members are humans and some are agents, and, it turns out, through files in a Git repo.</p><p>Most “multi-agent” architecture starts on a whiteboard. Ours started in a folder nobody meant to turn into a protocol.</p><p>When the developer agent finishes a feature, it produces <strong>two commits</strong>. The first is the code. The second, right after, is a plain-Markdown <em>deployment request</em>, addressed to a different agent entirely: the DevOps agent, which will wake up later, in its own session, with its own tools, and ship the change.</p><p>The request isn’t prose. It’s a form. It declares which commits to build from, what actually changed (frontend? backend? a database migration? new environment variables?), the order to deploy in, and — the part that makes it work — a numbered list of <strong>concrete, executable verification steps</strong>:</p><pre>3. grep -c &quot;TOOL_CALL_LEAK&quot; backend.log   → command must be runnable; 0 hits is a pass<br>4. curl the model-info endpoint           → every model entry must have a non-empty api key</pre><p>The DevOps agent reads the file, deploys, runs each item, then writes back into the same file. A status line that read “pending” (in the original it’s the Chinese 待部署; our tooling is bilingual) becomes a receipt: the build tag, the migrations applied and their evidence, the result of every verification step. Sometimes the receipt is honest about failure. One request got rewritten to &quot;partially deployed,&quot; with an itemized list of what didn&#39;t land. Another commit went back and <em>un-marked</em> three requests that had been stamped &quot;deployed&quot; before the code actually shipped.</p><p>We went back and counted: <strong>251 request documents over 17 days, 240 of them closed with a written receipt.</strong> Two agents that never once ran at the same time had been collaborating, reliably, through a file.</p><p>I want to be careful about what that number proves. It’s one platform, one pair of agents we built and prompted to behave this way, over seventeen days, with no baseline to compare against. It’s an existence proof, not evidence that the pattern generalizes. But it was enough to make us look much harder at what the convention actually <em>was</em>.</p><p>The convention is codified in a README that lives inside the deploy folder: the template every request must follow, plus the DevOps agent’s own duties. Someone wrote that README, so it isn’t quite right to say nobody designed anything. What’s right is that nobody set out to design a <em>multi-agent protocol</em> — and when we re-read the README with fresh eyes, that’s exactly what we found we had.</p><p>Because the README isn’t a <em>pair</em> agreement. It lives in the receiver’s territory and speaks in the receiver’s voice. It declares what <em>any</em> sender must provide, how the request will be processed and verified, even the receipt format promised back. Across the ~150 requests that name an explicit requester, the required fields never change based on who’s asking. (The rest name no requester at all.)</p><p>Structurally, that README is <strong>the DevOps agent’s intake contract</strong>: a callee’s signature that any number of interchangeable callers conform to.</p><p>That reframing is the whole idea.</p><h2>What we’re building</h2><p>The goal is to make that accident a platform capability. Everything from here on is a design we’re building, not a feature that already ships — the only thing running in production today is the deploy-notes convention you just met.</p><p><strong>Every agent gets equipped, automatically, with an intake contract:</strong> a declaration of what other agents (or humans) must provide before it will start work. Senders conform to the receiver’s contract. Each contracted request becomes a <strong>tracked task</strong>, with a status and, eventually, a receipt.</p><p>Throughout, I’ll use a QA agent as the running example. The question its contract answers: what must an engineer — or a human venting in a chat room — give the QA agent before it can usefully test anything?</p><h2>The core idea: a contract owned by the receiver</h2><p>Our first attempt modeled the protocol as an <strong>edge</strong>: one protocol per (sender, receiver) pair, with a handoff document traveling between them. It looked reasonable. It broke under review, and I’ll tell that story near the end.</p><p>The model we landed on puts the contract on the <strong>node</strong>. The receiver declares its own input requirements once, for every sender — the way a function’s signature is owned by the function, not renegotiated by each caller.</p><p>If that sounds utterly ordinary, it is. A receiver-owned input contract is what a function is. It’s what an HTTP endpoint is, what a Protobuf service definition or an OpenAPI spec is. And for the human-facing half, it’s frankly a smart intake form bolted onto a ticket tracker. That’s the point. The interesting part isn’t the shape; it’s that the multi-agent designs we started from — our own included — instinctively reached for something fancier: bespoke, negotiated, per-pair protocols. The boring, API-shaped thing beat them on every axis we cared about.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WpSHdi5OxO8PM7fSUlWb4w.png" /><figcaption>Node model (the one we landed on): one intake contract per receiver</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RncKIAcDHMUVoALT4C4_cA.png" /><figcaption>Edge model (abandoned): one protocol per pair</figcaption></figure><p>Why the node model wins:</p><ul><li><strong>N contracts instead of N×M.</strong> Generation, approval, and storage scale with the number of agents, not the number of pairs.</li><li><strong>Approval gets much safer.</strong> A contract is <em>data</em> — a schema — not executable code, and it’s installed only into its owner’s own workspace (the per-team permission boundary every agent lives inside). The receiver’s team approves the receiver’s own contract; senders never get anything installed into their space. That one move removes a whole class of risks the pair model had introduced, which I’ll come back to. It isn’t magically safe — the contract is still text that gets fed to an LLM, so it needs a policy linter and untrusted-content handling, both covered below — but it’s a different, smaller problem.</li><li><strong>Generation needs no transcripts.</strong> A first draft can be derived from the agent’s own role, skills, and configuration. The callee already knows its own signature; nothing has to mine private conversations.</li><li><strong>It matches the thing that already worked.</strong> The deploy README is one. We’re formalizing an existing success, not inventing a mechanism and hoping.</li></ul><blockquote>A throwaway convention in a deploy folder turned out to have the same shape as a function signature. We trust it more for having been noticed than we would if we’d designed it from scratch.</blockquote><h3>What an intake contract contains</h3><p>Four parts. Here they are, filled in for the QA agent:</p><pre># Intake contract: QA agent (v2)</pre><pre>## What I need before I start (by sender kind)<br>From engineering senders:<br>- the commit set + baseline hash of the change under test<br>- declared scope: pages / endpoints / tables touched<br>- verification items, typed (command | sql | ui-path | manual), at least one non-manual<br>- known gaps: what you did NOT test<br>From workflow nodes:<br>- the trigger payload and the step&#39;s goal statement<br>From humans / conversational senders:<br>- what you saw, where (page/device), and since when</pre><pre>## How I verify (my grounding rule)<br>Ground truth is the git diff of your declared commit set. I cross-check your<br>declared scope against it before testing. Under-report the scope → I mark the<br>task blocked with the discrepancy. The diff wins.</pre><pre>## What I send back (my receipt)<br>Per-item findings (was the check executed, and what did it show) with captured<br>output, a verdict of done / partial / blocked, and the commit I verified against.</pre><pre>## Elicitation hints (for the room assistant)<br>- repro steps missing → ask &quot;which page, and what did you click?&quot;<br>- commit unknown → check the room&#39;s recent deploy notices before asking</pre><p>It’s signature-<em>shaped</em> in the ways that matter — ownership and directionality — but the checking is far weaker than a type system. It verifies that fields are <em>present</em>, not that they’re <em>true</em>. (We’ll return to that limit; it’s the biggest one.)</p><p>The four parts map directly onto what made the deploy convention work:</p><ul><li><strong>Required fields</strong>, keyed by <em>sender kind</em> — class-level, not pair-level. An engineer, a designer, and an automated workflow feeding the same QA agent get different sections, without smuggling pair contracts back in.</li><li><strong>The grounding rule</strong> — the objective source of truth the receiver checks claims against. This is what lets the receiver catch a dishonest or mistaken sender, <em>provided it runs the check</em>. A receiver that merely believes its senders degrades silently; one that can check them can stay reliable.</li><li><strong>The declared receipt</strong> — what the receiver promises to write back.</li><li><strong>Elicitation hints</strong> — which exist for the room assistant, the subject of the next section.</li></ul><h3>Where this sits next to the A2A Agent Card</h3><p>If you follow the multi-agent standards, you’ll ask where this lands relative to A2A.</p><p>The A2A protocol (Agent2Agent, now a Linux Foundation project) defines an <strong>Agent Card</strong>: a JSON discovery document, served at a well-known URL, describing an agent’s identity, endpoint, auth schemes, capabilities, and skills. We already serve one. But the card answers a different question — <em>“what can this agent do, and how do I reach it?”</em> Its skills carry only free-text descriptions and MIME-type input modes, and the spec deliberately keeps message content free-form. It says nothing about what information a <em>task</em> must contain before the agent starts: no grounding rule, no receipt schema. The intake contract is exactly that missing layer.</p><p>One overlap validates the design from the outside. A2A defines a task state machine (submitted / working / input-required / completed / failed / canceled / rejected) that closely parallels ours. Its input-required state is <em>reactive</em> elicitation: the receiver starts, discovers something is missing, pauses, and asks. Our room assistant (next) is <em>proactive</em>: it gathers what&#39;s needed <em>before</em> dispatch. The two compose cleanly, so the right place to publish an intake contract is as an <strong>extension of the Agent Card</strong> — standards-compatible discovery on the outside, an enforceable contract on the inside.</p><h2>The room assistant: turning intent into contracts</h2><p>A contract creates an obvious tension.</p><p>The channel our agents talk over carries <em>everything</em>: a human casually saying “the login button looks off” in a group room, machine-generated workflow outputs, formal handoffs, team tasks. If the QA agent’s contract were enforced on all of that inbound traffic, the human’s offhand remark would bounce with missing: commit set, typed verification items. Absurd. But a contract that&#39;s never enforced is just decoration.</p><p>The resolution: in a chat room, a <strong>room assistant plays the role of intake adapter</strong>. (The room assistant is an optional, neutral participant a room can load — a facilitator that behaves like any other member but exists to keep the room organized. We already run these.) The room stays informal, people and agents talk freely. The contract defines a formal layer of structured, tracked tasks. And the assistant translates between them, the way a good team lead turns a hallway complaint into a well-formed ticket:</p><ol><li><strong>Detect intent.</strong> The assistant notices that a message, however casual, actually wants a specific agent to <em>do something</em>. This piggybacks on the routing pass our orchestrator already runs on every message — the pass that decides which agents in a room should respond — rather than adding a new model call. (One subtlety surfaced when we reviewed it: that routing deliberately never selects the assistant’s own seat today, so routing intent <em>to</em> the assistant is a genuine extension.)</li><li><strong>Consult the receiver’s contract.</strong> When an agent joins a room, the platform loads its published contract into the room’s shared workspace as a separate file, kept out of the room’s running summary so contract edits don’t disturb it. The assistant reads it there.</li><li><strong>Elicit, don’t just reformat.</strong> “The button looks off” cannot be <em>reformatted</em> into “commit set + repro steps”; that information doesn’t exist yet. The assistant first mines the room’s own context (recent messages, shared files, yesterday’s deploy notice), then asks the human only for what’s still missing (“which device?”). The contract’s elicitation hints tell it which questions matter. This step isn’t overhead; it’s the mechanism by which vague intent becomes verifiable work.</li><li><strong>Confirm, then dispatch.</strong> For a human-initiated task, the assistant posts the drafted handoff as a <strong>card</strong> — an interactive message with Confirm and Edit buttons. One tap confirms and sends. That kills false positives (“I was just venting”), gives clean attribution, and honors a standing product rule: consequential actions never bypass an explicit confirmation. Handoffs between two <em>agents</em> skip the card; contracts are the intended agent-to-agent fast path.</li></ol><p>If no room assistant is loaded, none of this happens. Messages flow exactly as they do today, and contracts stay dormant in that room. The feature is opt-in, per room, with zero blast radius.</p><p>Two safety notes, both learned the hard way. The contract is receiver-authored text that enters the <em>assistant’s</em> context, so the assistant is chartered to treat it as data — format requirements to satisfy, delimited as untrusted content — never as instructions. And every contract must pass a <strong>policy linter</strong> before it goes live, because an intake contract is a demand backed by a gate: without the linter, a malicious contract could demand credentials or private cross-boundary content, and the enforcement machinery would dutifully bounce messages until senders complied.</p><p>One more thing about where this runs. The gate itself is venue-agnostic: a contract is stored once per agent, and only a message explicitly <strong>marked</strong> as a contracted handoff — a small piece of metadata the composer attaches, meaning “this is a formal handoff, validate it” — ever gets checked. Everything unmarked flows exactly as it does today, which is what keeps casual conversation safe from the gate. But we’re implementing exactly one venue first: the group chat room, the only place with a real composer standing between informal intent and a formal contract. The other lanes (automated workflows, one-on-one chat, scheduled autonomous runs) are designed to reuse the same store and the same mark — with one honest exception, scheduled runs don’t cross the same chokepoint and will need a second seam. None of them is built yet.</p><h2>Tracked tasks: who writes the record matters</h2><p>The third pillar, after receiver-owned contracts and assistant-mediated intake: <em>every contracted request becomes a task the receiver owns, with a tracked status.</em></p><p>We almost skipped this. We stress-tested the minimalist position — “the message is the artifact; nothing else needs to persist” — and the deploy corpus refuted it. Those documents are load-bearing precisely <em>because they are durable, addressable records</em>. Requests reference each other by filename to say “must ship with / after X” (the deepest dependency chain we saw ran about 15 requests; most were shallow). A single receipt batch-stamps several documents at once. Stamps get retroactively corrected. Entirely separate sessions read the marks to figure out what’s actually live in production. An ephemeral, validated-then-discarded message loses every one of those properties.</p><p>The fix is cheap, and it <em>keeps</em> the security wins of the receiver-owned model: <strong>the platform writes the record, never the agents.</strong></p><p>When a marked handoff passes validation, the backend creates a task row server-side. Every state transition is also performed server-side, driven by the receiver’s runtime lifecycle: when the receiver’s session starts on a task, the platform marks it accepted and in-progress; when the session finishes, the platform parses the structured verdict out of the agent’s output and maps it onto the task state. <strong>The agent reports; the platform writes.</strong> There is no agent-facing write path at all. That is exactly why the pair model’s nastiest problems — forgeable receipt authors, a sandbox-to-database write surface, an identity race that could have leaked one tenant’s writes into another’s — simply don’t exist here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jKthqEqyMijLWSz-U0_QRg.png" /></figure><p>A few supporting details fall out of the corpus. An append-only event log records every transition, so corrections <em>supersede</em> rather than overwrite; the deploy folder’s retroactive fixes taught us to keep history. Tasks are addressable by id, so one task can declare a dependency on another (“must complete after task N”), recovering those chains. A staleness reaper marks abandoned tasks — the platform already runs exactly this pattern for workflow recovery. And read visibility follows access on either end of the task, not bare membership.</p><p><strong>The room is the tracking UI.</strong> The real verification runs in the receiver’s own later session — building an app, clicking through a UI, waiting fifteen minutes for a scheduler to fire — none of which fits inside a single synchronous agent-to-agent call with its depth limits and timeouts. So delivery only <em>notifies</em>; the receipt arrives asynchronously. The assistant surfaces the whole lifecycle back where the request started, riding the group chat’s progress cards: <em>“QA accepted the button task”</em> … <em>“QA finished: 2 pass, 1 fail — receipt attached.”</em> That recreates the original deploy-folder experience, the receipt written back where the request lives, in the medium of a chat room. (One integration detail to resolve when we build it: the task record, the room run, and the progress card have to cross-reference one another rather than drift into three parallel truths.)</p><h2>A worked example, end to end</h2><p><strong>Setup.</strong> The QA agent’s owner clicks “generate intake contract.” A background job drafts it from the agent’s role, skills, and configuration; the policy linter passes it; the owner reads the full text and approves. The contract is published, visible on the agent’s card, and, whenever the QA agent sits in a room, loaded into that room’s workspace.</p><p><strong>Tuesday, in the product room.</strong> A human types: <em>“the login button looks off on mobile since yesterday.”</em></p><p>The assistant’s routing pass flags this as probable intent aimed at QA. It reads QA’s contract, mines the room context — yesterday’s deploy notice hands it the commit range — and asks exactly one question: <em>“Which device and browser?”</em> — <em>“iPhone, Safari.”</em> Then it drafts the handoff and posts a card:</p><blockquote><strong>Task for QA</strong> — Login button misaligned on mobile</blockquote><blockquote><strong>Commits under test:</strong> 3f2a9c1..8b40d77 (yesterday&#39;s deploy)</blockquote><blockquote><strong>Scope:</strong> login page frontend only (CSS/layout, per the deploy notice)</blockquote><blockquote><strong>Repro:</strong> login page, iPhone Safari, button visibly offset</blockquote><blockquote><strong>Verification:</strong> (1) [ui-path] login page at 390px width → button centered; (2) [command] build &amp;&amp; screenshot-diff vs baseline</blockquote><blockquote><strong>Not tested:</strong> behavior behind the CDN cache</blockquote><blockquote><strong>Requested by:</strong> @han — [ Confirm &amp; send ] [ Edit ]</blockquote><p>The human taps confirm. The dispatch is validated against QA’s contract at the chokepoint and passes — the mark on it declares <em>which sender-kind section</em> it was drafted to satisfy. Here the assistant drafted to the <em>engineering</em> section, because the room context let it supply commits, scope, and typed verification items. Had it only gathered the conversational fields (what you saw, where, since when), it would have validated against that leaner section instead. The platform creates task #142 in the submitted state, and a progress card appears in the room.</p><p><strong>Later.</strong> The QA agent picks the task up in its own session — accepted → in_progress, both written by the platform when the session starts. It cross-checks the declared commits against the diff (they match; had the handoff claimed &quot;CSS-only&quot; while the diff touched an API route, the contract says to mark it blocked), runs both items, and reports:</p><pre>{<br>  &quot;verdict&quot;: &quot;done&quot;,<br>  &quot;verified_at_commit&quot;: &quot;8b40d77&quot;,<br>  &quot;items&quot;: [<br>    {&quot;id&quot;: 1, &quot;executed&quot;: true, &quot;finding&quot;: &quot;violated — button offset 14px at 390px; screenshot ref …&quot;},<br>    {&quot;id&quot;: 2, &quot;executed&quot;: true, &quot;finding&quot;: &quot;regression confirmed vs baseline; build ok&quot;}<br>  ],<br>  &quot;note&quot;: &quot;regression introduced by commit 7d1e3aa (flex-basis change)&quot;<br>}</pre><p>Watch the vocabulary here, because getting it wrong corrupts the ledger. Per item, executed (&quot;could I run this check?&quot;) is kept separate from finding (&quot;what did the check show?&quot;). A <em>confirmed bug</em> is a <em>successfully executed</em> verification: both items above confirm the same regression, and the verdict is done because every item ran. partial means some items couldn&#39;t be executed at all; blocked means the handoff&#39;s claims contradicted ground truth. So this task closes as closed_done: the <em>verification</em> succeeded, even though the <em>button</em> is broken.</p><p>The assistant posts the outcome back into the room: <em>“QA confirmed the bug — regression from </em><em>7d1e3aa. Receipt attached.&quot;</em></p><p>And notice what the human can do next: ask the assistant to hand the <em>fix</em> to the engineer agent — a second contracted task, against the engineer’s <em>own</em> intake contract. Directed contracts compose into workflows without any pair-level machinery at all.</p><h2>Generating and governing contracts</h2><p>Two questions remain: where do contracts come from, and how do you keep a demand-backed-by-a-gate from being abused?</p><p><strong>Generation</strong> is a background job that drafts each contract from the agent’s own role, skills, and configuration — no transcripts, since the callee already knows its own signature. It reuses machinery we already run for agents (budgeting, locking, an audit trail); the genuinely new code is a small, nameable set of pieces.</p><p><strong>Governance</strong> is a straight line: draft → a <strong>policy linter</strong> (no credential demands, no PII, nothing that would pull cross-boundary content — the anti-weaponization gate) → the owner reads the full text and approves → published to the agent’s public card, redacted. A version is pinned when a task is validated against it, so a mid-flight edit can’t retroactively invalidate work already in progress.</p><p><strong>Rollout</strong> is where it gets interesting. New contracts start in <strong>shadow mode</strong>: validation runs and logs, but nothing is bounced. Enforcement on a given contract turns on only after N consecutive clean transits, so a never-exercised schema never starts rejecting live traffic the day it’s approved.</p><p>And then the <strong>revision loop</strong>, which is where a contract earns its keep. A cold-generated contract is boilerplate. The deploy README is valuable precisely because it encodes lessons from real incidents — its “never deploy a pre-built tarball” rule exists because of a near-rollback. So failure signals are captured from day one in the shadow logs (bounced dispatches, elicitation dead-ends, receipts contradicted by reality, reopened tasks); the machinery that turns those signals into revision proposals for the owner comes in a later phase. Capture early, automate later.</p><blockquote>Protocols should be born plausible and earn trust through failure. A contract’s first weeks of life are its editing process.</blockquote><h2>What version one gives up (and what’s still open)</h2><p>Stated plainly, so nobody mistakes the ceiling for the floor.</p><p><strong>Validation checks presence, not truth.</strong> The gate can require a commit set field; it can&#39;t confirm the commits are the <em>right</em> ones. Truth-checking is the receiver&#39;s job — described in its grounding rule, run in its own session, advisory rather than enforced. The deploy folder&#39;s single strongest property, the receiver catching <em>omissions</em> by checking coverage of the whole diff, lives here as receiver-side diligence, not platform machinery.</p><p><strong>The receipt is declared, not enforced.</strong> Nothing forces the receiver to send it, or to send it honestly. The mitigations are modest: receipts require per-item evidence (lintable for presence at the point the platform records them), and a spot-audit surface shows the owner the first receipts under any new contract.</p><p><strong>Some collaboration units can’t carry a contract yet.</strong> Team-persona seats and room assistants are synthetic — no underlying agent to hang a contract on — so the platform’s main cross-team collaboration unit ships uncontracted at first. Attaching contracts to it is designed, not forgotten.</p><p><strong>Only the group-room venue exists.</strong> Workflows, one-on-one chat, and scheduled runs are pending lanes, reachable without reworking the contract store or the mark — with the one honest exception that scheduled runs need new enforcement plumbing.</p><p><strong>Cold contracts are generic.</strong> The revision loop is the cure.</p><p>We’re shipping in phases: contracts and rooms first with nothing enforced, then enforcement and hardening, then the learning loop and the other venues. The bar to clear before enforcement is concrete — the worked example above has to run end-to-end in a real room, and the shadow logs have to report a real conformance rate. And a couple of questions are genuinely still open: whether to seed built-in templates for common roles (the deploy README, rewritten as the DevOps agent’s contract) or generate every contract cold; and whether a contract should follow an agent when it’s recruited into a team or cloned into a template.</p><h2>How we got here (and why not pair protocols)</h2><p>It’s worth retracing the wrong turn, because the wrong turn is where the design got its spine.</p><p>Our first draft modeled protocols as pair-level objects: one protocol per (producer, consumer), a handoff document as the medium, compiled into skills installed on <em>both</em> sides, a database ledger the agents wrote themselves, dual-owner approval. It felt symmetric and principled. Then we ran it through an adversarial review against the actual codebase, and it did not survive. The enforcement seam couldn’t even <em>see</em> the handoff document — the transport carried only free text. Ledger writes were forgeable, because the per-run tokens carried no durable identity and a race could cross tenants. And single-owner approval would have installed an LLM-drafted, executable skill into the <em>other</em> party’s workspace: a textbook privilege escalation, made worse by the fact that the counterparty could influence the skill’s contents through shared transcripts.</p><p>Moving the contract to the receiver made roughly half of those problems disappear — not by cleverness, but for structural reasons. Contracts became data, sitting in the approver’s own workspace. Generation stopped needing transcripts. Agents stopped writing the ledger at all.</p><p>Two things kept us honest. The corpus showed that the <em>durable record</em>, not the pair-ness, was the load-bearing property — which is why the platform-written task ledger came back into the design. And the shared-channel problem (a contract gate would bounce ordinary human speech) had no mechanical fix at all; it was solved only by the second idea, the room assistant as intake adapter. What survived became the accepted-limits list above.</p><p>One principle held through every version: <strong>directionality</strong>. A contract governs A→B. The receipt is B’s acknowledgment, not a reverse channel. A genuinely two-way collaboration is just two contracts — which is exactly why, at the end of the worked example, QA’s bug receipt becomes the input to a fresh task against the <em>engineer’s</em> contract.</p><p><em>If there’s one thing to take from this: we didn’t arrive at this design by being clever about multi-agent systems. We arrived at it by noticing that our agents had already built something out of Markdown and Git, and asking what it actually was. It was a function signature. We haven’t proven the rest generalizes — most of it isn’t built past a single venue. But the accident convinced us the shape is right, and that’s what we’re building on.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d40cda7714c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A2A Protocol + AWS AgentCore Registry: A Complete Tutorial]]></title>
            <link>https://medium.com/@gor17v/a2a-protocol-aws-agentcore-registry-a-complete-tutorial-3a4f29725a74?source=rss-5e1c7d0dd674------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a4f29725a74</guid>
            <dc:creator><![CDATA[Gorv]]></dc:creator>
            <pubDate>Thu, 16 Apr 2026 00:23:35 GMT</pubDate>
            <atom:updated>2026-04-16T00:23:35.936Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>A one-stop guide covering protocol fundamentals, hands-on product walkthrough, and an end-to-end demo @ <a href="https://github.com/vorale/aws-agentcore-registry-tutorial/blob/main/README_EN.md">https://github.com/vorale/aws-agentcore-registry-tutorial/blob/main/README_EN.md</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*acTe4wg5UTSl1mRv" /><figcaption>Photo by <a href="https://unsplash.com/@mrpeker?utm_source=medium&amp;utm_medium=referral">Mehmet Ali Peker</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h2>Table of Contents</h2><ol><li><a href="https://markdown2medium.vercel.app/#1-background-what-is-the-a2a-protocol">Background: What is the A2A Protocol</a></li><li><a href="https://markdown2medium.vercel.app/#2-core-concepts-agent-card--agent-discovery">Core Concepts: Agent Card &amp; Agent Discovery</a></li><li><a href="https://markdown2medium.vercel.app/#3-product-overview-aws-agentcore-registry">Product Overview: AWS AgentCore Registry</a></li><li><a href="https://markdown2medium.vercel.app/#4-console-walkthrough">Console Walkthrough</a></li><li><a href="https://markdown2medium.vercel.app/#5-end-to-end-demo--walkthrough">End-to-End Demo &amp; Walkthrough</a></li><li><a href="https://markdown2medium.vercel.app/#6-enterprise-value">Enterprise Value</a></li><li><a href="https://markdown2medium.vercel.app/#7-faq">FAQ</a></li></ol><h2>1. Background: What is the A2A Protocol</h2><h3>1.1 Protocol Positioning</h3><p>Agent2Agent (A2A) is an open protocol initiated by Google and now donated to the Linux Foundation. It addresses one core problem: <strong>how AI Agents built with different frameworks and by different vendors can communicate and collaborate</strong>.</p><p>A2A was announced at Google Cloud Next ’25 in April 2025 and is now supported by over 150 organizations, including AWS, Microsoft, Salesforce, and SAP.</p><h3>1.2 A2A vs. MCP</h3><p>The two are complementary: an Agent uses MCP to connect to its own tools, and A2A to collaborate with other Agents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y3KDzP8TkYXbLdb2G7Rw4Q.png" /></figure><h3>1.3 A2A is Not Just Agent-to-Agent</h3><p>Despite the name “Agent2Agent”, the protocol explicitly supports human participation:</p><ul><li><strong>Official architecture</strong>: User ↔ Client Agent ↔ A2A ↔ Remote Agent</li><li><strong>Design principle</strong>: “Natively support long-running tasks and human-in-the-loop interactions”</li><li><strong>Authorization mechanism</strong>: The TASK_STATE_AUTH_REQUIRED state allows an Agent to pause and wait for human approval</li></ul><p>Humans don’t “speak” A2A directly (just as they don’t speak HTTP directly) but interact through client applications or Client Agents.</p><h3>1.4 Core Technology Stack</h3><ul><li>Transport: HTTP / gRPC</li><li>Message format: JSON-RPC 2.0</li><li>Real-time communication: Server-Sent Events (SSE)</li><li>Async notifications: Push Notifications (Webhook)</li></ul><h2>2. Core Concepts: Agent Card &amp; Agent Discovery</h2><h3>2.1 Agent Card: An Agent’s “Digital Business Card”</h3><p>An Agent Card is a JSON document describing all metadata about an Agent:</p><pre>{<br>    &quot;name&quot;: &quot;Travel Planning Agent&quot;,<br>    &quot;description&quot;: &quot;Travel planning Agent providing flight search, hotel search, and itinerary planning&quot;,<br>    &quot;url&quot;: &quot;https://bedrock-agentcore.us-west-2.amazonaws.com/runtimes/.../invocations/&quot;,<br>    &quot;version&quot;: &quot;1.0.0&quot;,<br>    &quot;protocolVersion&quot;: &quot;0.3&quot;,<br>    &quot;capabilities&quot;: {<br>        &quot;streaming&quot;: true,<br>        &quot;pushNotifications&quot;: false<br>    },<br>    &quot;defaultInputModes&quot;: [&quot;text/plain&quot;],<br>    &quot;defaultOutputModes&quot;: [&quot;text/plain&quot;],<br>    &quot;skills&quot;: [<br>        {<br>            &quot;id&quot;: &quot;flight-search&quot;,<br>            &quot;name&quot;: &quot;Flight Search&quot;,<br>            &quot;description&quot;: &quot;Search available flights between cities&quot;,<br>            &quot;tags&quot;: [&quot;travel&quot;, &quot;flight&quot;, &quot;booking&quot;]<br>        },<br>        {<br>            &quot;id&quot;: &quot;hotel-search&quot;,<br>            &quot;name&quot;: &quot;Hotel Search&quot;,<br>            &quot;description&quot;: &quot;Search available hotels in a city&quot;,<br>            &quot;tags&quot;: [&quot;travel&quot;, &quot;hotel&quot;, &quot;accommodation&quot;]<br>        }<br>    ]<br>}</pre><p>Key fields:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pczBxmo6XG1uRzIe-2jONA.png" /></figure><h3>2.2 Three Agent Discovery Strategies</h3><p>The A2A protocol defines three ways to discover Agent Cards:</p><h4>Strategy 1: Well-Known URI</h4><p>Agents host their Agent Card at <a href="https://{domain}/.well-known/agent-card.json.">https://{domain}/.well-known/agent-card.json.</a></p><ul><li>Use case: Public Agents, intra-domain discovery</li><li>Pros: Simple, standardized, supports automatic discovery</li><li>Follows RFC 8615</li></ul><h4>Strategy 2: Curated Registries</h4><p>A centralized registry manages Agent Cards; clients query by criteria.</p><ul><li>Use case: Enterprise environments, Agent marketplaces</li><li>Pros: Centralized governance, capability-based search, access control</li><li><strong>AWS AgentCore Registry is an enterprise-grade implementation of this strategy</strong></li></ul><h4>Strategy 3: Direct Configuration</h4><p>Hardcoded values, configuration files, environment variables.</p><ul><li>Use case: Tightly coupled systems, development/testing</li><li>Cons: Inflexible, changes require reconfiguration</li></ul><h2>3. Product Overview: AWS AgentCore Registry</h2><h3>3.1 What is it</h3><p>AWS Agent Registry is a component of Amazon Bedrock AgentCore, entering Preview in April 2026. It is a private, governed catalog and discovery layer for registering, discovering, and reusing Agents, tools, MCP Servers, and Agent skills within an enterprise.</p><h3>3.2 Core Capabilities</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*95-NgRuGJEiM2_UjDGq7Eg.png" /></figure><h3>3.3 Record Types</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pyl5dyTVOntMO7j-BkcGyA.png" /></figure><h3>3.4 Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*Z92onI3vJaiL8EvA2DJnRA.png" /></figure><h2>4. Console Walkthrough</h2><p>The following walkthrough uses actual AWS Console screenshots to demonstrate creating a Registry and registering Records.</p><h3>Step 1: Create a Registry</h3><p>Navigate to the Amazon Bedrock AgentCore console → <strong>Registry (Preview)</strong> in the left navigation → Create.</p><p>Fill in:</p><ul><li><strong>Name</strong>: e.g. registry_o11cg (starts with letter/number, max 64 characters)</li><li><strong>Description</strong>: Optional</li><li><strong>Search API Authorization</strong>: IAM permissions (default) or JSON Web Tokens (JWT)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*82EU2cpe2MDpNAudoI3EnQ.png" /></figure><h3>Step 2: View Registry Details</h3><p>After creation, you can see the Registry’s status, ARN, approval configuration, and more. The page provides <strong>Manage records</strong> and <strong>Search records</strong> tabs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwo3iCEFBqf5jvSvSonfvA.png" /></figure><h3>Step 3: Create an MCP Record</h3><p>Click <strong>Create record</strong> → Select <strong>MCP</strong> type → Fill in the MCP Server Definition (JSON format). The right panel shows the official schema for reference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oEajjoNbnZlixujaumkunQ.png" /></figure><h3>Step 4: Create an A2A Agent Record</h3><p>Select <strong>Agent</strong> type → Fill in the A2A Agent Card (JSON format). The right panel shows the official A2A Agent Card schema.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ylyzaFB5kZezfKwCVvKXOg.png" /></figure><h2>5. End-to-End Demo &amp; Walkthrough</h2><p>This is the core section of the tutorial. We built a <strong>real, running</strong> A2A Agent, deployed it to AgentCore Runtime, registered it with the Registry, then discovered and invoked it through search, completing the full loop.</p><h3>5.1 Architecture Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IdiVQOSnXWo2kajGnp-IbA.png" /></figure><h3>5.2 Prerequisites: Deploy a Real A2A Agent</h3><p>We wrote a travel planning Agent using the Strands Agents framework (e2e-demo/agent/main.py) with three tools:</p><pre>@tool<br>def search_flights(origin: str, destination: str, date: str) -&gt; str:<br>    &quot;&quot;&quot;Search available flights between two cities on a given date.&quot;&quot;&quot;<br>    # Simulated flight data<br>    ...</pre><pre>@tool<br>def search_hotels(city: str, checkin: str, checkout: str) -&gt; str:<br>    &quot;&quot;&quot;Search available hotels in a city for given dates.&quot;&quot;&quot;<br>    # Simulated hotel data<br>    ...</pre><pre>@tool<br>def plan_itinerary(origin: str, destination: str, start_date: str, end_date: str) -&gt; str:<br>    &quot;&quot;&quot;Create a travel itinerary combining flights and hotels.&quot;&quot;&quot;<br>    ...</pre><pre>agent = Agent(<br>    model=&quot;anthropic.claude-3-haiku-20240307-v1:0&quot;,<br>    system_prompt=&quot;You are a travel planning assistant...&quot;,<br>    tools=[search_flights, search_hotels, plan_itinerary],<br>)</pre><pre>if __name__ == &quot;__main__&quot;:<br>    serve_a2a(StrandsA2AExecutor(agent))</pre><p>Deploy to the cloud via AgentCore CLI:</p><pre># Configure the Agent (A2A protocol, port 9000)<br>agentcore configure \<br>  --name travel_agent \<br>  --entrypoint e2e-demo/agent/main.py \<br>  --protocol A2A \<br>  --region us-west-2 \<br>  --non-interactive</pre><pre># Deploy to AgentCore Runtime (CodeBuild builds an ARM64 container)<br>agentcore launch</pre><p>After deployment, you receive an Agent ARN:</p><pre>arn:aws:bedrock-agentcore:us-west-2:123456789012:runtime/travel_agent-EXAMPLE123</pre><h3>5.3 Demo Step 1: Verify the Agent is Deployed and Running</h3><p>First, confirm the Agent is live by sending a flight search request via the A2A protocol (JSON-RPC 2.0).</p><p><strong>A2A request sent:</strong></p><pre>{<br>    &quot;jsonrpc&quot;: &quot;2.0&quot;,<br>    &quot;id&quot;: &quot;req-001&quot;,<br>    &quot;method&quot;: &quot;message/send&quot;,<br>    &quot;params&quot;: {<br>        &quot;message&quot;: {<br>            &quot;role&quot;: &quot;user&quot;,<br>            &quot;parts&quot;: [{&quot;kind&quot;: &quot;text&quot;, &quot;text&quot;: &quot;Search flights from Beijing to Tokyo on 2026-05-01&quot;}],<br>            &quot;messageId&quot;: &quot;a07dca54-...&quot;<br>        }<br>    }<br>}</pre><p><strong>Execution log:</strong></p><pre>============================================================<br>  Step 1: Verify the Deployed A2A Agent<br>============================================================</pre><pre>Agent ARN: arn:aws:bedrock-agentcore:us-west-2:123456789012:runtime/travel_agent-EXAMPLE123<br>Sending test request: &#39;Search flights from Beijing to Tokyo on 2026-05-01&#39;</pre><pre>✅ Agent response:<br>The search results show two available flight options from Beijing to Tokyo on<br>the requested date of 2026-05-01. The first is an Air China flight (CA540)<br>departing at 08:30 and arriving at 12:45, with a price of $580 in economy class.<br>The second is a China Eastern flight (MU817) departing at 14:00 and arriving at<br>18:15, with a price of $520 in economy class.</pre><p><strong>Analysis:</strong> Upon receiving the natural language request, the Agent automatically invoked the search_flights tool (origin=&quot;Beijing&quot;, destination=&quot;Tokyo&quot;, date=&quot;2026-05-01&quot;), retrieved simulated flight data, and Claude Haiku generated a structured natural language response. The entire process was completed via the A2A protocol&#39;s message/send method.</p><h3>5.4 Demo Step 2: Register the Agent with the Registry</h3><p>After verifying the Agent works, we build an Agent Card and register it with the Registry. The key point is that <strong>the </strong><strong>url in the Agent Card points to the real AgentCore Runtime endpoint</strong>, not a placeholder address.</p><p><strong>Core code:</strong></p><pre>agent_card = {<br>    &quot;name&quot;: &quot;Travel Planning Agent&quot;,<br>    &quot;description&quot;: &quot;Travel planning Agent - provides flight search, hotel search, and itinerary planning&quot;,<br>    &quot;url&quot;: &quot;https://bedrock-agentcore.us-west-2.amazonaws.com/runtimes/.../invocations/&quot;,<br>    &quot;version&quot;: &quot;1.0.0&quot;,<br>    &quot;protocolVersion&quot;: &quot;0.3&quot;,<br>    &quot;capabilities&quot;: {&quot;streaming&quot;: True, &quot;pushNotifications&quot;: False},<br>    &quot;skills&quot;: [<br>        {&quot;id&quot;: &quot;flight-search&quot;, &quot;name&quot;: &quot;Flight Search&quot;, &quot;tags&quot;: [&quot;travel&quot;, &quot;flight&quot;]},<br>        {&quot;id&quot;: &quot;hotel-search&quot;, &quot;name&quot;: &quot;Hotel Search&quot;, &quot;tags&quot;: [&quot;travel&quot;, &quot;hotel&quot;]},<br>        {&quot;id&quot;: &quot;itinerary-planner&quot;, &quot;name&quot;: &quot;Itinerary Planner&quot;, &quot;tags&quot;: [&quot;travel&quot;, &quot;planning&quot;]},<br>    ],<br>}</pre><pre># Register with the Registry<br>control.create_registry_record(<br>    registryId=REGISTRY_ID,<br>    name=&quot;travel-planning-agent-live&quot;,<br>    descriptorType=&quot;A2A&quot;,<br>    descriptors={&quot;a2a&quot;: {&quot;agentCard&quot;: {&quot;inlineContent&quot;: json.dumps(agent_card)}}},<br>)</pre><pre># Approval workflow<br>control.submit_registry_record_for_approval(...)<br>control.update_registry_record_status(..., status=&quot;APPROVED&quot;)</pre><p><strong>Execution log:</strong></p><pre>============================================================<br>  Step 2: Register Agent with Registry (with real endpoint)<br>============================================================</pre><pre>Registry ID: REGISTRY_ID_EXAMPLE<br>Agent Card URL: <a href="https://bedrock-agentcore.us-west-2.amazonaws.com/runtimes/arn:aws:bedrock-">https://bedrock-agentcore.us-west-2.amazonaws.com/runtimes/arn:aws:bedrock-</a><br>agentcore:us-west-2:123456789012:runtime/travel_agent-EXAMPLE123/invocations/<br>Skills: Flight Search, Hotel Search, Itinerary Planner</pre><pre>Record created: RECORD_ID_EXAMPLE<br>Waiting for Record to be ready...<br>Record status: DRAFT<br>Approved ✅</pre><p><strong>Analysis:</strong> After creation, the Record starts in DRAFT status. It becomes discoverable after a two-step approval process: submit_for_approval → update_status(APPROVED). In production, this approval workflow can be managed by platform administrators to ensure only reviewed Agents are visible to the organization.</p><h3>5.5 Demo Step 3: Discover the Agent via Registry Search</h3><p>After registration and approval, we wait for the search index to take effect (~60–90 seconds in practice), then perform semantic searches with different query terms.</p><p><strong>Execution log:</strong></p><pre>============================================================<br>  Step 3: Discover Agent via Registry Search<br>============================================================</pre><pre>Waiting for search index to take effect (90s)...</pre><pre>Search: &quot;travel planning&quot;<br>  ✅ Found: [A2A] travel-planning-agent<br>  ✅ Found: [A2A] travel-planning-agent-live</pre><pre>Search: &quot;flight search&quot;<br>  ✅ Found: [A2A] travel-planning-agent-live<br>  ✅ Found: [A2A] travel-planning-agent</pre><pre>Search: &quot;hotel booking&quot;<br>  ✅ Found: [A2A] travel-planning-agent-live<br>  ✅ Found: [A2A] travel-planning-agent</pre><p><strong>Analysis:</strong> The Registry uses hybrid search (keyword + semantic matching). Note that searching for “hotel booking” still finds our Agent, even though the Agent Card uses the tag “accommodation” rather than “booking”. This is the value of semantic search: it understands conceptual similarity, not just literal matches.</p><p>Two records appear in the results:</p><ul><li>travel-planning-agent: A metadata-only record created earlier by demo.py (url points to example.com)</li><li>travel-planning-agent-live: The real record created in this demo (url points to AgentCore Runtime)</li></ul><h3>5.6 Demo Step 4: Retrieve Agent Card from Registry → Invoke Agent (End-to-End Loop)</h3><p>This is the highlight of the entire demo: retrieve the Agent Card from the Registry, parse its information, and invoke the Agent.</p><p><strong>Execution log:</strong></p><pre>============================================================<br>  Step 4: Retrieve Agent Card from Registry → Invoke Agent (End-to-End Loop)<br>============================================================</pre><pre>Retrieved Agent Card from Registry:<br>  Name: Travel Planning Agent<br>  URL: <a href="https://bedrock-agentcore.us-west-2.amazonaws.com/runtimes/arn:aws:bedrock-">https://bedrock-agentcore.us-west-2.amazonaws.com/runtimes/arn:aws:bedrock-</a><br>       agentcore:us-west-2:123456789012:runtime/travel_agent-EXAMPLE123/invocations/<br>  Skills: [&#39;flight-search&#39;, &#39;hotel-search&#39;, &#39;itinerary-planner&#39;]</pre><pre>Using discovered Agent to search hotels...<br>Request: &#39;Search hotels in Tokyo from 2026-05-01 to 2026-05-03&#39;</pre><pre>✅ Agent response:<br>Based on the search, here are the top hotel options in Tokyo for your requested dates:</pre><pre>- Tokyo Grand Hotel (4.5/5 rating) at $150 per night, located in the city center<br>- Tokyo Business Inn (4.0/5 rating) at $95 per night, located near the train station</pre><pre>The Tokyo Grand Hotel is a higher-end option in a central location, while the Tokyo<br>Business Inn is a more budget-friendly choice closer to transportation. Let me know<br>if you need any other details or have a preference on which hotel to book!</pre><p><strong>Analysis:</strong> The complete loop is achieved:</p><ol><li>Retrieve the Record from the Registry → Parse the Agent Card JSON</li><li>Read name, url, skills, and other information from the Agent Card</li><li>Send an A2A request to the Agent based on the Agent Card information</li><li>The Agent invokes the search_hotels tool and returns hotel search results</li></ol><p>In a real multi-Agent system, a Client Agent would:</p><ul><li>Search the Registry to find an Agent capable of handling “hotel booking”</li><li>Parse the Agent Card to confirm supported input/output formats and authentication methods</li><li>Establish an A2A connection via the url in the Agent Card</li><li>Send JSON-RPC requests and process responses</li></ul><h3>5.7 Demo Summary</h3><pre>============================================================<br>  Demo Complete ✅<br>============================================================</pre><pre>End-to-end flow verified successfully!</pre><pre>Flow recap:<br>  1. ✅ A2A Agent deployed to AgentCore Runtime (running live)<br>  2. ✅ Agent invocable via A2A protocol (JSON-RPC)<br>  3. ✅ Agent Card registered in Registry (with real endpoint)<br>  4. ✅ Agent discovered via Registry semantic search<br>  5. ✅ Agent invoked based on discovery results</pre><pre>Agent ARN: arn:aws:bedrock-agentcore:us-west-2:123456789012:runtime/travel_agent-EXAMPLE123<br>Registry ID: REGISTRY_ID_EXAMPLE<br>Record ID: RECORD_ID_EXAMPLE</pre><h2>6. Enterprise Value</h2><h3>6.1 Solving Agent Sprawl</h3><p>When an enterprise has hundreds or thousands of Agents, there is no way to know which Agents already exist, who owns them, or whether they are compliant without a registry. The Registry provides a single source of truth. Southwest Airlines is using AWS Agent Registry to build an enterprise-grade Agent catalog and governance framework.</p><h3>6.2 Avoiding Duplicate Work</h3><p>Developers search the Registry first: reuse existing capabilities directly, and only build and register new ones when needed. Zuora’s 50 Agents span sales, finance, product, and engineering teams, using the Registry for cross-team discovery and reuse.</p><h3>6.3 Governance &amp; Compliance</h3><ul><li>IAM permissions control who can publish/consume</li><li>Approval workflows ensure only reviewed Agents are visible to the organization</li><li>Version management tracks change history</li><li>Custom metadata records team ownership, compliance status, and deployment environment</li></ul><h3>6.4 Cross-Framework Interoperability</h3><p>The A2A protocol is framework-agnostic (LangGraph, CrewAI, Strands, Semantic Kernel all work). The Registry enables Agents built by different teams with different tech stacks to be discovered and invoked uniformly.</p><h3>6.5 Security</h3><ul><li>Supports Authenticated Extended Agent Cards, where sensitive information is only visible to authenticated users</li><li>The Registry can return different levels of Agent Card based on client identity (Selective Disclosure)</li><li>Supports both IAM and JWT authentication methods</li></ul><h2>7. FAQ</h2><h3>Q: Does the Registry just store metadata, or can it actually run Agents?</h3><p>The Registry is purely a metadata catalog that only stores descriptive information. Actual Agent execution is handled by AgentCore Runtime. This tutorial’s demo uses both: Runtime runs the Agent, and the Registry registers and discovers it.</p><h3>Q: How long does it take for the search index to take effect?</h3><p>Approximately 60–90 seconds in practice. After a Record is approved, you need to wait for the index to be built before it becomes searchable.</p><h3>Q: Can I register Agents that don’t run on AWS?</h3><p>Yes. The Registry only stores metadata. The url in the Agent Card can point to any reachable endpoint, including Agents deployed on other cloud platforms or on-premises.</p><h3>Q: Can A2A and MCP be used together?</h3><p>Yes, and it’s recommended. An Agent can use MCP to connect to its own tools and data sources while collaborating with other Agents via A2A. The Registry supports registering both MCP Servers and A2A Agents.</p><h3>Q: How do I clean up the Agent after the demo?</h3><pre># Clean up AgentCore Runtime resources<br>agentcore destroy</pre><pre># Clean up Registry records (via API)<br>aws bedrock-agentcore-control delete-registry-record \<br>  --registry-id REGISTRY_ID_EXAMPLE \<br>  --record-id RECORD_ID_EXAMPLE</pre><pre># Clean up the Registry<br>aws bedrock-agentcore-control delete-registry \<br>  --registry-id REGISTRY_ID_EXAMPLE</pre><h2>Appendix: Project File Structure</h2><pre>agentcore-registry-test/<br>├── README.md                            ← Tutorial (Chinese)<br>├── README_EN.md                         ← Tutorial (English)<br>├── agent-card.json                      ← Agent Card example<br>├── .gitignore<br>├── images/<br>│   ├── console-create-registry.png      ← Console screenshot: Create Registry<br>│   ├── console-registry-detail.png      ← Console screenshot: Registry Details<br>│   ├── console-create-mcp-record.png    ← Console screenshot: Create MCP Record<br>│   └── console-create-a2a-record.png    ← Console screenshot: Create A2A Record<br>├── e2e-demo/<br>│   ├── agent/<br>│   │   ├── main.py                      ← A2A Agent code (3 tools)<br>│   │   └── requirements.txt             ← Python dependencies<br>│   └── full_demo.py                     ← End-to-end demo script<br>└── archive/                             ← Archived files (development artifacts)<br>    ├── test.py                          ← Original test script<br>    ├── demo.py                          ← Registry metadata demo<br>    ├── invoke_test.py                   ← Agent invocation debug script<br>    ├── official-card.json               ← Full A2A Agent Card JSON Schema<br>    ├── a2a-agent-discovery-report.md    ← A2A protocol analysis report (merged into README)<br>    └── aws-agent-registry-guide.md      ← Console walkthrough guide (merged into README)</pre><blockquote><strong>Sources:</strong> <a href="https://a2a-protocol.org/latest/">A2A Protocol official documentation</a>, <a href="https://a2a-protocol.org/latest/specification/">A2A Protocol specification</a>, <a href="https://aws.amazon.com/blogs/machine-learning/the-future-of-managing-agents-at-scale-aws-agent-registry-now-in-preview/">AWS Agent Registry blog</a>, <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-a2a.html">AgentCore Runtime A2A documentation</a>. Content has been reorganized and rewritten.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a4f29725a74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The AI That Rewrites Itself: Why OpenClaw’s Self-Evolving Architecture Changes Everything]]></title>
            <link>https://medium.com/@gor17v/the-ai-that-rewrites-itself-why-openclaws-self-evolving-architecture-changes-everything-e437567443ba?source=rss-5e1c7d0dd674------2</link>
            <guid isPermaLink="false">https://medium.com/p/e437567443ba</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[openclaw]]></category>
            <category><![CDATA[claude-code]]></category>
            <dc:creator><![CDATA[Gorv]]></dc:creator>
            <pubDate>Mon, 02 Mar 2026 16:26:26 GMT</pubDate>
            <atom:updated>2026-03-02T16:27:35.048Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>It’s not just another chatbot. It’s software that builds itself — and it’s already the 5th most-starred repo on GitHub.</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9owbwIcqqZfTDtnmX1Hfrw.jpeg" /></figure><p>There’s a moment in every technology cycle where something shifts from “interesting experiment” to “this changes the game.” For AI agents, that moment has a name: <strong>OpenClaw</strong>.</p><p>Since its debut in November 2025, OpenClaw has rocketed from 9,000 to over 100,000 GitHub stars. Token Security reports 22% of their customers already have employees running it. And the community around it is growing faster than anything since the early days of Docker.</p><p>But the hype isn’t the story. The architecture is.</p><h3>A Quick Primer: What OpenClaw Actually Is</h3><p>OpenClaw is a free, open-source, self-hosted AI agent framework created by Peter Steinberger (the founder of PSPDFKit). Unlike a chatbot that answers questions, OpenClaw is an autonomous agent that <em>acts</em>. It runs on your own hardware and connects to the messaging platforms you already live in — WhatsApp, Telegram, Slack, Discord, Signal, iMessage, Teams — turning them into a command surface for an AI that can execute real tasks.</p><p>Think: run scripts, manage files, browse the web, send emails, control APIs, and maintain persistent memory across sessions.</p><p>The tagline that keeps surfacing: it turns <strong>“chatbots that respond” into “agents that act.”</strong></p><p>A few things make it technically compelling right out of the gate:</p><ul><li><strong>Self-hosted and local-first</strong> — your data never leaves your infrastructure.</li><li><strong>Model-agnostic</strong> — plug in GPT, Claude, Gemini, DeepSeek, Llama, or any local model.</li><li><strong>Multi-channel gateway</strong> — one agent process bridges all your messaging platforms simultaneously.</li><li><strong>Persistent memory</strong> — it remembers context across conversations and sessions.</li><li><strong>Full system access</strong> — it operates at the OS level: code execution, file management, browser control, API calls.</li><li><strong>Runs on minimal hardware</strong> — from a Mac Mini to a Raspberry Pi.</li></ul><p>All of this is impressive. But none of it is the reason I’m writing this post.</p><h3>The Real Story: Software That Writes Itself</h3><p>Here’s where OpenClaw breaks away from everything that came before it.</p><p>Before OpenClaw, if you wanted an AI to do something in the real world — send an email, update a Jira ticket, pull data from a website — a developer had to write the integration code. OpenClaw flips that entirely. It gives the LLM itself the ability to <strong>write, save, and execute code</strong>. The LLM becomes the developer. You just talk to it in natural language.</p><p>This is the paradigm shift. Software no longer has to be written by a programmer.</p><p>One documented example: a user told OpenClaw to <em>“build me a CRM that extracts data from Gmail, Google Calendar, and Fathom, filters out marketing emails and cold sales pitches, and only keeps valuable conversations and contacts.”</em> No code was written by the user. It was up and running in 30 minutes.</p><h3>Skills: The Simplest Architecture That Could Possibly Work</h3><p>OpenClaw’s capabilities are defined by “skills” — and this is where the design becomes genuinely revolutionary.</p><p>A skill is nothing more than a folder containing a SKILL.md file. No compiled code. No binary plugins. No SDK to learn. Just a Markdown file with some YAML metadata and plain-English instructions:</p><pre>---<br>name: daily-summary<br>description: Generate a daily summary of tasks, meetings, and key updates.<br>---</pre><pre># Daily Summary Skill</pre><pre>## When to use<br>When the user asks for a daily briefing, morning summary, or end-of-day recap.</pre><pre>## How to execute<br>1. Check the user&#39;s calendar for today&#39;s events<br>2. Review any pending tasks or reminders<br>3. Scan recent messages for action items<br>4. Format as a concise briefing with priorities highlighted</pre><p>That’s it. The AI reads these instructions and follows them — the same way you’d write instructions for a human colleague. OpenClaw ships with 50+ built-in skills, and the community marketplace (ClawHub) hosts 700+ more.</p><p>But here’s the breakthrough: <strong>since the AI can read and write files, and since skills are just files, the AI can write new skills for itself.</strong></p><p>When you ask OpenClaw to do something it doesn’t have a skill for, it doesn’t just say “I can’t do that.” It can:</p><ol><li>Examine the existing skill format (by reading any SKILL.md as a template)</li><li>Research the required API or tool</li><li>Write a new SKILL.md with instructions</li><li>Optionally write supporting scripts</li><li>Place the skill in the correct directory</li><li><strong>Start using it immediately</strong></li></ol><p>Real examples from the community:</p><ul><li>A user asked his agent to integrate with his university’s course management system. The agent wrote the skill autonomously and began using it on its own.</li><li>Another set up OpenClaw in Discord and found that <em>“the fact that Claw can just keep building upon itself just by talking to it is crazy.”</em></li><li>One user had his agent write custom meditation skills with text-to-speech integration and generated ambient audio.</li></ul><p>Peter Steinberger calls this “self-rewriting software” and described it in his Lex Fridman interview as the most important aspect of the entire project.</p><p>The implications are profound: traditional software has a fixed set of capabilities defined at compile time. SaaS products add features on their product roadmap’s schedule, not yours. OpenClaw’s capabilities are bounded only by what the underlying AI model can reason about — and those models are getting better every month.</p><h3>How It Stays Fast: Progressive Disclosure</h3><p>An obvious problem: if you install 50 skills and each has 500+ words of instructions, you’d inject 25,000+ tokens into every conversation. OpenClaw solves this with a clever three-tier loading pattern:</p><p>Tier What’s Loaded Token Cost <strong>Tier 1</strong> — Name tags only Name + one-line description per skill ~30 tokens/skill <strong>Tier 2</strong> — Full SKILL.md Complete instructions for the relevant skill 200–500 tokens <strong>Tier 3</strong> — Reference files API docs, schemas, complex scripts As needed</p><p>At session start, 50 skills cost roughly 1,500 tokens. The full instructions only load when the agent determines a skill is relevant. Deep reference material loads only when truly needed.</p><p>The result: installing more skills has almost zero marginal cost until you actually use them. This is what makes the self-evolving ecosystem viable at scale.</p><h3>The End of “Learn to Code” as a Prerequisite</h3><p>This is where the story gets bigger than developer tooling.</p><p>OpenClaw’s “PI Agent” — a small piece of software that lets the LLM create, edit, run, and delete files on a system — means the LLM generates code, saves it, and executes it. Every interaction between any two software systems in the world happens through code. Give an LLM the power to write and execute code, and it can theoretically integrate with <em>anything</em>. The user never sees or touches the code.</p><p>Era Who builds the software How Traditional Professional developers Write code in programming languages Low-code / No-code Semi-technical users Drag-and-drop visual builders <strong>OpenClaw</strong> <strong>Anyone</strong> <strong>Describe what you want in natural language</strong></p><p>This isn’t theoretical. It’s already happening:</p><ul><li><strong>Marketers</strong> are using OpenClaw as a real AI marketing assistant — content, research, daily workflows — without coding, scripts, or developer knowledge. A dedicated non-technical training course (“OpenClaw for Marketers”) has already launched.</li><li><strong>Content creators</strong> use it for trend monitoring, competitor video summarization, script drafting, and automated cross-platform publishing — scaling from 1–2 to 5–10 pieces of content daily.</li><li><strong>Product managers</strong> build “Market Insights Ghost” workflows that autonomously monitor competitors, summarize industry news, and draft reports.</li><li><strong>Individuals</strong> build personal CRMs, automate email triage, manage calendars, and create custom workflows — all through conversation.</li></ul><p>The barrier to creating software has dropped from <em>“learn to code”</em> to <em>“describe what you want.”</em></p><h3>The Compounding Flywheel: Why It Gets Better Over Time</h3><p>This is the part most people miss. OpenClaw doesn’t just do things — it <em>accumulates</em>.</p><p><strong>Memory that learns.</strong> OpenClaw’s memory lives in plain Markdown files that both you and the agent can read and edit:</p><ul><li>SOUL.md — the agent&#39;s personality and behavioral guidelines</li><li>USER.md — your preferences and personal context</li><li>MEMORY.md — long-term curated facts</li><li>memory/YYYY-MM-DD.md — daily journals of what happened in each session</li></ul><p>After two weeks of use, the agent knows your patterns, preferences, and projects. It remembers decisions, deadlines, and context. Unlike a stateless chatbot that starts from zero every time, OpenClaw accumulates understanding.</p><p><strong>Multi-agent delegation.</strong> When tasks get complex, OpenClaw spawns sub-agents — background workers that handle tasks in parallel. Say <em>“research the latest Node.js release notes, compare our dependencies against the changelog, and draft a migration plan,”</em> and the orchestrator spawns specialized agents (one for research, one for code analysis) that work simultaneously, potentially using different LLM models optimized for each task.</p><p><strong>The flywheel effect:</strong></p><pre>You ask the agent to do something new<br>        ↓<br>It writes a skill to handle it<br>        ↓<br>That skill is now permanently available<br>        ↓<br>The agent&#39;s memory records how you like things done<br>        ↓<br>Next time, it&#39;s faster, more personalized, and more capable<br>        ↓<br>Over time, your agent becomes uniquely tailored to your life and work</pre><p>No other AI assistant architecture has this property. Traditional chatbots reset. SaaS tools have fixed features. <strong>OpenClaw grows with you.</strong></p><h3>Is It Truly Recursive Self-Improvement?</h3><p>Whether OpenClaw counts as “recursive self-improvement” depends on how strictly you define the term. It clearly supports self-modification at the agent layer — skills, config, memory — but it does not autonomously rewrite its own core algorithms or model weights. The self-improvement happens at the capability and knowledge layer, not at the intelligence layer.</p><p>That said, the practical effect for users is the same: an agent that gets meaningfully better at serving you over time, without anyone writing traditional code.</p><h3>A Word of Caution: Enterprise Readiness</h3><p>For all its power, OpenClaw was built for individual power users, not enterprise governance. If you’re thinking about bringing it into an organization, a few things need investment:</p><ul><li><strong>Identity &amp; access management</strong> — it runs with whatever credentials you give it; scoped service identities and least-privilege policies are on you.</li><li><strong>Sandboxing</strong> — execution is non-sandboxed by default; container isolation and network segmentation are needed.</li><li><strong>Audit logging</strong> — no built-in enterprise audit trail; you’ll need to build or integrate action logging.</li><li><strong>Shadow IT risk</strong> — with 22%+ of organizations already seeing employee-driven adoption, discovery tooling is essential.</li></ul><p>These are solvable problems, but they’re real. Treat OpenClaw like deploying a new category of infrastructure, not just installing a tool.</p><h3>The Bottom Line</h3><p>OpenClaw’s killer feature isn’t any single capability. It’s the architecture that allows the agent to <strong>extend its own capabilities through plain-language conversation</strong>.</p><p>Skills are just Markdown files. The AI can write Markdown files. Therefore, the AI can teach itself new abilities on demand.</p><p>For non-technical people, this collapses the entire software development process into a conversation. You don’t need to learn to code, hire a developer, or wait for a product roadmap. You describe what you want, and the agent builds it, remembers it, and improves on it over time.</p><p>This is why the developer community isn’t just endorsing OpenClaw as a product — they’re endorsing the architecture as a paradigm shift. It’s currently the 5th most-starred repository on GitHub globally, and every repository above it (Linux, Vue, React, Next) is at least a decade old.</p><p>The Wright Brothers’ first flight was 12 seconds. It wasn’t polished. But it proved the concept that changed everything after it.</p><p>OpenClaw is that 12-second flight for autonomous AI agents.</p><p><em>If you found this useful, follow me for more deep dives on AI infrastructure and the tools reshaping how we build software.</em></p><p><em>Sources: </em><a href="https://en.wikipedia.org/wiki/OpenClaw"><em>Wikipedia</em></a><em> · </em><a href="https://relsa.io/blog/software-that-rewrites-itself"><em>Relsa</em></a><em> · </em><a href="https://hellopm.co/openclaw-ai-agent-masterclass/"><em>HelloPM</em></a><em> · </em><a href="https://www.microsoft.com/en-us/security/blog/2026/02/19/running-openclaw-safely-identity-isolation-runtime-risk/"><em>Microsoft Security Blog</em></a><em> · </em><a href="https://kenhuangus.substack.com/p/openclaw-and-recursive-self-improvement"><em>Ken Huang / Substack</em></a><em> · </em><a href="https://aviatrix.ai/blog/openclaw-security-risks-enterprise"><em>Aviatrix</em></a></p><p><em>Content was rephrased for compliance with licensing restrictions. All sources are linked inline.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e437567443ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Parallel Tool Execution with Claude 4: Building High Performing Agents with Bedrock Converse API &…]]></title>
            <link>https://medium.com/@gor17v/parallel-tool-execution-with-claude-4-building-high-performing-agents-with-bedrock-converse-api-433da0efab60?source=rss-5e1c7d0dd674------2</link>
            <guid isPermaLink="false">https://medium.com/p/433da0efab60</guid>
            <category><![CDATA[high-performance]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[event-loop]]></category>
            <category><![CDATA[amazon-bedrock]]></category>
            <dc:creator><![CDATA[Gorv]]></dc:creator>
            <pubDate>Thu, 28 Aug 2025 02:32:34 GMT</pubDate>
            <atom:updated>2025-08-28T02:44:06.532Z</atom:updated>
            <content:encoded><![CDATA[<h3>Parallel Tool Execution with Claude 4: Building High Performing Agents with Bedrock Converse API &amp; Event Loop</h3><p><em>Unlocking the full potential of AI agents through concurrent tool execution and sophisticated event loops using direct Amazon Bedrock Converse API with Claude 4 models</em></p><h3>Introduction</h3><p>The evolution of AI agents has reached a pivotal moment with the introduction of parallel tool execution capabilities in Claude 4 models. This breakthrough technology transforms how AI systems interact with external tools, moving from sequential, time-consuming operations to lightning-fast concurrent execution within sophisticated agentic architectures.</p><p>But parallel tool execution isn’t just about faster individual requests — it’s the foundation for building advanced agentic systems that can maintain context, make decisions, execute complex multi-step workflows, and optimize resource usage through intelligent thread pool management across multiple iterations and state transitions.</p><p>In this comprehensive guide, we’ll explore how to implement an <strong>Agentic Event Loop using direct Amazon Bedrock Converse API</strong> that leverages parallel tool execution with reusable thread pools, state management, and adaptive decision making to create truly intelligent AI agents that can handle complex, multi-iteration workflows while maximizing performance and resource efficiency.</p><p>the code for this article is here: <a href="https://github.com/vorale/bedrock-parallel-tooluse">https://github.com/vorale/bedrock-parallel-tooluse</a>.</p><h3>What is Parallel Tool Execution in Agentic Systems?</h3><p>Parallel tool execution in agentic systems allows AI models to invoke multiple tools simultaneously while maintaining context and state across multiple reasoning cycles. When an agent needs to “analyze code quality, run tests, check dependencies, and generate documentation,” instead of executing these sequentially across multiple iterations, the agent can process all tools concurrently within its current state while preserving context for future decision making.</p><h3>Model Compatibility: The Claude 4 Advantage</h3><p><strong>Critical Note</strong>: Parallel tool execution is exclusively supported by the latest Claude models:</p><ul><li><strong>Claude 4 Sonnet</strong> (anthropic.claude-sonnet-4-20250514-v1:0)</li><li><strong>Claude 4 Opus</strong> (anthropic.claude-opus-4-20250514-v1:0)</li><li><strong>Claude 4.1 Opus</strong> (anthropic.claude-opus-4-1-20250805-v1:0)</li><li><strong>Claude 3.7 Sonnet</strong> (anthropic.claude-3-7-sonnet-20250219-v1:0)</li></ul><p>Earlier Claude models (3.5 Sonnet, 3 Haiku, etc.) do not support this capability and will execute tools sequentially. This makes upgrading to Claude 4 models essential for building high-performance agentic systems.</p><h3>Bedrock Agentic Event Loop Architecture</h3><h3>🏗️ System Architecture Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bi8ZuPhWHornUUnZSI-ldw.png" /></figure><h3>🔄 State Transition Flow</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NB2XFZrQ6218kMTxbT94Dw.png" /></figure><h3>⚡ Parallel Tool Execution Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*76Mn6VyBruveroXCz23q0A.png" /></figure><h3>The Advanced Bedrock Agentic Approach</h3><p>Our implementation uses direct Amazon Bedrock Converse API with sophisticated agent architecture, reusable thread pools, and comprehensive state management:</p><pre>class AgenticBedrockLoop:<br>    &quot;&quot;&quot;Agentic Event Loop using direct Bedrock Converse API&quot;&quot;&quot;<br>  def __init__(self, aws_region: str = &quot;us-east-1&quot;, max_workers: int = 8):<br>          # Direct boto3 Bedrock client with retry configuration<br>          retry_config = Config(<br>              retries={&#39;max_attempts&#39;: 10, &#39;mode&#39;: &#39;adaptive&#39;},<br>              read_timeout=300, connect_timeout=60<br>          )<br>          self.client = boto3.client(<br>              &#39;bedrock-runtime&#39;,<br>              region_name=self.aws_region,<br>              config=retry_config<br>          )<br>          self.model = &quot;us.anthropic.claude-sonnet-4-20250514-v1:0&quot;<br>          self.executor = None  # Reusable across entire agent lifecycle<br>      async def run_agent(self, user_message: str) -&gt; Dict[str, Any]:<br>          &quot;&quot;&quot;Execute agent with Bedrock Converse API&quot;&quot;&quot;<br>          context = AgentContext(<br>              conversation_id=f&quot;bedrock_{datetime.now().strftime(&#39;%Y%m%d_%H%M%S_%f&#39;)}&quot;,<br>              messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: user_message}],<br>              events=[], current_state=AgentState.IDLE, tool_results=[]<br>          )<br>          while (context.current_state != AgentState.COMPLETED and <br>                 context.current_state != AgentState.ERROR):<br>              if context.current_state == AgentState.THINKING:<br>                  await self._handle_thinking_bedrock(context)<br>              elif context.current_state == AgentState.EXECUTING_TOOLS:<br>                  await self._handle_tool_execution(context)<br>              elif context.current_state == AgentState.RESPONDING:<br>                  await self._handle_responding_bedrock(context)</pre><h3>Bedrock Message Format Conversion</h3><p>The implementation handles conversion between standard message formats and Bedrock’s specific requirements:</p><pre>async def _handle_thinking_bedrock(self, context: AgentContext):<br>    &quot;&quot;&quot;Handle thinking state using Bedrock Converse API&quot;&quot;&quot;<br># Convert messages to Bedrock format<br>    bedrock_messages = []<br>    for msg in context.messages:<br>        if msg[&#39;role&#39;] == &#39;user&#39;:<br>            if isinstance(msg[&#39;content&#39;], str):<br>                bedrock_messages.append({<br>                    &#39;role&#39;: &#39;user&#39;,<br>                    &#39;content&#39;: [{&#39;text&#39;: msg[&#39;content&#39;]}]<br>                })<br>            else:<br>                bedrock_messages.append({<br>                    &#39;role&#39;: &#39;user&#39;, <br>                    &#39;content&#39;: msg[&#39;content&#39;]<br>                })<br>    # Convert tool schemas to Bedrock format<br>    bedrock_tools = []<br>    for tool in TOOL_SCHEMAS:<br>        bedrock_tool = {<br>            &#39;toolSpec&#39;: {<br>                &#39;name&#39;: tool[&#39;name&#39;],<br>                &#39;description&#39;: tool[&#39;description&#39;],<br>                &#39;inputSchema&#39;: {&#39;json&#39;: tool[&#39;input_schema&#39;]}<br>            }<br>        }<br>        bedrock_tools.append(bedrock_tool)<br>    response = self.client.converse(<br>        modelId=self.model,<br>        messages=bedrock_messages,<br>        toolConfig={&#39;tools&#39;: bedrock_tools},<br>        inferenceConfig={&#39;maxTokens&#39;: 4000}<br>    )</pre><h3>Thread Pool Management</h3><pre>def __enter__(self):<br>    # Create thread pool once for entire agent lifecycle<br>    self.executor = concurrent.futures.ThreadPoolExecutor(<br>        max_workers=self.max_workers,<br>        thread_name_prefix=&quot;AgentToolExecutor&quot;<br>    )<br>        return self<br>async def run_agent(self, user_message: str) -&gt; Dict[str, Any]:<br>        &quot;&quot;&quot;Run complete agentic event loop with reusable thread pool&quot;&quot;&quot;<br>        context = AgentContext(...)<br>        while (context.current_state != AgentState.COMPLETED and <br>               context.iteration_count &lt; context.max_iterations):<br>            # Determine next state based on context and results<br>            next_state = await self._determine_next_state(context)<br>            await self._transition_state(context, next_state)<br>            # Execute state handler (may use parallel tools)<br>            await self.state_handlers[context.current_state](context)</pre><h3>Advanced Parallel Tool Execution</h3><ul><li><strong>Multi-iteration optimization</strong>: Single thread pool serves entire agent lifecycle</li><li><strong>State-based architecture</strong>: THINKING → EXECUTING_TOOLS → PLANNING → RESPONDING</li><li><strong>Resource efficiency</strong>: No thread pool creation overhead between iterations</li><li><strong>Complex workflows</strong>: Supports multi-step reasoning and adaptive decision making</li><li><strong>Context preservation</strong>: Maintains state and memory across agent iterations</li></ul><h3>Implementation Deep Dive</h3><h3>Agentic Event Loop Architecture</h3><p>Our implementation leverages Python’s ThreadPoolExecutor within a sophisticated state-based agent system:</p><pre>async def _execute_tools_parallel_async(self, tool_calls: List[Dict[str, Any]]) -&gt; List[Dict[str, Any]]:<br>    &quot;&quot;&quot;<br>    Execute tools in parallel using the reusable ThreadPoolExecutor<br>    Integrated into the agentic event loop for multi-iteration efficiency<br>    &quot;&quot;&quot;<br>    if not self.executor:<br>        raise RuntimeError(&quot;ThreadPoolExecutor not initialized. Use context manager.&quot;)<br># Submit all tool executions to the reusable thread pool<br>    loop = asyncio.get_event_loop()<br>    futures = []<br>    for tool_call in tool_calls:<br>        future = loop.run_in_executor(<br>            self.executor,  # Reuse the same thread pool across iterations<br>            self._execute_single_tool,<br>            tool_call[&#39;name&#39;],<br>            tool_call[&#39;input&#39;]<br>        )<br>        futures.append(future)<br>    # Wait for all tools to complete<br>    return await asyncio.gather(*futures, return_exceptions=True)</pre><h3>The Complete Agentic Execution Flow</h3><h4>1. Agent Initialization with Reusable Thread Pool</h4><pre>with AgenticEventLoop(max_workers=8) as agent:<br>    # Thread pool created once for entire agent lifecycle<br>    result = await agent.run_agent(user_message)</pre><h4>2. State-Based Execution Loop</h4><pre>while (context.current_state != AgentState.COMPLETED and <br>       context.iteration_count &lt; context.max_iterations):<br># State transitions: THINKING → EXECUTING_TOOLS → PLANNING → RESPONDING<br>    next_state = await self._determine_next_state(context)<br>    await self._transition_state(context, next_state)</pre><h3>Parallel Tool Execution with Bedrock Format</h3><p>The key innovation is handling tool results in Bedrock’s specific format requirements:</p><pre>async def _handle_tool_execution(self, context: AgentContext):<br>    &quot;&quot;&quot;Handle tool execution using ThreadPoolExecutor&quot;&quot;&quot;<br># Execute tools in parallel<br>    tool_results = await self._execute_tools_parallel_async(tool_calls)<br>    # CRITICAL: Add ALL tool results to a SINGLE user message<br>    tool_result_content = []<br>    for tool_call, tool_result in zip(tool_calls, tool_results):<br>        if tool_result[&quot;success&quot;]:<br>            result_content = json.dumps(tool_result[&quot;result&quot;], indent=2)<br>        else:<br>            result_content = f&quot;Error: {tool_result[&#39;error&#39;]}&quot;<br>        tool_result_content.append({<br>            &quot;toolResult&quot;: {<br>                &quot;toolUseId&quot;: tool_call[&quot;id&quot;],<br>                &quot;content&quot;: [{&quot;text&quot;: result_content}]<br>            }<br>        })<br>    # Add single user message with ALL tool results<br>    context.messages.append({<br>        &quot;role&quot;: &quot;user&quot;,<br>        &quot;content&quot;: tool_result_content<br>    })<br>async def _execute_tools_parallel_async(self, tool_calls: List[Dict[str, Any]]) -&gt; List[Dict[str, Any]]:<br>    &quot;&quot;&quot;Execute tools in parallel using ThreadPoolExecutor&quot;&quot;&quot;<br>    loop = asyncio.get_event_loop()<br>    futures = []<br>    for tool_call in tool_calls:<br>        future = loop.run_in_executor(<br>            self.executor,  # Reuse the same thread pool<br>            self._execute_single_tool,<br>            tool_call[&#39;name&#39;],<br>            tool_call[&#39;input&#39;]<br>        )<br>        futures.append(future)<br>    start_time = datetime.now()<br>    results = await asyncio.gather(*futures, return_exceptions=True)<br>    execution_time = (datetime.now() - start_time).total_seconds()<br>    return results</pre><h3>Agentic State Management</h3><pre>class AgentState(Enum):<br>    IDLE = &quot;idle&quot;<br>    THINKING = &quot;thinking&quot;<br>    EXECUTING_TOOLS = &quot;executing_tools&quot;<br>    PLANNING = &quot;planning&quot;<br>    RESPONDING = &quot;responding&quot;<br>    COMPLETED = &quot;completed&quot;<br>async def run_agent(self, user_message: str) -&gt; Dict[str, Any]:<br>    &quot;&quot;&quot;Execute agent with Bedrock Converse API&quot;&quot;&quot;<br>    context = AgentContext(...)<br>    while (context.current_state != AgentState.COMPLETED and <br>           context.current_state != AgentState.ERROR):<br>        if context.current_state == AgentState.THINKING:<br>            await self._handle_thinking_bedrock(context)<br>        elif context.current_state == AgentState.EXECUTING_TOOLS:<br>            await self._handle_tool_execution(context)<br>        elif context.current_state == AgentState.RESPONDING:<br>            await self._handle_responding_bedrock(context)</pre><h3>Experimental Setup and Methodology</h3><h3>Test Environment</h3><ul><li><strong>Model</strong>: Claude 4 Sonnet (us.anthropic.claude-sonnet-4-20250514-v1:0)</li><li><strong>AWS Region</strong>: us cross-region inference</li></ul><h3>Test Queries and Tools</h3><p>Our benchmark used four realistic queries that progressively test different tool combinations:</p><h4>Query 1: Simple Dual Tool (2 tools)</h4><pre>&quot;What&#39;s the weather in New York and the stock price of AAPL?&quot;</pre><p><strong>Tools</strong>: get_weather, get_stock_price</p><h4>Query 2: Travel Planning (4 tools)</h4><pre>&quot;I&#39;m planning a trip from Boston to Miami. Get the weather for both cities, calculate the distance, and find Italian restaurants in Miami.&quot;</pre><p><strong>Tools</strong>: get_weather (2x), calculate_distance, search_restaurants</p><h4>Query 3: Investment Analysis (4 tools)</h4><pre>&quot;Show me stock prices for GOOGL, TSLA, and AAPL, plus weather in San Francisco.&quot;</pre><p><strong>Tools</strong>: get_stock_price (3x), get_weather</p><h4>Query 4: Local Exploration (3 tools)</h4><pre>&quot;Get weather for Seattle, calculate distance from Seattle to Portland, and find Asian restaurants in Portland.&quot;</pre><p><strong>Tools</strong>: get_weather, calculate_distance, search_restaurants</p><h3>Mock Tool Implementation</h3><p>All frameworks used identical mock tools with realistic delays:</p><pre>def get_weather(location: str) -&gt; Dict[str, Any]:<br>    &quot;&quot;&quot;Mock weather API with 1.0-1.5s delay&quot;&quot;&quot;<br>    time.sleep(random.uniform(1.0, 1.5))<br>    return {<br>        &quot;location&quot;: location,<br>        &quot;temperature&quot;: random.randint(15, 30),<br>        &quot;condition&quot;: random.choice([&quot;sunny&quot;, &quot;cloudy&quot;, &quot;rainy&quot;]),<br>        &quot;humidity&quot;: random.randint(30, 80),<br>        &quot;wind_speed&quot;: random.randint(5, 25)<br>    }<br>def get_stock_price(symbol: str) -&gt; Dict[str, Any]:<br>    &quot;&quot;&quot;Mock stock API with 0.5-1.0s delay&quot;&quot;&quot;<br>    time.sleep(random.uniform(0.5, 1.0))<br>    return {<br>        &quot;symbol&quot;: symbol,<br>        &quot;price&quot;: round(random.uniform(100, 500), 2),<br>        &quot;change&quot;: round(random.uniform(-10, 10), 2),<br>        &quot;volume&quot;: random.randint(1000000, 10000000)<br>    }<br>def calculate_distance(origin: str, destination: str) -&gt; Dict[str, Any]:<br>    &quot;&quot;&quot;Mock distance API with 0.7-1.2s delay&quot;&quot;&quot;<br>    time.sleep(random.uniform(0.7, 1.2))<br>    return {<br>        &quot;origin&quot;: origin,<br>        &quot;destination&quot;: destination,<br>        &quot;distance_km&quot;: random.randint(50, 1000),<br>        &quot;estimated_time&quot;: f&quot;{random.randint(1, 12)} hours {random.randint(0, 59)} minutes&quot;<br>    }<br>def search_restaurants(location: str, cuisine: str = None) -&gt; Dict[str, Any]:<br>    &quot;&quot;&quot;Mock restaurant API with 1.2-2.0s delay&quot;&quot;&quot;<br>    time.sleep(random.uniform(1.2, 2.0))<br>    return {<br>        &quot;location&quot;: location,<br>        &quot;cuisine&quot;: cuisine or &quot;any&quot;,<br>        &quot;restaurants&quot;: [f&quot;{random.choice([&#39;Bistro&#39;, &#39;Cafe&#39;, &#39;Restaurant&#39;])} {i}&quot; <br>                       for i in range(1, 6)]<br>    }</pre><h3>Performance Benchmark: Framework Comparison</h3><h3>📊 Comprehensive Performance Analysis</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MsvSMjg5ECiiYNyUcU-Erw.png" /></figure><h3>🎯 Performance Breakdown Analysis</h3><h4>Tool Execution Performance:</h4><ul><li><strong>Bedrock Agentic</strong>: 1.14s average (26% faster)</li><li><strong>LangGraph</strong>: 1.54s average</li><li><strong>Consistency</strong>: Bedrock faster in 3/4 queries</li><li><strong>Scaling</strong>: Advantage increases with more tools</li></ul><h4>LLM Processing Performance:</h4><ul><li><strong>Bedrock Agentic</strong>: 5.07s average (19% faster)</li><li><strong>LangGraph</strong>: 6.27s average</li><li><strong>Efficiency</strong>: Better message format handling</li><li><strong>Overhead</strong>: Lower framework processing cost</li></ul><h4>Overall Performance:</h4><ul><li><strong>Bedrock Agentic</strong>: 6.21s average (26% faster overall)</li><li><strong>LangGraph</strong>: 7.81s average</li><li><strong>Advantage</strong>: Consistent across all complexity levels</li><li><strong>Scalability</strong>: Performance gap widens with more tools</li></ul><h3>📈 Performance Scaling by Tool Count</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fROOoesXaA8lvtH8hBxUmw.png" /></figure><h3>🏆 Framework Performance Summary</h3><h4>🥇 Bedrock Agentic Wins:</h4><ul><li>✅ <strong>26% faster overall execution</strong> (6.21s vs 7.81s)</li><li>✅ <strong>26% faster tool execution</strong> (1.14s vs 1.54s)</li><li>✅ <strong>19% faster LLM processing</strong> (5.07s vs 6.27s)</li><li>✅ <strong>Better scalability</strong> with complex queries</li><li>✅ <strong>More efficient architecture</strong> across all components</li></ul><h4>🥈 LangGraph Advantages:</h4><ul><li>✅ <strong>Simpler implementation</strong> and setup</li><li>✅ <strong>Better documentation</strong> and community</li><li>✅ <strong>Visual workflow debugging</strong></li><li>✅ <strong>Easier maintenance</strong> and updates</li></ul><h3>🎯 Performance-Based Recommendations</h3><h4>Choose Bedrock Agentic When:</h4><ul><li><strong>Performance is critical</strong> (26% faster execution)</li><li><strong>Tool-heavy workflows</strong> (advantage increases with complexity)</li><li><strong>AWS-native applications</strong> (direct integration benefits)</li><li><strong>Resource efficiency matters</strong> (lower processing overhead)</li></ul><h4>Choose LangGraph When:</h4><ul><li><strong>Development speed</strong> over execution speed</li><li><strong>Team familiarity</strong> with LangChain ecosystem</li><li><strong>Rapid prototyping</strong> and iteration</li><li><strong>Visual debugging</strong> is valuable</li></ul><h3>💡 Key Performance Insights</h3><p><strong>Bedrock Agentic’s Performance Edge:</strong></p><ol><li><strong>Superior parallel execution</strong> — 26% faster tool processing</li><li><strong>Efficient message handling</strong> — 19% faster LLM processing</li><li><strong>Better resource utilization</strong> — Lower framework overhead</li><li><strong>Scalable architecture</strong> — Advantage grows with complexity</li></ol><p><strong>Performance Scaling Pattern:</strong></p><ul><li><strong>Simple queries (2 tools)</strong>: Minimal difference (1.5%)</li><li><strong>Complex queries (3–4 tools)</strong>: Significant advantage (25%+)</li><li><strong>Tool execution</strong>: Consistent 26–44% improvement</li><li><strong>LLM processing</strong>: Steady 19% average improvement</li></ul><h3>Thread Pool Reuse Benefits</h3><p><strong>Resource Efficiency:</strong></p><pre># Basic Approach (per request)<br>with ThreadPoolExecutor() as executor:  # Created and destroyed each time<br>    results = execute_tools(tool_calls)<br># Agentic Approach (reusable)<br>with AgenticEventLoop(max_workers=8) as agent:  # Created once<br>    result1 = await agent.run_agent(&quot;Query 1 with 3 tools&quot;)  # Reuses pool<br>    result2 = await agent.run_agent(&quot;Query 2 with 5 tools&quot;)  # Reuses pool<br>    result3 = await agent.run_agent(&quot;Query 3 with 2 tools&quot;)  # Reuses pool</pre><p><strong>Performance Comparison:</strong></p><ul><li><strong>Basic</strong>: Thread pool overhead per request</li><li><strong>Agentic</strong>: Thread pool overhead amortized across agent lifecycle</li><li><strong>Multi-query scenarios</strong>: Agentic approach shows 15–25% additional performance improvement</li></ul><h3>Tool Call Extraction</h3><pre>tool_calls = []<br>for content_block in response.content:<br>    if content_block.type == &quot;tool_use&quot;:<br>        tool_calls.append({<br>            &quot;id&quot;: content_block.id,<br>            &quot;name&quot;: content_block.name,<br>            &quot;input&quot;: content_block.input<br>        })</pre><p>The system extracts all tool calls that Claude wants to execute, preserving their unique identifiers for result correlation.</p><h4>3. Parallel Execution Engine</h4><p>The magic happens here — instead of executing tools sequentially, we leverage ThreadPoolExecutor:</p><pre># Create a thread pool with one thread per tool<br>with concurrent.futures.ThreadPoolExecutor(max_workers=len(tool_calls)) as executor:<br>    # Submit ALL tools simultaneously<br>    future_to_tool = {<br>        executor.submit(self.execute_tool, tool_call[&#39;name&#39;], tool_call[&#39;input&#39;]): tool_call<br>        for tool_call in tool_calls<br>    }<br># Collect results as they complete<br>    for future in concurrent.futures.as_completed(future_to_tool):<br>        result = future.result()<br>        results.append(result)</pre><p><strong>Key Benefits:</strong></p><ul><li><strong>Concurrent Submission</strong>: All tools start executing immediately</li><li><strong>Non-blocking Collection</strong>: Results are gathered as they complete</li><li><strong>Automatic Resource Management</strong>: Thread cleanup is handled automatically</li><li><strong>Error Isolation</strong>: Individual tool failures don’t affect others</li></ul><h4>4. Result Aggregation and Final Response</h4><pre># Format results for Claude<br>for tool_call, tool_result in zip(tool_calls, tool_results):<br>    messages.append({<br>        &quot;role&quot;: &quot;user&quot;,<br>        &quot;content&quot;: [{<br>            &quot;type&quot;: &quot;tool_result&quot;,<br>            &quot;tool_use_id&quot;: tool_call[&quot;id&quot;],<br>            &quot;content&quot;: json.dumps(tool_result[&quot;result&quot;], indent=2)<br>        }]<br>    })</pre><pre># Send aggregated results back to Claude<br>final_response = self.client.messages.create(<br>    model=self.model,<br>    max_tokens=4000,<br>    messages=messages<br>)</pre><h3>Performance Impact: The Numbers Don’t Lie</h3><h3>Sequential vs Parallel Execution Comparison</h3><p><strong>Sequential Execution (Traditional Approach):</strong></p><pre>Tool 1: Weather API     (1.2s) →<br>Tool 2: Stock API       (0.8s) →  <br>Tool 3: Restaurant API  (1.5s) →<br>Tool 4: Distance API    (0.9s)<br>Total Time: 4.4 seconds</pre><p><strong>Parallel Execution (Claude 4 Approach):</strong></p><pre>Tool 1: Weather API     (1.2s) ┐<br>Tool 2: Stock API       (0.8s) ├─ All execute simultaneously<br>Tool 3: Restaurant API  (1.5s) ├─ Limited by slowest tool<br>Tool 4: Distance API    (0.9s) ┘<br>Total Time: 1.5 seconds (70% reduction!)</pre><h3>Real-World Performance Gains</h3><ul><li><strong>2 tools</strong>: ~50% time reduction</li><li><strong>3 tools</strong>: ~65% time reduction</li><li><strong>4+ tools</strong>: ~70%+ time reduction</li><li><strong>Complex workflows</strong>: Up to 80% improvement</li></ul><h3>The Value Proposition: Why Agentic Parallel Execution Matters</h3><h3>1. Enhanced User Experience Through Intelligent Agents</h3><p><strong>Traditional Sequential Agents:</strong></p><ul><li>Users wait 15–30 seconds for complex multi-step workflows</li><li>Agents lose context between tool execution cycles</li><li>Limited ability to adapt strategies based on intermediate results</li></ul><p><strong>Agentic Parallel Execution:</strong></p><ul><li>Complex multi-iteration workflows complete in 5–8 seconds</li><li>Agents maintain context and state across all iterations</li><li>Adaptive decision making based on parallel tool results</li><li>Seamless multi-step reasoning with optimized resource usage</li></ul><h3>2. Unlocking Advanced Agentic Use Cases</h3><h4>Agentic Coding Systems</h4><p>Parallel tool execution within agentic architectures revolutionizes AI-powered development by enabling sophisticated workflows that were previously impossible:</p><p><strong>Advanced Coding Capabilities:</strong></p><ul><li><strong>Iterative code improvement</strong> with parallel validation across multiple files simultaneously</li><li><strong>Multi-step debugging</strong> with context preservation and adaptive strategies that evolve based on findings</li><li><strong>Continuous integration</strong> with parallel quality checks and iterative refinement processes</li><li><strong>Adaptive development workflows</strong> that evolve based on code analysis results and project requirements</li></ul><p><strong>Impact</strong>: Development agents can now maintain context across multiple coding sessions, adapt their approach based on project evolution, and execute complex multi-step workflows while preserving state and optimizing resource usage through thread pool reuse.</p><h4>Deep Research Agents</h4><p>Research agents can perform sophisticated multi-iteration analysis that combines parallel tool execution with persistent context management:</p><p><strong>Advanced Research Capabilities:</strong></p><ul><li><strong>Multi-iteration hypothesis testing</strong> with parallel validation and refinement across different data sources</li><li><strong>Adaptive research strategies</strong> that evolve based on initial findings and adjust methodology dynamically</li><li><strong>Cross-domain knowledge synthesis</strong> with persistent context preservation across research sessions</li><li><strong>Iterative refinement</strong> of research questions based on parallel discoveries and emerging patterns</li></ul><p><strong>Impact</strong>: Research agents can pursue multiple research threads simultaneously across iterations, synthesize findings over time, and adapt their research strategies based on accumulated knowledge while maintaining context and optimizing performance.</p><h4>Performance-Intensive Agentic Systems</h4><p>High-throughput agentic applications benefit from sustained parallel execution combined with intelligent state management:</p><p><strong>Advanced Performance Systems:</strong></p><ul><li><strong>Adaptive trading strategies</strong> with continuous parallel market analysis and real-time decision making</li><li><strong>Dynamic optimization systems</strong> with iterative parallel scenario analysis and strategy refinement</li><li><strong>Predictive monitoring</strong> with multi-step parallel data processing and pattern recognition</li><li><strong>Self-improving agents</strong> that optimize their own execution patterns based on performance metrics</li></ul><p><strong>Impact</strong>: Agentic systems can continuously optimize their performance based on historical execution patterns, adapt to changing conditions over time, and maintain high-performance parallel execution across extended operational periods.</p><h3>Industry Impact</h3><p>Parallel tool execution represents a fundamental shift in AI agent architecture:</p><ul><li><strong>Enterprise Applications</strong>: Real-time business intelligence and decision support</li><li><strong>Creative Industries</strong>: Simultaneous content generation and analysis workflows</li><li><strong>Scientific Research</strong>: Parallel data processing and hypothesis testing</li><li><strong>Customer Service</strong>: Instant multi-system lookups and comprehensive responses</li></ul><h3>Key Takeaways:</h3><p>Parallel tool execution with Claude 4 models within agentic architectures marks a watershed moment in AI agent development. By leveraging sophisticated event loops with reusable thread pools, state management, and adaptive decision making, developers can create AI agents that deliver unprecedented performance, intelligence, and resource efficiency.</p><ul><li>Parallel tool execution is exclusive to Claude 4 models</li><li>Agentic architectures provide 65–80% performance improvements for complex workflows</li><li>Thread pool reuse delivers additional 15–25% efficiency gains</li><li>State management enables sophisticated multi-step reasoning</li><li>Context preservation allows agents to learn and adapt over time</li><li>The future of AI agents is agentic, parallel, and intelligently architected</li></ul><p><em>Experience the power of agentic parallel tool execution and transform your AI applications into sophisticated reasoning systems that think, adapt, and optimize across multiple iterations while maintaining peak performance.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=433da0efab60" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The New Era of Cloud Cost Management: How AWS Pricing MCP Makes Your Financial Decisions Smarter]]></title>
            <link>https://medium.com/@gor17v/the-new-era-of-cloud-cost-management-how-aws-pricing-mcp-makes-your-financial-decisions-smarter-b8b00ad8854f?source=rss-5e1c7d0dd674------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8b00ad8854f</guid>
            <category><![CDATA[aws-pricing-calculator]]></category>
            <category><![CDATA[aws-pricing]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[finops]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Gorv]]></dc:creator>
            <pubDate>Wed, 27 Aug 2025 13:04:13 GMT</pubDate>
            <atom:updated>2025-08-27T13:04:13.577Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>This article reveals AWS’s latest natural language cloud cost management tool, making complex cloud pricing accessible</blockquote><h3>When Cloud Cost Management Meets Natural Language Processing</h3><p>Are you still struggling with AWS cloud service cost calculations? Still troubled by complex pricing structures? If you’re a cloud architect, development team leader, or financial analyst, this problem may have been bothering you for a long time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*elfJVGfCPm4zRlzyKsWgdw.jpeg" /><figcaption>Cloud Cost Dilemma</figcaption></figure><p>Traditional AWS cost management requires switching between multiple consoles, understanding complex pricing models, and manually calculating costs for various resource combinations. This is not only time-consuming but also prone to errors. Now, the AWS Pricing MCP server is fundamentally changing all of this.</p><h3>AWS Pricing MCP: Making Cloud Costs Accessible</h3><p>AWS Pricing MCP server (aws-pricing-mcp-server) is an open-source tool released by AWS Labs on GitHub that seamlessly integrates natural language pricing query functionality into AI assistants through the Model Context Protocol (MCP).</p><p>Imagine being able to simply ask in everyday language: “How much would it cost to run three m5.large instances and a MySQL RDS database in the London region for a month?” and immediately get an accurate answer without having to delve into complex pricing pages or calculators. This is the revolutionary experience that AWS Pricing MCP brings.</p><h3>AWS Pricing MCP Workflow Diagram</h3><p>The diagram below shows how AWS Pricing MCP collaborates with large language models and users:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zICumFApyXNHHFbpgaeKTA.png" /><figcaption>AWS Pricing MCP Workflow Diagram</figcaption></figure><p>In this workflow:</p><ol><li>The user asks a natural language question about AWS costs to an AI assistant (such as Claude, GPT, or Amazon Q)</li><li>The AI assistant sends the request to the AWS Pricing MCP server via the MCP protocol</li><li>The MCP server queries the AWS Pricing API for the latest pricing information</li><li>Pricing data is returned to the MCP server for processing</li><li>The MCP server returns structured data to the AI assistant via the MCP protocol</li><li>The AI assistant transforms technical data into user-friendly answers</li></ol><h3>MCP: The “Universal Translator” Between AI and Data Sources</h3><p>The Model Context Protocol (MCP) is essentially an open protocol initiated by Anthropic that provides a standardized way for AI agents to connect to real-time data sources. Just as a USB-C interface allows different devices to connect seamlessly, MCP enables AI assistants to directly access AWS pricing data, eliminating guesswork and manual calculations.</p><p>As one AWS Solutions Architect puts it: “MCP is like a bridge between AI and enterprise data, transforming AI from a closed knowledge base into an intelligent assistant that can access and process the latest enterprise data in real-time.”</p><h3>Core Features: Beyond Simple Queries</h3><p>AWS Pricing MCP’s capabilities go far beyond simple price queries, providing comprehensive cloud cost management capabilities:</p><h3>Pricing Discovery and Information Queries</h3><ul><li><strong>Service Catalog Exploration</strong>: Discover all AWS services with pricing information at the click of a button</li><li><strong>Pricing Attribute Identification</strong>: Intelligently identify filterable dimensions (such as instance type, region, storage class)</li><li><strong>Multi-Region Comparison</strong>: Compare pricing differences across different AWS regions in a single query</li><li><strong>Natural Language Interaction</strong>: Ask questions directly in everyday language without learning complex query syntax</li></ul><h3>Cost Analysis and Planning</h3><ul><li><strong>Detailed Cost Reports</strong>: Generate complete reports with unit pricing, calculation details, and usage scenarios</li><li><strong>Infrastructure Code Analysis</strong>: Automatically scan CDK or Terraform projects, identify AWS service configurations, and estimate costs</li><li><strong>Architecture Pattern Guidance</strong>: Provide detailed architecture patterns and cost consideration recommendations</li><li><strong>Cost Optimization Recommendations</strong>: Provide professional optimization suggestions based on the AWS Well-Architected Framework</li></ul><h3>Real-World Cases: How AWS Pricing MCP Changes Workflows</h3><h3>Case 1: Infrastructure Planning for Development Teams</h3><p>Engineer Johnson is planning infrastructure for a new project. Previously, he needed to consult AWS pricing pages, use calculators, and then organize comparisons in Excel. Now, he simply asks an AI assistant integrated with AWS Pricing MCP: “What is the estimated monthly cost for deploying a three-tier e-commerce application in the London region, including 4 application servers, 2 database instances, and load balancing?”</p><p>The AI assistant immediately provides detailed cost breakdowns and even suggests several cost-saving alternatives. The entire process has been reduced from hours to minutes.</p><h3>Case 2: Cost Forecasting for Finance Teams</h3><p>Finance Director Martinez needs to budget for cloud spending in the next fiscal year. Through AWS Pricing MCP, she can ask: “If our traffic increases by 30% next year and storage needs increase by 50%, how much will our AWS costs increase?” The AI assistant not only provides accurate predictions but also suggests several combinations of Reserved Instances and Savings Plans that can keep the increased costs within budget.</p><h3>Case 3: Multi-Region Deployment Decisions for Architects</h3><p>Architect Thompson is evaluating the cost impact of deploying applications across multiple regions. He asks the AI assistant: “How much additional monthly cost would it take to expand our Kubernetes cluster from just the Frankfurt region to also deploy in Paris and Dublin? Which regional combination is most economical?”</p><p>The AI assistant analyzes pricing differences between regions, data transfer costs, and latency impacts to provide the optimal deployment strategy.</p><h3>Installation and Configuration: Putting AWS Pricing MCP to Work</h3><p>Want to experience this revolutionary tool? Here are detailed installation and configuration steps:</p><h3>Prerequisites</h3><ul><li>Ensure AWS credentials are configured (using aws configure or setting environment variables)</li><li>Ensure IAM roles have pricing:* permissions (only accessing public pricing data, no user-specific data needed)</li><li>Set environment variables: AWS_PROFILE (default profile) and AWS_REGION (e.g., us-east-1)</li></ul><h3>Installation Methods</h3><h4>Method 1: Using uvx (Recommended, Faster)</h4><ol><li>Install directly using the uvx command:</li></ol><pre>uvx awslabs.aws-pricing-mcp-server@latest --env FASTMCP_LOG_LEVEL=ERROR --env AWS_PROFILE=your-aws-profile --env AWS_REGION=us-east-1</pre><p>2. Configure the MCP server:<br>Add the following to the MCP client configuration file (e.g., ~/.aws/amazonq/mcp.json):</p><p><strong>Linux/MacOS Users</strong>:</p><pre>{<br>  &quot;mcpServers&quot;: {<br>    &quot;awslabs.aws-pricing-mcp-server&quot;: {<br>      &quot;command&quot;: &quot;uvx&quot;,<br>      &quot;args&quot;: [<br>         &quot;awslabs.aws-pricing-mcp-server@latest&quot;<br>      ],<br>      &quot;env&quot;: {<br>        &quot;FASTMCP_LOG_LEVEL&quot;: &quot;ERROR&quot;,<br>        &quot;AWS_PROFILE&quot;: &quot;your-aws-profile&quot;,<br>        &quot;AWS_REGION&quot;: &quot;us-east-1&quot;<br>      },<br>      &quot;disabled&quot;: false,<br>      &quot;autoApprove&quot;: []<br>    }<br>  }<br>}</pre><p><strong>Windows Users</strong>:</p><pre>{<br>  &quot;mcpServers&quot;: {<br>    &quot;awslabs.aws-pricing-mcp-server&quot;: {<br>      &quot;command&quot;: &quot;uvx&quot;,<br>      &quot;args&quot;: [<br>         &quot;--from&quot;,<br>         &quot;awslabs.aws-pricing-mcp-server@latest&quot;,<br>         &quot;awslabs.aws-pricing-mcp-server.exe&quot;<br>      ],<br>      &quot;env&quot;: {<br>        &quot;FASTMCP_LOG_LEVEL&quot;: &quot;ERROR&quot;,<br>        &quot;AWS_PROFILE&quot;: &quot;your-aws-profile&quot;,<br>        &quot;AWS_REGION&quot;: &quot;us-east-1&quot;<br>      },<br>      &quot;disabled&quot;: false,<br>      &quot;autoApprove&quot;: []<br>    }<br>  }<br>}</pre><p>3. Verify installation:<br>Launch an MCP-supported AI assistant (such as Amazon Q, Claude, etc.) and confirm that the MCP server has loaded.</p><h4>Method 2: Using Docker</h4><p>If you prefer containerized deployment, you can choose the Docker method:</p><ol><li>Build the Docker image:</li></ol><pre>docker build -t awslabs/aws-pricing-mcp-server .</pre><p>2. Create a .env file containing AWS credentials:</p><pre>AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY_ID<br>AWS_SECRET_ACCESS_KEY=YOUR_SECRET_ACCESS_KEY<br>AWS_SESSION_TOKEN=YOUR_SESSION_TOKEN (if using temporary credentials)<br>AWS_REGION=us-east-1</pre><p>3. Run the Docker container:</p><pre>docker run \<br>  --rm \<br>  --interactive \<br>  --env FASTMCP_LOG_LEVEL=ERROR \<br>  --env-file /full/path/to/file/above/.env \<br>  awslabs/aws-pricing-mcp-server:latest</pre><p>4. Add Docker command to MCP configuration:</p><pre>{<br>  &quot;mcpServers&quot;: {<br>    &quot;awslabs.aws-pricing-mcp-server&quot;: {<br>      &quot;command&quot;: &quot;docker&quot;,<br>      &quot;args&quot;: [<br>        &quot;run&quot;,<br>        &quot;--rm&quot;,<br>        &quot;--interactive&quot;,<br>        &quot;--env&quot;,<br>        &quot;FASTMCP_LOG_LEVEL=ERROR&quot;,<br>        &quot;--env-file&quot;,<br>        &quot;/full/path/to/file/above/.env&quot;,<br>        &quot;awslabs/aws-pricing-mcp-server:latest&quot;<br>      ],<br>      &quot;env&quot;: {},<br>      &quot;disabled&quot;: false,<br>      &quot;autoApprove&quot;: []<br>    }<br>  }<br>}</pre><h3>AWS Billing and Cost Management MCP: More Comprehensive Financial Management</h3><p>In addition to AWS Pricing MCP, AWS has also launched the Billing and Cost Management MCP server, further expanding cloud financial management capabilities. This tool integrates seamlessly with services like AWS Cost Explorer and AWS Cost Optimization Hub, providing comprehensive support from cost analysis to optimization recommendations.</p><p>It can help you:</p><ul><li>Deeply analyze current cloud spending and identify cost drivers</li><li>Discover potential savings opportunities, such as idle resources and over-provisioning</li><li>Conduct detailed FinOps audits without writing complex scripts</li><li>Work in conjunction with services like AWS Compute Optimizer and Savings Plans</li></ul><h3>Advantages and Limitations: A Rational Look at New Technology</h3><h3>Significant Advantages</h3><ol><li><strong>Lower Technical Barriers</strong>: Get accurate information even if you’re not familiar with AWS pricing structures</li><li><strong>Real-time Data Support</strong>: Provide the latest pricing based on the AWS Pricing API, ensuring decision accuracy</li><li><strong>Workflow Optimization</strong>: No need to switch to dedicated pricing pages or calculators</li><li><strong>Natural Language Interaction</strong>: Complete complex queries using everyday language</li></ol><h3>Practical Limitations</h3><ol><li><strong>AI Understanding Capability</strong>: Although the server provides real-time pricing data, AI assistants may not always perfectly understand complex queries</li><li><strong>Special Scenario Handling</strong>: Professional knowledge verification may still be needed for highly customized pricing scenarios</li><li><strong>Data Completeness</strong>: Primarily provides public pricing information; additional configuration may be needed for enterprise-specific pricing agreements</li></ol><h3>The Future of Cloud Cost Management Has Arrived</h3><p>AWS Pricing MCP represents the future direction of cloud cost management — combining natural language processing with real-time pricing data to make complex financial decisions simple and intuitive. Whether you’re a development team leader, cloud architect, or financial analyst, this tool can help you make smarter, more timely cloud investment decisions.</p><p>As one senior cloud architect says: “AWS Pricing MCP is not just a query tool; it’s actually changing the way we interact with cloud services. It allows us to focus more energy on innovation rather than being bogged down by tedious cost calculations.”</p><p>In today’s increasingly cloud-centric world, mastering such tools will undoubtedly give your team a competitive advantage. Are you ready to embrace this transformation?</p><p><em>The author has over 10 years of experience in cloud computing, focusing on cloud cost optimization and FinOps practices. If you have any questions, please feel free to leave a comment for discussion.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8b00ad8854f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>