How to Diagnose Problems with amplihack doctor¶
amplihack doctor runs 5 system health checks and reports which prerequisites are satisfied. This guide explains what each failing check means and how to fix it.
Run doctor first¶
Identify which lines start with ✗ and follow the relevant section below. All 5 checks always run, so you will see all failures at once.
Fixing Each Failing Check¶
✗ hooks installed¶
What it means: ~/.claude/settings.json either does not exist, contains no hooks section, or none of the hook command strings contain the word "amplihack".
Fix: Run the installer:
install registers all 7 amplihack hooks in settings.json. Re-run doctor to confirm:
If the file exists but hooks are missing, the file may have been manually edited or overwritten. amplihack install is idempotent — it is safe to re-run and will add the missing hooks without duplicating existing ones.
✗ settings.json valid JSON¶
What it means: ~/.claude/settings.json is not valid JSON. This typically happens after a manual edit introduced a syntax error (trailing comma, missing quote, etc.).
Fix — option 1: restore from backup
amplihack install writes a timestamped backup before modifying settings.json. Look for files matching:
Restore the most recent valid backup:
Fix — option 2: validate and repair manually
json.tool prints the first syntax error with a line number. Fix the error, then re-run doctor.
Fix — option 3: reinstall
If you have no backup and cannot repair the file, run:
install will detect the invalid JSON, back up the broken file as settings.json.bak.<timestamp>, and write a valid replacement.
✗ recipe-runner available¶
What it means: recipe-runner-rs is not on PATH or is not executable.
Fix — check PATH:
If the command is not found, install recipe-runner-rs:
# If distributed with amplihack-rs releases, copy from the release archive
cp path/to/release/recipe-runner-rs ~/.local/bin/
chmod +x ~/.local/bin/recipe-runner-rs
Confirm ~/.local/bin is on your PATH:
If it is not, add it to your shell init file (~/.bashrc, ~/.zshrc, etc.):
Reload your shell and re-run doctor.
✗ tmux installed¶
What it means: tmux is not on PATH. tmux is required for amplihack's session management features.
Fix:
# Debian / Ubuntu
sudo apt install tmux
# macOS (Homebrew)
brew install tmux
# Arch Linux
sudo pacman -S tmux
# Fedora / RHEL
sudo dnf install tmux
Windows note: tmux does not have a native Windows port. On Windows, this check is expected to fail unless you are running in WSL2 or another Unix compatibility layer that provides tmux. Features that do not require tmux continue to work.
Confirm the fix:
✗ amplihack version¶
This check is informational and only fails if the binary cannot report its version. If you see it fail on an otherwise working install, the binary may be corrupted or compiled for the wrong architecture.
Fix: Reinstall from the appropriate release artifact for your platform. See Install amplihack for the First Time.
All Checks Pass — But Something Still Doesn't Work¶
doctor verifies prerequisites, not runtime behaviour. If all checks pass but Claude Code hooks are not firing:
- Check that Claude Code is version 1.x or later:
claude --version - Confirm hooks are enabled in Claude Code settings (not just registered): open Claude Code and check the hooks settings panel.
- Check runtime logs:
ls ~/.amplihack/.claude/runtime/logs/
For persistent issues, open a GitHub Issue with the output of amplihack doctor attached.
Related¶
- amplihack doctor — Command Reference — Full reference for all checks, exit codes, and output format
- amplihack install — Command Reference — Fixes most hook and settings.json failures
- Hook Specifications — What hooks amplihack registers