<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>middleware on 又耳笔记</title><link>https://youerning.top/tags/middleware/</link><description>Recent content in middleware on 又耳笔记</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><lastBuildDate>Fri, 23 Oct 2026 21:36:00 +0800</lastBuildDate><atom:link href="https://youerning.top/tags/middleware/index.xml" rel="self" type="application/rss+xml"/><item><title>读 Octop 源码（4）：9 个中间件，9 个被踩出来的坑</title><link>https://youerning.top/post/octop-source/octop4/</link><pubDate>Fri, 23 Oct 2026 21:36:00 +0800</pubDate><guid>https://youerning.top/post/octop-source/octop4/</guid><description>&lt;p>第 5 篇写 &lt;code>_start_agent&lt;/code> 的时候，第 ⑦ 步我写的是「&lt;code>_post_start_agent&lt;/code>：注入 gateway 工具、清洗 MCP 工具名、同步技能」，一句就过去了。&lt;/p>
&lt;p>其实那一步里藏着整个项目我最喜欢的一部分：&lt;strong>9 个中间件&lt;/strong>。&lt;/p>
&lt;p>它们合计不到 900 行，每个都很小，但每一个都对应一个具体的、真实发生过的问题。&lt;/p></description></item></channel></rss>