GrepAI Troubleshooting
This skill provides solutions for common GrepAI issues and diagnostic procedures.
When to Use This Skill
- GrepAI not working as expected
- Search returning poor results
- Index not updating
- Connection or configuration errors
Quick Diagnostics
Run these commands to understand your setup:
Common Issues
Issue: "Index not found"
Symptom:
Cause: No index has been created for this project.
Solution:
Issue: "Cannot connect to embedding provider"
Symptom:
Causes:
- Ollama not running
- Wrong endpoint configured
- Firewall blocking connection
Solutions:
- Start Ollama:
- Check endpoint in config:
- Test connection:
Issue: "Model not found"
Symptom:
Cause: The embedding model hasn't been downloaded.
Solution:
Issue: Search returns no results
Symptom: Searches return empty or very few results.
Causes:
- Index is empty
- Files are being ignored
- Query too specific
Solutions:
- Check index status:
- Verify files are being indexed:
- Try broader query:
Issue: Search returns irrelevant results
Symptom: Results don't match what you're looking for.
Causes:
- Query too vague
- Boosting not configured
- Wrong content indexed
Solutions:
- Improve query (see
grepai-search-tipsskill):
- Configure boosting to penalize tests:
- Check what's indexed:
Issue: Index is outdated
Symptom: Recent file changes aren't appearing in search results.
Causes:
- Watch daemon not running
- Debounce delay
- File not in indexed extensions
Solutions:
- Check daemon status:
- Restart daemon:
- Force re-index:
Issue: "Config not found"
Symptom:
Cause: GrepAI not initialized in this directory.
Solution:
Issue: Slow indexing
Symptom: Initial indexing takes very long.
Causes:
- Large codebase
- Slow embedding provider
- Not enough ignore patterns
Solutions:
- Add ignore patterns:
- Use faster model:
- Use OpenAI for speed (if privacy allows):
Issue: Slow searches
Symptom: Search queries take several seconds.
Causes:
- Very large index
- GOB storage on large codebase
- Embedding provider slow
Solutions:
- Check index size:
- For large indices, use Qdrant:
- Limit results:
Issue: Trace not finding symbols
Symptom: grepai trace callers returns no results.
Causes:
- Function name spelled wrong
- Language not enabled for trace
- Symbols index out of date
Solutions:
-
Check exact function name (case-sensitive)
-
Enable language in config:
- Re-build symbol index:
Issue: MCP not working
Symptom: AI assistant can't use GrepAI tools.
Causes:
- MCP config incorrect
- GrepAI not in PATH
- Working directory wrong
Solutions:
- Test MCP server manually:
- Check GrepAI is in PATH:
- Verify MCP config:
Issue: Out of memory
Symptom: GrepAI crashes or system becomes slow.
Causes:
- Large embedding model
- Very large index in GOB format
- Too many parallel requests
Solutions:
- Use smaller model:
-
Use PostgreSQL or Qdrant instead of GOB
-
Reduce parallelism:
Issue: API key errors (OpenAI)
Symptom:
Solutions:
- Check environment variable:
- Ensure variable is exported:
- Check key format in config:
Diagnostic Commands
Full System Check
Reset Everything
If all else fails, complete reset:
Getting Help
If issues persist:
- Check GrepAI documentation: https://yoanbernabeu.github.io/grepai/
- Search issues: https://github.com/yoanbernabeu/grepai/issues
- Create new issue with:
- GrepAI version (
grepai version) - OS and architecture
- Config file (remove secrets)
- Error message
- Steps to reproduce
- GrepAI version (
Output Format
Diagnostic summary:


