tech

Don't Read Every File in Your Project. Search Instead.

Claude Code threw out its own vector index because searching beat reading. Precision over brute force, with the built-in tools you already have.

Don't Read Every File in Your Project. Search Instead.

TL;DR

  • The goal is to keep senior technical professionals as operators, not AI assistants, by deciding which tasks AI can handle and which require human judgment.
  • Claude Code found that agentic search performed better than using a vector index, leading them to remove the latter.
  • Built-in tools like Grep, Glob, Read, Write, and Edit are crucial for agents to find what matters without processing irrelevant data.
  • Precise use of these tools prevents context window overflow and reduces costs, while careless use can lead to both.
  • This lesson is part of an architecture series focusing on how AI agents use tools.