Troubleshooting
Quick solutions for common issues. For detailed troubleshooting, see the full guide on GitHub .
Installation Issues
dev: command not found
Global npm bin directory not in PATH:
# Find npm bin directory
npm config get prefix
# Add to shell profile (~/.zshrc or ~/.bashrc)
export PATH="$(npm config get prefix)/bin:$PATH"
# Reload
source ~/.zshrcPermission errors on install
# Option 1: Use npx (no install needed)
npx dev-agent index .
# Option 2: Fix npm permissions
npm config set prefix ~/.npm-global
export PATH=~/.npm-global/bin:$PATH
npm install -g dev-agentIndexing Issues
”No source files found"
# Verify you're in repository root
ls -la # Should see .git/
# Check for supported files
find . -name "*.ts" -o -name "*.js" | head -10"Vector storage initialization failed”
# Check permissions
ls -la ~/.dev-agent/
# Clear and rebuild
rm -rf ~/.dev-agent/indexes/*
dev index .MCP Server Issues
Server won’t start
# 1. Check if indexed
ls -la ~/.dev-agent/indexes/
# 2. Verify installation
dev mcp list --cursor # or without --cursor
# 3. Test manually
dev mcp start --verbose”Repository not indexed” in Cursor
# Index the workspace
dev index .
# Restart CursorRate limit errors (429)
- Wait for
retryAfterMsperiod - Check health:
dev_health - Restart AI tool if persistent
Search Issues
No results
# Verify indexed
dev stats
# Re-index if needed
dev index .Tips for better searches:
- Use natural language, not exact code
- Describe what code does
- Try different phrasings
Poor relevance
Adjust score threshold:
0.7+— Precise matches only0.4-0.6— Balanced0.25-0.3— Exploratory
GitHub Integration
dev gh index fails
# Check GitHub CLI
gh auth status
# Login if needed
gh auth loginStale GitHub data
dev gh index # Re-indexQuick Fixes
Clear everything and start fresh
rm -rf ~/.dev-agent/indexes/*
dev index .
dev gh index
dev mcp install --cursorCheck health
Use dev_health tool in Cursor/Claude CodeEnable debug logging
Cursor: Edit ~/.cursor/mcp.json:
"env": { "LOG_LEVEL": "debug" }Getting Help
- Run
dev_healthfor diagnostics - Check full troubleshooting guideÂ
- File an issue with:
dev --versiondev_healthoutput- Steps to reproduce
Last updated on