<?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 Irene Yu on Medium]]></title>
        <description><![CDATA[Stories by Irene Yu on Medium]]></description>
        <link>https://medium.com/@xinirene?source=rss-2672882898f0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tQ5RS25OgQb2GeyJ.</url>
            <title>Stories by Irene Yu on Medium</title>
            <link>https://medium.com/@xinirene?source=rss-2672882898f0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 00:48:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@xinirene/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[Building an Agent #2: Portkey AI Gateway & Scalable Configs]]></title>
            <link>https://medium.com/@xinirene/building-an-agent-2-portkey-ai-gateway-scalable-configs-4be442c31373?source=rss-2672882898f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/4be442c31373</guid>
            <category><![CDATA[ai-agent-architecture]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Irene Yu]]></dc:creator>
            <pubDate>Fri, 13 Mar 2026 03:10:27 GMT</pubDate>
            <atom:updated>2026-03-18T04:01:43.382Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XSkzn7IzIsO_JZXS64uu_g.png" /></figure><p>This is Part 2 of the ‘Building an Agent’ series.</p><p>In the previous chapter, I established the foundation of my project: a three-layer architecture comprising four core modules. By separating the UI Presentation Layer (which houses two independent modules: the Dart CLI and the Flutter App) from the Adapter Layer and the Chat Core Layer, the goal was simple — completely decouple the fast-moving UI from the Agent’s most valuable asset: its core capabilities.</p><p>Today, I am taking the next step: selecting a method to “connect to Large Language Models” and integrating it into my architecture. Most importantly, I need to ensure this integration is scalable, replaceable, and production-ready.</p><p>This step might look like simply choosing an SDK, but to me, it’s about defining the project’s “entry and exit points.” As an Agent grows, you inevitably face challenges: deciding whether to switch models, figuring out how to handle fallbacks, controlling costs, implementing streaming outputs, and standardizing tool calls. I don’t want this complexity scattered throughout my business logic. Ultimately, I chose Portkey to consolidate the “integration layer” into a stable, single-entry gateway.</p><h3>Why Portkey? Shielding the Core from Volatility</h3><p>Portkey is an AI Gateway that unifies API interfaces for over 200 LLMs. It acts as a router: presenting a unified API to my project internally, while handling the routing and adaptation to various model providers externally. Here are the three main reasons I chose it:</p><ul><li><strong>Unified API</strong>: It provides a unified API format that is completely compatible with OpenAI. This means my Chat Core can be designed around a single, stable data structure without being dragged down by the quirks of different providers.</li><li><strong>Production-Ready Features</strong>: It comes with built-in production-grade capabilities like fallbacks, load balancing, and budget control. This allows me to focus on building the Agent’s actual capabilities rather than writing my own gateway logic.</li><li><strong>Clean Model Selection</strong>: Model routing is handled elegantly via a simple @provider-slug/model-name format. One parameter defines both the provider and the model. In the future, switching models will merely be a configuration change, not a code rewrite.</li></ul><h3>A Minimalist Integration: One Endpoint, One Header</h3><p>What I love about Portkey is how unobtrusive the integration is, making it perfect for a stable Adapter layer component.</p><p><strong>Endpoint</strong>: POST &lt;https://api.portkey.ai/v1/chat/completions&gt;</p><p><strong>Authentication</strong>: You only need a single header: x-portkey-api-key: &lt;portkey_api_key&gt;.</p><p>Provider routing relies entirely on the @slug format within the model parameter, requiring no extra headers.</p><blockquote><strong><em>A quick note on deprecated features</em></strong><em>: The older </em><em>x-portkey-virtual-key and </em><em>x-portkey-provider headers are now deprecated. Portkey has upgraded Virtual Keys to a Model Catalog (AI Providers) system. I&#39;m skipping the legacy methods and adopting the new approach from day one to avoid future migrations.</em></blockquote><h3>The Request payload: Embracing the OpenAI Standard</h3><p>Because Portkey is compatible with the OpenAI chat completion format, I can structure my requests using familiar conventions. The request looks like:</p><pre>{<br>  &quot;model&quot;: &quot;@openai/gpt-4o&quot;,<br>  &quot;messages&quot;: [<br>    {&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;You are a helpful assistant.&quot;},<br>    {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Hello&quot;},<br>    {&quot;role&quot;: &quot;assistant&quot;, &quot;content&quot;: &quot;Hi there!&quot;},<br>    {&quot;role&quot;: &quot;tool&quot;, &quot;content&quot;: &quot;...&quot;, &quot;tool_call_id&quot;: &quot;call_123&quot;}<br>  ],<br>  &quot;temperature&quot;: 0.7,<br>  &quot;max_tokens&quot;: 512,<br>  &quot;stream&quot;: false,<br>  &quot;tools&quot;: [<br>    {<br>      &quot;type&quot;: &quot;function&quot;,<br>      &quot;function&quot;: {<br>        &quot;name&quot;: &quot;create_file&quot;,<br>        &quot;description&quot;: &quot;Create a file&quot;,<br>        &quot;parameters&quot;: { &quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: { } }<br>      }<br>    }<br>  ]<br>}</pre><p>Two aspects of this structure are particularly important to my design:</p><p>👉 <strong>Clear Role System</strong>: The messages utilize distinct roles: system, user, assistant, and tool. This gives me a solid foundation for designing the Message data structures in the Core layer without needing complex branching logic.</p><p>👉 <strong>Explicit Tools</strong>: The tools parameter explicitly tells the model what functions are available, ensuring the subsequent tool-calling process follows a standard flow.</p><h3>Analyzing the Response: Messages, Tool Calls, and Usage</h3><p>For non-streaming responses, the structure heavily mirrors OpenAI.</p><pre>{<br>  &quot;choices&quot;: [<br>    {<br>      &quot;message&quot;: {<br>        &quot;role&quot;: &quot;assistant&quot;,<br>        &quot;content&quot;: &quot;Hello! How can I help you?&quot;,<br>        &quot;tool_calls&quot;: [<br>          {<br>            &quot;id&quot;: &quot;call_123&quot;,<br>            &quot;type&quot;: &quot;function&quot;,<br>            &quot;function&quot;: {<br>              &quot;name&quot;: &quot;create_file&quot;,<br>              &quot;arguments&quot;: &quot;{\&quot;path\&quot;: \&quot;hello.txt\&quot;, \&quot;content\&quot;: \&quot;hello\&quot;}&quot;<br>            }<br>          }<br>        ]<br>      },<br>      &quot;finish_reason&quot;: &quot;stop&quot;<br>    }<br>  ],<br>  &quot;usage&quot;: {<br>    &quot;prompt_tokens&quot;: 10,<br>    &quot;completion_tokens&quot;: 20,<br>    &quot;total_tokens&quot;: 30<br>  }<br>}</pre><p>I am primarily focused on three blocks of data:</p><p>👉 <strong>Message</strong>: The final, fully generated text resides in choices[0].message.</p><p>👉 <strong>Tool Calls</strong>: If the model decides to invoke tools, they appear in message.tool_calls (and there could be multiple).</p><p>👉 <strong>Usage</strong>: Token consumption statistics are provided under usage, split into prompt, completion, and total tokens.</p><p>These three pieces of information directly dictate how I will design my Core event stream: how to yield incremental content, how to interrupt the flow to execute a tool, and how to track and display costs.</p><h3>Predictable Streaming: SSE + Delta + [DONE]</h3><p>When building an interactive Agent, streaming is practically mandatory. Portkey implements Server-Sent Events (SSE) for streaming:</p><p>👉 You set &quot;stream&quot;: true in the request.</p><p>👉 The response arrives in sequential chunks formatted as data: {...}.</p><p>👉 Inside the choices array of each chunk, you receive a delta (incremental update) rather than a full message.</p><p>👉 The stream concludes with the marker: data: [DONE].</p><p>This inspired my design choice: the Core layer shouldn’t just return a “final string.” Instead, it must expose an event stream (which I’m calling ChatEvent). This stream models the entire process: text increments (deltas), tool invocation requests, tool execution results, errors, and completion states. Modeling the <em>process</em> makes integrating real-time CLI output, Flutter typewriter effects, and system logging significantly smoother.</p><h3>Standardizing the Tool Calling Flow</h3><p>I am strictly adhering to the standard four-step process for tool calling:</p><p>👉 <strong>Declare</strong>: Define available tools via the tools parameter in the request.</p><p>👉 <strong>Request</strong>: The LLM returns one or more message.tool_calls.</p><p>👉 <strong>Execute</strong>: The client runs the requested tool.</p><p>👉 <strong>Return</strong>: The client feeds the result back to the LLM as a message with role: &quot;tool&quot; (crucially, including the tool_call_id), allowing the model to resume generation.</p><p>The linchpin here is the tool_call_id. It&#39;s the thread that ties a specific tool execution result back to the original request from the model.</p><h3>Configuration Management: Developer-Friendly and Deployment-Ready</h3><p>Configuration is often where integrations become messy. API keys are sensitive and shouldn’t be committed to Git; different developers need different local values; and sometimes you just want to override a model temporarily for debugging.</p><p>To solve this, I designed a three-layer configuration hierarchy based on precedence: <strong>CLI Arguments &gt; local.properties &gt; System Environment Variables &gt; Throw Error</strong>.</p><p>The more specific the source, the higher its priority. An explicit CLI flag overrides local settings, and local settings override server deployment defaults.</p><p>👉 <strong>local.properties</strong>: Placed in the monorepo root and added to .gitignore.</p><pre>portkey-api-key=pk-xxx<br>portkey-model=@openai/gpt-4o<br>portkey-base-url=https://api.portkey.ai/v1<br>portkey-max-tokens=512</pre><p>👉 <strong>Environment Variables</strong>: Formatted in uppercase with underscores.</p><pre>export PORTKEY_API_KEY=pk-xxx<br>export PORTKEY_MODEL=@openai/gpt-4o<br>export PORTKEY_BASE_URL=https://api.portkey.ai/v1<br>export PORTKEY_MAX_TOKENS=512</pre><p>The configuration parameters are condensed to a minimal set: API Key (required), Model (required), Base URL (optional), and Max Tokens (optional).</p><h3>Layered Responsibilities</h3><p>I am very particular about architectural boundaries, so the responsibilities are strictly separated:</p><p>👉 <strong>CLI Layer</strong>: Reads from all three sources, merges them based on priority, validates required fields, and instantiates a Config object.</p><p>👉 <strong>Adapter Layer</strong>: Passes this Config directly through to the Core.</p><p>👉 <strong>Chat Core Layer</strong>: Accepts a singular ChatConfig data class. It focuses purely on conversation state, event streaming, and tool orchestration. It has zero knowledge of <em>where</em> the config came from.</p><p>This approach ensures the Core remains highly testable (no file system dependencies). It centralizes configuration validation in the UI/CLI layer for better error messaging, and guarantees that future UI shifts (like a Flutter app reading from SharedPreferences) won&#39;t require touching the core logic.</p><h3>Summary: Building a Stable Foundation for Agent Growth</h3><p>Choosing Portkey wasn’t about chasing flashy features; it was about laying a stable foundation. By utilizing a unified API, modeling predictable streaming and tool calling flows, and establishing clean configuration management, I can handle inevitable requirements — like swapping models, managing fallbacks, and controlling costs — without letting them pollute the core business logic.</p><p>🚧 Github:</p><p><a href="https://github.com/AgenticFish/skewr">https://github.com/AgenticFish/skewr</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4be442c31373" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an Agent #1: Planning a Scalable AI Agent Architecture]]></title>
            <link>https://medium.com/@xinirene/building-an-agent-1-planning-a-scalable-ai-agent-architecture-f6a64d6c5467?source=rss-2672882898f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6a64d6c5467</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai-agent-architecture]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Irene Yu]]></dc:creator>
            <pubDate>Thu, 05 Mar 2026 04:02:02 GMT</pubDate>
            <atom:updated>2026-03-05T04:02:02.111Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-5KkhiR6bCmLbqz5wtAg0A.jpeg" /></figure><p>I’ve recently been conceptualizing an AI Agent project called <strong>Skewr</strong>. My goal isn’t simply to quickly stack features together to build a demo. Instead, I am treating this as a systematic engineering exercise: using a runnable, scalable, and testable project to validate my understanding of agent architecture, state management, and cross-platform reusability.</p><p>Ultimately, Skewr will feature both a Dart CLI and a Flutter App. However, both of these will serve purely as “interfaces,” while the core capabilities share the exact same underlying logic.</p><p>To prevent the project from becoming a tangled mess as it grows, I divided the system from day one into a three-layer architecture with four core modules: the <strong>UI Presentation Layer</strong> (comprising the independent Dart CLI and Flutter App modules), the <strong>Adapter Layer</strong>, and the <strong>Chat Core Layer</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*--Tn-Jkr5RVPu528IP4SqQ.jpeg" /></figure><p>The core principle behind this separation is straightforward: completely decouple what changes rapidly (UI/interaction) from what is most valuable (the Agent capabilities), ensuring each layer has clear responsibility boundaries and stable interfaces.</p><h3>The Chat Core Layer: The “Portable Kernel” of Agent Capabilities</h3><p>The Chat Core layer is the capability center of the entire system. It handles all the logic dictating “how the Agent should think and act”: dialogue structure, context management, planning and decision-making, tool calling orchestration, error recovery strategies, and final output generation.</p><p>It deliberately avoids relying on any UI framework. It doesn’t touch stdin/stdout, Widgets, or page routing. In other words, this layer answers only one question: <strong>Given the input and current state, what will the Agent do next, and in what format will it express the process and result?</strong></p><p>I am designing the output here as an <strong>“event stream”</strong> rather than a one-time string return. This is because an Agent’s behavior is inherently a <em>process</em>: streaming generation, tool execution, phase state changes, or even mid-way cancellations and retries. An event stream exposes this process information as a first-class citizen. Events might include “start generating,” “output incremental content,” “trigger tool call,” “tool call finished with result,” or “error occurred, suggesting recovery.”</p><p>By doing this, the upper UI layer doesn’t need to guess what the core is doing; it simply subscribes to the events and renders them.</p><h3>The Adapter Layer: The UI-Facing State Management and Protocol Stabilizer</h3><p>The Adapter layer is an “engineering buffer zone” I intentionally introduced. Its role is to translate the Chat Core’s event stream into a State that the UI can directly consume, and to translate UI operations into command calls for the core. From the UI’s perspective, it is the state management center; from the core’s perspective, it’s the input/output adapter.</p><p>Why do I need this layer? Because interactions vary wildly across different UIs. A CLI feels more like a REPL (read input, print output), while Flutter involves message lists, loading animations, buttons, and settings pages. If the UI directly consumes core events and assembles its own UI state, the logic will quickly diverge, making it nearly impossible to keep both ends consistent.</p><p>The Adapter layer locks in the stable state model required by the UI, such as the message list, generating status, current tool status, last error, debugging info, and configuration snapshots. This allows both the CLI and Flutter to use the exact same State model, potentially even sharing the same BLoC/Cubit implementation, leaving each client to handle only rendering and interaction details.</p><p>More importantly, the Adapter layer stabilizes the core interface. If the Chat Core’s implementation changes in the future (e.g., switching languages, changing runtime environments, or migrating to a backend server), as long as it provides equivalent “event + command” semantics, the upper UI remains largely untouched. We would only need to swap out the part of the Adapter that communicates with the core. This strategy of isolating change through an adapter layer is key to enabling the project’s long-term evolution.</p><h3>The Dart CLI Layer: Command Line UI (Interaction and Presentation Only)</h3><p>The positioning of the Dart CLI layer is crystal clear: it is purely a UI.</p><p>It parses parameters (like help, version, verbose, model selection), reads user input, and passes that input to the Adapter. It then listens to the Adapter&#39;s State changes and renders the content in a CLI-friendly way (including streaming output, tool execution prompts, error messages, and log levels).</p><p>It never touches the core Agent logic directly, nor does it take on any responsibilities for planning, calling tools, or memory management. This keeps the CLI extremely minimalist, serving as a highly efficient entry point for development and debugging. Terminal-based debugging for agent behavior is usually faster than UI debugging and is ideal for behavioral regression testing.</p><h3>The Flutter APP Layer: Graphical UI (Interaction and Presentation Only)</h3><p>The Flutter APP layer takes on a richer user experience: message bubbles, conversation lists, settings pages, loading states, stop buttons, copy/retry actions, and more.</p><p>Just like the CLI, it relies entirely on the state outputted by the Adapter and does not depend on the Chat Core. The Flutter side’s job is to render the state clearly and capture user intent accurately (e.g., send, stop, clear, modify config), passing these intents as events back to the Adapter. This restricts UI complexity to <em>interface complexity</em> alone, preventing it from turning into an unmanageable hybrid of business and interface logic.</p><h3>Dependency Hierarchy: Unidirectional and Interface-Driven</h3><p>I strictly maintain a unidirectional dependency flow: <strong>Dart CLI / Flutter APP → Adapter → Chat Core</strong></p><p>The core layer never relies backward on the UI, and the Adapter layer relies primarily on the abstract interfaces exposed by the core. This unidirectional dependency yields predictable results:</p><ul><li><strong>Maximized Reusability:</strong> One core powers multiple platforms.</li><li><strong>Faster Iteration:</strong> Verify behavior in the CLI first, then polish the experience in Flutter.</li><li><strong>Enhanced Testability:</strong> The core and adapter layers can undergo extensive pure unit testing without spinning up a UI.</li><li><strong>Lower Evolution Cost:</strong> When the core implementation eventually evolves, changes are encapsulated within the Adapter, preventing refactoring from bleeding into the UI.</li></ul><h3>My Engineering Methodology: Advancing the Project with Agentic Engineering</h3><p>Beyond structural design, I am treating this project as a practical exercise in engineering methodology. I am intentionally adopting an agentic engineering approach to drive implementation.</p><p>This means I challenge myself to write as little code as possible, relying instead on collaboration with AI coding assistants (like Claude Code) to handle the bulk of the coding. I focus my energy on:</p><ul><li>Clarifying requirements</li><li>Designing boundaries</li><li>Defining interfaces and event models</li><li>Establishing testing and acceptance criteria</li><li>Conducting code reviews and making iteration decisions</li></ul><p>Put simply, I want to spend my time building the right architecture and constraints, and keeping the system evolving without collapsing, while delegating the actual implementation to a more efficient code generation and collaboration workflow.</p><p>For me, the ultimate proof of this project isn’t getting a demo to run. It’s proving that I can take a complex, rapidly changing system, break it down into a clear hierarchical structure, define stable contracts, and use engineering methodologies to build it step-by-step into a maintainable, reusable, and scalable product-grade prototype.</p><p><em>🚧 </em><strong><em>Project Repository:</em></strong><em> </em><a href="https://github.com/AgenticFish/skewr"><em>https://github.com/AgenticFish/skewr</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6a64d6c5467" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Engineering Evolution (Finale): A Practical Roadmap from Vibe Coding to Agentic Engineering]]></title>
            <link>https://medium.com/@xinirene/ai-engineering-evolution-finale-a-practical-roadmap-from-vibe-coding-to-agentic-engineering-7f7c2414adfa?source=rss-2672882898f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f7c2414adfa</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[agentic-engineering]]></category>
            <dc:creator><![CDATA[Irene Yu]]></dc:creator>
            <pubDate>Wed, 04 Mar 2026 21:50:41 GMT</pubDate>
            <atom:updated>2026-03-04T21:50:41.398Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rwb38YnMEF-WjNpI7wUuHA.jpeg" /></figure><p>In our previous three installments, we dismantled the cognitive layers of AI: understanding the boundaries of Large Language Models (LLMs) and distinguishing between isolated efficiency and systemic efficiency. But cognition without structural change remains mere watercooler talk.</p><p>This is the finale of our series. We are bringing the focus back to your actual codebase, providing a pragmatic, hype-free “Three-Phase Engineering Migration Roadmap.”</p><p>The current reality for many engineering teams is this: <strong>Extremely high individual efficiency, yet extremely fragile overall structure.</strong> Everyone is using AI to write code (Vibe Coding), churning out prototypes daily. This easily creates an illusion: <em>“We are already doing AI Engineering.”</em></p><p>In truth, this is merely “tool-level usage.” The real watershed moment isn’t about <em>whether</em> you use AI to write code, but <strong>whether you have restructured your human-AI collaboration architecture</strong>. If you only accelerate code generation without upgrading your verification and management structures, automation will simply multiply your chaos.</p><p>Below is a three-phase practical path to transition your team from an “individual artisan workshop” to a “modern automated assembly line.”</p><h3>Phase 1: Controllable Vibe Coding (Assetizing Exploratory Programming)</h3><p><strong>Goal: Transform AI-generated “black-box experiments” into traceable, verifiable, and reproducible engineering assets.</strong></p><p>This phase is not about abandoning Vibe Coding. Rather, it acknowledges that “exploring code via natural language” is a legitimate part of modern software engineering. The problem isn’t the exploration itself; it’s the <strong>lack of control</strong>.</p><h4>1️⃣ Integrate Prompts into Version Control (Prompt Lifecycle Management)</h4><p><strong>👉 The “Why”:</strong> The biggest risk teams face right now is “Prompt Drift.” A complex core logic might stem from a developer’s accidental “god-tier prompt” in a chat UI. When that developer leaves, or the model updates, that magic prompt is lost forever.</p><p><strong>👉 The Practice:</strong> Treat “Prompt as Code.”</p><ul><li>Create a dedicated prompts/ directory in your repository.</li><li>Commit prompts just like code, detailing the <em>why</em> in the commit message (e.g., <em>“Added constraints to prevent model hallucination regarding multi-threading edge cases”</em>).</li><li>Keep records of failed prompts as documentation to prevent repeating mistakes.</li></ul><h4><strong>2️⃣ Enforce Minimum Viable Tests (MVT) for Exploratory Code</strong></h4><p><strong>👉 The “Why”:</strong> AI makes code generation so cheap that developers adopt a “let AI fix it if it breaks” mentality. But as the codebase context grows, the cost of fixing compounded errors scales exponentially.</p><p><strong>👉 The Practice:</strong> Even for Vibe Coding prototypes, enforce a baseline defense:</p><ul><li>Minimum viable “Happy Path” tests.</li><li>Basic edge-case testing.</li><li>Hard assertions for core inputs/outputs. This is crucial groundwork for the automated loops in Phase 2.</li></ul><h4>3️⃣ Establish Token Cost Awareness</h4><p><strong>👉The “Why”:</strong> Token costs are negligible for individual tasks but explode when teams start delegating complex microservice refactoring to AI, especially with Long Context models.</p><p><strong>👉 The Practice:</strong></p><ul><li>Integrate token consumption logs into your CI/CD or dev toolchain.</li><li>Compare the ROI of different prompt designs.</li><li>Build a “cost-sensitive mindset”: AI generation is not free magic; it is the consumption of compute resources.</li></ul><p><strong><em>🎯 Phase 1 Milestone:</em></strong><em> You have passed Phase 1 when Code Reviews shift from asking, </em>“How did you get the AI to write this?”<em> to discussing, </em>“How can we optimize this Prompt?”</p><h3>Phase 2: Semi-Automated Agentic Workflow (From Generation to Closed-Loop)</h3><p><strong>Goal: Evolve AI from a one-way generator into an active participant in the “Plan-Execute-Verify-Repair” closed loop.</strong></p><p>Many teams hit a wall here. Once you allow AI to read its own error logs and rewrite code autonomously, minor issues can quickly snowball.</p><h4>1️⃣ Explicit Task Graph Splitting (DAG Orchestration)</h4><p><strong>👉 The “Why”:</strong> Never hand a massive requirement (e.g., “build a complete auth module”) to an LLM all at once. Huge tasks guarantee hallucinations.</p><p><strong>👉 The Practice:</strong> Explicitly decouple the workflow (the ReAct paradigm), even if triggered manually:</p><ul><li><strong>Plan:</strong> AI drafts pseudocode or architecture; Human approves.</li><li><strong>Execute:</strong> AI generates specific code based on the approved plan.</li><li><strong>Validate:</strong> Automated tests run against the code.</li><li><strong>Repair:</strong> AI modifies the code based strictly on test failures.</li></ul><h4>2️⃣ Introduce AI-Native Testing</h4><p><strong>👉 The “Why”:</strong> This is the most critical yet overlooked step. Traditional test outputs (like a massive Java stack trace) are designed for <em>human eyes</em>. Throwing a raw “Test Failed” at an AI often causes it to guess blindly, leading to <strong>Error Cascading</strong> (fixing one bug by creating two new ones).</p><p><strong>👉 The Practice:</strong> Tests must provide <strong>Feedback-Rich semantics</strong>.</p><ul><li>Frameworks should output structured, parsable results.</li><li>Explicitly point out the <em>reason</em> for failure (e.g., use a lightweight LLM to summarize: <em>“The code crashed on line 42 because the upstream API returned a JSON missing the ‘id’ field”</em>). Clear validation signals keep the AI iterating in the right direction.</li></ul><h4>3️⃣ Implement “Death Loop” Breakers</h4><p><strong>👉 The “Why”:</strong> When an Agent encounters an unsolvable underlying framework bug, it might loop infinitely (Modify -&gt; Fail -&gt; Modify) until your API balance is drained.</p><p><strong>👉 The Practice:</strong></p><ul><li>Set a hard Max_Iterations limit (usually 3 to 5 attempts).</li><li>Set a token limit per automated task.</li><li>Force-throw an exception and trigger a human handoff when thresholds are met.</li></ul><p><strong><em>🎯 Phase 2 Milestone:</em></strong><em> AI can autonomously utilize test feedback to resolve 80% of routine bugs within a bounded scope, without line-by-line human hand-holding.</em></p><h3>Phase 3: Engineering-Grade Agentic Engineering (Systematization &amp; Boundaries)</h3><p><strong>Goal: Treat Agents as an integral part of the production system, establishing comprehensive metrics and risk isolation.</strong></p><p>This is the ultimate leap from “workflow” to “system.” The focus shifts from “did this single task succeed?” to “is this system maintainable and stable over the long term?”</p><h4>1️⃣ Orchestration Layer &amp; Visual Traceability</h4><p><strong>👉 The “Why”:</strong> When multiple Agents collaborate (e.g., one writes logic, one writes tests, one reviews), it becomes a massive black box. If an auto-fix takes down production, you need accountability.</p><p><strong>👉The Practice:</strong></p><ul><li>Visualize the state transitions of your task graphs.</li><li>Ensure 100% replayability of the decision path (You must know <em>which</em> test feedback the AI used, <em>how many</em> loops it ran, and <em>why</em> it ultimately merged the PR).</li></ul><h4>2️⃣ Define Human-AI Boundaries (Autonomy Levels)</h4><p><strong>👉 The “Why”:</strong> “Human-in-the-loop” doesn’t mean humans do all the work; it means defining the boundaries of supervision.</p><p><strong>👉 The Practice:</strong> Adopt autonomy levels (like L1-L5 in self-driving cars) for different modules:</p><ul><li><strong>L2 (Low Risk):</strong> Internal tools, doc generation. AI can auto-generate, auto-test, and auto-merge. Humans only audit post-facto.</li><li><strong>L3 (Medium Risk):</strong> Standard business logic. AI handles the fix loop, but a human must approve the final PR.</li><li><strong>L4 (High Risk):</strong> Core transaction/payment pipelines. Autonomous AI modification is strictly prohibited. AI reverts to an L1 autocomplete assistant.</li></ul><h4>3️⃣ System Metrics &amp; Novel Technical Debt Management</h4><p><strong>👉 The “Why”:</strong> Over time, early Prompts and Workflows become bloated and inefficient.</p><p><strong>👉 The Practice:</strong></p><ul><li><strong>Metrics:</strong> Track loop success rates, average repair iterations, and AI-induced rollback frequencies.</li><li><strong>Debt Cleanup:</strong> Integrate <strong>Prompt Debt</strong> (outdated constraints), <strong>Workflow Debt</strong> (overly complex Agent routing), and <strong>Validation Debt</strong> (tests that fail to give AI useful feedback) into your quarterly tech debt sprints.</li></ul><p><strong><em>🎯 Phase 3 Milestone:</em></strong><em> The AI system has a clear monitoring dashboard. Human engineers shift their focus from “typing code” to “defining problems, designing architecture, and auditing AI decisions.”</em></p><h3>🧭 The Panorama Map</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T9jzvj37eec_a87M7RNI6Q.png" /></figure><p>🛠️ Appendix: Engineering Self-Check</p><p>Before attempting to leap to the next phase, ask your team these 5 critical questions:</p><ul><li>[ ] Are the key AI Prompts used in our core business stored as code files in our Git repository under version control?</li><li>[ ] Do we know how many Tokens our team consumed on API calls last month, and which tasks were the most resource-intensive?</li><li>[ ] When AI-generated code fails, does our testing framework provide explicit “semantic feedback” to the model, rather than just dumping a raw stack trace?</li><li>[ ] Does our automated AI repair workflow have a hard-coded “maximum retry limit” to prevent Death Loops?</li><li>[ ] Has the team explicitly defined “low-risk zones” (where AI can auto-merge PRs) and “absolute red zones” (requiring human-only coding)?</li></ul><h3>Final Verdict</h3><p>These three phases are not mutually exclusive; they are an evolutionary continuum.</p><p>Truly mature teams don’t look down on the raw speed of Vibe Coding. Instead, they: <strong>Control it in Phase 1, structure it in Phase 2, and systematize it in Phase 3.</strong></p><p>From the era of punch cards to IDEs, and now to AI Agents, every abstraction leap in software engineering rewrites the rules of the game. The shift is already happening. Automation merely amplifies the underlying characteristics of your system — if your system is organized, AI amplifies your efficiency; if your system is chaotic, AI will manufacture chaos at the speed of light.</p><p>What happens next depends entirely on how you design your collaboration architecture today.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f7c2414adfa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Engineering Evolution (Pt 3): From Code Implementers to Structural Architects]]></title>
            <link>https://medium.com/@xinirene/ai-engineering-evolution-pt-3-from-code-implementers-to-structural-architects-9cba9b188706?source=rss-2672882898f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cba9b188706</guid>
            <category><![CDATA[agentic-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <dc:creator><![CDATA[Irene Yu]]></dc:creator>
            <pubDate>Wed, 04 Mar 2026 02:48:53 GMT</pubDate>
            <atom:updated>2026-03-04T02:48:53.439Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aZVYeDV_bA6u6xdRK3gK9w.jpeg" /></figure><p>In our previous two articles, we established two core truths:</p><p>👉 <strong>Agentic Engineering</strong> is more than just a rebrand; it is a paradigm shift.</p><p>👉 Real-world implementation requires an entirely <strong>new set of engineering capabilities.</strong></p><p>However, a deeper question remains: when AI transitions from a mere “code generation tool” to an active “engineering participant,” what happens to the human engineer? This isn’t a hypothetical for the future — it is a transformation happening right now.</p><h3>I. The Role Shift: From “Implementer” to “Structural Architect”</h3><p>In the <strong>Vibe Coding</strong> phase, humans remain the primary executors. AI generates snippets, while humans filter, understand, and integrate them.</p><p>As we move into <strong>Agentic Engineering</strong>, AI begins to take over: sub-task decomposition, initial implementation, autonomous debugging, and automated testing. Humans no longer stare at every line of code. Instead, we focus on whether the task structure is logical, the workflow is controllable, the verification mechanism is robust, and the risk boundaries are clear.</p><p>The role is shifting from the “person who writes the code” to the <strong>“person who designs the structure.”</strong> This is a fundamental move up the abstraction ladder.</p><h3>II. The Changing Status of Code (It’s Not Just a Decline)</h3><p>To say “code is becoming less important” is a simplification that invites misunderstanding.</p><p>The history of software engineering is, at its core, a history of <strong>rising abstraction layers</strong>: <em>Punch Cards ➡️ Assembly ➡️ C ➡️ OOP ➡️ High-level languages (Python) ➡️ Natural Language/Prompts.</em></p><p>Each leap encapsulates low-level details, allowing humans to work at a higher level. Assembly didn’t vanish; C didn’t vanish. They simply receded into the foundation. Today’s change is the continuation of this historical curve.</p><p>However, a crucial distinction must be made: <strong>not all code is being devalued.</strong> In the context of Agentic Engineering, we are seeing a “repricing” of specific types of code:</p><ul><li>Glue Code</li><li>Standardized Business Logic (CRUD Boilerplate)</li><li>Repetitive API Wrappers</li><li>Routine Data Processing Pipelines</li></ul><p>This type of code is pattern-heavy, predictable, and easy to automate. At the application and business layers, this code is becoming a commodity.</p><p><strong>On the other side of the spectrum, low-level expertise remains critically scarce:</strong></p><ul><li>System Architecture Design</li><li>Distributed System Scheduling</li><li>High-performance Networking &amp; Storage</li><li>AI Infrastructure Development (CUDA optimization)</li><li>Kernel development (Databases/Compilers)</li></ul><p>In these fields, performance boundaries define product competitiveness. Small optimizations can result in order-of-magnitude differences, and the cost of error is extreme. AI Agents won’t replace these skills; they will likely amplify the demand for them.</p><blockquote><strong><em>The Verdict:</em></strong><em> At the application layer, code is becoming a renewable resource. At the infrastructure layer, code remains a strategic resource.</em></blockquote><h3>III. The Redistribution of Skill Sets</h3><p>As code layers bifurcate, we are seeing a divergence in engineer profiles. Some engineers see their productivity skyrocket in an Agentic environment, while others lose their edge.</p><p>The difference usually isn’t “coding skill,” but <strong>structural thinking.</strong></p><ul><li><strong>Structural Engineers:</strong> Excel at decomposing complex problems, defining module boundaries, building verification systems, and designing for edge cases. AI acts as their force multiplier.</li><li><strong>Execution-only Engineers:</strong> Excel at implementing specific tasks or fixing localized logic. In a highly automated application layer, this role is the most vulnerable to displacement.</li></ul><p>This isn’t the death of a profession; it is a shift in the “weight” of necessary skills.</p><h3>IV. The New Face of Technical Debt</h3><p>In the past, technical debt looked like spaghetti code or brittle architectures. In an Agentic Engineering environment, <strong>new forms of debt emerge:</strong></p><ul><li><strong>Prompt Debt:</strong> The prompt works, but no one understands <em>why</em>.</li><li><strong>Workflow Debt:</strong> The task graph becomes so complex that no single human can grasp the global state.</li><li><strong>Validation Debt:</strong> Because LLM output is non-deterministic, traditional testing may fail. Without robust verification, system stability relies on luck.</li><li><strong>Recursive Risk:</strong> Errors that are “auto-fixed” by AI but subtly amplify underlying logical flaws over time.</li></ul><p>Automation doesn’t eliminate debt; it changes its chemistry.</p><h3>V. Incremental Organizational Shifts</h3><p>Evolution in the workplace is rarely an overnight explosion; it’s a steady migration. We expect to see:</p><ul><li><strong>Smaller, high-output teams.</strong></li><li><strong>A reduction in “copy-paste” or repetitive roles.</strong></li><li><strong>Extreme scarcity of high-level architects.</strong></li><li><strong>Increased importance of QA and Verification roles.</strong></li></ul><p>AI won’t kill organizations; it will compress low-value labor, shifting the bottleneck toward <strong>judgment</strong> and <strong>boundary design.</strong></p><h3>VI. Control and the Responsibility Structure</h3><p>When systems can auto-generate and auto-repair, accountability becomes complex.</p><ul><li>If an Agent introduces a bug, who is responsible?</li><li>If an auto-fix breaks a business logic, who made the decision?</li><li>If Token costs spiral out of control, who owns the bill?</li></ul><p><strong>Human-on-the-loop</strong> does not mean a lighter workload. It means humans retain ultimate accountability without necessarily mastering every granular detail. This requires transparent auditing, traceable decision logs, and clearly defined risk envelopes.</p><h3>Conclusion: An Ascension of Abstraction</h3><p>The core of the AI engineering evolution is not the automation of <strong>code</strong>, but the automation of the <strong>decision-making process.</strong></p><p>As processes automate, the value of the human engineer shifts toward <strong>abstraction, structural design, verification systems, and risk judgment.</strong> Writing code remains important, but it is no longer the sole core of the profession. This isn’t a narrative of devaluation; it is an elevation of the craft.</p><p>The direction is clear: the abstraction layer has moved up, and it’s time for us to move up with it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cba9b188706" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Engineering Evolution (Pt 2): What 5 Capabilities Are Needed for True Agentic Engineering?]]></title>
            <link>https://medium.com/@xinirene/ai-engineering-evolution-pt-2-what-5-capabilities-are-needed-for-true-agentic-engineering-c8850e8cfcf4?source=rss-2672882898f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8850e8cfcf4</guid>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[agentic-engineering]]></category>
            <dc:creator><![CDATA[Irene Yu]]></dc:creator>
            <pubDate>Tue, 03 Mar 2026 16:01:01 GMT</pubDate>
            <atom:updated>2026-03-03T16:01:01.240Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BE_rWupC53tCy2qv-OjO7Q.jpeg" /></figure><p>In the previous article, <a href="https://medium.com/@xinirene/ai-engineering-evolution-pt-1-have-we-really-transitioned-from-vibe-coding-to-agentic-engineering-f28512e5296c">“AI Engineering Evolution (Part 1): Have We Really Transitioned from Vibe Coding to Agentic Engineering?”,</a> we distinguished between two states:</p><ul><li><strong>Vibe Coding:</strong> Human-in-the-loop</li><li><strong>Agentic Engineering:</strong> Human-on-the-loop</li></ul><p>The goal isn’t just to make AI write code faster, but to make AI an active participant in the engineering loop.</p><p>But here is the question: If an individual or team wants to transition from “augmented Vibe Coding” to true Agentic Engineering, what exactly is missing?</p><p>The answer isn’t “switching frameworks” or “connecting a more powerful model.” The real upgrade requires <strong>an upgrade in engineering capabilities</strong>. I have broken this down into five core capability stacks.</p><h3>1. Task Structure Modeling: From “Requirement Descriptions” to “Executable Task Graphs”</h3><p>Currently, most teams operate like this: Write a requirement ➡️ Throw it to the model ➡️ Check the output ➡️ Fix it.</p><p>This works fine in the Vibe stage. However, an Agentic system cannot just understand a single sentence; it needs to understand the “task structure.” This includes:</p><ul><li>Sub-task breakdown</li><li>Dependencies</li><li>Execution sequences</li><li>Rollback nodes</li><li>State persistence</li></ul><p>Without a structural map, an Agent can only engage in linear conversations and will quickly get lost as complexity scales.</p><p>The reality is that task modeling is ten times harder than writing prompts. It requires abstraction, boundary awareness, and modular thinking — which is essentially an extension of traditional software architecture. Many teams get stuck here because they are still applying “conversational thinking” rather than “structural thinking.”</p><h3>2. The Plan-Execute-Verify Loop: AI-Native Testing</h3><p>The core of Agentic Engineering isn’t writing code. It is: Automated generation ➡️ Automated execution ➡️ Automated testing ➡️ Course correction based on results.</p><p>The true bottleneck here is <strong>verification</strong>. Many teams know they need a closed loop, but they miss a crucial detail: Agentic Engineering requires <strong>AI-Native Testing</strong>, not just traditional testing.</p><p><strong>What is AI-Native Testing?</strong> In traditional software engineering, tests are primarily for humans — they are a confidence tool to ensure functionality and prevent regressions. In Agentic Engineering, the role of testing shifts. It becomes the AI’s <strong>feedback signal</strong> (similar to a reward signal in reinforcement learning).</p><ul><li>Test passes ➡️ The current path is reinforced.</li><li>Test fails ➡️ The Agent tries a new strategy. Testing evolves from simply <em>verifying</em> the system to <em>driving</em> the system.</li></ul><p><strong>Why are traditional tests insufficient?</strong> Traditional testing assumes a human will read the failure logs, diagnose the root cause, and decide how to fix it. If a test outputsAssertionError: unexpected value, a human can figure it out. For an Agent, this is severely lacking. It leads to the Agent misjudging the problem, modifying the wrong module, introducing new bugs, and entering a &quot;Death Loop.&quot;</p><p><strong>Three Characteristics of AI-Native Testing:</strong></p><ol><li><strong>Machine-interpretable:</strong> Failure reasons must be structured, not vague (e.g., &quot;schema mismatch in payment validation stage&quot; instead of &quot;test failed&quot;).</li><li><strong>Dense Feedback:</strong> Don’t just give a pass/fail. Provide actionable tuning signals so the Agent knows <em>how</em> to adjust.</li><li><strong>Self-Extensible:</strong> A mature system will automatically generate boundary tests, expand edge cases, and use tests to prevent future behavioral drift.</li></ol><p>Many Agent projects fail because their testing frameworks are still Human-Native. In Agentic Engineering, whoever controls the testing controls the system’s behavior.</p><h3>3. Tool Invocation &amp; Environment Orchestration</h3><p>A true Agent system must be able to call tools — Shell, compilers, test frameworks, linters, databases, external APIs, etc. This means you must build a controllable execution environment.</p><p>This immediately shifts from a prompt engineering issue to a system security and architecture issue:</p><ul><li>How are permissions isolated?</li><li>How is the sandbox designed?</li><li>How are execution logs retained?</li><li>How are errors caught and rolled back?</li></ul><p>If the environment is poorly designed, you don’t get an automated engineer; you get an automated destroyer.</p><h3>4. Observability and Traceability: Knowing Why It Ran That Way</h3><p>In Vibe Coding, errors are visible because you monitor every conversational step. In an Agentic system, decisions happen autonomously.</p><p>When something goes wrong, you must be able to answer: Why did it break down the task this way? Why did it choose this repair path? Which iteration introduced the bug? Where did the token consumption spike?</p><p>This requires structured logs, decision records, prompt version management, and execution path visualization. Without these, you won’t even know where to start debugging. This lack of observability is the biggest chasm between a flashy Demo and a production-ready engineering tool.</p><h3>5. Human Intervention Design: Rational (Not Full) Automation</h3><p>The goal of Agentic Engineering is not “de-humanization.” It is to reduce low-value manual intervention while keeping risks controllable.</p><p>You must design boundaries: Which tasks are fully automated? Which require manual approval? Which triggers a pause upon hitting a risk threshold? Without this tiering, your system will either be overly automated (high risk) or constantly interrupted (low efficiency).</p><p>The core skill of future engineers will shift from “writing code” to “designing human-machine collaboration boundaries.”</p><h3>A Reality Check</h3><p>After reviewing these five capability stacks, ask yourself: <em>Are we really lacking model capabilities, or are we lacking engineering structure?</em></p><p>Most teams don’t suffer from weak models; they suffer from unstable feedback systems. Agentic Engineering is not a plugin — it is a comprehensive suite of engineering infrastructure.</p><p><strong>Phase 2 Self-Assessment:</strong></p><ul><li>Do you have task graphs instead of plain-text requirements?</li><li>Do you have an AI-Native Testing system?</li><li>Do you have a sandboxed execution environment?</li><li>Do you have decision path logs?</li><li>Have you defined boundaries for human intervention?</li><li>Have you calculated the token cost per unit task?</li></ul><p>If you answered “no” to more than half of these, you are still in the Agent prototype phase, not the engineering phase. And that is perfectly normal. True upgrades are never cheap.</p><p><em>(Thanks for reading! If you enjoyed this, give it a 👍 / ♥️ / ↗️. Follow me for Part 3: “When AI Becomes an Engineering Participant, How Will the Role of Human Engineers Be Restructured?” — This will be less about tech and more about organizational change.)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8850e8cfcf4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Engineering Evolution (Pt 1): Have We Really Transitioned from Vibe Coding to Agentic Engineering]]></title>
            <link>https://medium.com/@xinirene/ai-engineering-evolution-pt-1-have-we-really-transitioned-from-vibe-coding-to-agentic-engineering-f28512e5296c?source=rss-2672882898f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f28512e5296c</guid>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[agentic-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Irene Yu]]></dc:creator>
            <pubDate>Tue, 03 Mar 2026 00:35:08 GMT</pubDate>
            <atom:updated>2026-03-03T00:35:08.760Z</atom:updated>
            <content:encoded><![CDATA[<h3>AI Engineering Evolution (Part 1): Have We Really Transitioned from Vibe Coding to Agentic Engineering?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7L0rMtgksNuWsQBXFN9F5Q.jpeg" /></figure><p>Between late 2024 and early 2025, a new term suddenly exploded in the Silicon Valley tech sphere: <strong>Vibe Coding</strong>.</p><p>First popularized by figures like Andrej Karpathy, the phrase spread like wildfire. It perfectly captures a very “contemporary” state of programming: instead of starting with rigorous architecture, developers rely on intuition, feeling, and endless prompt tweaking to simply “vibe” the code into existence.</p><p>Almost simultaneously, another term began heating up: <strong>Agentic Engineering</strong>.</p><p>If you look closely, this wasn’t a sudden emergence. Back in 2024, Andrew Ng frequently highlighted the concept of the “Agentic Workflow” across multiple public forums. He argued that rather than blindly chasing ever-more-powerful models, we should focus on designing better Agent workflows.</p><p>What we are witnessing is a classic conceptual evolution. “Agentic Workflow” is a methodological framework — it describes how models complete complex tasks through a “Plan-Execute-Verify” loop. “Agentic Engineering,” on the other hand, is the engineering manifestation of this idea. When teams begin embedding this loop into their software development pipelines, toolchains, and collaboration mechanisms, it ceases to be just a workflow and becomes a full-fledged engineering paradigm.</p><p>Simply put: <strong>Agentic Workflow is the philosophy; Agentic Engineering is the organizational practice.</strong></p><p>Moving from a philosophy to engineering is a natural industry upgrade. But this raises a critical question: <em>Are we actually upgrading our engineering paradigm, or did we just give our old habits a fancier name?</em></p><h3>I. The Origins and Essence of Vibe Coding</h3><p>“Vibe Coding” is not a rigorous academic term. It’s more of a tongue-in-cheek joke, but an incredibly accurate one. It describes a process characterized by:</p><p>👉 Trial and error through conversational prompting <br>👉 No predefined, comprehensive system architecture <br>👉 Skipping type systems and architectural design at the outset <br>👉 Driving progress through a continuous “generate-modify-generate” cycle</p><p>From a software engineering perspective, it is essentially an AI-enhanced version of <strong>Exploratory Programming</strong>.</p><p>Exploratory programming has always existed, but large language models have hyper-accelerated the speed of exploration. However, it comes with a core pain point: <strong>unpredictability</strong>. You rarely know with absolute certainty:</p><p>🤔 <em>Why</em> the model generated the code this way <br>🤔 What hidden assumptions the code relies on <br>🤔 Whether the context window has drifted <br>🤔 If running the exact same prompt will yield a different result</p><p>Vibe Coding derives its efficiency from intuition, but its risks stem from that exact same place.</p><h3>II. What Does Agentic Engineering Actually Emphasize?</h3><p>Agentic Engineering isn’t simply about “making AI smarter.” Its core focus is not model capability, but <strong>process design</strong>. It emphasizes a loop structure over a single-shot generation:</p><p>👉 Task breakdown <br>👉 Tool invocation <br>👉 Automated execution <br>👉 Verification and feedback <br>👉 Self-correction</p><p>If Vibe Coding is driven by real-time conversation, Agentic Engineering is a closed-loop system of <strong>Plan — Execute — Verify — Correct</strong>.</p><p>The keyword here is “closed-loop.” It’s not an accumulation of generative capabilities; it is a fundamental shift in the control structure.</p><h3>III. The Real Dividing Line: Where Does Control Reside?</h3><p>Many discussions about Agents get stuck on the technical surface:</p><p>👉 Are you using a specific Agent framework? <br>👉 Have you chained a few tools together? <br>👉 Did you write a workflow?</p><p>The true dividing line, however, lies in the <strong>Control Model</strong>. We can differentiate the two concepts as follows:</p><p><strong>Vibe Coding operates as Human-in-the-loop (HITL):</strong></p><p>👉 The human is the driver. <br>👉 The AI is the reactor. <br>👉 Every step or decision must be triggered by a human.</p><p><strong>Agentic Engineering aims for Human-on-the-loop (HOTL):</strong></p><p>👉 The AI is the automated executor. <br>👉 The human is the supervisor. <br>👉 Humans only intervene at critical junctures.</p><p>This is a fundamental transformation: from “real-time control” to “process supervision.”</p><p>This means that decision-making power is partially transferred, errors can be automatically amplified, and process design becomes vastly more important than prompt engineering tricks. This isn’t just a vocabulary upgrade; it’s an upgrade to the entire control structure.</p><h3>IV. Two Frequently Ignored Engineering Realities</h3><p>When discussing Agents, many articles focus solely on capabilities while ignoring the costs. But in engineering, cost dictates everything.</p><p><strong>1️⃣ Token Costs</strong></p><p>Because Agentic Engineering involves task planning, self-reflection, test generation, and multi-round corrections, token consumption is typically <strong>5 to 10 times higher</strong> than Vibe Coding. This means Agentic Engineering leads to significantly higher costs, increased latency, and constrained concurrency limits. This might not matter in a sandbox experiment, but in a real-world production system, it’s a budget that must be meticulously calculated.</p><p><strong>2️⃣ Hallucination Accumulation and the “Death Loop”</strong></p><p>An even more severe issue is the accumulation of hallucinations. In a looped system, if the verification mechanism fails, the Agent might generate a flawed assumption, build a correction based on that flaw, generate a new erroneous explanation, and ultimately fall into a <strong>Death Loop</strong> of “fixing mistakes with more mistakes.” This is currently one of the hardest challenges to solve in Agent engineering. In Vibe Coding, a human spots the error immediately. In an Agentic system, the error can be automatically amplified. This is exactly why a “verification loop” is infinitely more important than raw “generative capability.”</p><h3>V. The “Pseudo-Upgrade” in Reality</h3><p>Many of today’s so-called Agent systems are actually just glorified prompt wrappers, chained workflows, or collections of automated scripts.</p><p>If these systems lack task structure modeling, state management, automated verification mechanisms, and traceable decision paths, their true nature remains an enhanced <strong>Human-in-the-loop (HITL)</strong> system, not <strong>Human-on-the-loop (HOTL)</strong>.</p><p>The difference isn’t in the tech stack; it’s in the control structure.</p><h3>VI. A Sober Conclusion</h3><p>Vibe Coding is not a backwards or obsolete format. It is an incredibly vital phase that has unlocked individual productivity and drastically lowered the barrier to prototyping. However, as system complexity scales, without an engineered closed-loop, an Agent simply becomes a more complex hallucination machine.</p><p>The question isn’t: <em>“Are you using Agents?”</em> The question is: <em>“Does your system possess a controllable, automated loop capability?”</em></p><h3>Stage Self-Assessment</h3><p>Ask yourself the following:</p><p>1️⃣ Can your AI independently break down complex tasks?</p><p>2️⃣ Is there an automated testing and automated repair closed-loop?</p><p>3️⃣ Can you reproduce a specific AI decision-making path?</p><p>4️⃣ Does it feature actual state management, rather than just relying on conversational history?</p><p>5️⃣ Have you calculated the token costs and latency?</p><p>6️⃣ Have you designed verification mechanisms to prevent Death Loops?</p><p>If your answer to most of these is “No,” there’s a high probability you are still in the Enhanced Vibe Coding stage. There is no right or wrong here. The key is knowing exactly where you stand.</p><p>Thanks for reading this far! Remember to drop a 👍 / ♥️ / ↗️ 🫶 .</p><p>If you want to keep reading, ❤️ follow me ❤️. In the next post, we will dive into a very practical problem: <strong>If we want to truly move toward Agentic Engineering, what five capability stacks do we need to build?</strong> Next time, we transition from cognitive upgrades to engineering reality.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f28512e5296c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machines Couldn’t See: LeCun Asked, “Why Not Look Like a Human?”]]></title>
            <link>https://medium.com/@xinirene/machines-couldnt-see-lecun-asked-why-not-look-like-a-human-463a9ca7ff99?source=rss-2672882898f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/463a9ca7ff99</guid>
            <category><![CDATA[decisive-moments-in-ai]]></category>
            <category><![CDATA[convolutional-neural-net]]></category>
            <category><![CDATA[alexnet]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[yann-lecun]]></category>
            <dc:creator><![CDATA[Irene Yu]]></dc:creator>
            <pubDate>Sat, 17 Jan 2026 04:27:44 GMT</pubDate>
            <atom:updated>2026-01-17T04:27:44.768Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Decisive Moments in AI — Series 1: Understanding &amp; Cognition (Part 1)</strong><em>(Collection Total: Part 1)</em></p><p><strong>Starring:</strong> Yann LeCun</p><p>Image Credit: Nano Banana Pro</p><p>Video Credit: Grok</p><p>Translator Credit: Gemini</p><p>中文原文：<a href="https://mp.weixin.qq.com/s/0hh6MDCUAFKJ9z2sAtDVbA">当机器看不懂照片，Yann LeCun 杨立昆说：要不，像人一样看？</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hcz33oXTxO3ISdxezWdJLA.jpeg" /></figure><p>Have you ever stopped to think about a simple mystery: Why can you instantly recognize a cat in a photo?</p><p>Even if the cat is only showing half its face, you immediately say, “Oh, there’s a cat.” However, if you threw that same photo at a computer in the past, it would be genuinely baffled. Not just slow — completely lost.</p><h3>I. To a Machine, a Photo isn’t a “Photo”</h3><p>When you look at a photo, you see a story: a cat curled up in someone’s arms, looking cozy. But in the eyes of early computers, that image was just a massive pile of numbers. Every pixel was merely a numerical value. To the machine, there was no cat, no human, and certainly no “cozy” emotion.</p><p>You see a picture; the machine sees a spreadsheet.</p><h3>II. Human Vision is Surprisingly “Lazy”</h3><p>So, how do humans do it? If you analyze how you “see” a cat, the process is actually quite rough and efficient:</p><p>👉 First Glance: Oh, there’s an object there.</p><p>👉 The Outline: It looks like a living thing.</p><p>👉 The Details: Ears, eyes, tail…</p><p>👉 The Conclusion: It’s a cat.</p><p>You don’t count the millions of pixels in your field of vision, nor do you calculate the file size of the image. You process it in layers. You only care if you have <em>enough</em> information to make a judgment, not whether you have captured every single data point.</p><h3>III. But Machines Didn’t Work That Way</h3><p>For a long time, researchers treated machines like tireless calculators. Their demand was: “Calculate everything that can be calculated, then figure it out.”</p><p>They would flatten an image into a long line of data, compute various manual features, and throw it at an algorithm. It was like asking a person to identify a cat without showing them the picture, but instead handing them a list of 10,000 numbers and saying, “Here, do the math.”</p><p>It was a thoroughly unnatural approach.</p><h3>IV. The “Un-Academic” Suggestion</h3><p>Then, a man named Yann LeCun said something that didn’t sound very scientific at the time.</p><p>Around 1989, while everyone else was obsessing over raw number crunching, LeCun had a different idea: “Instead of making the machine calculate everything at once, why don’t we let it look at the image piece by piece, just like a human?”</p><p>Back then, this sounded unsophisticated. To many serious researchers, “mimicking humans” felt like science fiction, not science.</p><h3>V. Turning a “Clumsy Method” into a System</h3><p>LeCun didn’t just talk; he built a system around this idea. He designed a new network structure that would later become famous as the Convolutional Neural Network (CNN).</p><p>This wasn’t an overnight success. Throughout the 1990s, LeCun tweaked and tested his invention. By 1998, he released a mature version called LeNet-5.</p><p>LeNet-5 was put to work doing something very humble: recognizing handwritten numbers on bank checks. It was a small task, but it proved a massive point: The CNN path actually worked.</p><h3>VI. What is a CNN Actually Doing?</h3><p>If you have ever studied sketching, you know how to draw a cat:</p><ol><li>The Sketch: You outline the basic shapes.</li><li>The Structure: You add shading to create 3D volume.</li><li>The Details: You refine the texture, fur, and eyes.</li></ol><p>Only at the very end does an ear look like an ear.</p><p>A Convolutional Neural Network (CNN) works almost exactly the same way:</p><ul><li>Layer 1: Learns simple lines and edges.</li><li>Middle Layers: Assembles lines into shapes and parts.</li><li>Higher Layers: Assembles parts into eyes, ears, and faces.</li></ul><p>Every layer is essentially “drafting.” No single layer sees the whole picture instantly. But by stacking these layers, the machine moves beyond calculating pixels to understanding what the image represents. Each layer isn’t smart on its own, but together, they allow the machine to “understand the image like a human.”</p><h3>VII. Why Didn’t It Go Viral Then?</h3><p>It wasn’t that the idea was wrong; the timing was wrong. In the 90s, computers were too slow, data was scarce, and if the neural network got too deep, the model couldn’t learn (a problem known as vanishing gradients).</p><p>For a long time, CNNs were viewed as a “correct direction” that was practically useless. Many researchers eventually gave up.</p><h3>VIII. The Story Wasn’t Over</h3><p>Around 2010, the stars aligned.</p><p>👉 Hardware: Graphic cards (GPUs) designed for gaming turned out to be incredibly fast at the matrix math needed for AI.</p><p>👉 Data: The internet had accumulated vast oceans of images to “feed” the models.</p><p>👉 Technique: New training methods allowed deep networks to actually learn.</p><p>Suddenly, the CNN — which had been collecting dust in the corner — became a superweapon. The turning point was the 2012 ImageNet competition, where AlexNet (based on CNN) crushed the competition, dropping error rates from the usual 25%~30% to around 15%.</p><p>It was a landslide victory. The entire field of Computer Vision realized a new era had arrived. From that point on — whether it’s facial recognition, medical imaging, or self-driving cars — almost all visual AI is built on the foundation of the CNN.</p><h3>IX. A Very “Human” Breakthrough</h3><p>Looking back, Yann LeCun didn’t start out trying to conquer the world. He simply held onto a basic question: How do humans understand the world? And why are machines doing it so differently?</p><p>Interestingly, LeCun’s inspiration came from biological research on the visual cortex of cats. The machine learned to see the cat because it finally mimicked the way the cat sees the world.</p><p>Sometimes, AI progress doesn’t come from a complex formula, but from a simple thought: “What if we try looking at it differently?”</p><h3>X. A Bigger Question Arises</h3><p>Today, CNNs allow machines to “see like humans.” But… do they understand? Does the machine know what a cat is, or has it just memorized what a cat looks like?</p><p>As these networks become deeper, this question becomes sharper.</p><p>❤️ Follow for Part 2: In the next article, we will talk about the man who insisted that “The Network Must Be Deeper” — Geoffrey Hinton. We will explore how he persisted through decades of being ignored to force “Deep Learning” into the mainstream.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=463a9ca7ff99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amidst the Tides]]></title>
            <link>https://medium.com/@xinirene/amidst-the-tides-97ce47550441?source=rss-2672882898f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/97ce47550441</guid>
            <dc:creator><![CDATA[Irene Yu]]></dc:creator>
            <pubDate>Mon, 29 Dec 2025 00:58:02 GMT</pubDate>
            <atom:updated>2025-12-29T00:59:05.467Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_f8rjRPUZOuhMog28E_yqw.jpeg" /></figure><p>If we view human civilization as a river surging forward, then technology is the succession of waves, one building upon another.</p><p>With the arrival of every wave, what comes is never merely &quot;progress,&quot; but a shift in positioning. Some are lifted up, others are pushed forward, and invariably—in the blink of an eye—some are left standing exactly where they were.</p><h3>AI is currently the most dynamic crest in this tide of our times.</h3><p>It makes many things faster, cheaper, and easier; yet, it also renders some once-reliable experiences quietly obsolete.</p><p>For some, this taste is sweet—capabilities are amplified, boundaries expanded. For others, it is bitter—familiar paths begin to crumble, and the sense of security gradually loosens. Then there are those who, before they even realize a shift has occurred, are struck by the dust kicked up by the marching era.</p><h3>The tide itself holds neither malice nor benevolence.</h3><p>It will not slow down because someone is ready, nor will it divert its course because someone feels uneasy. It simply surges forward.</p><p>Perhaps what truly matters is not the height of the waves, but the realization that we are always immersed within them.</p><p>Understanding this may offer a little less fear and a little more clarity. How to stand firm and how to move forward amidst the spray—that, in itself, is the question every era leaves for us to answer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97ce47550441" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Two Tempos of Night: Between Bourbon and Rye]]></title>
            <link>https://medium.com/@xinirene/the-two-tempos-of-night-between-bourbon-and-rye-5b03599329db?source=rss-2672882898f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b03599329db</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[lifestyle]]></category>
            <dc:creator><![CDATA[Irene Yu]]></dc:creator>
            <pubDate>Mon, 22 Dec 2025 03:06:59 GMT</pubDate>
            <atom:updated>2025-12-22T03:09:18.702Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ug7B2yDBQYQHSydayA47rQ.jpeg" /><figcaption>Whisky Night</figcaption></figure><p>​Some nights, once the tasks are finished, the house settles into a slow silence. The lights are dimmed, and the phone is finally set aside. I pour a splash of whiskey—no more than twenty milliliters—just enough to nose for a while and sip slowly.</p><p>​I find myself oscillating between two spirits, depending on the night.<br>​The first is Bourbon.</p><p>​I reach for it when my body feels the weight of the day first. It isn’t sadness or frustration, but that natural weariness that follows a day of high effort. My shoulders are heavy, and my mind has no desire for further analysis.</p><p>​In the glass, the Bourbon is quiet. It carries that familiar scent: vanilla, a touch of sweetness, and the warmth of toasted wood. On the palate, it has no sharp edges; it simply unfolds, never rushing or demanding your attention. You can read a book, taking an occasional sip, and it will never interrupt your train of thought or hijack your mood. It offers warmth, but not the boisterous kind. It feels like the relief of finally hanging up your coat after walking through the front door. It doesn’t ask you to summarize your day or judge your performance—it simply keeps you company as you close the chapter on the day.</p><p>​Then, there are the other nights, when I prefer Rye.</p><p>​These are the nights marked by a subtle, internal hum of excitement—perhaps I learned something new, or made progress at work, or simply finally understood a complex idea. It isn’t a feeling I need to broadcast, but it is one I’m not quite ready to sleep away.</p><p>​Rye hits the palate with a different intent. It is drier, sharper, with a spicy tingle. It doesn’t wrap around you like Bourbon does; instead, it straightens your focus and anchors your emotions. It doesn’t amplify the excitement; it organizes it. When drinking Rye, I read more intently. I linger over sentences and think a little deeper. The spirit itself isn’t &quot;loud,&quot; but it has a distinct presence, acting as a reminder: <em>Something worth remembering happened today.</em></p><p>​It is curious that while both spirits share the same alcohol content, they reflect two entirely different states of mind. One allows you to let go, while the other allows you to confirm.</p><p>​Over time, I’ve stopped wondering which one is &quot;better.&quot; They are simply two different ways of responding to life. When the day has drained you, Bourbon is there to catch you; when the day has given you a small victory, Rye helps you find a place for that spark.</p><p>​The night grows deep, and the glass is empty. There is no need for grand conclusions or lingering thoughts. This small pour has simply allowed the day to end with a sense of poise.</p><p>​Lights out. Sleep.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b03599329db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Morning Routine]]></title>
            <link>https://medium.com/@xinirene/my-morning-routine-61996050bb84?source=rss-2672882898f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/61996050bb84</guid>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Irene Yu]]></dc:creator>
            <pubDate>Sat, 03 May 2025 02:13:08 GMT</pubDate>
            <atom:updated>2025-05-03T02:13:41.436Z</atom:updated>
            <content:encoded><![CDATA[<p>My Morning Routine</p><p>My mornings go like this:</p><p>First, I check WeChat (I have many relatives and friends in China who might have messaged me while I was asleep) and reply to any urgent messages.</p><p>I like to choose a toothpaste with different flavors or textures depending on how I feel when I wake up. Yes, I have *a lot* of toothpaste 🤩. I always brush my teeth slowly with my eyes closed, listening to the soft &quot;swish-swish&quot; sound. This is usually the purest moment of enjoyment in my day.</p><p>After leaving the bathroom, I spend about ten minutes silently reciting the *Heart Sutra* (*Prajnaparamita Hridaya Sutra*). I’m not a Buddhist, but I’ve kept this practice for ten years.</p><p>Then, if I have time, I do ten minutes of stretching—either yoga or Pilates.</p><p>Next, I go downstairs, where my dog is waiting for me, wagging his tail. His breakfast is given during a 15-minute training session. He usually completes his tasks well.</p><p>My breakfast is usually a cup of Pu-erh tea and a small sweet treat. I often add half a cup of soy milk to my tea.</p><p>After breakfast, I quickly check and handle work messages. Then, I run 10 kilometers on the treadmill while watching the news or interesting videos. My dog usually takes another nap while watching me run. After finishing, he shares a banana with me. And then, I start my day!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61996050bb84" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>