grepai-troubleshooting
Skill22 starsChanged 10 months agoMITView on GitHub
Troubleshooting guide for GrepAI. Use this skill to diagnose and fix common issues.
- Reads credentials
- Deletes or force-pushes
In this repository26 other files it gives its agents.
- grepai-languagesSkill
- grepai-workspacesSkill
- grepai-config-referenceSkill
- grepai-ignore-patternsSkill
- grepai-initSkill
- grepai-embeddings-lmstudioSkill
- grepai-embeddings-ollamaSkill
- grepai-embeddings-openaiSkill
- grepai-installationSkill
- grepai-ollama-setupSkill
- grepai-quickstartSkill
- grepai-chunkingSkill
- grepai-watch-daemonSkill
- grepai-mcp-claudeSkill
- grepai-mcp-cursorSkill
- grepai-mcp-toolsSkill
- grepai-search-advancedSkill
- grepai-search-basicsSkill
- grepai-search-boostingSkill
- grepai-search-tipsSkill
- grepai-storage-gobSkill
- grepai-storage-postgresSkill
- grepai-storage-qdrantSkill
- grepai-trace-calleesSkill
- grepai-trace-callersSkill
- grepai-trace-graphSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 19 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Search returning poor results
- Distinctive: line 19
Run these commands to understand your setup:
- Distinctive: line 46
Cause: No index has been created for this project.
- Distinctive: line 78
Check endpoint in config:
- Distinctive: line 128
Verify files are being indexed:
- Distinctive: line 171
Check what's indexed:
- Distinctive: line 231
Not enough ignore patterns
- Distinctive: line 251
Use OpenAI for speed (if privacy allows):
- Distinctive: line 263
Symptom: Search queries take several seconds.
- Distinctive: line 301
Check exact function name (case-sensitive)
- Distinctive: line 331
Test MCP server manually:
- Distinctive: line 336
Check GrepAI is in PATH:
- Distinctive: line 369
Use PostgreSQL or Qdrant instead of GOB
- Distinctive: line 393
Ensure variable is exported:
- Distinctive: line 398
Check key format in config:
- Distinctive: line 435
If all else fails, complete reset:
- Distinctive: line 452
Check GrepAI documentation: https://yoanbernabeu.github.io/grepai/
- Distinctive: line 453
Search issues: https://github.com/yoanbernabeu/grepai/issues
- Distinctive: line 454
Create new issue with:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
# Check GrepAI version
grepai version
# Check project status
grepai status
# Check Ollama (if using)
curl http://localhost:11434/api/tags
# Check config
cat .grepai/config.yamlCommon Issues
Issue: "Index not found"
Symptom:
Error: Index not found. Run 'grepai watch' first.Cause: No index has been created for this project.
Solution:
# Initialize if needed
grepai init
# Create the index
grepai watchIssue: "Cannot connect to embedding provider"
Symptom:
Error: Cannot connect to Ollama at http://localhost:11434Causes:
- Ollama not running
- Wrong endpoint configured
- Firewall blocking connection
Solutions:
- Start Ollama:
ollama serve- Check endpoint in config:
embedder:
endpoint: http://localhost:11434 # Verify this- Test connection:
curl http://localhost:11434/api/tagsIssue: "Model not found"
Symptom:
Error: Model 'nomic-embed-text' not foundCause: The embedding model hasn't been downloaded.
Solution:
# Download the model
ollama pull nomic-embed-text
# Verify
ollama listIssue: 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:
grepai status
# Should show files > 0 and chunks > 0- Verify files are being indexed:
# Check ignore patterns in config
cat .grepai/config.yaml | grep -A 20 "ignore:"- Try broader query:
grepai search "function" # Very broad testIssue: 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):
# Bad
grepai search "auth"
# Good
grepai search "user authentication middleware"- Configure boosting to penalize tests:
search:
boost:
enabled: true
penalties:
- pattern: /tests/
factor: 0.5- Check what's indexed:
grepai statusIssue: 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:
grepai watch --status- Restart daemon:
grepai watch --stop
grepai watch --background- Force re-index:
rm .grepai/index.gob
grepai watchIssue: "Config not found"
Symptom:
Error: Config file not found at .grepai/config.yamlCause: GrepAI not initialized in this directory.
Solution:
grepai initIssue: Slow indexing
Symptom: Initial indexing takes very long.
Causes:
- Large codebase
- Slow embedding provider
- Not enough ignore patterns
Solutions:
- Add ignore patterns:
ignore:
- node_modules
- vendor
- dist
- build
- "*.min.js"- Use faster model:
embedder:
model: nomic-embed-text # Smaller, faster- Use OpenAI for speed (if privacy allows):
embedder:
provider: openai
model: text-embedding-3-small
parallelism: 8Issue: Slow searches
Symptom: Search queries take several seconds.
Causes:
- Very large index
- GOB storage on large codebase
- Embedding provider slow
Solutions:
- Check index size:
ls -lh .grepai/index.gob- For large indices, use Qdrant:
store:
backend: qdrant- Limit results:
grepai search "query" --limit 5Issue: 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:
trace:
enabled_languages:
- .go
- .js
- .ts- Re-build symbol index:
rm .grepai/symbols.gob
grepai watchIssue: 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:
grepai mcp-serve- Check GrepAI is in PATH:
which grepai- Verify MCP config:
# Claude Code
cat ~/.claude/mcp.json
# Cursor
cat .cursor/mcp.jsonIssue: 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:
embedder:
model: nomic-embed-text # Smaller- Use PostgreSQL or Qdrant instead of GOB
- Reduce parallelism:
embedder:
parallelism: 2Issue: API key errors (OpenAI)
Symptom:
Error: 401 Unauthorized - Invalid API keySolutions:
- Check environment variable:
echo $OPENAI_API_KEY- Ensure variable is exported:
export OPENAI_API_KEY="sk-..."- Check key format in config:
embedder:
api_key: ${OPENAI_API_KEY} # Uses env varDiagnostic Commands
Full System Check
#!/bin/bash
echo "=== GrepAI Diagnostics ==="
echo -e "\n1. Version:"
grepai version
echo -e "\n2. Status:"
grepai status
echo -e "\n3. Config:"
cat .grepai/config.yaml 2>/dev/null || echo "No config found"
echo -e "\n4. Index files:"
ls -la .grepai/ 2>/dev/null || echo "No .grepai directory"
echo -e "\n5. Ollama (if using):"
curl -s http://localhost:11434/api/tags | head -5 || echo "Ollama not responding"
echo -e "\n6. Daemon:"
grepai watch --status 2>/dev/null || echo "Daemon not running"Reset Everything
If all else fails, complete reset:
# Remove all GrepAI data
rm -rf .grepai
# Re-initialize
grepai init
# Start fresh index
grepai watchGetting 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:
🔍 GrepAI Diagnostics
Version: 0.24.0
Project: /path/to/project
✅ Config: Found (.grepai/config.yaml)
✅ Index: 245 files, 1,234 chunks
✅ Embedder: Ollama (connected)
✅ Daemon: Running (PID 12345)
❌ Issue: [Description if any]
Recommended actions:
1. [Action item]
2. [Action item]Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

