Claude Code 和 Codex 在代码搜索中都选择了零索引路线:不用 embedding,不建向量库,而是让 LLM 驱动 ripgrep 多轮搜索。围绕工具调用循环、ripgrep 性能、Cursor 对比和 token 成本,讲清这种架构为什么在本地代码库里成立。