<?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>Nanobot on CYR&#39;ML</title>
    <link>https://chengyongru.github.io/tags/nanobot/</link>
    <description>Recent content in Nanobot on CYR&#39;ML</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 29 Sep 2026 00:00:00 +0800</lastBuildDate>
    <atom:link href="https://chengyongru.github.io/tags/nanobot/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>我对 system prompt 的理解</title>
      <link>https://chengyongru.github.io/blog/notebook/how-i-design-system-prompts/</link>
      <pubDate>Tue, 29 Sep 2026 00:00:00 +0800</pubDate>
      <guid>https://chengyongru.github.io/blog/notebook/how-i-design-system-prompts/</guid>
      <description>&lt;p&gt;在 nanobot 的 &lt;code&gt;SOUL.md&lt;/code&gt; 里有这样一句话：&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Say what I know, flag what I don&amp;#39;t, and never fake confidence.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;它会跟着下图所示的流程作为 system prompt 的一部分最终发送给模型&lt;/p&gt;
&lt;p&gt;&lt;img alt=&#34;SOUL.md 进入模型请求的时序图：上下文构建器读取工作区文件，组装 system 消息，经 Provider 适配后发送至模型 API&#34; loading=&#34;lazy&#34; src=&#34;https://chengyongru.github.io/media/system-prompt/nanobot-context.png&#34;&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>nanobot 的上下文压缩和记忆机制</title>
      <link>https://chengyongru.github.io/blog/notebook/nanobot%E4%B8%8A%E4%B8%8B%E6%96%87%E9%87%8D%E6%9E%84-%E4%BA%94%E6%9D%A1%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F/</link>
      <pubDate>Mon, 07 Sep 2026 17:51:25 +0800</pubDate>
      <guid>https://chengyongru.github.io/blog/notebook/nanobot%E4%B8%8A%E4%B8%8B%E6%96%87%E9%87%8D%E6%9E%84-%E4%BA%94%E6%9D%A1%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F/</guid>
      <description>&lt;p&gt;最近对 nanobot 的上下文压缩机制做了不少改动, 在这里稍作记录, 也顺便聊聊 nanobot 现在的长期记忆机制, 希望能对各位有所帮助, 如有错漏, 也欢迎批评指正.&lt;/p&gt;
&lt;h2 id=&#34;上下文怎么压缩&#34;&gt;上下文怎么压缩&lt;/h2&gt;
&lt;p&gt;不严谨地讲, 上下文可以看成一个消息列表, 大致长这样:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
