Troubleshooting¶
Common errors¶
HPNC project not found¶
✗ HPNC project not found
No _hpnc/config.yaml found in any parent directory
Action: Run 'hpnc init' to initialize HPNC in your project
Fix: Run hpnc init in your project root.
Agent CLI not found¶
Fix: Install the agent CLI:
- Claude Code: visit claude.ai/code
- Codex: npm install -g @openai/codex
Agent preflight failed¶
Fix: Run claude interactively and authenticate.
Dispatcher lock already held¶
Fix: Wait for the running dispatcher to finish, or delete _hpnc/.dispatcher.lock if the process crashed.
Story not night-ready¶
Fix: Add night_ready: true to the story's YAML frontmatter.
Blocking questions not resolved¶
Fix: Answer all questions in the blocking_questions list and clear it.
No secrets hook configured¶
Fix: Add a secrets detection hook to .pre-commit-config.yaml:
Performance¶
Night run seems slow¶
- Check
max_turnsin config (default: 10). Lower = faster but less capable. - Use
--mockfirst to verify the pipeline works without token cost. - Gate timeouts are 300s per gate. Long test suites may need adjustment.
Worktrees not cleaned up¶
If worktrees remain after a crash, list and remove them: