Troubleshooting
Quick fixes for common issues. Most problems resolve in under 5 minutes.
Quick Diagnosis
Problem category?
- Installation fails β Installation Issues
- Command not found or errors β Command Errors
- Agent not working β Agent Issues
- API key errors β API Key Setup
- Slow or hanging β Performance Issues
Installation
Issue: ck: command not found
Fix:
# Verify installation
npm list -g mekong-cli
# Reinstall if needed
npm install -g mekong-cli
# Verify
mk --version
Commands
Issue: /command does nothing
Fix:
- Check
.claude/commands/exists - Verify command file exists
- Check frontmatter is valid
# List available commands
ls .claude/commands/**/*.md
# Test specific command
cat .claude/commands/core/cook.md
Agents
Issue: Agent not activating
Fix:
- Verify
.claude/agents/exists - Check agent file format
- Confirm AgencyOS CLI is running
# List agents
ls .claude/agents/*.md
# Verify agent file
cat .claude/agents/planner.md
API Keys
Issue: βAPI key not foundβ
Fix:
# Add to .env
echo 'GEMINI_API_KEY=your-key' >> .env
echo 'SEARCH_API_KEY=your-key' >> .env
# Or export for session
export GEMINI_API_KEY=your-key
Performance
Issue: Commands take forever
Fix:
- Check internet connection
- Verify API keys are set
- Use
--verboseto see whatβs slow
# Run with verbose logging
/cook add feature --verbose
Common Quick Fixes
Reset AgencyOS
# Backup first
cp -r .claude .claude.backup
# Update to latest
mk init --kit engineer
# Restore custom files
cp .claude.backup/commands/my-custom.md .claude/commands/
Clear Cache
# Clear Node modules
rm -rf node_modules
npm install
# Clear AgencyOS cache
rm -rf ~/.mekong/cache
Verify Setup
# Check CLI
mk --version
# Check AgencyOS CLI
claude --version
# Check directory structure
tree .claude -L 2
Still Stuck?
Get Help
-
Run diagnostics:
ck diagnose --verbose -
Check logs:
# Enable verbose mode export AGENCYOS_VERBOSE=1 # Run command /cook add feature # Check output cat mekong-debug.log -
Report issue:
- GitHub: https://github.com/mekong/mekong-engineer/issues
- Include: OS, CLI version, error message, steps to reproduce
Community
- Discord: Join AgencyOS Discord
- GitHub Discussions: Share solutions, ask questions
Prevention Tips
β Do:
- Keep AgencyOS updated (
mk init) - Use
--verbosewhen debugging - Backup before major changes
- Read error messages fully
β Donβt:
- Modify core
.claude/files directly - Ignore API rate limits
- Skip version updates
- Delete
.claude/directory
95% of issues resolve in under 5 minutes with these guides. Dive into specific sections for detailed fixes.