Aug 29, 2026 10 min read Pi Agent 源码解析:最小核心、多模型与宿主扩展 沿 CLI、AgentSession、双层循环、provider、工具、会话树与扩展系统,解释 Pi 如何用薄核心换取高度可替换性。 coding-agentsource-codepi-agenttypescript