Troubleshooting Guide
Common issues and solutions for Git-Iris.
Installation Issues
Homebrew Installation Fails
Problem:
Error: git-iris not found in tapSolution:
# Update Homebrew
brew update
# Tap the repository explicitly
brew tap hyperb1iss/tap
# Install
brew install git-irisBinary Not Found After Install
Problem:
command not found: git-irisSolution:
# Check if installed
which git-iris
# If not in PATH, add Homebrew bin directory
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
# Or use Homebrew's recommended PATH
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrcConfiguration Issues
API Key Not Found
Problem:
Error: API key required for anthropic.
Set ANTHROPIC_API_KEY or configure in ~/.config/git-iris/config.tomlSolutions:
Environment variable:
bashexport ANTHROPIC_API_KEY="sk-ant-..." git-iris genConfig file:
bashgit-iris config --provider anthropic --api-key YOUR_KEYVerify config:
bashcat ~/.config/git-iris/config.toml
Wrong Provider Selected
Problem: Git-Iris uses OpenAI when you want Anthropic.
Solution:
# Set default provider
git-iris config --provider anthropic
# Or override per-command
git-iris gen --provider anthropicProject Config Not Loading
Problem:.irisconfig settings ignored.
Solution:
# Check file location (must be in repo root)
git rev-parse --show-toplevel
ls -la .irisconfig
# Check file format
cat .irisconfig
# Remember: API keys never load from .irisconfig
# Set them in personal config or environment
export ANTHROPIC_API_KEY="sk-ant-..."Invalid Model Name
Problem:
Error: Model 'claude-4' not foundSolution:
# Use correct model name
git-iris config --provider anthropic --model claude-sonnet-4-5-20250929
# List available providers
git-iris config --help
# Check provider documentation for model namesGit Issues
Not in Git Repository
Problem:
Not in a Git repository. Please run this command from within a Git repository.Solution:
# Check if in Git repo
git status
# Initialize Git repo if needed
git init
# Or navigate to a Git repository
cd /path/to/your/repoNo Staged Changes
Problem:
No staged changes. Please stage your changes before generating a commit message.Solution:
# Stage specific files
git add file1.js file2.py
# Or stage all changes
git add .
# Then generate commit
git-iris genPre-Commit Hook Fails
Problem:
Pre-commit failed: <error message>Solutions:
Fix the issue:
bash# Address the pre-commit failure npm run lint git add . git-iris genSkip hook (not recommended):
bashgit-iris gen --no-verify --auto-commit
Studio Issues
Studio Won't Launch
Problem: Studio crashes or shows garbled output.
Solutions:
Check terminal true color support:
bashprintf "\x1b[38;2;255;100;0mTRUECOLOR\x1b[0m\n"Update terminal:
- Use iTerm2, Alacritty, WezTerm, or Kitty
- Update to latest version
Try different theme:
bashgit-iris studio --theme silkcircuit-softCheck terminal size:
bash# Studio requires minimum size tput cols # Should be > 80 tput lines # Should be > 24
Studio Keybindings Not Working
Problem: Pressing keys does nothing.
Solution:
# Check if in editing mode (press Esc first)
# Verify you're in the right panel (use Tab)
# Check help overlay (press ?)Can't See Colors in Studio
Problem: No colors or wrong colors displayed.
Solutions:
Enable true color in tmux:
bash# Add to ~/.tmux.conf set -g default-terminal "tmux-256color" set -ga terminal-overrides ",*256col*:Tc"Check TERM variable:
bashecho $TERM # Should be: xterm-256color or similarTry different theme:
bashgit-iris themes git-iris config --theme silkcircuit-dawn
LLM Provider Issues
Rate Limit Exceeded
Problem:
Error: Rate limit exceeded for providerSolutions:
Wait and retry:
bash# Wait a minute, then retry sleep 60 git-iris genSwitch to different provider:
bashgit-iris gen --provider openaiUse fast model:
bashgit-iris config --fast-model claude-haiku-4-5-20251001
Authentication Failed
Problem:
Error: Authentication failed for providerSolutions:
Verify API key:
bash# Check environment variable echo $ANTHROPIC_API_KEY # Check config file cat ~/.config/git-iris/config.toml | grep api_keyRegenerate API key:
- Visit provider dashboard
- Create new API key
- Update configuration
bashgit-iris config --provider anthropic --api-key NEW_KEY
Token Limit Exceeded
Problem:
Error: Context length exceededSolutions:
Reduce token limit:
bashgit-iris config --token-limit 50000Use provider with larger context:
bashgit-iris gen --provider google # 1M context windowStage fewer files:
bash# Stage files incrementally git add src/ git-iris gen --auto-commit git add tests/ git-iris gen --auto-commit
Slow Response Times
Problem: Git-Iris takes too long to respond.
Solutions:
Use fast model:
bashgit-iris config --fast-model claude-haiku-4-5-20251001Reduce changeset size:
bash# Stage fewer files at once git add file1.js file2.js git-iris genSwitch provider:
bash# Try different provider git-iris gen --provider openai
Debug and Logging
Enable Debug Logging
# Basic logging
git-iris gen --log
# Custom log file
git-iris gen --log --log-file debug.log
# Color-coded agent execution
git-iris gen --debug
# View log
cat git-iris-debug.logVerbose Rust Logging
# Set Rust log level
export RUST_LOG=debug
# Run command
git-iris gen --log
# Check debug.log for detailsPerformance Issues
Large Repository Performance
Problem: Git-Iris is slow in large repositories.
Solutions:
Use .gitignore:
bash# Ignore build artifacts, node_modules, etc. echo "node_modules/" >> .gitignore echo "target/" >> .gitignoreStage selectively:
bash# Don't stage everything git add src/ tests/ git-iris genUse fast model:
bashgit-iris config --fast-model claude-haiku-4-5-20251001
Memory Issues
Problem: Git-Iris crashes with out of memory.
Solutions:
Reduce token limit:
bashgit-iris config --token-limit 50000Stage fewer files:
bashgit add --patch # Stage selectively
Network Issues
Proxy Configuration
Problem: Corporate proxy blocks API requests.
Solution:
# Set proxy environment variables
export HTTP_PROXY="http://proxy.company.com:8080"
export HTTPS_PROXY="http://proxy.company.com:8080"
# Run Git-Iris
git-iris genTimeout Errors
Problem:
Error: Request timeoutSolutions:
Check internet connection:
bashping api.anthropic.comRetry:
bashgit-iris genUse different provider:
bashgit-iris gen --provider openai
Common Error Messages
"No changes to commit"
Cause: No staged files.
Fix:
git add .
git-iris gen"Failed to parse response"
Cause: LLM returned invalid format.
Fix:
# Retry (usually resolves itself)
git-iris gen
# Or regenerate in Studio
git-iris studio --mode commit
# Press 'r' to regenerate"Invalid JSON in response"
Cause: LLM output parsing error.
Fix:
# Enable debug mode to see raw response
git-iris gen --debug
# Retry with different model
git-iris gen --provider openaiGetting Help
Report an Issue
Collect information:
bashgit-iris --version git-iris gen --log --log-file debug.logCreate issue:
- Visit: https://github.com/hyperb1iss/git-iris/issues
- Include version, error message, and debug.log
Debug Checklist
Before reporting, verify:
- [ ] API key is set correctly
- [ ] You're in a Git repository
- [ ] Changes are staged
- [ ] Provider is configured
- [ ] Model name is correct
- [ ] Internet connection works
- [ ] Terminal supports true color
Useful Commands
# Version info
git-iris --version
# Config check
cat ~/.config/git-iris/config.toml
# Git status
git status
# Environment check
env | grep API_KEY
# Test simple command
git-iris gen --print
# Full debug
git-iris gen --debug --logAdvanced Troubleshooting
Reset Configuration
# Backup current config
cp ~/.config/git-iris/config.toml ~/.config/git-iris/config.toml.backup
# Remove config
rm ~/.config/git-iris/config.toml
# Reconfigure
git-iris config --provider anthropic --api-key YOUR_KEYClear Cache
# Git-Iris doesn't cache, but clear Git cache if needed
git rm -r --cached .
git add .Reinstall
# Uninstall
brew uninstall git-iris
# Clean cache
brew cleanup
# Reinstall
brew install hyperb1iss/tap/git-irisPlatform-Specific Issues
macOS
Problem: "git-iris" cannot be opened because the developer cannot be verified.
Solution:
# Allow binary
sudo spctl --add /usr/local/bin/git-iris
# Or in System Preferences:
# Security & Privacy → General → AllowLinux
Problem: Permission denied.
Solution:
chmod +x /usr/local/bin/git-irisWindows (WSL)
Problem: Colors not working.
Solution:
# Use Windows Terminal
# Or set TERM variable
export TERM=xterm-256color