Common Issues¶
Solutions to frequently encountered problems.
Gemini Not Found¶
Symptom: Error message about Gemini CLI not being installed.
Cause: Gemini CLI isn't installed or isn't in your PATH.
Solution:
Install Gemini CLI following the official instructions, then verify:
Permission Denied¶
Symptom: Gemini keeps asking for permission, disrupting autonomous flow.
Cause: Gemini CLI requires explicit permission for file writes and command execution.
Solution:
Melliza automatically runs Gemini with permission prompts disabled for autonomous operation. If you're still seeing permission issues, ensure you're running Melliza (not Gemini directly) and that your Gemini CLI installation is up to date.
PRD Not Updating¶
Symptom: Stories stay incomplete even though Gemini seems to finish.
Cause: Gemini didn't output the completion signal, or file watching failed.
Solution:
-
Check
gemini.logfor errors: -
Manually mark story complete if appropriate:
-
Restart Melliza to pick up where it left off
Loop Not Progressing¶
Symptom: Melliza runs but doesn't make progress on stories.
Cause: Various—Gemini may be stuck, context too large, or PRD unclear.
Solution:
-
Check
gemini.logfor what Gemini is doing: -
Simplify the current story's acceptance criteria
-
Add context to
prd.mdabout the codebase -
Try restarting Melliza:
Max Iterations Reached¶
Symptom: Melliza stops with "max iterations reached" message.
Cause: Gemini hasn't completed after the iteration limit.
Solution:
-
Increase the limit:
-
Or investigate why it's taking so many iterations:
- Story too complex? Split it
- Stuck in a loop? Check
gemini.log - Unclear acceptance criteria? Clarify them
"No PRD Found"¶
Symptom: Error about no PRD being found.
Cause: Missing .melliza/prds/ directory or invalid PRD structure.
Solution:
-
Create a PRD:
-
Or specify the PRD explicitly:
-
Verify structure:
Invalid JSON¶
Symptom: Error parsing prd.json.
Cause: Syntax error in the JSON file.
Solution:
-
Validate your JSON:
-
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:
-
Melliza automatically handles common cases (reuses valid worktrees, cleans stale ones). If it still fails:
-
Manually clean up:
-
Restart Melliza 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: -
If not installed, get it from cli.github.com
-
If not authenticated:
-
You can also create the PR manually:
-
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 Melliza 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
Melliza 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:
- Melliza shows the list of conflicting files in the merge result dialog
- Resolve conflicts manually in a terminal:
- 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:
- Melliza version (
melliza --version) - Your
prd.json(sanitized) - Relevant
gemini.logexcerpts