Loading...
Loading...
Troubleshooting guide for GrepAI. Use this skill to diagnose and fix common issues.
npx skill4agent add yoanbernabeu/grepai-skills grepai-troubleshooting# 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.yamlError: 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 testgrepai-search-tips# 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 5grepai trace callerstrace:
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 watchgrepai version🔍 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]