<?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"><channel><title><![CDATA[无意识领域]]></title><description><![CDATA[无意识non-ishiki的博客]]></description><link>https://blog.hashmap.space</link><image><url>https://blog.hashmap.space/innei.svg</url><title>无意识领域</title><link>https://blog.hashmap.space</link></image><generator>Shiro (https://github.com/Innei/Shiro)</generator><lastBuildDate>Fri, 26 Jun 2026 15:27:30 GMT</lastBuildDate><atom:link href="https://blog.hashmap.space/feed" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Jun 2026 15:27:30 GMT</pubDate><language><![CDATA[zh-CN]]></language><item><title><![CDATA[Chronos在VSCode的安装配置教程]]></title><description><![CDATA[<div><blockquote>该渲染由 Shiro API 生成，可能存在排版问题，最佳体验请前往：<a href="https://blog.hashmap.space/posts/default/chronos_install_and_config">https://blog.hashmap.space/posts/default/chronos_install_and_config</a></blockquote><div><h1 id="">安装前准备</h1><p>软件依赖</p><ul><li>VS Code (v1.110+)</li><li>Node.js (v18x及以上版本)</li><li>Gemini API Key</li></ul><p>确保node.js和VS Code被正确安装 Gemini API Key有效</p><hr/><h1 id="vs-code">VS Code配置</h1><p>打开vscode在拓展商店找到</p><ul><li>Chronos — The AI Historian</li></ul><p>安装拓展，等待拓展安装完成</p>
<p>新建一个空白文件夹作为Chronos的工作区，并在vscode中打开并添加到信任区。</p>
<p>因为Chronos初始化指令在vscode默认的Powershell终端中不可用，因此需要将默认终端配置为cmd</p>
<p>在vscode中按下<code>Ctrl+Shift+P</code>显示并运行命令</p><p>在上方输入框输入并选择命令</p><p><code>Terminal: Select Default Profile</code></p><p>在弹出的终端配置列表中，选择：<code>Command Prompt</code></p><p>关闭当前终端窗口（如果已经打开），然后重新打开一个新终端（快捷键：Ctrl + ` ），你就会看到默认终端已经切换为 CMD。</p><p>在vscode中按下<code>Ctrl+Shift+P</code>显示并运行命令</p><p>在上方输入框输入并选择命令</p><p><code>Chronos: Init Workspace</code></p><p>弹出安装依赖的对话框，点击确定。
此时会启动终端自动执行</p><pre class="language-powershell lang-powershell"><code class="language-powershell lang-powershell">
npm install -g @mariozechner/pi-coding-agent &amp;&amp; pi install https://github.com/ai-historian/history-agent &amp;&amp; echo &quot;&quot; &amp;&amp; echo &quot;Chronos setup complete. Re-run the Chronos command from the Command Palette.&quot;如已安装node.js</code></pre><p>如node.js正确安装，则改指令会被正确运行，但是由于国内网络环境问题，该指令执行后会报错无法访问github服务器，因此将指令中的github链接改为国内镜像站链接，以gitclone.com为例</p><p>在终端按键盘上键回到上一条命令，在github.com前加上gitclone.com/</p><p>修改后的完整指令为</p><pre class="language-powershell lang-powershell"><code class="language-powershell lang-powershell">
 npm install -g @mariozechner/pi-coding-agent &amp;&amp; pi install https://gitclone.com/github.com/ai-historian/history-agent &amp;&amp; echo &quot;&quot; &amp;&amp; echo &quot;Chronos setup complete. Re-run the Chronos command from the Command Palette.&quot;</code></pre><p>(如显示504错误请再次执行)
待指令执行完毕后再次执行<code>Chronos: Init Workspace</code></p><p>Chronos会初始化并要求你输入gemini的api key</p><hr/><h2 id="">配置中转站</h2><p>Chronos会在pi调用google的<code>gemini-2.0-flash</code>,<code>gemini-2.5-flash</code>,<code>gemini-2.5-pro</code>,<code>gemini-3-flash-preiew</code>,<code>gemini-3.1-pro-preview</code>等模型，由于部分特殊原因，我们需要配置中转站以保障Chronos的正常使用。</p><p>  欲将Chronos调用的gemini服务中转，需修改pi的模型配置，pi支持通过<code>model.json</code>将自己的model配置覆盖到pi的默认配置上，因此配置中转站的方式为</p><p>  在pi安装位置的agent目录下新建文件<code>model.json</code>
  (在 windows 系统中 pi 的默认安装位置为<code>C:\User\你的用户名\.pi</code>，Linux和Macos中为<code>~/.pi</code>——简而言之,对于大部分用户而言，请在<code>C:\User\你的用户名\.pi\agent</code>下新建<code>model.json</code>文件）</p><p>  使用vscode打开<code>model.json</code>文件(使用记事本打开可能会导致一些无法预计的编码问题），在<code>models.json</code>中加入</p><pre class="language-json lang-json"><code class="language-json lang-json">
  {
  &quot;providers&quot;: {
    &quot;google&quot;: {
      &quot;name&quot;: &quot;google&quot;,
      &quot;baseUrl&quot;: &quot;中转站提供的openai格式api/v1&quot;,
      &quot;apiKey&quot;: &quot;sk-中转站提供的密钥&quot;,
      &quot;api&quot;: &quot;openai-completions&quot;,
      &quot;models&quot;: [
        {
          &quot;id&quot;: &quot;gemini-2.0-flash&quot;,
          &quot;name&quot;: &quot;gemini-2.0-flash&quot;,
          &quot;input&quot;: [&quot;text&quot;, &quot;image&quot;],
          &quot;contextWindow&quot;: 1000000,
          &quot;maxTokens&quot;: 128000
        },
        {
          &quot;id&quot;: &quot;gemini-2.5-flash&quot;,
          &quot;name&quot;: &quot;gemini-2.5-flash&quot;,
          &quot;input&quot;: [&quot;text&quot;, &quot;image&quot;],
          &quot;contextWindow&quot;: 400000,
          &quot;maxTokens&quot;: 128000
        },
        {
          &quot;id&quot;: &quot;gemini-2.5-pro&quot;,
          &quot;name&quot;: &quot;gemini-2.5-pro&quot;,
          &quot;input&quot;: [&quot;text&quot;, &quot;image&quot;],
          &quot;contextWindow&quot;: 1000000,
          &quot;maxTokens&quot;: 128000
        },
        {
          &quot;id&quot;: &quot;gemini-3-flash-preiew&quot;,
          &quot;name&quot;: &quot;gemini-3-flash-preiewo&quot;,
          &quot;input&quot;: [&quot;text&quot;, &quot;image&quot;],
          &quot;contextWindow&quot;: 1000000,
          &quot;maxTokens&quot;: 128000
        },
        {
          &quot;id&quot;: &quot;gemini-3.1-pro-preview&quot;,
          &quot;name&quot;: &quot;gemini-3.1-pro-preview&quot;,
          &quot;input&quot;: [&quot;text&quot;, &quot;image&quot;],
          &quot;contextWindow&quot;: 1000000,
          &quot;maxTokens&quot;: 128000
        }
      ]
    }
  }
}</code></pre><p>编辑好后保存文件，重启vscode，打开chronos的文件夹，按下<code>Ctrl+Shift+P</code>显示并运行命令，输入并选择指令<code>Chronos: Init Workspace</code>，配置密钥。</p><p>配置完成密钥后执行<code>Chronos: Init Workspace</code>指令Chronos会将你使用的空白文件夹初始化为Chronos的工作区</p><p>Chronos工作区的结构如下</p><p>workspace/<br/>    ├──sources/  原始资料 <br/>    ├──data/ 提取结果和结构化数据 <br/>    ├──skills/ 自定义skill <br/>    ├──memory/ 长期记忆 <br/>    ├──sessions/ 对话和运行记录 <br/>    └──chronos/ API 密钥等配置</p><h1 id="chronos">Chronos的使用</h1><p>在vscode中打开Choronos的文件夹，按下<code>Ctrl+Shift+P</code>显示并运行命令，输入并选择指令<code>Chronos: Import Sources</code>导入资料。</p><p>在弹出的文件管理器界面选择你要分析的资料所在的文件夹，Chronos会检查该文件夹下的所有图片，文档，PDF等资料(pdf会被拆分成图片文件)并复制到Chronos工作区下的sources文件夹中</p><p>运行指令<code>Chronos: Start Agent Session</code>以正式启动Chronos。此时屏幕上会出现空白的阅读器和pi的终端，第一次启动时需要使用<code>/login</code>指令 <del><strong>再次</strong></del> 配置ai模型</p><p>输入<code>/login</code>指令会进入配置模型api程序所以键盘上下键切换选项。</p><p>选择 Use an API key</p><p>找到并选择Google Gemini配置api key此时Chronos配置完毕</p><p>可使用<code>/select-source</code>指令选择要分析的资料，被选择的资料会出现在阅读器中。</p><p>Chrono目前可用的几个核心工具有</p><ul><li>list_pages：列出当前史料的全部页面；</li><li>ask_page / 论文中的 analyze_page：把某一页交给视觉模型分析；</li><li>follow_up_question：围绕同一页继续追问，不必重复上传图像；</li><li>show_page：只显示页面，不进行模型分析；</li><li>show_text：显示文本文件并高亮指定段落；</li><li>ask_pages_batch：批量处理多个页面；</li><li>change_source：切换到另一部史料；</li></ul></div><p style="text-align:right"><a href="https://blog.hashmap.space/posts/default/chronos_install_and_config#comments">看完了？说点什么呢</a></p></div>]]></description><link>https://blog.hashmap.space/posts/default/chronos_install_and_config</link><guid isPermaLink="true">https://blog.hashmap.space/posts/default/chronos_install_and_config</guid><dc:creator><![CDATA[无意识non-ishiki]]></dc:creator><pubDate>Thu, 11 Jun 2026 11:28:24 GMT</pubDate></item></channel></rss>