Skip to content

feat(orchestrate): keep work with the root unless a slice needs a fresh context - #84

Merged
J03Fr0st merged 1 commit into
mainfrom
feat/orchestrate-fold-subagents
Nov 29, 2026
Merged

J03Fr0st merged 1 commit into
mainfrom
feat/orchestrate-fold-subagents

Conversation

@J03Fr0st

Copy link
Copy Markdown
Owner

Change

orchestrate now keeps work with the root agent unless a slice needs a fresh, discardable context (parallel work or context-heavy reading), independence (a review or check blind to the producer), or a user or repository requirement. Slices are split by context rather than role: steps that consume each other's output or touch the same data go to one worker, dependent workers get the diff or files ahead of an earlier worker's report, and the worker contract gains a Return shape slot.

This applies Anthropic's article Building agents: when to fold subagents into your main agent loop, checked against the preferred source repositories. Superpowers' dispatching-parallel-agents and Addy Osmani's orchestration patterns support it most directly. The research note records each repository's influence.

Validation

Paired scenario runs, 3 per arm, each in a fresh Opus context that could read only the skill directory (evals removed). Arm A is the main version.

Eval Expectation main This PR
13: CSV export, explorer → worker → tester → reviewer proposed No explorer summary handed to the implementer 0/3 3/3
13 Dependants get artifacts, not only reports 0/3 3/3
14: deadlock across three files the root already read Diagnosis stays with the root 3/3 3/3

On main, every run kept the four-stage chain and started the worker from the explorer's report. With this PR, every run merged mapping, implementation and tests into one worker and kept only the independent reviewer.

Eval 14 does not discriminate: main already keeps an in-context diagnosis with the root, so removing the "difficult diagnosis" delegation trigger has no measured effect. Its wording change rests on the article alone. Evals 1 and 7 passed 2/2 on this branch as regression checks. Grading was by hand with arms known.

  • npm run check passes (42 tests, repository validation).
  • Skill changes include discovery entries, docs, and a changeset when released behavior changes.
  • Scope and any compatibility or security implications are documented.

Merge danger: Two-way door; reverting restores the previous routing guidance. Blast radius: orchestrate runs only. If the root-only default is too strict, users who don't ask for agents see fewer delegations on context-heavy work.

…sh context

Apply Anthropic's guidance on folding subagents into the main agent loop.
Orchestrate now delegates only for a fresh, discardable context, an
independent review or check, or a user or repository requirement. Slices
are split by context rather than role, so steps that consume each other's
output go to one worker; dependent workers get artifacts ahead of reports;
and the worker contract gains a shared return shape.

Evals 13 and 14 cover the new branches; paired results against the main
version are recorded in docs/research/2026-11-30-orchestrate-fold-subagents.md.
@J03Fr0st
J03Fr0st merged commit 986080e into main Nov 29, 2026
5 checks passed
@J03Fr0st
J03Fr0st deleted the feat/orchestrate-fold-subagents branch November 29, 2026 19:49
@github-actions github-actions Bot mentioned this pull request Nov 29, 2026
github-actions Bot added a commit that referenced this pull request Nov 29, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## j03fr0st-skills@0.17.0

### Minor Changes

- [#84](#84)
[`986080e`](986080e)
Thanks [@J03Fr0st](https://github.com/J03Fr0st)! - `orchestrate` now
keeps work with the root by default and delegates only for a fresh,
discardable context (parallel work or context-heavy reading), an
independent review or check, or a user or repository requirement. Slices
are split by context rather than role, so chained steps that consume
each other's output go to one worker; dependent workers receive
artifacts ahead of reports; and the worker contract gains a shared
return shape.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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