<?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 Deepak Tiwari on Medium]]></title>
        <description><![CDATA[Stories by Deepak Tiwari on Medium]]></description>
        <link>https://medium.com/@deepak.tiwari?source=rss-c20e2da01d04------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*mW9Zdxh9xy1njX3z</url>
            <title>Stories by Deepak Tiwari on Medium</title>
            <link>https://medium.com/@deepak.tiwari?source=rss-c20e2da01d04------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 11:18:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@deepak.tiwari/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[Let Machines Decide, Let AI Investigate, Let People Judge]]></title>
            <link>https://medium.com/@deepak.tiwari/let-machines-decide-let-ai-investigate-let-people-judge-47fe6311cf45?source=rss-c20e2da01d04------2</link>
            <guid isPermaLink="false">https://medium.com/p/47fe6311cf45</guid>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[decision-model]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Deepak Tiwari]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 04:30:45 GMT</pubDate>
            <atom:updated>2026-11-13T06:13:41.616Z</atom:updated>
            <content:encoded><![CDATA[<h3>A practical blueprint for AI in e-commerce support, and the simple maths that tells you when it pays.</h3><p>It is 2 a.m. on the first night of a festive sale. The payment gateway starts timing out. Within ten minutes the support queue has four hundred new tickets: monitoring alerts, log warnings, failed payment notices, angry customer emails, and the same alert repeated forty times. Someone has to read each one and answer three questions. What is this? How bad is it? Who should fix it?</p><p>That first step is called triage. It is where most support teams lose their night, and it is where many AI projects make an expensive mistake.</p><p>The usual approach is to send every ticket to a large language model and ask it to read, think and reply. It looks great in a demo. At scale it is slow, it costs more than it should, and it sounds just as sure of itself on its worst guess as on its best one.</p><p>Over the last few weeks I have been designing a different approach for a managed support service for an online retailer. The idea is simple: split the work by the kind of thinking it needs. This article walks through the blueprint, the two tools that make it practical, and the maths that decides whether it is worth doing at all.</p><h3>Most support work is a decision, not an essay</h3><p>Look closely at a support queue and you will notice that most of the work is choosing, not writing. Is this a payment failure or a stock sync problem? Is it severity one or severity three? Does it need a junior engineer or a specialist? These are multiple-choice questions.</p><p>Using a writing model to answer a multiple-choice question is like hiring a novelist to sort the post. The job gets done, but you pay for talent you do not need, and the novelist may never tell you which envelopes they were unsure about.</p><p>What a support operation needs at this step is a fast answer and an honest measure of confidence. The confidence matters more than the answer. If you know which decisions are safe, you can automate those and hand the rest to a person.</p><h3>A new kind of model: the decision model</h3><p>Since September 2026 a new class of AI model has appeared for exactly this job. They are called decision models. Some vendors call them “System One” models, after the idea of fast, instinctive thinking. They do not write text. You give them the facts of a case and a few questions with fixed answers. They give back an answer to each question and a probability that the answer is right.</p><p>They handle three kinds of question: pick one option from a list, place something on a scale, or answer yes or no. That covers almost every triage question a support desk asks.</p><p>The field is young but moving fast. Thoughtworks added decision models to its Technology Radar in November 2026, in the “Assess” ring. Options you can look at today include:</p><ul><li><strong>TypeSafe Jev. </strong>The hosted model that started the category. Closed, and priced per use.</li><li><strong>Laya. </strong>Open source, and works in more than 100 languages.</li><li><strong>Kev. </strong>An open family of models whose server matches TypeSafe’s interface, so you can run it on your own machines.</li><li><strong>Nimble </strong>from Bespoke Labs, which can run on a laptop through Ollama.</li><li><strong>Tev1 </strong>from Together AI, a very small model suited to a cheap first pass.</li></ul><p>A word of caution before anyone gets excited. These models are often sold as models that “cannot make things up”. What that really means is that they cannot give an answer outside your list. They can still pick the wrong item from the list. Early tests also show weak spots with sums, dates, counting, and text written to mislead them. None of them is a security guard. Treat a decision model as a fast and honest first opinion, not a final authority.</p><h3>The blueprint</h3><p>Here is how the work is split. Each colour shows who owns a step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*60TPB-DL52YpH_y0.png" /></figure><p><em>Figure 1. Who does what. Purple: decision model. Green: AI agents. Grey: plain code or people.</em></p><ol><li><strong>Plain code goes first. </strong>Before any AI sees a ticket, ordinary software removes duplicates, hides card numbers and phone numbers, and does the sums: how long the ticket has been open, how far the error rate is above the agreed limit, how many days until a certificate expires. AI models are weak at maths. Code is not. So the maths never leaves code.</li><li><strong>The decision model triages. </strong>In one quick call it answers six questions: what category, how severe, which support level, which team, is a customer affected, and is this a security issue. Each answer comes with a confidence score.</li><li><strong>A simple rulebook routes the ticket. </strong>If the confidence is above the bar, the ticket goes to the right AI agent. If it is below, it goes to a person. When the model is unsure about the support level, the rule sends the ticket one level up, because under-reacting to an outage costs far more than over-reacting to a small bug.</li><li><strong>AI agents investigate. </strong>Three agents mirror a real support desk. L1 handles known problems with known fixes. L2 digs through logs and services to find what went wrong. L3 handles new problems, code changes and vendor escalations. Any agent can pass a case up to the next level with a short summary.</li><li><strong>An action gate stands in front of anything risky. </strong>Permission rules come first: an L1 agent can never issue a refund, whatever it believes. Then the decision model checks whether the action is backed by the evidence. Anything that cannot be undone, such as a refund, a rollback, a region failover or a message to customers, always waits for a person to approve it.</li><li><strong>Everything is recorded and scored. </strong>Every ticket leaves a full trail, and the whole system is measured against a simpler baseline.</li></ol><p>The principle fits in one line: <strong>the decision model decides, the language model investigates and writes, and people handle the uncertain and the irreversible.</strong></p><h3>The maths that makes the case</h3><p>Most AI business cases compare token prices. That is the wrong comparison. A decision model is so cheap that its cost almost disappears. The real costs in a support operation are people’s time and the price of mistakes. So the comparison has to be end to end:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*bDSL3om975LsTzfK6Z1keA.jpeg" /></figure><p>Let us put numbers to it for 1,000 tickets. These are illustrative assumptions, not measured results. Change them to fit your own operation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*04GVD_HBvNgt7lxU81cQdA.jpeg" /></figure><p><em>Table 1. Illustrative assumptions. The decision model cost uses about 1,200 tokens per ticket at a list price of $0.042 per million tokens.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*fUbmMN9mAChX3Y4_vOh_cw.jpeg" /></figure><p><em>Table 2. Cost per 1,000 tickets under each approach.</em></p><p>The working for option C: 700 tickets are automated and 3% of them go wrong, which is 21 mistakes. The other 300 go to people at $2 each, which is $600, and 2% of those go wrong, which is 6 mistakes. That makes 27 mistakes at $40 each, or $1,080.</p><p>Two things stand out.</p><p><strong>Sending every ticket to AI is the most expensive option of all. </strong>A 90% accuracy rate sounds good until you remember it means 100 wrong decisions in every 1,000. Automation without a measure of confidence is not a saving. It is a liability.</p><p><strong>The blended approach saves about 40% against an all-human desk. </strong>Almost none of that saving comes from the model being cheap. It comes from knowing which tickets are safe to automate.</p><p>That leads to the most useful formula in this article. It tells you exactly where to set the confidence bar:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*YfDi0nqBojMxLJA0CshkMA.jpeg" /></figure><p>With our numbers: 1 − (2 ÷ 40) − 0.02 = 0.93. So we automate only the decisions the model is more than 93% sure about, and send everything else to a person.</p><p>Now imagine a client where a wrong call usually means a missed outage on the checkout page, and that costs $200 instead of $40. The bar moves up to 1 − (2 ÷ 200) − 0.02 = 0.97. The higher the stakes, the higher the bar. The same model, with no retraining, serves both clients. You simply move the dial.</p><p>There is one catch, and it is a big one. All of this only works if the confidence is honest. A model that says 95% must be right about 95 times out of 100. That property is called calibration, and you have to test it on your own tickets rather than take it from a brochure. And the one number your whole business case depends on is the cost of a wrong decision. Agree it with the client before the project starts, not after the results come in.</p><h3>Where Deep Agents helps</h3><p>Building an agent that can investigate a payment outage takes more than a clever prompt. The agent has to plan its steps, check several systems, keep track of what it found, and stop to ask before doing anything risky. Building all of that by hand is slow, and every team builds it a little differently.</p><p>Deep Agents is LangChain’s open-source framework for exactly this kind of long-running, multi-step agent. Thoughtworks placed it in the “Trial” ring of its November 2026 Radar. In business terms, it gives the L1, L2 and L3 agents five things out of the box:</p><ul><li><strong>A plan. </strong>The agent can break an investigation into steps, much like the checklist a good engineer keeps in their head.</li><li><strong>Helpers. </strong>The L2 agent can send one helper to check the payment gateway and another to read the logs, each starting with a clean slate, and then combine what they found. This mirrors how a real L2 team splits the work during an incident.</li><li><strong>Runbooks as skills. </strong>The knowledge a support team already keeps in its runbooks can be given to the agents as skills they load when needed. For a service provider, those runbooks are valuable intellectual property, and this is how they start working for you.</li><li><strong>Working notes and memory. </strong>Evidence is written to a workspace as the agent goes, so long investigations do not lose track of earlier findings.</li><li><strong>Built-in pause points. </strong>Any risky action can be set to stop and wait for a person to approve, edit or reject it, and then carry on from where it stopped. This is where the action gate in Figure 1 connects to human approval.</li></ul><p>The framework removes plumbing. It does not remove design. You still decide which tools each agent may use, what it is allowed to do, and how you will test it.</p><h3>Where LangSmith helps</h3><p>Every client of an AI-run service eventually asks the same question: why did the AI do that? If you cannot answer it in a few minutes, trust goes quickly. LangSmith is the observability and evaluation platform from the LangChain team, and it answers that question in four ways.</p><ul><li><strong>A full trail for every ticket. </strong>You can see the decision model’s answers and confidence, the rule that routed the ticket, every tool the agent used, and every approval a person gave. That is your audit trail.</li><li><strong>Testing before go-live. </strong>You run the whole system over a set of tickets where the right answers are known, and compare it with a simpler baseline. Every change to a prompt, a rule or a model can be checked the same way before it reaches a client.</li><li><strong>Monitoring after go-live. </strong>Live traffic is scored as it arrives, so you notice when quality starts to slip, for example after a vendor quietly updates a model.</li><li><strong>Expert review queues. </strong>Tickets the system was unsure about can be sent to subject experts to review and label. Those labels then become new test cases. The human tail stops being just a cost and becomes the way the system learns.</li></ul><p>There is also a quieter benefit. LangSmith records the cost and time of every step. That means the numbers in Table 1 can come from real traces instead of estimates, and your business case gets stronger every week the service runs.</p><h3>How we are testing it</h3><p>I want to be clear: this is a blueprint under test, and the figures above are illustrative. Here is how it is being put to the test.</p><p>The test set is 3,200 synthetic tickets that look like real commerce support work: monitoring alerts, log notifications, outages, middleware alerts and payment failures of every kind. A quarter of them are deliberately hard. They include duplicate alert storms, tickets buried in irrelevant log noise, customer messages in Hinglish, tickets where the answer depends on a date or a threshold, and tickets with hidden instructions that try to trick the AI into issuing a refund. The right answers are stored separately and are never shown to any model.</p><p>The plan compares three approaches on the same tickets: simple rules only, a language model on its own, and the full decision-model pipeline. The main measure is not average accuracy. It is coverage at a target precision: what share of tickets can we automate while staying right at least 95% of the time?</p><p>What counts as a win is written down before anything runs. The pipeline must automate at least five percentage points more tickets than the next best approach at the same precision, do no worse on security and trick tickets, and cost less end to end. Writing the win condition down first stops the results from quietly reshaping the goal.</p><h3>Five lessons for leaders</h3><ol><li><strong>Ask “how sure?” before “how smart?” </strong>An honest confidence score is worth more than a few points of accuracy.</li><li><strong>Keep the maths in code. </strong>Counts, dates and thresholds belong in software, not in a model’s judgement.</li><li><strong>No AI model is a security guard. </strong>Permissions and approvals must be enforced in code and by people.</li><li><strong>People own anything that cannot be undone. </strong>Refunds, rollbacks and customer messages always pass through a human.</li><li><strong>Measure what you can safely automate. </strong>Coverage at a target precision is the number that pays the bills. And lock the model version, because a silent vendor update can change what your confidence bar means.</li></ol><h3>The bigger picture</h3><p>The future of AI in operations is not one giant model doing everything. It looks more like a well-run team: a fast decision-maker at the front door, careful investigators behind it, and experienced people who step in exactly where it matters.</p><p>Decision models make the front door cheap and honest. Deep Agents makes the investigators practical to build. LangSmith makes the whole thing visible and testable. And the simple maths above tells you, before you spend a rupee or a dollar, whether the design will pay for itself.</p><p>I will share the test results once they are in. If you run a support operation and want to compare notes, I would be glad to hear from you.</p><h3>Sources and further reading</h3><ul><li><a href="https://www.thoughtworks.com/radar/platforms/decision-models">Thoughtworks Technology Radar: Decision models (Nov 2026)</a></li><li><a href="https://www.thoughtworks.com/radar/languages-and-frameworks/deep-agents">Thoughtworks Technology Radar: Deep Agents (Nov 2026)</a></li><li><a href="https://infrabase.ai/alternatives/typesafe-jev">Infrabase: TypeSafe Jev alternatives (Laya, Kev)</a></li><li><a href="https://llmconfigurator.com/en/guides/decision-models">LLM Configurator: Running decision models locally (Nimble, Tev1)</a></li><li><a href="https://github.com/langchain-ai/deepagents">LangChain: Deep Agents on GitHub</a></li></ul><p>Originally published at <a href="https://agentic-ecom-operate.blogspot.com/2026/11/ai-in-operate.html.html">https://agentic-ecom-operate.blogspot.com/2026/11/ai-in-operate.html.html</a> on November 12, 2026.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47fe6311cf45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building self learning Orchestrated skill groups]]></title>
            <link>https://medium.com/@deepak.tiwari/i-spent-weeks-building-ai-skills-inside-a-chat-window-16418e4070a1?source=rss-c20e2da01d04------2</link>
            <guid isPermaLink="false">https://medium.com/p/16418e4070a1</guid>
            <category><![CDATA[claude-skills]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[ai-orchestrator]]></category>
            <dc:creator><![CDATA[Deepak Tiwari]]></dc:creator>
            <pubDate>Wed, 16 Sep 2026 16:57:39 GMT</pubDate>
            <atom:updated>2026-09-16T17:01:22.643Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>I Spent Weeks Building AI Skills Inside a Chat Window.</strong></p><p><strong>Here’s What Nobody Tells You About It.</strong></p><p><em>A real story about building six connected AI skills entirely through conversation — the mistakes that shaped them, the day it almost disappeared, and what actually happens when a team asks: can everyone use this?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*UxrZy9lKaYe1XAlTGjUpEw.png" /></figure><p>There’s a particular kind of dread that comes with opening a real RFP for the first time. Not the summary slide someone made for the kickoff call. The actual document: four hundred pages, split across a main body and a “detailed requirements” appendix that contradicts the main body in three places you won’t find until it’s too late. Somewhere in there is an application inventory, a spreadsheet with names like “eSuite/TIPS/QDOD” and “Aligne Registration,” and no column that reliably tells you which of those four hundred systems a real customer would ever touch, and which ones just move data around in the dark.</p><p>Next to that sits the incident data. Not one file, several, from different systems that don’t agree on what a “ticket” even is. One export calls something a Bug. Another calls the same kind of thing an Incident. A third has no type field at all, just a description and a date.</p><p>Somebody has to turn all of that into a staffing number, a price, and a leadership deck, by Thursday.</p><p>I spent a stretch of my working life doing exactly that, not once but as a repeating pattern, pursuit after pursuit, and at some point I stopped doing it by hand and started building something to do it with me. Not a script. Not a model I trained. A set of AI skills, built entirely inside a chat window, in plain English, over the course of dozens of conversations. This is the story of building that thing, breaking it, watching it break in ways I didn’t expect, and, more than once, catching a mistake right before it would have shipped.</p><h3>Where it actually started: one skill, and a keyword list that lied to me</h3><p>The first thing I tried to build was the simplest-sounding piece: read an RFP, read an application list, and tell me which applications were customer-facing. I figured a keyword list would get most of the way there — anything with “portal,” “customer,” “CRM” in the name, flag it.</p><p>It didn’t work. Not a little bit off. Genuinely wrong, on nearly half the real rows I tested it against. A payment-processing backend with no login screen anywhere near it turned out to be squarely customer-facing, because it was the exact system charging real people’s credit cards in real time. A tool literally named “Customer Nomination Portal” turned out, once I actually read what it did, to be nothing a customer ever touched. The name lied. The keyword list, trusting the name, lied right along with it.</p><p>That was the first real lesson, and it shaped everything after it: never classify anything from a label alone. Read the actual content. If the content doesn’t tell you enough, go look it up. If you still can’t tell, ask a human rather than guess and hope. I wrote that rule into the skill’s own instructions, in plain language, the way you’d write a note to a new colleague on their first day. And because it was instructions rather than code, I could watch it work — or fail — in real time, in the same conversation, and just… fix it. Rewrite the paragraph. Try again.</p><h3>Six skills need a conductor</h3><p>One skill turned into two, then six: one to classify the applications, one to read incident tickets and figure out how much of that work needed frontline triage versus deep specialist attention, one to turn that into an actual staffing estimate, one to price the commercial structure around it, one to research the client’s business and technology posture, and one to assemble everything into a single, leadership-ready brief.</p><p>Six skills that each did one real thing well immediately created a new problem: something had to decide which one ran when, in what order, and what to do if a step revealed something the plan hadn’t anticipated. That became the seventh piece — an orchestrator — and it does five real jobs, none of which is the actual work itself:</p><p>It <strong>validates</strong> — reads every file that gets uploaded, all the way through, not just the filename or the first column, before deciding what kind of data it’s actually looking at.</p><p>It <strong>plans</strong> — states the whole sequence of steps up front, in plain language, and waits for an actual yes before doing anything.</p><p>It <strong>gates</strong> — runs one step, watches what comes out of it, and only then moves to the next. If a step’s own internal question needs answering, the orchestrator doesn’t answer it on the user’s behalf just because the plan was already approved.</p><p>It <strong>produces</strong> — makes sure every artifact each step is supposed to generate actually gets generated, rather than quietly skipping the parts nobody explicitly asked to see again.</p><p>And it <strong>learns</strong> — when a real correction comes in, it writes that correction permanently into the right skill’s own file, not just into the current conversation, so the next run doesn’t repeat the same mistake.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*NRdasigNPg6PUXJG2dmDEQ.png" /></figure><p>Here’s the detail that took me a while to really sit with, and it’s the most honest thing I can tell you about how this actually works under the hood: none of that coordination happens through code calling code. There’s no function signature, no schema, no return value passed between the orchestrator and the classifier and the pricing skill. What actually happens is that one skill’s instructions contain a sentence that says, in effect, “go read this other skill’s own file, and follow what it says.” The model reads that sentence, fresh, every single time, and does exactly that. That’s the entire mechanism. Instructions calling instructions, held together by a model’s ability to read and follow them correctly, over and over, under real pressure, with real data.</p><p>Once you see that clearly, you stop thinking of this as “software” in the traditional sense. It’s closer to a very well-organized set of standard operating procedures, handed to someone extremely capable, extremely fast, and, this part matters, not always right the first time.</p><h3>The part that actually took the longest: teaching it to catch its own mistakes</h3><p>Building six skills that each technically worked was the easy part, in hindsight. The real work came after: running the pipeline against real, messy, contradictory data and finding the places where “technically correct instructions” still produced a wrong answer.</p><p>Two moments stand out, because they taught the same lesson twice, in two different disguises.</p><p>The first: a file’s own resolver-team field showed nothing but generic integration-team names, nothing that looked remotely connected to the specific system I was trying to analyze. On the strength of that one field, the natural move was to conclude the file was irrelevant and set it aside. Instead, I made myself read the actual ticket descriptions inside it. Buried in the free text, the exact system I was looking for was named, not once but hundreds of times, in job names and error messages that never showed up in any structured column at all.</p><p>The second, a few steps later: a different file’s own “type” field read as one specific kind of record, entirely, nothing else. Trusting that field would have meant treating the whole file as the wrong kind of data and excluding it. Reading the actual titles instead, the overwhelming majority of them carried a real, verifiable ticket number belonging to the exact record type I actually needed. The field was describing something else, which tool had logged it, not what it actually was.</p><p>Same lesson, twice: a structured field tells you how something was labeled by whoever filled it in. It doesn’t tell you what the thing actually is. The only way to know that is to read it.</p><p>What made this feel less like “using a tool” and more like mentoring someone was what happened next. I didn’t just fix the immediate problem and move on. I wrote the pattern — not the specific client details, just the shape of the mistake — permanently into that skill’s own instructions, as a named, generalized lesson: <em>check the filename, check every column, read real content, before you decide a file doesn’t matter.</em> The next time this pipeline runs, on a completely different pursuit, it starts already knowing not to make that exact mistake. That’s not a metaphor. That’s a paragraph of English, sitting in a file, that gets read into context every time the skill triggers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*kwma5ULlgncg1pIcUQsSDg.png" /></figure><h3>Getting smarter has a real cost, and nobody tells you that part upfront</h3><p>Here’s where I want to be honest rather than triumphant, because the honest version is more useful.</p><p>The mechanism for “getting smarter over time” in a system like this is, almost entirely, writing more into the instructions. Every lesson learned becomes another paragraph, another reference file, another thing the model has to read the next time the skill triggers. That’s not free. Across the life of this project, the working conversation eventually grew large enough that it needed to be compacted, summarized and compressed, just to stay usable. The system’s entire memory of its own history, at a certain point, became too heavy to carry around in full.</p><p>That’s a genuine trade-off, not a bug. The same mechanism that makes the system more careful over time also makes every future conversation start a little heavier. Nobody selling you on “AI that learns from its mistakes” mentions that the learning itself has a storage cost, paid in the currency of context, but it does, and it’s worth knowing before you build something the same way.</p><p>There’s a second, separate kind of memory worth naming, because it’s a genuinely different mechanism and it’s easy to conflate the two. Alongside the skill files themselves, a lightweight memory of past conversations can persist across sessions: a running sense of who you are, what you’re working on, what you’ve already told the system, carried forward without you having to repeat it. That’s not the same thing as a lesson written permanently into a skill’s own instructions. One is “the system remembers this specific fact about this specific situation.” The other is “the system now permanently behaves differently for everyone, forever.” Getting those two confused is an easy, costly mistake: treating a passing conversational note as if it were a permanent, generalized fix, or the reverse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*ujN-F8JWGZU7pf4RqkS7Fw.png" /></figure><h3>The day it almost disappeared</h3><p>Somewhere past the halfway point of building this, I asked for a full backup — a zipped archive of every skill file, just to have a copy saved somewhere outside the working environment. It felt like a small, slightly paranoid ask at the time.</p><p>A while later, in a completely different working session, I went looking for those same skills and found four out of fourteen. The other ten, including the orchestrator itself and two of the six pipeline skills, were simply gone. Not corrupted. Not moved. Gone, the way a folder is gone after a machine gets wiped and rebuilt from a clean image, which is more or less exactly what had happened underneath, invisibly, between one working session and the next.</p><p>The backup zip, asked for on a hunch weeks earlier, was the only surviving, verified-complete copy of that work. I didn’t just trust that it existed. I opened it, extracted every file, and read the actual content back out before restoring anything, because “the zip file is the right size” and “the zip file actually contains what you think it contains” are two different claims, and I’d rather find out the hard way in a sandbox than the harder way in front of a client.</p><p>The lesson here isn’t subtle: whatever environment you’re building this kind of thing inside, don’t assume it’s a permanent home. Treat every meaningful piece of work as something that needs a real, verified copy living somewhere else, before you need it, not after.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*nhlYZ0EgcSGir6FMZ3SQMg.png" /></figure><h3>The question that seemed simple: “can the whole team actually use this?”</h3><p>Once the pipeline worked, the obvious next question arrived: this is genuinely useful — how does everyone else on the team get to use it, from inside the same chat interface, without each person needing their own separate copy of six skill folders sitting in their own individual environment?</p><p>My first answer was wrong, and I want to walk through exactly how, because the correction is more instructive than the original idea.</p><p>There’s a real, well-documented way to package multiple skills into a single, versioned, installable unit — a manifest file, a folder structure, a marketplace you can point at and install from with a single command. I researched it properly, checked the actual technical requirements against the real skill files, confirmed nothing would break in the process, and wrote out a complete, step-by-step plan for building it.</p><p>It was a good plan for the wrong tool. That entire packaging mechanism belongs to a developer-facing, command-line version of this technology — built for someone working from a terminal on their own machine, not for a team collaborating inside a shared chat interface. The two are genuinely separate systems: skills built for one don’t automatically show up in the other, and nothing about installing a package on a command line puts anything into a chat window at all. I’d built a complete, technically correct answer to a question nobody had actually asked.</p><p>There’s a real difference underneath that mistake worth pulling apart, because it’s not just “two systems with different plumbing” — it’s two different ways of actually <em>building</em> the thing in the first place, and they suit different people doing different jobs.</p><p>A skill built through a command-line tool is written the way software is normally written: someone opens a file, writes instructions, saves, tests, commits. It rewards someone comfortable in that environment, and it’s genuinely well-suited to a developer maintaining a tool for other developers.</p><p>Everything in this piece happened the other way. Every one of these six skills was written, argued with, broken, and rewritten entirely in natural language, inside the same chat window where the actual work was happening — often in the middle of a real task, the moment a real mistake surfaced. There was no separate “build” step and “use” step. The fixing happened in the same breath as the failing. For the actual audience this was built for — analysts, consultants, and reviewers who think in RFPs and staffing models, not in pull requests — that’s not a lesser way of building something. It’s the only way that audience would ever have built it at all. The command-line version demands you already be a developer before you can start. The chat-native version only demands that you can describe, clearly, what went wrong and what should happen instead — which is a much larger group of genuinely capable people.</p><p>That’s the real argument for why this way of building suits enterprise chat users better, not just differently: it puts the ability to fix the system in the hands of the people who actually notice when it’s wrong.</p><p>The real answer, once I went looking properly, was already sitting inside the chat platform itself: on team and organization plans, a skill you’ve built can be shared directly — with specific colleagues, with a defined group, or with the entire organization — and it shows up in each recipient’s own skills list, right inside the same chat interface everyone already uses, no terminal, no installation step, no separate packaging format required. Upload once. Share it. Everyone toggles it on. Update it later, and everyone using it gets the update automatically, without doing anything themselves.</p><p>That’s the version worth knowing about if you’re trying to bring something like this to an actual team of people who live in a chat window all day, rather than a command line. It’s less impressive-sounding than “install our custom plugin marketplace.” It’s also the one that actually reaches the people you built this for.</p><h3>What this actually proves</h3><p>I don’t think the takeaway here is that AI is about to replace anyone doing this kind of work. What I watched happen, across dozens of real conversations, was narrower and — to me — more interesting: six connected pieces of plain-English instruction, built and refined entirely through natural conversation by someone who never wrote a line of application code, correctly handled a genuinely complex, high-stakes, real piece of work. Hundreds of real applications, classified correctly on evidence rather than assumption. Thousands of real support tickets, read and understood well enough to catch two of its own file-reading mistakes before they became wrong numbers in a real deliverable. A staffing estimate, a commercial structure, and a leadership brief, assembled from real data, with every gap named honestly instead of quietly filled in with a plausible-sounding guess.</p><p>It’s also, genuinely, still young. The coordination between skills is held together by prose being read correctly, not a guaranteed contract. Getting smarter costs real context weight. The environment it runs in isn’t guaranteed to remember what you built inside it, unless you go out of your way to make sure it does. None of that is a reason to dismiss it. It’s the actual, honest shape of what building with this looks like right now — worth knowing precisely, rather than either oversold or waved away.</p><p>I’d rather tell you both halves of that than just the part that makes a better headline.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16418e4070a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One Agent, Every Feature]]></title>
            <link>https://medium.com/@deepak.tiwari/one-agent-every-feature-4226526bcd03?source=rss-c20e2da01d04------2</link>
            <guid isPermaLink="false">https://medium.com/p/4226526bcd03</guid>
            <category><![CDATA[sandbox]]></category>
            <category><![CDATA[langsmith]]></category>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[langchain-deepagents]]></category>
            <category><![CDATA[gemini]]></category>
            <dc:creator><![CDATA[Deepak Tiwari]]></dc:creator>
            <pubDate>Sat, 25 Jul 2026 17:13:08 GMT</pubDate>
            <atom:updated>2026-07-25T17:13:08.343Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I built a single application that uses all fourteen of the Langchain’s Deep Agents capabilities — planning, sub-agents, sandboxes, skills, compliance gates, human approval, durable execution — to find out what this generation of agent tooling actually feels like when you use all of it at once. This is the field report. Eleven bugs included.</em></p><p>Field report · ~15 min read · Code: github.com/deepzola/deepdesk</p><h3>Why I did this</h3><p>Most of what gets published about AI agents falls into one of two piles.</p><p>The first pile is a demo. Someone wires a model to two tools, it books a fictional flight, and the post ends before anything is durable, observable, or safe. The second pile is a framework’s own documentation, where every feature works because every feature is being shown alone, on a clean bench, with nothing else running.</p><p>Neither pile answers the question I actually had, which was this: <strong>if you use <em>all</em> of it — every capability the framework ships, in one workflow, at the same time — what breaks?</strong></p><p>That question isn’t idle. The interesting work in agent engineering has quietly moved. It used to be prompting. It isn’t any more. It’s now context management, deterministic guarantees around non-deterministic components, and boring operational concerns: durability, observability, human approval, what happens when your model provider stops answering the phone. Those things only reveal themselves under load, and only when features start rubbing against each other.</p><p>So I picked the densest thing available — the <strong>Deep Agents</strong> pattern on <strong>LangChain v1</strong> and <strong>LangGraph</strong> — and set myself one goal:</p><p><strong>One application. All fourteen capabilities. One trace in which every one of them fires, in context, in a single run.</strong></p><p>Not fourteen demos. One workflow.</p><p>It took about four weeks. It produced a working application, eleven documented bugs, and a set of opinions I didn’t have before. Somewhere in the middle, an em dash silently killed entire runs for the better part of a day. We’ll get there.</p><p><strong>If you’re not a hands-on engineer, here’s the short version of why this matters to you.</strong> A chatbot answers. An agent <em>acts</em> — it plans, uses tools, delegates, writes files, and occasionally sends things to real people. The moment software acts on your behalf, the questions stop being “is the answer good?” and become the questions you’d ask about any employee: Can I see what it did? Can I stop it? Can I make it get approval before the irreversible step? If it fails halfway, does it lose everything? Nearly every capability below exists to answer one of those. That’s the actual story of the last two years — not smarter models, but sturdier scaffolding around them.</p><p>And if you’re an engineer: <strong>do this yourself.</strong> Not because DeepDesk is important, but because forcing every feature into one process is the only way to find the interactions. Isolated demos would have passed cleanly and taught me nothing.</p><p>The code is at <a href="https://github.com/deepzola/deepdesk">github.com/deepzola/deepdesk</a>.</p><h3>What I built</h3><p><strong>DeepDesk</strong> is a research-and-report application. You give it a topic; it gives you a cited two-page brief.</p><p>Between those two points, quite a lot happens:</p><p>user topic</p><p>└─ orchestrator: write_todos (plan)</p><p>├─ task → research-agent [tools: internet_search, fetch_page]</p><p>│ └─ offloads raw payloads to /research/raw/</p><p>│ distils to /research/notes.md</p><p>├─ execute (sandbox) → runs Python over the scraped numbers</p><p>├─ task → fact-checker [tools: fetch_page, calc; skills: /skills/]</p><p>│ └─ writes /research/factcheck.md</p><p>├─ task → report-writer [tools: NONE; skills: /skills/]</p><p>│ └─ writes /report/draft.md per the report-writing skill</p><p>└─ send_report(body_path=”/report/draft.md”)</p><p>├─ ComplianceMiddleware → COMPLIANCE BLOCK → agent edits → retry</p><p>├─ HumanInTheLoopMiddleware → PAUSE → human approves in the UI</p><p>└─ published to data/outbox/</p><p>An orchestrator writes a plan. It delegates to three specialist sub-agents. Bulky tool output gets offloaded to a virtual filesystem instead of clogging the conversation. Numbers get crunched in a sandbox. The draft passes a deterministic compliance gate. Then the run <strong>stops and waits for a human to approve</strong> before anything is published.</p><p>Every arrow above is a checkpoint written to SQLite. Every box is a node in one LangSmith trace. The whole thing streams live to a browser over SSE, and you can cancel it, redirect it mid-run, or fork it from any past checkpoint and re-run with a different instruction.</p><p>The report itself was never the point. The point was the trace.</p><h3>The rule I refused to break</h3><p><strong>Don’t hand-roll any of it. Use the real deepagents package. If a capability exists as a framework primitive, use the primitive — even when writing it myself would be faster.</strong></p><p>This matters more than it sounds. It is trivially easy to “demonstrate agent planning” by writing a to-do list into a system prompt and calling it planning. You get a nice screenshot and learn nothing.</p><p>Every capability in DeepDesk routes through the actual primitive: TodoListMiddleware, CompositeBackend, SummarizationMiddleware, HumanInTheLoopMiddleware, SandboxBackendProtocol, the task tool, the skills loader. Which means every bug below is <strong>real framework friction</strong>, not friction with my own scaffolding. That’s the only thing that makes this worth writing up.</p><p>A second rule arrived by accident and turned out to be the best decision in the project: <strong>the app must run with zero API keys.</strong> An offline scripted “fake” model provider and deterministic mock search mean the entire workflow runs on a laptop with no network, in about two seconds. It saved me repeatedly. It also caused the strangest bug in the project.</p><p><strong>Versions, because this ecosystem moves weekly:</strong> deepagents 0.6.12, langchain 1.3.14, langchain-core 1.4.9, langgraph 1.2.9, langgraph-checkpoint-sqlite 3.1.0, langchain-google-genai 4.2.7, langsmith 0.10.6. Python 3.13.7, on Windows. Pin all of it.</p><h3>The harness is the product</h3><p>Here’s the framing that made everything else click.</p><p>A model is not an agent. A model is a function from text to text. What turns it into something that plans, delegates, writes files, and asks permission is everything wrapped <em>around</em> it — the loop, the tool definitions, the context policy, the state machine, the interrupts, the storage. The industry has settled on a word for this: the <strong>harness</strong>.</p><p>The uncomfortable implication is that most of the quality of an agent system is not in the model at all. Swap the model and behaviour shifts a bit. Swap the harness and you have a different product.</p><p>DeepDesk is, in that sense, a harness study. And the thing I did not expect is how <em>little</em> of the harness is prompting. Here’s the entire agent assembly:</p><p>agent = create_deep_agent(</p><p>model,</p><p>tools=[internet_search, fetch_page, calc, send_report],</p><p>system_prompt=ORCHESTRATOR_PROMPT,</p><p>subagents=[research_agent, fact_checker, report_writer],</p><p>skills=[“/skills/”],</p><p>backend=backend, # CompositeBackend</p><p>middleware=[ComplianceMiddleware()],</p><p>interrupt_on={“send_report”: {“allowed_decisions”:</p><p>[“approve”, “edit”, “reject”]}},</p><p>checkpointer=saver, # AsyncSqliteSaver</p><p>store=store,</p><p>)</p><p>Roughly twenty lines produce planning, delegation, a virtual filesystem, sandboxed code execution, automatic context compaction, skills, a compliance gate, human approval, and durable checkpointing.</p><p>The density is remarkable. It’s also the trap: <strong>when this much behaviour is implicit, debugging requires knowing what’s in the box.</strong> Almost every hour I lost, I lost to a default I didn’t know existed.</p><h3>Deep Agents, stripped of marketing: four ideas</h3><p><strong>1. The agent is a graph, not a loop.</strong> Under LangGraph the agent is a state machine whose state advances only at checkpoint boundaries. This is the single most consequential fact in the stack. It’s why you get durable execution, resumability, time-travel forking and human-in-the-loop essentially for free — and why cancelling mid-tool-call is safe. The partial call is abandoned; state never half-advanced.</p><p><strong>2. Context is a filesystem, not a transcript.</strong> Stop stuffing everything into message history. Give the agent a virtual filesystem, have tools write big payloads to it, let the agent read back only what it needs. DeepDesk’s internet_search returns a five-line digest plus a path; the 40 KB of raw results lands in /research/raw/. Context stays small. Nothing is lost.</p><p>The filesystem is pluggable by <em>prefix</em>, which is a lovely piece of design:</p><p>backend = CompositeBackend(</p><p>default=sandbox_backend,</p><p>routes={“/memories/”: StoreBackend(store)},</p><p>)</p><p>Everything under /memories/ transparently lands in the LangGraph store; everything else hits the workspace. Adding a Notion or GitHub backend later is “implement BackendProtocol, add one route.” The agent’s code doesn’t change at all.</p><p><strong>3. Sub-agents are context isolation, not org charts.</strong> This is the most misunderstood idea in the space. A sub-agent isn’t an employee with a job title. It is <strong>a fresh context window with a restricted toolset</strong>. DeepDesk’s report-writer has tools: [] — filesystem built-ins only. It literally cannot search the web or send a report. That isn’t role-play; it’s an enforced capability boundary, and it’s exactly why the writer never wanders off to do “a bit more research” instead of writing.</p><p>Restricting tools turned out to be a <em>quality</em> technique, not just a safety one. The narrower the toolset, the more reliably a sub-agent does its actual job.</p><p><strong>4. Middleware is where your business logic lives.</strong> The built-in stack is itself middleware — planning is TodoListMiddleware, compaction is SummarizationMiddleware, approval is HumanInTheLoopMiddleware. Once you see that, you stop asking “how do I make the agent do X” and start asking “what hook does X belong in.”</p><h3>Progressive disclosure: the fix for your 4,000-token system prompt</h3><p>If you’ve built anything serious, you know the failure mode: the system prompt becomes a landfill. Style guide, output format, edge cases, three things someone got burned by in March. Every token of it is paid for on every single call, whether or not it’s relevant.</p><p><strong>Skills</strong> are the answer, and they’re the most quietly elegant thing in the framework.</p><p>A skill is a SKILL.md file with YAML frontmatter. The <em>metadata</em> — name, one-line description — is injected into the system prompt. The <em>body</em> is not. The agent reads the body on demand, via read_file, only when it decides the skill is relevant.</p><p>DeepDesk has two: report-writing and citation-checking. The report-writing skill encodes the exact document structure and the citation rule. Which means the writer sub-agent’s own system prompt stays <strong>four sentences long</strong>. The agent knows the skill exists; it fetches the detail when it needs it.</p><p>This is progressive disclosure, the same principle behind every well-designed menu system: show the shape, reveal the depth on request. Once you have it, permanently stuffing instructions into context starts to look like what it is — a failure to route.</p><p>The same instinct shows up twice more in the stack, which is what convinced me it’s a principle and not a feature:</p><p>• <strong>Context offloading.</strong> Tools return a digest and a path, never the raw payload. FilesystemMiddleware adds a second layer, auto-evicting any tool output over ~20k tokens to a file. This is the capability with the highest practical payoff and the least glamour — and the one you must design into your tool signatures on day one, because you cannot bolt it on later without rewriting every tool.</p><p>• <strong>Auto-compaction.</strong> SummarizationMiddleware compresses history when it grows too large, preserving the full transcript to /conversation_history/&lt;thread&gt;.md. The default threshold is ~170k tokens, which means <strong>you will never see it fire in a demo.</strong> Make it configurable and lower it once, deliberately, so you’ve actually watched the thing work.</p><p>Three capabilities, one idea: actively manage what’s in the window. This is where the leverage is now. The prompts in DeepDesk are short and boring. All the design work went into context.</p><h3>Sandboxes: giving an agent a computer, carefully</h3><p>At some point your agent needs to <em>compute</em> rather than <em>reason</em> — average these figures, parse this table, run this bit of Python over the scraped numbers. You can let a model do arithmetic in its head and hope, or you can give it a machine.</p><p>DeepDesk gives it two, at different weights.</p><p><strong>The lightweight one</strong> is a calc tool: restricted-AST arithmetic evaluated in-process, whitelisted operators and functions only, __import__ rejected. No container round-trip. Most “calculations” an agent wants are one-liners, and paying a full sandbox round-trip for mean([44, 132, 218]) is silly. The docstring has to be explicit about when <em>not</em> to use it, or the model will earnestly try to run pandas through it.</p><p><strong>The real one</strong> is a pluggable sandbox behind SandboxBackendProtocol. And the API design here is genuinely good: you implement <strong>four primitives</strong> — execute, id, upload_files, download_files — and BaseSandbox derives every file operation from them: ls, read, write, edit, glob, grep. A complete new sandbox backend is about eighty lines. My Modal cloud implementation is exactly that.</p><p>Two things I’d want to know before starting:</p><p>• The built-in execute tool <strong>only appears if your backend implements SandboxBackendProtocol.</strong> If execute is mysteriously missing from your agent’s toolset, that’s why. It cost me an hour.</p><p>• <strong>The dev-default local shell backend has no isolation whatsoever.</strong> It runs LLM-generated commands directly on your machine, as you. It is a development convenience with a loud warning attached, and there is a one-environment-variable path to a real cloud sandbox. Take it. I cannot make this point strongly enough, and I’d rather say it here than have you discover it.</p><h3>LangSmith: the trace is the only debugger</h3><p>A multi-agent run has no stack trace. No breakpoint. No log line that means anything. When an orchestrator delegates to a sub-agent that calls a tool that writes a file that a second sub-agent reads, “what went wrong” is not a question print() can answer.</p><p>There is only the tree.</p><p>LangSmith wires in through environment variables — I wrote <strong>zero lines of custom logging</strong>. What you get back is a nested trace: every model call, every tool call, every sub-agent boundary, with inputs, outputs, timings and token counts. For DeepDesk, one run is one tree, and the whole block-and-retry cycle of the compliance gate is visible in it as a shape.</p><p>Two things I added on top:</p><p>• A per-run <strong>trace-URL endpoint</strong>, so the UI links straight to the trace for that run. Small; disproportionately useful.</p><p>• An <strong>“ask questions about this trace” endpoint</strong> — it fetches the run tree and has a model answer questions over it. “Which sub-agent took longest?” “Where did the uncited figure first appear?” This is where agent debugging is heading, and it’s a good use of a model: reading a structured artifact, not guessing.</p><p>The recommendation I’d make loudest in this whole article: <strong>verify tracing end-to-end before you write any agent code.</strong> My first script was hello_trace.py — forty lines that make one trivial model call and confirm the trace appears. Written before a single line of DeepDesk existed. Do that first. Always.</p><h3>Evals: what I have, and what I deliberately don’t</h3><p>I want to be precise here, because “evals” is a word people use to mean four different things.</p><p><strong>What DeepDesk has is a deterministic offline smoke suite</strong>: sixteen checks, no API keys, roughly two seconds. Because of the fake provider and the mock search, it exercises every non-model part of the system — backends, prefix routing, offloading, sandbox wiring, middleware, human-in-the-loop plumbing, skills sync — with no network and no cost. It caught real regressions. Three of those checks exist purely because of a bug I’ll describe in a moment.</p><p><strong>What that is not</strong> is an evaluation of output quality. It tells me the harness works. It says nothing about whether the report is any good.</p><p>The distinction matters, and the split maps cleanly onto the design principle I’d defend hardest:</p><p><strong>Deterministic tests</strong></p><p><strong>Evals</strong></p><p><strong>Question</strong></p><p>Did the machinery run correctly?</p><p>Was the output good?</p><p><strong>Method</strong></p><p>Assertions. Same input, same verdict.</p><p>Graded, by model or human, over a dataset.</p><p><strong>When it fails</strong></p><p>Something is broken. Fix it.</p><p>Something is worse. Investigate.</p><p><strong>Cost</strong></p><p>Free, instant.</p><p>Real money, real latency, real noise.</p><p>Most teams reach for the right column and skip the left, which is backwards. Assertion-testable behaviour should be asserted. Only the genuinely subjective stuff — is this brief well-structured, is the reasoning sound — belongs in an eval harness, where LangSmith’s dataset-and-experiment tooling is the natural home: pin a set of topics, run the workflow, score outputs, and compare across versions and models so you can tell “we changed the prompt” from “the provider changed the model underneath us.”</p><p>Building that dataset is DeepDesk’s most obvious missing piece and I’d rather say so than imply otherwise. The tracing is real. The offline suite is real. The graded eval loop is the next thing, not a shipped thing.</p><p>Which leads directly into the strongest idea in the project.</p><h3>Put your guarantees in code, not in prompts</h3><p>ComplianceMiddleware blocks send_report when the draft contains a monetary figure or percentage in a paragraph with no citation.</p><p>It is <strong>pure regex. No model call.</strong> Same input, same verdict, every time, at zero cost and zero latency. It is the most trustworthy component in the entire application and comfortably the least clever one.</p><p>There’s a principle underneath that I’d now defend in any design review: <strong>agents should be non-deterministic where you want creativity and deterministic where you want guarantees.</strong> Research and writing? Let the model be a model. “Never send an uncited financial figure”? That is a rule. Rules belong in code. If your compliance check can be talked out of it by prompt injection, it was never a compliance check.</p><p>The second-order effect is the part I didn’t anticipate. The block message <em>teaches</em> the agent. It returns a ToolMessage beginning COMPLIANCE BLOCK: listing the exact offending paragraphs; the agent edits the draft and retries; the whole block → fix → retry loop is visible in the trace as a shape you can recognise at a glance. A deterministic gate plus a self-correcting loop beats an LLM judge on cost, on latency, <em>and</em> on reliability.</p><p>The same logic applies to human approval. interrupt_on={“send_report”: {…}} makes approval a <strong>graph interrupt</strong>, not a console prompt. The run halts, the server marks it awaiting_approval, the UI offers Approve / Edit / Reject, and the decision resumes the graph. Because it’s an interrupt, the process can die between the pause and the approval and the run still resumes correctly. A blocking input() would have looked identical in a demo and been worthless in production.</p><h3>The bug gallery</h3><p>This is the part I’d read first, so here it is properly.</p><h3>The em dash that silently killed entire runs</h3><p>Runs would stop. Not crash — stop. No exception, no red in the trace, no error anywhere. Just an open node and a spinner, looking exactly like a model doing hard thinking.</p><p>deepagents’ LocalShellBackend.execute calls subprocess.run(…, text=True) and never specifies an encoding. On Windows, text=True decodes using the locale codepage, cp1252. The instant a sandboxed script printed one UTF-8 byte cp1252 can’t represent — a curly quote, an emoji, an em dash from a scraped page — the subprocess reader thread threw, died, and took the run with it.</p><p>class Utf8LocalShellBackend(LocalShellBackend):</p><p>def execute(self, command, *, timeout=None):</p><p>result = subprocess.run(</p><p>command, shell=True, capture_output=True, text=True,</p><p>encoding=”utf-8&quot;, errors=”replace”, # ← the entire fix</p><p>timeout=timeout, env=self._env, cwd=str(self.cwd),</p><p>)</p><p>…</p><p>Two lessons. First, <strong>the agent ecosystem is developed on macOS and Linux; Windows support is best-effort.</strong> Budget for it. Second, and more general: <em>a crashed reader thread looks exactly like a slow agent.</em> Any failure mode that presents as “hanging” will cost you hours. Always be able to answer the question <strong>“is it thinking, or is it dead?”</strong></p><h3>The provider died mid-project and accidentally proved the point</h3><p>The brief specified GLM-5.2. Every call returned HTTP 429, insufficient balance. The account was unfunded and the project was blocked at the first real run.</p><p>The fix was one line in .env:</p><p>DEEPDESK_ORCHESTRATOR_MODEL=glm:glm-5.2</p><p>↓</p><p>DEEPDESK_ORCHESTRATOR_MODEL=gemini:gemini-3.5-flash</p><p>The migration touched <strong>zero lines of agent code</strong>. Not the orchestrator, not the sub-agents, not the tools, not the middleware. Only the provider factory knew anything had changed, because every role is a “provider:model” string resolved in exactly one place.</p><p>I had built that factory as bullet point nine on a checklist. Then a billing problem tried to kill the project and it paid for itself in a single line.</p><p><strong>Model-agnosticism isn’t a feature you demo. It’s insurance you buy.</strong> It’s about thirty lines. Build it before you need it, because you’ll discover you needed it at the worst possible moment.</p><p>Two Google-shaped bruises came free with that move. API_KEY_SERVICE_BLOCKED turned out to be a <em>surface</em> problem, not a key problem — Google runs two Gemini APIs, the Developer API and Vertex AI, and my key was valid on one and blocked on the other. Separately, gemini-2.5-pro returned 404 because it’s closed to new API users: documented, real, and unreachable for my key. Treat model availability as <strong>per-key</strong>, not global.</p><h3>NotImplementedError, or: the bug that waits until you think you’re finished</h3><p>The compliance middleware worked perfectly from the CLI. The moment the identical code ran under the web server, it raised NotImplementedError.</p><p>The CLI drives the agent with stream()/invoke(). The server uses astream(). LangChain middleware hooks come in <strong>sync/async twins</strong> — wrap_tool_call and awrap_tool_call — and I’d implemented only the sync one. Under async the framework looks for the twin, doesn’t find it, and raises.</p><p>class ComplianceMiddleware(AgentMiddleware):</p><p>@staticmethod</p><p>def _block_message(tool_call, report_text) -&gt; ToolMessage | None:</p><p>… # all the actual logic — no I/O, no await</p><p>def wrap_tool_call(self, request, handler):</p><p>… # sync download → block or handler(request)</p><p>async def awrap_tool_call(self, request, handler):</p><p>… # await adownload_files → block or await handler(request)</p><p>I think this is the single most likely thing to bite a new user, precisely because it only manifests when you move from a script to a server — the exact moment you believe you’re done. Write both hooks from the start, keep the decision logic in a pure function they share, and test the async path explicitly.</p><h3>Yesterday’s report showed up in today’s run</h3><p>Start a fresh run, and the UI immediately displays a completed report — from the <em>previous</em> run.</p><p>Not a caching bug. The workspace backend is a real directory and it persists, exactly as designed. /report/draft.md from the last run is still sitting there when the next one starts, and stays until the writer overwrites it minutes later.</p><p><strong>Filesystem-as-state means state outlives the run.</strong> That’s the feature and the bug in one sentence. Decide explicitly, per directory, what is run-scoped and what is durable — I clear workspace/report and workspace/research at run start while preserving /skills/ and /memories/. And if you render agent artifacts in a UI, be very sure you’re rendering <em>this</em> run’s.</p><h3>300 MB of checkpoints</h3><p>data/checkpoints.sqlite reached roughly 300 MB. Working as designed: <strong>every step snapshots the full state.</strong> That’s what buys time-travel and resumability. The storage is the invoice.</p><p>Durable execution costs disk roughly proportional to steps × state_size. Plan retention up front — prune old threads, or use a checkpointer with TTL. I’ve yet to see a tutorial mention this.</p><h3>The offline-determinism tax</h3><p>My favourite, because it’s the subtlest.</p><p>Reports on a <strong>paediatric health</strong> topic began confidently discussing the market positions of “Northwind Analytics” and “QuantEdge Labs.” Neither company exists.</p><p>With no Tavily key, internet_search returns deterministic <strong>mock</strong> results with invented companies and revenues. That mock is deliberate — it’s what lets the pipeline run offline, and it plants an uncited $999 million figure on purpose so the compliance gate has something real to catch. But the sandbox-driven parts of the same run were fetching <em>genuine</em> pages. So the final report blended real paediatric facts with fictional market players, and it read exactly as incongruous as it sounds.</p><p><strong>A fixture that’s convenient for testing can be actively misleading in a demo.</strong> Plausible-looking mock data is more dangerous than obviously-fake mock data. Next time the companies get named MOCK_COMPANY_A and every mock figure carries a visible marker. Make your fake data look fake.</p><p><em>There were five more — an</em> AttributeError <em>because</em> ReadResult <em>carries its payload at</em> read_result.file_data[“content”] <em>and not</em> .content<em>; a LangSmith</em> list_runs <em>limit cap that only surfaced on long runs; a stale machine-level</em> GOOGLE_API_KEY <em>from a forgotten project. The generalisable lesson from all three:</em> <strong>read the installed source, and pass credentials explicitly.</strong> <em>For a package at 0.6.x velocity,</em> site-packages <em>is more current than the docs and infinitely more current than any blog post — including this one.</em></p><h3>If you’re starting tomorrow</h3><p><strong>1.</strong> <strong>Verify tracing end-to-end first.</strong> Forty lines, before any agent code.</p><p><strong>2.</strong> <strong>Pin every version.</strong> LangChain v1 and deepagents 0.6.x move weekly.</p><p><strong>3.</strong> <strong>Build the provider factory immediately.</strong> “provider:model” strings, per role, one resolver.</p><p><strong>4.</strong> <strong>Build an offline fake provider and mock tools</strong> — and make the fakes obviously fake.</p><p><strong>5.</strong> <strong>Use the real primitives.</strong> Hand-rolled “planning” teaches you nothing and you’ll rewrite it.</p><p><strong>6.</strong> <strong>Read site-packages.</strong> It’s the only accurate documentation for fast-moving packages.</p><p><strong>7.</strong> <strong>Write both sync and async middleware hooks from the start,</strong> sharing pure logic.</p><p><strong>8.</strong> <strong>Design offloading into your tool signatures from day one</strong> — digest plus path, never the raw payload.</p><p><strong>9.</strong> <strong>Give every sub-agent the minimum viable toolset,</strong> and write its description like API documentation, not a job title. It’s what the orchestrator reads when deciding whom to call.</p><p><strong>10.</strong> <strong>Put guarantees in deterministic code, not prompts.</strong></p><p><strong>11.</strong> <strong>Lower the compaction threshold once and watch it fire,</strong> so you know it works.</p><p><strong>12.</strong> <strong>Reset run-scoped artifacts explicitly.</strong></p><p><strong>13.</strong> <strong>Budget for checkpoint growth.</strong></p><p><strong>14.</strong> <strong>Never run the local shell sandbox anywhere real.</strong></p><h3>What DeepDesk is not</h3><p>Credibility is cheap to claim and expensive to earn, so:</p><p>• <strong>send_report publishes to a local outbox folder.</strong> No real email, Notion or GitHub integration. The backend protocol is the documented plug-in point; I deliberately didn’t build it.</p><p>• <strong>The Modal cloud sandbox is implemented but not exercised in CI</strong> — it needs credentials. Without them the app falls back to the unsafe local shell, and says so loudly.</p><p>• <strong>/memories/ is backed by an in-memory store.</strong> Durable across runs within one server process, not across restarts. Swapping in a persistent store is a one-line change I haven’t made.</p><p>• <strong>Default search is mock.</strong> Real search needs a Tavily key.</p><p>• <strong>The offline fake provider proves wiring, not reasoning.</strong> Everything except the model calls is identical in both modes — but the fake model cannot research anything.</p><p>• <strong>There is no graded eval dataset yet.</strong> Sixteen deterministic checks are not evals, and I’m not going to pretend otherwise.</p><p>• <strong>The Windows fixes are carried in-tree.</strong> Upstream may fix them properly; my subclass is a workaround, not a contribution. Yet.</p><h3>The one thing I’d tell you</h3><p>Build <strong>one workflow that uses everything</strong>, rather than fourteen toy demos.</p><p>Nearly every lesson above came from an <em>interaction</em> between capabilities, not from a capability. Async middleware crossed with the server transport. Filesystem persistence crossed with run boundaries. Mock fixtures crossed with real page fetches. Encoding defaults crossed with scraped punctuation. Fourteen isolated demos would each have passed — cleanly, quickly, and uselessly.</p><p>The framework is dense in a way that is simultaneously its best quality and its main hazard. Twenty lines give you an enormous amount of behaviour, and when something misbehaves the cause is almost always a default you didn’t know was there: compaction at 170k, execute appearing only for sandbox backends, middleware hooks with async twins you never wrote.</p><p><strong>The learning curve isn’t the API. It’s the defaults.</strong></p><p>They’re all knowable. Most are one careful afternoon and a read through site-packages away. But until you’ve been bitten, “is it thinking, or is it dead?” is a question you cannot answer — and that question, more than any benchmark, is the one that separates a demo from a system.</p><p>Code: <a href="https://github.com/deepzola/deepdesk">github.com/deepzola/deepdesk</a>. Fourteen capabilities, eleven bugs, one trace. #AgentHarness #Langchain #DeepAgents #Sandboxes #Progressive Disclosure #Gemini #GLM #Middleware #Langsmith</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4226526bcd03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an Autonomous Serverless AI Agent on GCP.]]></title>
            <link>https://medium.com/@deepak.tiwari/building-an-autonomous-serverless-ai-agent-on-gcp-86362d0cf541?source=rss-c20e2da01d04------2</link>
            <guid isPermaLink="false">https://medium.com/p/86362d0cf541</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Deepak Tiwari]]></dc:creator>
            <pubDate>Sun, 10 May 2026 14:59:33 GMT</pubDate>
            <atom:updated>2026-05-10T14:59:33.889Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building an Autonomous Serverless AI Agent on GCP. A Journey of “Perfect Architecture” and Hard-Earned Lessons</h3><h4><em>The creation of fully functional production agents and the challenges in doing so.</em></h4><p>In the modern web application landscape, the “Holy Grail” isn’t just a CI/CD pipeline — it’s true, autonomous operations. Recently, I set out to build an autonomous <strong>AI agent</strong> for my platform, <a href="https://justprompting.in/"><em>JustPrompting.in</em></a>. My specific goal was to automatically scour the web for the latest, most credible AI and Prompt Engineering news, update the live website, and send a status report — all without human intervention. What started as a straightforward idea quickly evolved into a masterclass in Google Cloud Platform (GCP) architecture, security policies, and the hidden quirks of LLM API integrations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WB8fACo080V9p8-_TQAZjQ.png" /></figure><ol><li><strong>The Goal:</strong> <br>An Autonomous AI News Curator The objective was clear: every 15 days, an agent should wake up, find 3 highly relevant and credible news articles about AI Prompting, inject them directly into the live website’s Tailwind CSS template, and deploy the changes. To achieve this, I leveraged: <strong>Gemini 2.5 Pro</strong> with <strong>Google Search Grounding.</strong> To fetch up-to-date news and prevent hallucinations. <strong>BeautifulSoup </strong>To parse the existing index.html, remove the old news cards, and inject new ones while preserving complex Tailwind classes. <strong>Cloud Run Jobs &amp; Cloud Scheduler:</strong> To run the agent on a cron schedule in a containerized environment.</li></ol><p><strong>2. Designing the “Perfect Architecture” : <br></strong>In a serverless world, file persistence is a challenge. If an autonomous agent modifies a website and deploys it, how do you prevent local developer pushes from overwriting that work? I arrived at what is called as the <strong>“Perfect Architecture”: <em>The Google Cloud Storage (GCS) Bucket as the absolute Source of Truth</em></strong>. The workflow is as follows: <br><strong>Storage</strong>: I created a private GCS bucket. <br><strong>Workflow</strong>: The Cloud Run agent wakes up, downloads the source code from the bucket into a temporary directory, modifies index.html, and pushes the updated file back to the bucket. <br><strong>Deployment</strong>: The agent then executes gcloud app deploy from within the container to push the live site to App Engine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*OEiJaHMMXj_jHntMO2YSqw.png" /></figure><p><strong>3. Security First: The Zero-Key Policy <br> </strong>Hardcoding credentials is a cardinal sin. I wanted a robust security posture:<br> <strong>Authentication</strong>: The agent uses GCP Workload Identity Federation. No service account JSON keys were generated or downloaded. <br><strong>Secrets Management</strong>: The agent needs to send a confirmation email after every run via a Gmail App Password. I stored this securely in Google Secret Manager, allowing the Cloud Run job to fetch it dynamically at runtime.</p><p><strong>4. LLM Quirks:</strong> <br>When Structured Outputs Fail I initially used <strong>Pydantic </strong>to enforce a strict JSON schema on the LLM’s output. I wanted exactly 3 articles with specific metadata. However, I hit two significant hurdles:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zMdcA9JQh45lWuYBfElPoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*hdxh6vx7oi057cCaXZyqPQ.png" /></figure><p><strong>Hurdle 1: The Search Grounding Conflict</strong> I quickly hit a 400 INVALID_ARGUMENT error from Vertex AI. It turns out that, currently, combining response_schema (Controlled Generation) with the google_search tool (Search Grounding) is not supported in the same API call. <strong><em>The Fix</em></strong><em>:</em> I dropped the API-level schema enforcement, explicitly prompted the model to output raw JSON without markdown blocks, and parsed it manually.</p><p><strong>Hurdle 2: Pydantic’s Unforgiving Nature</strong> We initially set max_length=200 for the excerpt. But LLMs are inherently variable. Gemini occasionally returned 210 characters, causing the entire pipeline to crash due to a Pydantic validation error. <strong><em>The Fix</em></strong><em>:</em> I realized that strict validation on LLM text generation in a production pipeline is a recipe for brittle deployments. We completely ripped Pydantic out of the agent, falling back on simple Python dictionary parsing and letting the HTML/CSS handle text wrapping.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K0CcqzIz60QHjV0HVR6MeQ.png" /></figure><h3>5. The IAM Permissions Maze</h3><p>Perhaps the most time-consuming challenge was getting the Cloud Run container to successfully execute gcloud app deploy. It wasn&#39;t enough to just give the service account the &quot;App Engine Deployer&quot; role. I ran into a cascade of errors:</p><ul><li><strong>SERVICE_DISABLED:</strong> The App Engine Admin API wasn&#39;t enabled for the project.</li><li><strong>403 Could not list bucket:</strong> App Engine uses an internal staging bucket (staging.&lt;project-id&gt;.appspot.com) during deployment. The agent needed roles/storage.objectAdmin on that specific bucket.</li><li><strong>PERMISSION_DENIED: You do not have permission to act as...:</strong> The Cloud Run service account needed the roles/iam.serviceAccountUser role to impersonate the default App Engine service account.</li></ul><p>Once I mapped out this precise web of IAM bindings, the deployment executed flawlessly in exactly 4 minutes and 11 seconds.</p><h3>6. SEO and the Final Polish</h3><p>With the agent working, we needed to ensure search engines recognized the fresh content. I programmatically updated the lastmod dates in our sitemap.xml.</p><p>However, we discovered that the classic URL ping methods (google.com/ping?sitemap=... and bing.com/ping) have been deprecated and return 404/410 errors. The modern, reliable approach required us to submit the sitemap directly via <strong>Google Search Console</strong> and manually request indexing for the updated pages.</p><h3>Conclusion</h3><p>Building an autonomous agent isn’t just about writing a clever LLM prompt. It requires a deep understanding of infrastructure as code, resilient error handling, and robust security practices.</p><p>By utilizing Google Cloud’s serverless offerings, establishing a GCS bucket as the sole source of truth, and navigating the intricacies of IAM permissions, we built a system that practically runs itself. Every 15 days, my inbox receives a success report, and <a href="https://justprompting.in/">JustPrompting.in</a> stays fresh with the latest AI news — completely hands-free.</p><p>#<strong>Google Cloud Platform #</strong>Artificial Intelligence #Serverless # Large Language Models</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86362d0cf541" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Business Process Outsourcing: A Comprehensive Analysis of Pricing Models and Strategic…]]></title>
            <link>https://medium.com/@deepak.tiwari/optimizing-business-process-outsourcing-a-comprehensive-analysis-of-pricing-models-and-strategic-576b7176d8b3?source=rss-c20e2da01d04------2</link>
            <guid isPermaLink="false">https://medium.com/p/576b7176d8b3</guid>
            <dc:creator><![CDATA[Deepak Tiwari]]></dc:creator>
            <pubDate>Thu, 08 May 2025 11:15:46 GMT</pubDate>
            <atom:updated>2025-05-08T11:15:46.419Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Optimizing Business Process Outsourcing: A Comprehensive Analysis of Pricing Models and Strategic Recommendations</strong></p><p>The Business Process Outsourcing (BPO) market is experiencing substantial growth, with projections indicating a significant surge from USD 280.64 billion in 2023 to USD 525.2 billion by 2030. This expansion underscores the increasing reliance of organizations across various sectors on external providers for a multitude of operational functions. The heightened adoption of BPO is fueled by compelling advantages such as enhanced cost-effectiveness, improved operational efficiency, and access to specialized skills and a broader talent pool.</p><p>In today’s intricate business landscape, characterized by complex regulatory frameworks, rapid technological evolution, and intensifying global competition, a well-defined and strategic approach to outsourcing has become paramount. At the heart of this strategic approach lies the selection of the most appropriate pricing model, a critical determinant of the success and sustainability of any BPO engagement. The role of BPO has evolved considerably from its initial focus on basic cost reduction to its current status as a strategic instrument for fostering innovation, enhancing agility, and achieving specific business outcomes. Consequently, the careful consideration and selection of a pricing model that aligns seamlessly with the unique needs, objectives, and desired results of a business has never been more critical.</p><p><strong>Decoding the Spectrum of BPO Pricing Models</strong></p><p>A variety of pricing models are prevalent in the BPO industry, each with its own distinct characteristics and suitability for different types of services and client needs.</p><ol><li><strong>Fixed Price Model</strong>: This model operates on the principle of a total, predetermined cost agreed upon by both the client and the BPO provider for a clearly defined scope of work and specific deliverables 4. Variations of this model include Fixed Price with Economic Price Adjustment (FP EPA) and Fixed Price with Incentive (FPI), which incorporate modifications based on economic factors and performance metrics, respectively 4. The Fixed Price model is most applicable to well-defined, short-term projects characterized by stable and predictable requirements.</li><li><strong>Cost Plus Model</strong>: The client agrees to reimburse the BPO provider for the actual costs incurred in delivering the services, including labor, materials, and overhead expenses, plus a predetermined profit margin. Variations include Cost Plus Fixed Fee (CPFF), Cost Plus Incentive (CPI), and Cost Plus Award (CPA). This model is particularly well-suited to large-scale, long-term projects where requirements may change and transparency regarding costs is valued .</li><li><strong>Time and Materials (T&amp;M) Model</strong>: Billing is based on the actual time expended by the BPO team in completing the work, calculated using pre-agreed rates for different roles or skill sets 6. This model offers flexibility, allowing for adjustments to the project scope and requirements as the work progresses 6. It is frequently employed for long-term IT projects or projects with unclear initial scopes.</li><li><strong>Transaction-Based Model</strong>: A fixed fee is charged for each specific transaction or unit of work completed by the BPO provider 7. This model is particularly effective for high-volume, repetitive tasks that can be easily quantified and measured in discrete units.</li><li><strong>Full-Time Equivalent (FTE) / Staff Augmentation Model</strong>: The client contracts with the BPO provider for the services of specific personnel for a defined period. This model is advantageous for short-term projects requiring specialized skills or when there is a need to quickly scale up the existing team .</li><li><strong>Outcome-Based / Performance-Based Model/Capacity Model</strong>: The BPO provider’s compensation is directly linked to the achievement of specific, measurable business outcomes or performance metrics. This model incentivizes the BPO provider to align their operational goals with the client’s business objectives.</li><li><strong>Shared Risk / Shared Reward Model</strong>: Both the client and the BPO provider share the risks and rewards associated with the project. This model fosters a sense of shared ownership and mutual accountability, motivating innovation and driving significant enhancements to the client’s business.</li></ol><p><strong>Comparative Analysis: Advantages and Disadvantages for Stakeholders</strong></p><p>For BPO service providers, the choice of pricing model significantly impacts their profitability, risk exposure, and the nature of their relationships with clients. The Fixed Price model offers predictable revenue streams but carries the risk of potential cost overruns 11. The Cost Plus model ensures cost recovery but may result in less predictable total revenue. The Time and Materials model provides flexibility but requires accurate time tracking. The Transaction-Based model’s profitability is tied to the volume of transactions processed. The Full-Time Equivalent model offers stable revenue based on contracted resources 11. The Outcome-Based model aligns profitability with client targets, potentially leading to higher rewards. The Shared Risk / Shared Reward model ties financial success to mutual project success.</p><p>From the client’s perspective, the chosen pricing model affects cost control, flexibility, and overall value derived from the BPO engagement. The Fixed Price model offers budget certainty but lacks flexibility .The Cost Plus model provides flexibility but may result in less predictable costs The Time and Materials model offers high flexibility but requires diligent monitoring. The Transaction-Based model aligns costs with service volume . The Full-Time Equivalent model offers predictable costs per resource. The Outcome-Based model links costs to business results. The Shared Risk / Shared Reward model aligns costs with shared risks and rewards.</p><p><strong>Strategic Recommendations: </strong><em>Selecting the Most Impactful Pricing Models</em></p><p>For Customer Support, a hybrid model combining a base rate with performance-based incentives tied to customer satisfaction metrics is recommended. For Data Entry services, the Transaction-Based model is particularly impactful, with quality assurance metrics integrated into the service level agreements. In IT Outsourcing, a combination of the Time and Materials model for ongoing development and support, coupled with Fixed Price or Outcome-Based pricing for specific projects or milestones, provides an optimal balance . For <em>Knowledge Process Outsourcing </em>(KPO) services, Value-Based or Outcome-Based pricing models are most impactful, aligning costs with the expertise and strategic value provided.</p><p>In the current dynamic business environment, a collaborative and flexible approach to BPO pricing is essential. BPO providers and clients should work together to develop tailored pricing models that align with the unique characteristics of the services being outsourced, desired business outcomes, and evolving technological landscape. This may involve combining elements of different pricing structures, such as fixed price with performance-based incentives or hourly rates with bonuses for exceeding service quality targets.</p><p><strong>Conclusion: </strong><em>Optimizing BPO Value Through Strategic Pricing in the Modern Era</em></p><p>The strategic selection and careful implementation of BPO pricing models are crucial for maximizing the value derived from outsourcing engagements and fostering successful, enduring partnerships between clients and service providers 18. By embracing tailored and innovative pricing approaches, organizations can achieve sustainable cost reductions, enhance operational efficiency, and realize substantial positive impacts on their overall business performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=576b7176d8b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>