Common Issues
Solutions to frequently encountered problems.
Agent CLI Not Found
Symptom: Error that the agent CLI (Claude, Codex, or OpenCode) is not found.
Error: Claude CLI not found in PATH. Install it or set agent.cliPath in .chief/config.yamlor
Error: Codex CLI not found in PATH. Install it or set agent.cliPath in .chief/config.yamlor
Error: OpenCode CLI not found in PATH. Install it or set agent.cliPath in .chief/config.yamlCause: The chosen agent CLI isn't installed or isn't in your PATH.
Solution:
- Claude (default): Install Claude Code CLI, then verify:bash
claude --version - Codex: Install Codex CLI and ensure
codexis in PATH, or set the path in config:yamlVerify withagent: provider: codex cliPath: /usr/local/bin/codexcodex --version(or yourcliPath). - OpenCode: Install OpenCode CLI and ensure
opencodeis in PATH, or set the path in config:yamlVerify withagent: provider: opencode cliPath: /usr/local/bin/opencodeopencode --version(or yourcliPath).
Permission Denied
Symptom: The agent keeps asking for permission, disrupting autonomous flow.
Cause: Some agents (like Claude Code) require explicit permission for file writes and command execution.
Solution:
Chief automatically configures the agent for autonomous operation by disabling permission prompts. If you're still seeing permission issues, ensure you're running Chief (not the agent directly) and that your agent CLI is up to date.
PRD Not Updating
Symptom: Stories stay incomplete even though the agent seems to finish.
Cause: The agent didn't output the completion signal, or file watching failed.
Solution:
Check the agent log for errors (the log file matches your agent:
claude.log,codex.log, oropencode.log):bashtail -100 .chief/prds/your-prd/claude.log # or codex.log / opencode.logManually mark story complete if appropriate:
json{ "id": "US-001", "passes": true, "inProgress": false }Restart Chief to pick up where it left off
Loop Not Progressing
Symptom: Chief runs but doesn't make progress on stories.
Cause: Various—the agent may be stuck, context too large, or PRD unclear.
Solution:
Check the agent log for what the agent is doing:
bashtail -f .chief/prds/your-prd/claude.log # or codex.log / opencode.logSimplify the current story's acceptance criteria
Add context to
prd.mdabout the codebaseTry restarting Chief:
bash# Press 'x' to stop (or Ctrl+C to quit) chief # Launch TUI # Press 's' to start the loop
Max Iterations Reached
Symptom: Chief stops with "max iterations reached" message.
Cause: The agent hasn't completed after the iteration limit.
Solution:
Increase the limit:
bashchief --max-iterations 200Or investigate why it's taking so many iterations:
- Story too complex? Split it
- Stuck in a loop? Check the agent log (
claude.log,codex.log, oropencode.log) - Unclear acceptance criteria? Clarify them
"No PRD Found"
Symptom: Error about no PRD being found.
Cause: Missing .chief/prds/ directory or invalid PRD structure.
Solution:
Create a PRD:
bashchief newOr specify the PRD explicitly:
bashchief my-featureVerify structure:
.chief/ └── prds/ └── my-feature/ ├── prd.md └── prd.json
Invalid JSON
Symptom: Error parsing prd.json.
Cause: Syntax error in the JSON file.
Solution:
Validate your JSON:
bashcat .chief/prds/your-prd/prd.json | jq .Common issues:
- Trailing commas (not allowed in JSON)
- Missing quotes around keys
- Unescaped characters in strings
Worktree Setup Failures
Symptom: Worktree creation fails when starting a PRD.
Cause: The branch already exists, the worktree path is in use, or git state is corrupted.
Solution:
Chief automatically handles common cases (reuses valid worktrees, cleans stale ones). If it still fails:
Manually clean up:
bash# Remove the worktree git worktree remove .chief/worktrees/<prd-name> --force # Delete the branch if needed git branch -D chief/<prd-name> # Prune git's worktree tracking git worktree pruneRestart Chief and try again
PR Creation Failures
Symptom: Auto-PR creation fails after a PRD completes.
Cause: gh CLI not installed, not authenticated, or network issues.
Solution:
Verify
ghis installed and authenticated:bashgh auth statusIf not installed, get it from cli.github.com
If not authenticated:
bashgh auth loginYou can also create the PR manually:
bashgit push -u origin chief/<prd-name> gh pr create --title "feat: <prd-name>" --body "..."Auto-PR can be disabled in Settings (
,) — push-only mode still works
Orphaned Worktrees
Symptom: The picker shows entries marked [orphaned] or [orphaned worktree].
Cause: A previous Chief session crashed or was terminated without cleaning up its worktree.
Solution:
- Orphaned worktrees are harmless but take disk space
- Select the orphaned entry in the picker and press
cto clean it up - Choose "Remove worktree + delete branch" or "Remove worktree only" as appropriate
Chief automatically prunes git's internal worktree tracking on startup, but does not auto-delete worktree directories to avoid data loss.
Merge Conflicts
Symptom: Merging a completed branch fails with conflict list.
Cause: The PRD's branch has changes that conflict with the target branch.
Solution:
- Chief shows the list of conflicting files in the merge result dialog
- Resolve conflicts manually in a terminal:bash
cd /path/to/project git merge chief/<prd-name> # Resolve conflicts in the listed files git add . git commit - Or push the branch and resolve via a pull request on GitHub
Still Stuck?
If none of these solutions help:
- Check the FAQ
- Search GitHub Issues
- Open a new issue with:
- Chief version (
chief --version) - Your
prd.json(sanitized) - Relevant agent log excerpts (e.g.
claude.log,codex.log, oropencode.log)
- Chief version (