npx skills add ...
npx skills add yoanbernabeu/grepai-skills --skill grepai-troubleshooting
Troubleshooting guide for GrepAI. Use this skill to diagnose and fix common issues.
npx skills add yoanbernabeu/grepai-skills --skill grepai-troubleshooting
This skill provides solutions for common GrepAI issues and diagnostic procedures.
Run these commands to understand your setup:
Symptom:
Cause: No index has been created for this project.
Solution:
Symptom:
Causes:
Solutions:
Symptom:
Cause: The embedding model hasn't been downloaded.
Solution:
Symptom: Searches return empty or very few results.
Causes:
Solutions:
Symptom: Results don't match what you're looking for.
Causes:
Solutions:
grepai-search-tips skill):Symptom: Recent file changes aren't appearing in search results.
Causes:
Solutions:
Symptom:
Cause: GrepAI not initialized in this directory.
Solution:
Symptom: Initial indexing takes very long.
Causes:
Solutions:
Symptom: Search queries take several seconds.
Causes:
Solutions:
Symptom: grepai trace callers returns no results.
Causes:
Solutions:
Check exact function name (case-sensitive)
Enable language in config:
Symptom: AI assistant can't use GrepAI tools.
Causes:
Solutions:
Symptom: GrepAI crashes or system becomes slow.
Causes:
Solutions:
Use PostgreSQL or Qdrant instead of GOB
Reduce parallelism:
Symptom:
Solutions:
If all else fails, complete reset:
If issues persist:
grepai version)Diagnostic summary:
Error: Index not found. Run 'grepai watch' first.# Initialize if needed
grepai init
# Create the index
grepai watchError: Cannot connect to Ollama at http://localhost:11434ollama serveembedder:
endpoint: http://localhost:11434 # Verify thiscurl http://localhost:11434/api/tagsError: Model 'nomic-embed-text' not found# Download the model
ollama pull nomic-embed-text
# Verify
ollama listgrepai status
# Should show files > 0 and chunks > 0# Check ignore patterns in config
cat .grepai/config.yaml | grep -A 20 "ignore:"grepai search "function" # Very broad test# Bad
grepai search "auth"
# Good
grepai search "user authentication middleware"search:
boost:
enabled: true
penalties:
- pattern: /tests/
factor: 0.5grepai statusgrepai watch --statusgrepai watch --stop
grepai watch --backgroundrm .grepai/index.gob
grepai watchError: Config file not found at .grepai/config.yamlgrepai initignore:
- node_modules
- vendor
- dist
- build
- "*.min.js"embedder:
model: nomic-embed-text # Smaller, fasterembedder:
provider: openai
model: text-embedding-3-small
parallelism: 8ls -lh .grepai/index.gobstore:
backend: qdrantgrepai search "query" --limit 5trace:
enabled_languages:
- .go
- .js
- .tsrm .grepai/symbols.gob
grepai watchgrepai mcp-servewhich grepai# Claude Code
cat ~/.claude/mcp.json
# Cursor
cat .cursor/mcp.jsonembedder:
model: nomic-embed-text # Smallerembedder:
parallelism: 2Error: 401 Unauthorized - Invalid API keyecho $OPENAI_API_KEYexport OPENAI_API_KEY="sk-..."embedder:
api_key: ${OPENAI_API_KEY} # Uses env var#!/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"# Remove all GrepAI data
rm -rf .grepai
# Re-initialize
grepai init
# Start fresh index
grepai watchš 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]