<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Tool Search on 卓琪的开发笔记</title>
    <link>https://zhuoqidev.com/tags/tool-search/</link>
    <description>Recent content in Tool Search on 卓琪的开发笔记</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-CN</language>
    <copyright>© 2026 Liu ZhuoQi</copyright>
    <lastBuildDate>Sun, 09 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://zhuoqidev.com/tags/tool-search/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Codex 为什么不把所有工具都交给模型？讲透 tool_search、BM25 与模型替换</title>
      <link>https://zhuoqidev.com/posts/codex-first-request-tools/</link>
      <pubDate>Sat, 08 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://zhuoqidev.com/posts/codex-first-request-tools/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  把模型想成只有一张小桌子的工程师。工具说明书有几百本时，全部摊在桌上既贵又难找；更好的办法是先给它一本目录，需要什么再取出最相关的几本。本文就讲清 Codex 怎样做这件事、为什么使用 BM25 排序，以及怎样把同一办法搬到 Python、Go 和其他模型上。&#xA;&lt;/div&gt;&#xA;&#xA;&lt;p&gt;本文固定在 2026-08-07 发布的稳定版 &lt;a href=&#34;https://github.com/openai/codex/releases/tag/rust-v0.147.0&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;code&gt;rust-v0.147.0&lt;/code&gt;&lt;/a&gt;，源码 commit 为 &lt;a href=&#34;https://github.com/openai/codex/commit/be6e8eac029b183056b7e4402879f15d2c85f61b&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;code&gt;be6e8eac&lt;/code&gt;&lt;/a&gt;；另复查了 2026-08-09 的 &lt;code&gt;main&lt;/code&gt; commit &lt;a href=&#34;https://github.com/openai/codex/commit/646f7c0a91b8e327d263335da68ae8ef212895ce&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;code&gt;646f7c0a&lt;/code&gt;&lt;/a&gt;。先给两个不会误导人的结论：&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;模型第一次能看到哪些工具，不是一张永远不变的名单。&lt;/strong&gt; 它会随模型、接入方式、运行环境和功能开关变化。&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;&lt;code&gt;tool_search&lt;/code&gt; 和背后的 BM25 排序代码都已经写好，普通直连方式可以使用；但这个稳定版给 GPT-5.6 采用的 &lt;code&gt;exec&lt;/code&gt; 集中调用方式漏掉了搜索入口。&lt;/strong&gt; 这不是功能没开发，而是一条接线没有接通。&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;这篇文章写给谁&#xA;    &lt;div id=&#34;这篇文章写给谁&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#%e8%bf%99%e7%af%87%e6%96%87%e7%ab%a0%e5%86%99%e7%bb%99%e8%b0%81&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;默认读者只需要知道“大模型可以调用外部工具”。&lt;strong&gt;不要求会 Rust，也不要求读过 Codex 源码。&lt;/strong&gt; 如果你主要写 Python 或 TypeScript，后面的 Rust 连写可以直接理解成“筛选列表 → 改造每一项 → 收集结果”。&lt;/p&gt;&#xA;&lt;p&gt;有两条阅读路线：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;只想理解做法&lt;/strong&gt;：读小桌子问题、机场图、工具搜索过程、跨语言复用和模型替换；&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;想跟进源码&lt;/strong&gt;：继续读伪代码、Rust 对照、完整查询实例和源码索引。&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;先只记住四句大白话&#xA;    &lt;div id=&#34;先只记住四句大白话&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#%e5%85%88%e5%8f%aa%e8%ae%b0%e4%bd%8f%e5%9b%9b%e5%8f%a5%e5%a4%a7%e7%99%bd%e8%af%9d&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;先把 Rust 函数名和 OpenAI 的专有叫法全部擦掉，一个会使用工具的模型仍逃不开四件事：&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>Why Codex Does Not Give the Model Every Tool: tool_search, BM25, and Model Replacement</title>
      <link>https://zhuoqidev.com/en/posts/codex-first-request-tools/</link>
      <pubDate>Sat, 08 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://zhuoqidev.com/en/posts/codex-first-request-tools/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  Think of the model as an engineer with a small desk. If hundreds of tool manuals cover it, every request becomes expensive and the right manual is harder to find. Codex instead provides a short catalog and retrieves only the most relevant manuals. This article explains that design, BM25 ranking, reuse in Python or Go, and model replacement.&#xA;&lt;/div&gt;&#xA;&#xA;&lt;p&gt;This article is pinned to stable &lt;a href=&#34;https://github.com/openai/codex/releases/tag/rust-v0.147.0&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;code&gt;rust-v0.147.0&lt;/code&gt;&lt;/a&gt;, released on August 7, 2026, at commit &lt;a href=&#34;https://github.com/openai/codex/commit/be6e8eac029b183056b7e4402879f15d2c85f61b&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;code&gt;be6e8eac&lt;/code&gt;&lt;/a&gt;. I also rechecked &lt;code&gt;main&lt;/code&gt; at commit &lt;a href=&#34;https://github.com/openai/codex/commit/646f7c0a91b8e327d263335da68ae8ef212895ce&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;code&gt;646f7c0a&lt;/code&gt;&lt;/a&gt; on August 9. Two conclusions matter up front:&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
