Skip to content

[FEATURE]: TodoWrite parallel workflow support + verificationNudgeNeeded signal #20484

Closed

Description

@borealBytes

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Problem

OpenCode's current TodoWrite implementation and associated agent guidance treats tasks as strictly sequential. Two concrete gaps exist in the todo system compared to what claw-code implements:

  1. Multiple in_progress items are not supported for parallel workflows. The validator currently rejects or warns on multiple in_progress todos, preventing orchestrators from expressing that several tasks are legitimately running in parallel.

  2. No verificationNudgeNeeded signal. When all todos complete without any task containing "verif" in its content, it's a strong signal that the agent may have skipped verification. claw-code's TodoWrite returns verificationNudgeNeeded: true in this case, allowing the runtime to inject a reminder prompting the agent to verify its work before calling the task complete.

Proposed changes

1. Allow multiple in_progress todos

// Current (overly restrictive)
if (todos.filter(t => t.status === "in_progress").length > 1) {
  throw new Error("Only one task can be in progress at a time")
}

// Proposed: remove the restriction with an explanatory comment
// Multiple in_progress items are valid for parallel agent workflows

2. Add verificationNudgeNeeded to the tool response

const allDone = todos.every(t => t.status === "completed")
const hasVerificationTask = todos.some(t =>
  t.content.toLowerCase().includes("verif")
)

return {
  oldTodos,
  newTodos: todos,
  verificationNudgeNeeded: (allDone && todos.length >= 3 && !hasVerificationTask) || undefined
}

3. Surface the nudge in the system prompt injection

When verificationNudgeNeeded: true, the runtime should append a reminder to the agent's next turn:

"All tasks are marked complete. Before finishing, please verify your work by running tests or reviewing the output."

Why this matters

  • Multi-agent parallel execution patterns require multiple simultaneous in_progress states — this is the correct model for fork-join orchestration
  • Verification skipping is one of the most common failure modes in autonomous coding agents; a built-in nudge addresses it systematically without requiring custom prompting
  • Small change, measurable quality improvement on complex multi-task completions

Acceptance criteria

  • TodoWrite accepts any number of in_progress items without error or warning
  • TodoWrite response includes verificationNudgeNeeded: true when: all items complete, count >= 3, and no item contains "verif"
  • When verificationNudgeNeeded is set, a system reminder is injected into the next agent turn
  • Existing single-task sequential behavior is unaffected
  • Agent prompt/system instructions updated to explicitly note that parallel in_progress is valid

Related / cross-reference

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 1, 2026
  2. rekram1-node commented on Apr 1, 2026

    @rekram1-node
    Contributor

    closing due to issue spam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)docs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions