Skip to content

feat(subagents): Guide parents to write self-contained tasks - #2146

Merged
dcramer merged 3 commits into
mainfrom
feat/subagent-self-contained-briefs
Oct 16, 2026
Merged

dcramer merged 3 commits into
mainfrom
feat/subagent-self-contained-briefs

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

A child agent gets no parent thread history and has its own sandbox, so the spawnAgent task is its only context from the parent. The old description ("Task for the child agent") gave the parent no guidance on what to put in it.

The task description now asks for a self-contained task: goal and output, target repos and refs, facts already verified, allowed remote side effects, done criteria, and evidence to return. It also tells the parent not to paste thread history or claim user approval. The tool description and messageAgent stay as they are. messageAgent already says "Include all context the target needs."

Adds one subagent eval case. An earlier thread message states a verified fact, and the mention only asks to hand the work off. The case checks that the spawnAgent task carries that fact (file, typo, line). CI must record it.

Refs #2105

via David Cramer.

--

View Junior Session [Sentry]

@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Oct 16, 2026 4:15am UTC

Request Review

@sentry-evals

sentry-evals Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Sentry Evals

junior-integration

Run Status Passed Failed Errored Cost Tokens Duration
Head Complete 100 1 0 $0.80 0 275.72s

Base commit 238f7ee has no eval run to compare against.

@dcramer

dcramer commented Oct 16, 2026

Copy link
Copy Markdown
Member

need to rebase for the roach update

The spawnAgent task description now tells the parent that the brief is the
child's only context and lists what it must include.

Refs #2105
The subagent brief case now puts the verified fact in an earlier thread
message. The mention restates nothing, so the case checks that the parent
carries thread-only facts into the brief.

Refs #2105
TERMINOLOGY.md uses Brief for the durable record of a Conversation. Call
the spawnAgent input a self-contained task instead.

Refs #2105

Co-Authored-By: David Cramer <[email protected]>
@sentry-junior sentry-junior Bot changed the title feat(subagents): Guide parents to write self-contained briefs feat(subagents): Guide parents to write self-contained tasks Oct 16, 2026
@dcramer
dcramer merged commit 9e650d9 into main Oct 16, 2026
48 of 50 checks passed
@dcramer
dcramer deleted the feat/subagent-self-contained-briefs branch October 16, 2026 04:43

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 8f0ef321 Deployed Oct 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant