Skip to content

Child agent end-of-task handoff strategy is hardcoded to git push + PR; should be configurable per orchestration context #11389

@QuinceyJames

Description

@QuinceyJames

Summary

When Warp spawns a child agent in an orchestration workflow, its end-of-task behavior is hardcoded in the system prompt to push to a remote git branch and open a draft pull request. This default conflicts with user rules prohibiting VCS operations without explicit instruction, cannot be suppressed through Settings > Agents > Profiles, and is inappropriate for local (non-ephemeral) execution environments where the filesystem persists and a git roundtrip is unnecessary.

Problem

The child agent system prompt includes a mandatory "End of task behavior" section that instructs the agent to push to a remote branch and create a draft pull request on task completion. This instruction:

  1. Is hardcoded — it cannot be disabled or changed through agent profiles, permissions settings, or any currently documented mechanism.
  2. Conflicts with user rules — a rule such as "do not commit or push without explicit instruction" is present in the same system prompt, but the built-in end-of-task instruction takes effective precedence for this specific VCS behaviour.
  3. Does not distinguish execution context — the push/PR pattern makes sense for ephemeral remote/cloud sandboxes (where the filesystem does not persist), but is unnecessary and surprising for local agents where file changes are already present on the user's machine.
  4. Produces unexpected VCS side effects — the user did not request a commit or push; the agent performed both without any explicit directive.

In the specific case that prompted this report: a child agent performing a code-writing subtask committed four new files and attempted to push to the current branch. The push was blocked by the repo's pre-push hook (pre-existing unrelated lint failures in files the agent had not touched), but the git commit was created and the push attempt was made entirely without user instruction.

Desired workflow

The orchestration platform should support configurable handoff strategies per orchestration context, with at minimum:

  • message-only — child agent reports file paths and a structured summary to the orchestrator via send_message_to_agent; no VCS operations. Appropriate default for local agents.
  • git-pr — push branch and open draft PR (current hardcoded behavior). Appropriate default for ephemeral remote/cloud agents.

This aligns with the industry-standard approach: OpenAI Agents SDK exposes input_filter and handoff_history_mapper to control handoff content; LangGraph, Google ADK, and Microsoft Semantic Kernel all treat handoff behavior as configurable contracts, not hardcoded side effects.

Artifacts

None attached.

Warp version

v0.2026.05.18.05.32.stable_02

Operating system

macOS 15.2 (build 24C101)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentAgent workflows, conversations, prompts, cloud mode, and AI-specific UI.bugSomething isn't working.repro:mediumThe report suggests a plausible repro path, but some uncertainty remains.triage-reviewedtriagedIssue has received an initial automated triage pass.warp:auto-triage-review

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions