V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
largep
0D
V2EX  ›  OpenAI

Bitter Lesson of Coding Agent: Agentic Search vs Codebase Indexing

  •  
  •   largep · Nov 17, 2025 · 1081 views
    This topic created in 161 days ago, the information mentioned may be changed or developed.

    Cursor/Windsurf 核心功能的使用需要 Codebase Indexing (将代码库填进向量数据库,方便快速搜索),这样做一方面的确提高了用户体验,但 Indexing 本身是个黑盒,需要诸多工程上的专有优化,还有截断等诸多问题。

    Claude Code 放弃了 Indexing 的做法,其实通过系统命令/字符串匹配的方式去搜索,速度慢些,但跟人/工程师的思维/做法相同,因为更方便人理解,也更好做模型训练/系统优化,更容易扩展 (包括最近的 Skills),CC 的其他实现也是考虑工程师如何考虑问题,因此才能后来者居上。这套思路如此直接,以致于很方便一般化到普通业务领域 (也是为啥 Claude Code SDK 改名为 Claude Agent SDK 了)。

    这也让我联想到 Rich Sutton 提到的 The Bitter Lesson: 可扩展的通用做法最终总会超越基于特定领域的专有实现。

    Reference:

    1. https://cursor.com/docs/context/codebase-indexing
    2. https://support.claude.com/en/articles/12386420-claude-code-faq#h_8c70bdf68f
    3. https://docs.claude.com/en/docs/agent-sdk/overview
    4. http://www.incompleteideas.net/IncIdeas/BitterLesson.html
    1 replies    2025-11-18 08:22:41 +08:00
    JustGoGoGO
        1
    JustGoGoGO  
       Nov 18, 2025 via Android
    其实向量检索和文本检索是可以互补的,不是非此即彼的关系。只是前者在本地运行成本更高罢了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3748 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 04:32 · PVG 12:32 · LAX 21:32 · JFK 00:32
    ♥ Do have faith in what you're doing.