<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Coding Agent on DUX 技术笔记</title><link>https://bg5dux.top/categories/coding-agent/</link><description>Recent content in Coding Agent on DUX 技术笔记</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Tue, 20 Oct 2026 12:56:55 +0800</lastBuildDate><atom:link href="https://bg5dux.top/categories/coding-agent/index.xml" rel="self" type="application/rss+xml"/><item><title>PI框架</title><link>https://bg5dux.top/posts/pi%E6%A1%86%E6%9E%B6/</link><pubDate>Tue, 20 Oct 2026 12:56:55 +0800</pubDate><guid>https://bg5dux.top/posts/pi%E6%A1%86%E6%9E%B6/</guid><description>&lt;h1 id="一整体框架图"&gt;一、整体框架图&lt;/h1&gt;
&lt;h2 id="11agent-loop外层与内层的双循环"&gt;1.1、Agent Loop：外层与内层的双循环&lt;/h2&gt;
&lt;p&gt;PI 的核心是 &lt;code&gt;runLoop()&lt;/code&gt; 里的双层 &lt;code&gt;while(true)&lt;/code&gt;：&lt;strong&gt;内层&lt;/strong&gt;负责单个回合（turn）内的工具调用循环，&lt;strong&gt;外层&lt;/strong&gt;负责回合之间的准备与 followUp 接续。&lt;/p&gt;</description></item></channel></rss>