<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: leo-wang</title>
    <description>The latest articles on DEV Community by leo-wang (@leo_c8398753453de189bcd).</description>
    <link>https://dev.to/leo_c8398753453de189bcd</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3642854%2F45d28576-2034-44f6-8e21-20327fcdf4c8.png</url>
      <title>DEV Community: leo-wang</title>
      <link>https://dev.to/leo_c8398753453de189bcd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/leo_c8398753453de189bcd"/>
    <language>en</language>
    <item>
      <title>Memory Doesn't Exist — You're Just Forging History</title>
      <dc:creator>leo-wang</dc:creator>
      <pubDate>Fri, 14 Aug 2026 06:58:43 +0000</pubDate>
      <link>https://dev.to/leo_c8398753453de189bcd/memory-doesnt-exist-youre-just-forging-history-4l7a</link>
      <guid>https://dev.to/leo_c8398753453de189bcd/memory-doesnt-exist-youre-just-forging-history-4l7a</guid>
      <description>&lt;p&gt;There's a team whose death I remember especially well. They built a customer-service Agent with a "user profile" — a user says "I'm a VIP customer, Zhang Wei" once, and in every conversation after the Agent "remembers." The product manager asked in the demo: "Will you remember me?" — "Of course, I'll always remember you, Mr. Zhang." They high-fived and shipped. Day one in production, a customer reported: "Your AI says it doesn't know me."&lt;/p&gt;

&lt;p&gt;No line of code was wrong. What was wrong was the assumption that &lt;code&gt;conversation.append()&lt;/code&gt; could hang memory onto the model. The LLM API is a pure function — &lt;code&gt;response = f(messages, params)&lt;/code&gt;. No session, no cookie, no cross-request state. From the moment they shipped, they were just stuffing a long chat log back into the API verbatim every time: forget to stuff, truncate, or restart the container, and the memory never existed. The essence of memory lives in your code and your database, not the model.&lt;/p&gt;

&lt;p&gt;My take: the Memory layer's engineering maturity is often the decisive factor in whether a system can ever reach shipping. Models can be swapped, frameworks rewritten — but if the Memory layer is designed wrong, all prior conversation data is garbage and you start over. That's why this series places Memory ahead of Frameworks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Read the full 60-article series — $79 one-time, lifetime access →&lt;/strong&gt; &lt;a href="https://buy.stripe.com/5kQ6ozeEsbKabvzdMQ97G00" rel="noopener noreferrer"&gt;https://buy.stripe.com/5kQ6ozeEsbKabvzdMQ97G00&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Production-Grade AI Agents&lt;/em&gt; — by Leo Wang · &lt;a href="https://x.com/VM1ISesPfr64145" rel="noopener noreferrer"&gt;Follow on X&lt;/a&gt; · &lt;a href="https://substack.com/@leo76868" rel="noopener noreferrer"&gt;Subscribe&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>agents</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>The Prompt Is Not a Spell — It's Structured Context Injection</title>
      <dc:creator>leo-wang</dc:creator>
      <pubDate>Wed, 05 Aug 2026 01:29:34 +0000</pubDate>
      <link>https://dev.to/leo_c8398753453de189bcd/the-prompt-is-not-a-spell-its-structured-context-injection-41m2</link>
      <guid>https://dev.to/leo_c8398753453de189bcd/the-prompt-is-not-a-spell-its-structured-context-injection-41m2</guid>
      <description>&lt;p&gt;"10 magic openings that boost GPT's IQ by 50." "Add this one sentence and your output quality jumps 200%." That's the typical content on Xiaohongshu, Zhihu, and paid prompt communities — and 95% of those courses sell exactly one feeling: that the prompt is a spell, some mystical trigger word that unlocks the model's hidden capability. The engineers who bought those courses build systems that crash every three days.&lt;/p&gt;

&lt;p&gt;The prompt isn't mystical. Its essence is one sentence: a prompt is structured text that injects a stateless probabilistic model with all the context it needs to produce the desired output. Four kinds of context get stuffed in by you — role and behavior (Who), task and goal (What), background data (Context), output spec (How). The "engineering" in prompt engineering is building a maintainable, evaluable, reusable context-assembly pipeline — not finding the right spell.&lt;/p&gt;

