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:
- Is hardcoded — it cannot be disabled or changed through agent profiles, permissions settings, or any currently documented mechanism.
- 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.
- 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.
- 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)
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:
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 viasend_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_filterandhandoff_history_mapperto 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)