Skip to content

Fix plan subagent stuck loop: remove write/edit instructions from subagent plan mode reminder#1182

Merged
lewis617 merged 2 commits into
mainfrom
worktree-smart-shallow-star
Jun 1, 2026
Merged

Fix plan subagent stuck loop: remove write/edit instructions from subagent plan mode reminder#1182
lewis617 merged 2 commits into
mainfrom
worktree-smart-shallow-star

Conversation

@lewis617
Copy link
Copy Markdown
Collaborator

@lewis617 lewis617 commented Jun 1, 2026

The subagent plan mode reminder previously told subagents to 'write to or
edit the plan file', but Plan subagents have no Write/Edit tools. This
contradiction caused the model to get stuck in cat /dev/null no-op loops
when it wanted to write the plan but couldn't.

  • Replace plan file write/edit instructions with 'return findings as text
    output, parent agent will write the plan file'
  • Keep plan file path in subagent reminder for reading context
  • Use separate subagentPlanFileInfo that says 'read for context' instead
    of 'make incremental edits'
  • Update specs/050-plan-mode and specs/065-plan-subagent to reflect the
    main agent vs subagent reminder distinction

lewis617 added 2 commits June 1, 2026 17:08
…agent plan mode reminder

The subagent plan mode reminder previously told subagents to 'write to or
edit the plan file', but Plan subagents have no Write/Edit tools. This
contradiction caused the model to get stuck in cat /dev/null no-op loops
when it wanted to write the plan but couldn't.

- Replace plan file write/edit instructions with 'return findings as text
  output, parent agent will write the plan file'
- Keep plan file path in subagent reminder for reading context
- Use separate subagentPlanFileInfo that says 'read for context' instead
  of 'make incremental edits'
- Update specs/050-plan-mode and specs/065-plan-subagent to reflect the
  main agent vs subagent reminder distinction
@lewis617 lewis617 merged commit f62c387 into main Jun 1, 2026
1 check passed
@lewis617 lewis617 deleted the worktree-smart-shallow-star branch June 1, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant