Common issues and solutions when using weld.
When reporting issues, include:
weld --version
python --version
uname -a # OS info
cat .weld/config.toml # Config (redact sensitive data)
weld doctor # Dependency statusIf using --debug, include .weld/debug.log.
Symptom: Command fails with "weld not initialized" error.
Solution: Initialize weld in your project:
weld initSymptom: weld doctor shows missing tools.
Solution: Install the required tools:
# Install GitHub CLI
brew install gh # macOS
apt install gh # Ubuntu/Debian
# Authenticate GitHub CLI
gh auth login
# Install Claude CLI
# See: https://claude.ai/codeSymptom: "Not a git repository" error.
Solution: Initialize git first:
git init
weld initSymptom: Error like "Claude's response exceeded the output token maximum."
Solution: Increase the token limit in .weld/config.toml:
[claude]
max_output_tokens = 200000 # Increase from default 128000Symptom: Command times out waiting for Claude.
Solution: Increase the timeout in .weld/config.toml:
[claude]
timeout = 3600 # Increase to 1 hourSymptom: Cannot write to .weld/ directory.
Solution: Check directory permissions:
ls -la .weld/
chmod -R u+w .weld/Symptom: Commit fails with exit code 21.
Solution:
- Check that
ghCLI is installed and authenticated - Or skip transcript generation:
weld commit --skip-transcript- Or disable transcripts in
.weld/config.toml:
[transcripts]
enabled = falseSymptom: Exit code 23 when parsing Claude response.
Solution: This usually indicates Claude returned unexpected output. Try:
- Run with
--debugto see the raw response - Retry the command
- Check if your specification is too complex
Enable detailed logging:
weld --debug <command>Logs are written to .weld/debug.log.
- GitHub Issues: https://github.com/ametel01/weld-cli/issues
- Include diagnostics checklist output when reporting
- Exit Codes - Exit code reference
- Configuration - Configuration options
- doctor - Check dependencies