grepai-troubleshooting▌
yoanbernabeu/grepai-skills · updated Apr 8, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
This skill provides solutions for common GrepAI issues and diagnostic procedures.
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.yaml
Common 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 watch
Issue: "Cannot connect to embedding provider"
Symptom:
Error: Cannot connect to Ollama at http://localhost:11434
Causes:
- 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/tags
Issue: "Model not found"
Symptom:
Error: Model 'nomic-embed-text' not found
Cause: The embedding model hasn't been downloaded.
Solution:
# Download the model
ollama pull nomic-embed-text
# Verify
ollama list
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:
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 test
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):
# 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 status
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:
grepai watch --status
- Restart daemon:
grepai watch --stop
grepai watch --background
- Force re-index:
rm .grepai/index.gob
grepai watch
Issue: "Config not found"
Symptom:
Error: Config file not found at .grepai/config.yaml
Cause: GrepAI not initialized in this directory.
Solution:
grepai init
Issue: 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: 8
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:
ls -lh .grepai/index.gob
- For large indices, use Qdrant:
store:
backend: qdrant
- Limit results:
grepai search "query" --limit 5
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:
trace:
enabled_languages:
- .go
- .js
- .ts
- Re-build symbol index:
rm .grepai/symbols.gob
grepai watch
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:
grepai mcp-serve
- Check GrepAI is in PATH:
which grepai
- Verify MCP config:
# Claude Code
cat ~/.claude/mcp.json
# Cursor
cat .cursor/mcp.json
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:
embedder:
model: nomic-embed-text # Smaller
-
Use PostgreSQL or Qdrant instead of GOB
-
Reduce parallelism:
embedder:
parallelism: 2
Issue: API key errors (OpenAI)
Symptom:
Error: 401 Unauthorized - Invalid API key
Solutions:
- 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 var
Diagnostic 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 watch
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:
🔍 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]
How to use grepai-troubleshooting on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add grepai-troubleshooting
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches grepai-troubleshooting from GitHub repository yoanbernabeu/grepai-skills and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate grepai-troubleshooting. Access the skill through slash commands (e.g., /grepai-troubleshooting) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Installation Steps
- 1.Install skill using provided installation command
- 2.Test with simple use case relevant to your work
- 3.Evaluate output quality and relevance
- 4.Iterate on prompts to improve results
- 5.Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices▌
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This▌
✓ Use When
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid When
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path▌
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.7★★★★★39 reviews- ★★★★★Dhruvi Jain· Dec 28, 2024
I recommend grepai-troubleshooting for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Daniel Harris· Dec 28, 2024
Useful defaults in grepai-troubleshooting — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Kofi Dixit· Dec 28, 2024
grepai-troubleshooting fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Noah Gonzalez· Dec 8, 2024
Keeps context tight: grepai-troubleshooting is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Aisha Iyer· Dec 4, 2024
grepai-troubleshooting is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Ira Jain· Nov 27, 2024
We added grepai-troubleshooting from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Noah Sharma· Nov 23, 2024
grepai-troubleshooting reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Oshnikdeep· Nov 19, 2024
Useful defaults in grepai-troubleshooting — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Maya Diallo· Nov 19, 2024
I recommend grepai-troubleshooting for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Chen Jackson· Oct 18, 2024
Solid pick for teams standardizing on skills: grepai-troubleshooting is focused, and the summary matches what you get after install.
showing 1-10 of 39