Troubleshooting Guide
Common issues and their solutions.
Setup Issues
"Not a git repository"
Problem: Arial requires a git repository.
Solution:
git init
arial init"Arial is already initialized"
Problem: The .arial/ directory already exists.
Solution:
arial init --force"ANTHROPIC_API_KEY not set"
Problem: Arial needs an API key to run agents.
Solution:
export ANTHROPIC_API_KEY=sk-ant-your-key-hereAdd to your shell profile for persistence:
echo 'export ANTHROPIC_API_KEY=sk-ant-your-key-here' >> ~/.zshrc
source ~/.zshrcPlanning Issues
"No active run"
Problem: No workstreams have been created.
Solution:
arial plan --specs ./specs"Error: --specs is required"
Problem: Missing required option.
Solution:
arial plan --specs ./path/to/specs"Specs directory not found"
Problem: The specified path doesn't exist.
Solution:
# Check the path exists
ls ./specs
# Create if needed
mkdir specs
echo "# My Feature" > specs/feature.md"No markdown files found"
Problem: The specs directory has no .md files.
Solution:
# Check for markdown files
ls ./specs/*.md
# Create one
echo "# My Feature\n\nDescription here." > specs/feature.mdExecution Issues
"No active run"
Problem: Trying to run before planning.
Solution:
arial plan --specs ./specs
arial runWorkstream Stuck in "running"
Problem: Arial was interrupted leaving a workstream in running state.
Solution:
When you run arial run again, Arial detects this and handles it:
- Workstreams marked as
pausedwill resume - If truly stuck, clear state and re-plan:
rm -rf .arial/state.json
arial plan --specs ./specs -y
arial runWorkstream Failed
Problem: A workstream couldn't complete.
Solution:
All Workstreams Already Completed
Problem: Nothing to run.
Solution:
If you want to run again:
rm -rf .arial/state.json
arial plan --specs ./specs -y
arial runGit Issues
"Could not determine current branch"
Problem: Git repository is in a detached HEAD state.
Solution:
git checkout main # or your branch
arial plan --specs ./specsWorktree Errors
Problem: Git worktree issues from previous runs.
Solution:
# List worktrees
git worktree list
# Remove orphaned worktrees
git worktree prune
# If needed, manually remove
rm -rf .arial/workspaces/*
git worktree pruneMerge Conflicts After Completion
Problem: Branches can't merge cleanly.
Solution:
Manual resolution:
git checkout main
git merge arial/<workstream-id>
# Resolve conflicts
git add .
git commitOr abandon and retry:
git merge --abort
# Update spec to avoid the conflict
arial plan --specs ./specs -y
arial runDisplay Issues
TUI Not Working
Problem: Terminal doesn't support the TUI.
Solution:
arial run --no-tuiOr use verbose mode:
arial run --verboseOutput Garbled
Problem: Terminal encoding or capability issues.
Solution:
arial run --no-tuiState Issues
Corrupt State
Problem: state.json is corrupted or invalid.
Solution:
# Remove state and re-plan
rm -rf .arial/state.json
arial plan --specs ./specsWant to Start Fresh
Problem: Need to clear everything and start over.
Solution:
# Remove all Arial state
rm -rf .arial
# Clean up worktrees
git worktree prune
# Clean up branches
git branch | grep "arial/" | xargs git branch -D
# Re-initialize
arial init
arial plan --specs ./specsRecovery Procedures
Full Reset
If everything is broken:
# 1. Remove Arial data
rm -rf .arial
# 2. Clean up git worktrees
git worktree list
git worktree prune
# 3. Remove Arial branches
git branch | grep "arial/" | xargs -r git branch -D
# 4. Start fresh
arial init
arial plan --specs ./specs
arial runRecover Work from Failed Run
If a workstream failed but made useful changes:
# 1. Check the branch exists
git branch -a | grep arial
# 2. View changes
git diff main..arial/<workstream-id>
# 3. Cherry-pick or merge useful commits
git checkout main
git cherry-pick <commit-hash>
# or
git merge arial/<workstream-id>Getting Help
Check Status
arial status
arial status --jsonVerbose Output
arial run --verboseCheck Version
arial --version
node --version
git --versionEnvironment Check
# Check API key is set
echo $ANTHROPIC_API_KEY | head -c 10
# Check in git repo
git statusQuick Fixes Reference
| Problem | Quick Fix |
|---|---|
| Not initialized | `arial init` |
| No workstreams | `arial plan --specs ./specs` |
| API key missing | `export ANTHROPIC_API_KEY=...` |
| TUI broken | `arial run --no-tui` |
| See agent work | `arial run --verbose` |
| Stuck run | Remove `.arial/state.json`, re-plan |
| Start fresh | `rm -rf .arial && arial init` |
| Worktree issues | `git worktree prune` |
| Bad state | `rm -rf .arial/state.json` |