Troubleshooting
Command Not Working After Install
Symptoms: Pressing Ctrl+G does nothing, or you get “command not found” errors.
Solutions:
Reload your shell:
source ~/.zshrcVerify plugin is loaded:
echo $plugins # Should include "vibe"Check binary exists:
ls ~/.oh-my-zsh/custom/plugins/vibe/vibe # Should show the binaryVerify function is loaded:
which vibe # Should show "vibe" as a shell functionRebuild the binary:
cd ~/.oh-my-zsh/custom/plugins/vibe make clean build
Slow Responses
Symptoms: vibe takes several seconds to respond.
Solutions:
Enable caching:
export VIBE_ENABLE_CACHE=trueCached responses are 100-400x faster!
Use a faster model:
export VIBE_MODEL="llama3:8b" # Instead of larger modelsUse a local LLM:
export VIBE_API_URL="http://localhost:11434/v1" export VIBE_MODEL="llama3:8b"Check network connection:
curl -I $VIBE_API_URLIncrease timeout if needed:
export VIBE_TIMEOUT=60s
Bad Command Suggestions
Symptoms: Generated commands don’t match your intent or are incorrect.
Solutions:
Try a different/better model:
export VIBE_MODEL="gpt-4" # Or other capable modelsMake your query more specific:
- ❌ “list files”
- ✅ “list all files in current directory including hidden ones with sizes”
Check model supports structured output: Some models may not follow the expected output format.
Lower temperature for more deterministic results:
export VIBE_TEMPERATURE=0.3Clear cache if getting stale results:
rm -rf ~/.cache/vibe/*
Corrupted or Garbage Output
Symptoms: Response contains garbage characters, escape sequences, or Unicode pollution like:
AWS?…..??……… ...…..??……....??…... …………â[201~[200~¦………Solutions:
vibe automatically handles corrupted LLM responses with multi-layer parsing. If you’re still seeing issues:
Enable debug logs to see what’s happening:
export VIBE_DEBUG_LOGS=trueThis will show:
- Raw LLM responses
- Parsing attempts and which layer succeeded/failed
- Extracted JSON content
Increase retry attempts:
export VIBE_MAX_RETRIES=5 # Default is 3Verify JSON extraction is enabled:
export VIBE_ENABLE_JSON_EXTRACTION=true # DefaultTry lower temperature for cleaner output:
export VIBE_TEMPERATURE=0.3 # More deterministicCheck which parsing layer is working: Debug logs will show messages like:
[SUCCESS] Layer 'structured_output' succeeded on attempt 1[SUCCESS] Layer 'enhanced_parsing' succeeded on attempt 2[JSON_EXTRACT] Success- JSON was found in corrupted response
Parsing Errors
Symptoms: Errors like “failed to parse text response” or “unable to extract valid JSON.”
Solutions:
Enable JSON extraction (should be default):
export VIBE_ENABLE_JSON_EXTRACTION=trueTemporarily disable strict validation for testing:
export VIBE_STRICT_VALIDATION=falseThis bypasses validation of command/explanation fields. Useful for debugging.
Check debug logs to see parsing attempts:
export VIBE_DEBUG_LOGS=true vibe "your query" 2>&1 | grep -E "\[ATTEMPT|SUCCESS|EXTRACT\]"Try with structured output disabled:
export VIBE_USE_STRUCTURED_OUTPUT=falseThis forces text parsing mode, which may work better for some models.
Some models produce cleaner JSON with lower temperature:
export VIBE_TEMPERATURE=0.3Report persistent parsing issues: If a specific query consistently fails, please report it with:
- The query that failed
- Debug logs (with sensitive info redacted)
- Your model and provider
Ctrl+G Does Nothing
Symptoms: Pressing Ctrl+G has no effect.
Solutions:
Check if another plugin uses Ctrl+G:
bindkey | grep '"\^G"'Rebind to different key:
bindkey '^X' vibe # Use Ctrl+X insteadEnsure plugin is loaded:
echo $plugins | grep vibeReload shell:
source ~/.zshrc
API Connection Errors
Symptoms: Errors like “connection refused” or “timeout.”
Solutions:
For Ollama - check if it’s running:
curl http://localhost:11434/v1/modelsStart Ollama if needed:
ollama serveVerify API URL is correct:
echo $VIBE_API_URLCheck API key is set (if using OpenAI/Claude):
echo $VIBE_API_KEY # Should not be emptyTest API directly:
curl -H "Authorization: Bearer $VIBE_API_KEY" $VIBE_API_URL/models
Cache Issues
Symptoms: Getting outdated commands or cache-related errors.
Solutions:
Clear the cache:
rm -rf ~/.cache/vibe/*Disable cache temporarily:
export VIBE_ENABLE_CACHE=falseReduce cache TTL:
export VIBE_CACHE_TTL=1h
Model Not Found
Symptoms: Error messages about model not being available.
Solutions:
For Ollama - pull the model:
ollama pull llama3:8bList available models:
# Ollama ollama list # OpenAI curl https://api.openai.com/v1/models \ -H "Authorization: Bearer $VIBE_API_KEY"Use a different model:
export VIBE_MODEL="llama3:8b"
Permission Denied
Symptoms: “Permission denied” when trying to execute vibe binary.
Solutions:
Make binary executable:
chmod +x ~/.oh-my-zsh/custom/plugins/vibe/vibeRebuild binary:
cd ~/.oh-my-zsh/custom/plugins/vibe make clean build
Understanding Debug Output
When VIBE_DEBUG_LOGS=true, you’ll see structured log messages:
[VIBE] [ATTEMPT 1][structured_output] Parsing failed: ...
[VIBE] [ATTEMPT 2][enhanced_parsing] Parsing failed: ...
[VIBE] [JSON_EXTRACT] Success
Trimmed prefix: "AWS\x1b[200~..."
Trimmed suffix: "...\x1b[201~"
[VIBE] [SUCCESS] Layer 'enhanced_parsing' succeeded on attempt 2Key log types:
[ATTEMPT N][layer]- Shows which parsing layer is being tried[JSON_EXTRACT]- Shows JSON extraction from corrupted response[SUCCESS]- Shows which layer and attempt succeededRaw response (first 500 chars)- Shows actual LLM output
Multi-layer fallback order:
structured_output- JSON schema mode (best)enhanced_parsing- Retry with JSON extractionexplicit_json_prompt- Extra strict prompt with lower temperatureemergency_fallback- Returns helpful error message
Still Having Issues?
If you’re still experiencing problems:
Check the logs with debug enabled:
export VIBE_DEBUG_LOGS=true vibe "test query" 2>&1Test with minimal config:
# Reset to defaults unset VIBE_TEMPERATURE VIBE_MAX_TOKENS VIBE_USE_STRUCTURED_OUTPUT export VIBE_DEBUG_LOGS=true vibe "list files"Report the issue:
- Visit: https://github.com/skymoore/vibe-zsh/issues
- Include:
- Your OS and version
- Zsh version:
zsh --version - Oh-My-Zsh version
- vibe configuration (environment variables)
- Error messages or unexpected behavior
- Debug logs (redact any sensitive info)
- Which model/provider you’re using
Join the community:
- Check existing issues for solutions
- Ask questions in discussions
- Contribute fixes if you find them!