&lt;p&gt;My take: what's scarce in production Agent teams isn't "people who can write prompts." It's engineers who can build prompt version management, evaluation, gradual rollout, and rollback. A competent backend engineer plus good prompt infrastructure outcompetes 90% of the people flying a "prompt specialist" flag.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Full article&lt;/strong&gt; → &lt;a href="https://leo76868.substack.com/p/the-prompt-is-not-a-spell-its-structured" rel="noopener noreferrer"&gt;https://leo76868.substack.com/p/the-prompt-is-not-a-spell-its-structured&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Production-Grade AI Agents&lt;/em&gt; — by Leo Wang · &lt;a href="https://x.com/VM1ISesPfr64145" rel="noopener noreferrer"&gt;Follow on X&lt;/a&gt; · &lt;a href="https://substack.com/@leo76868" rel="noopener noreferrer"&gt;Subscribe&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>python</category>
      <category>agents</category>
    </item>
    <item>
      <title>What Actually Happens During a Single LLM Call?</title>
      <dc:creator>leo-wang</dc:creator>
      <pubDate>Tue, 04 Aug 2026 06:45:26 +0000</pubDate>
      <link>https://dev.to/leo_c8398753453de189bcd/what-actually-happens-during-a-single-llm-call-5007</link>
      <guid>https://dev.to/leo_c8398753453de189bcd/what-actually-happens-during-a-single-llm-call-5007</guid>
      <description>&lt;p&gt;The first time I called the OpenAI API with bare &lt;code&gt;curl&lt;/code&gt;, I stared at the JSON response for about thirty seconds. &lt;em&gt;That's it?&lt;/em&gt; A POST request, a &lt;code&gt;messages&lt;/code&gt; array, back comes a string of text. LangChain wraps it in seven or eight layers and the tutorials make it sound mystical — but at the very bottom it's just an ordinary HTTP request, so ordinary it can't get any more ordinary.&lt;/p&gt;

&lt;p&gt;Here's the conclusion that reshaped how I build agents: a so-called "Agent" is, in essence, just an ordinary backend program that calls a stateless LLM API in a loop. Its complexity doesn't live in the model — it lives in how your code manages the &lt;code&gt;messages&lt;/code&gt; array. That's why the engineering effort in a production-grade Agent lands overwhelmingly on the memory, orchestration, security, and evaluation layers, not the model layer (which is actually the simplest).&lt;/p&gt;

&lt;p&gt;My take: if you can treat every LLM call as an unreliable remote service — timeouts, retries, jitter, cost accounting — you've already outpaced most teams still chasing "magic prompt" tricks. The model layer is the part nobody should be afraid of.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Full article&lt;/strong&gt; → &lt;a href="https://leo76868.substack.com/p/what-actually-happens-during-a-single" rel="noopener noreferrer"&gt;https://leo76868.substack.com/p/what-actually-happens-during-a-single&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Production-Grade AI Agents&lt;/em&gt; — by Leo Wang · &lt;a href="https://x.com/VM1ISesPfr64145" rel="noopener noreferrer"&gt;Follow on X&lt;/a&gt; · &lt;a href="https://substack.com/@leo76868" rel="noopener noreferrer"&gt;Subscribe&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>llm</category>
      <category>python</category>
    </item>
    <item>
      <title>You Think You're Building AI Agents — You're Just Running a Demo</title>
      <dc:creator>leo-wang</dc:creator>
      <pubDate>Mon, 03 Aug 2026 09:16:22 +0000</pubDate>
      <link>https://dev.to/leo_c8398753453de189bcd/you-think-youre-building-ai-agents-youre-just-running-a-demo-3f8o</link>
      <guid>https://dev.to/leo_c8398753453de189bcd/you-think-youre-building-ai-agents-youre-just-running-a-demo-3f8o</guid>
      <description>&lt;p&gt;Last year a friend's company shipped an internal "smart customer service Agent." Two weeks to a demo. The boss asked it questions, it answered every one. Applause. Ship it.&lt;/p&gt;

&lt;p&gt;Day three in production, it fell apart — rate-limit meltdowns, a leaked expense record, a prompt injection that dumped the system prompt, ¥47,000 in tokens burned in a month, and a fabricated approval chain that seized up finance.&lt;/p&gt;

&lt;p&gt;The code looked exactly like the tutorials. RAG? Checked. Function Calling? Checked. The problem: &lt;strong&gt;it was only ever a demo.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most agent tutorials cover the three &lt;em&gt;least&lt;/em&gt; important layers — the model, the tools, the basic loop. Production-grade agents live in the layers nobody teaches: error handling under load, cost blowup, data permissions, prompt injection, observability, and evaluation.&lt;/p&gt;

&lt;p&gt;My take: learning frameworks is already late. Learning the &lt;em&gt;engineering system&lt;/em&gt; — how to wrap an unstable probabilistic model into something safe to ship — is right on time. That half-life is measured in years, not months. That's what this series is about.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Full article&lt;/strong&gt; — the 7-layer production skeleton + the full post-mortem → &lt;a href="https://leo76868.substack.com/p/you-think-youre-building-ai-agents" rel="noopener noreferrer"&gt;https://leo76868.substack.com/p/you-think-youre-building-ai-agents&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Production-Grade AI Agents&lt;/em&gt; — by Leo Wang · &lt;a href="https://x.com/VM1ISesPfr64145" rel="noopener noreferrer"&gt;Follow on X&lt;/a&gt; · &lt;a href="https://substack.com/@leo76868" rel="noopener noreferrer"&gt;Subscribe&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
