Troubleshooting Guide
Table of contents
- Installation Issues
- Phase Validation Issues
- Claude Code Integration Issues
- Cycle Management Issues
- Configuration Issues
- Performance Issues
- AI Assistant Issues
- Common Error Messages
- Getting Help
- Prevention Tips
- FAQ
Common issues and solutions for the standalone forge-framework CLI (v2.0.0). If you are running the canonical forge-skill instead, the npm-specific sections below do not apply — see Choosing an Implementation.
Installation Issues
Command not found: forge
Problem: After installation, forge command is not recognized.
Solutions:
- Verify global installation:
npm list -g forge-framework
- Reinstall globally:
npm uninstall -g forge-framework
npm install -g forge-framework
- Check npm global bin path:
npm config get prefix
# Add /bin to your PATH if needed
export PATH=$PATH:$(npm config get prefix)/bin
- Use npx as fallback:
npx forge-framework <command>
Permission errors during installation
Problem: EACCES or permission denied errors.
Solutions:
- Use npm’s recommended approach:
npm config set prefix ~/.npm-global
export PATH=~/.npm-global/bin:$PATH
npm install -g forge-framework
- Or fix npm permissions:
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
Subagents not configured
Problem: Claude Code subagents aren’t available after installation.
Solutions:
- Check installation output for confirmation:
✓ 6 Claude Code subagents configured
- Verify subagent files:
ls ~/.claude/agents/forge-*
- Reinstall if missing:
npm uninstall -g forge-framework
npm install -g forge-framework
Phase Validation Issues
Cannot advance to next phase
Problem: forge phase next shows validation errors.
Solutions:
- Check mandatory items:
forge phase status
-
Complete required tasks:
- Look for items marked
(MANDATORY) - Update cycle markdown to check completed items
- Ensure test scenarios are defined (Focus phase)
- Look for items marked
-
Force advance if necessary:
forge phase next --force
# Use sparingly - only for prototypes or emergencies
Cannot complete cycle
Problem: forge complete shows incomplete phases.
Solutions:
- Review phase status:
forge status
forge status --detailed
-
Complete remaining phases:
- Work through each incomplete phase
- Check all mandatory items
- Use visual progress bars as guide
-
Force completion if needed:
forge complete --force
# Documents will note forced completion
Progress shows 0% despite work done
Problem: Visual progress bars show no completion.
Solution: Update cycle markdown with checkboxes:
- [x] Completed task
- [ ] Incomplete task
Claude Code Integration Issues
Subagents not responding
Problem: Claude doesn’t use FORGE subagents when requested.
Solutions:
- Use explicit activation:
You: Use forge-architect to design this feature
- Verify subagent definitions exist:
cat ~/.claude/agents/forge-architect/agent.md
- Restart Claude Code:
- Close and reopen Claude Code
- Start fresh conversation
Wrong subagent activated
Problem: Claude uses wrong specialist for task.
Solution: Be explicit about which agent:
You: I need forge-tester to write comprehensive tests
You: Use forge-devops for deployment setup
Subagent context confusion
Problem: Subagents seem to lose context or mix information.
Solutions:
- Each subagent has isolated context - this is by design
- Pass context explicitly when switching agents
- Use main Claude to coordinate between subagents
Cycle Management Issues
Multiple active cycles (team mode)
Problem: Confusion about which cycle is active.
Solutions:
- List all active cycles:
ls .forge/current/
- Check specific cycle:
cat .forge/current/feature-name.md
- Work on specific cycle:
You: Let's work on the authentication cycle
Lost cycle progress
Problem: Can’t find previous work or cycle.
Solutions:
- Check completed cycles:
ls .forge/completed/
- Review learnings:
ls .forge/learnings/
- Search by date:
ls -la .forge/completed/ | grep "2024-01"
Accidental cycle overwrite
Problem: forge new overwrote existing cycle.
Solutions:
- Check for backups:
ls .forge/backups/
- Use team mode for parallel work:
# In forge.yaml:
mode: team
- Complete cycles before starting new ones in solo mode
Configuration Issues
forge.yaml not loading
Problem: Configuration seems ignored.
Solutions:
- Verify YAML syntax:
# Install yaml-lint if needed
npm install -g yaml-lint
yamllint forge.yaml
-
Check file location:
- Must be in project root
- Named exactly
forge.yaml
-
Validate structure:
project: project-name
mode: solo # or team
phases:
focus:
- Requirement gathering
Custom templates not working
Problem: FORGE uses default templates instead of custom ones.
Solutions:
- Check template location:
ls templates/
- Verify template references in forge.yaml:
templates:
cycle: templates/custom-cycle.md
- Ensure correct markdown structure in templates
Performance Issues
Slow command execution
Problem: FORGE commands take too long.
Solutions:
-
Check file sizes:
- Large cycle files can slow parsing
- Archive completed cycles regularly
-
Clean up .forge directory:
# Archive old completed cycles
mkdir .forge/archive
mv .forge/completed/2023-* .forge/archive/
- Verify Node.js version:
node --version # Should be 14+
AI Assistant Issues
AI doesn’t understand FORGE commands
Problem: AI assistant doesn’t recognize FORGE workflow.
Solutions:
- Provide context:
You: We're using FORGE framework for development
You: Please follow the 5-phase cycle approach
- Reference CLAUDE.md:
You: Check CLAUDE.md for project context
- Use slash commands with Claude Code:
You: /forge status
You: /forge new "feature name"
AI skips phases or validation
Problem: AI tries to jump ahead without validation.
Solution: Remind about validation:
You: Please check forge status before proceeding
You: We need to complete Focus phase first
Common Error Messages
”No active cycle found”
Cause: No current.md file exists.
Solution:
forge new "feature name"
“Invalid cycle format”
Cause: Cycle markdown is malformed.
Solution: Check for:
- Proper checkbox syntax:
- [ ]or- [x] - Correct phase headers
- No corrupted content
”Phase validation failed”
Cause: Mandatory items incomplete.
Solution:
forge phase status # See what's missing
# Complete mandatory items
forge phase next # Try again
Getting Help
Resources
- Documentation: forgeframework.dev
- GitHub Issues: Report bugs
- Discussions: Community help
Debug Mode
Enable verbose output for troubleshooting:
DEBUG=* forge status
Support Checklist
When reporting issues, include:
- FORGE version:
forge --version - Node.js version:
node --version - Operating system
- Error messages (full output)
- Steps to reproduce
- forge.yaml contents (if relevant)
Prevention Tips
Best Practices
- Regular commits: Save work frequently
- Complete cycles: Don’t leave cycles hanging
- Use validation: Don’t skip with —force unless necessary
- Document issues: Add to learnings for team
- Update regularly: Keep FORGE up to date
Maintenance
# Check for updates
npm outdated -g forge-framework
# Update to latest
npm update -g forge-framework
# Verify version
forge --version
FAQ
Q: Can I use FORGE without AI?
A: FORGE is designed for AI-driven development. While you can manually edit cycle files, you’ll miss the core benefits.
Q: How do I migrate from older versions?
A: v2.0.0 is backward compatible. Just update and enjoy new features like phase validation and IDD methodology alignment.
Q: Can multiple people work on same cycle?
A: Use team mode in forge.yaml for parallel cycles. For same cycle, coordinate through your version control system.
Q: What if I need to hotfix production?
A: Use forge complete --force to bypass validation for emergency fixes. Document why in the cycle notes.
Q: How do I customize validation rules?
A: Edit cycle templates to add/remove (MANDATORY) markers on tasks that must be completed.
Still having issues? Please open a GitHub issue with details.