Simple, effective code retrieval strategies for any repository size
1. list_dir: Directory Exploration
2. file_search: Find Files by Name
3. read_file: Read and Analyze Code
4. semantic_grep: Semantic Code Search (Optional)
🔍 Cast Wide Net
⚡ Focus Down
🧠 Agent Reading
Start Simple
Upgrade When Needed
Keep Agent in the Loop
Repository Size | Approach | Search Time | Success Rate |
---|---|---|---|
< 200 files | Agent Search | < 5 seconds | 95%+ |
200-1000 files | Basic Funnel | < 10 seconds | 90%+ |
1000+ files | Advanced Funnel | < 15 seconds | 85%+ |