Repository navigation
feat(orchestrate): keep work with the root unless a slice needs a fresh context - #84
Merged
Merged
Conversation
…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.
Merged
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
orchestratenow 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 aReturn shapeslot.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-agentsand 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
mainversion.mainOn
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:
mainalready 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 checkpasses (42 tests, repository validation).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.