Repository navigation
feat(server): describe the general delegate_task role - #76
Closed
orbitingflea wants to merge 1 commit into
Closed
orbitingflea wants to merge 1 commit into
orbitingflea wants to merge 1 commit into
Conversation
The role field of delegate_task now says "`general`: Use for multi-step tasks, such as making a PR." A general child gets the task text alone, so its first Claude request already matches a sidebar thread's. - contracts: the description on the role field. - agentContextBudget: the tool list grows by 74 bytes. - ProviderReplayHarness: a configureMcp option, so a test can build the MCP setup that a Claude thread gets. - fork/generalRoleParity.test.ts: a general child's first Claude request equals a sidebar thread's at effort medium and high, with an inherited and an explicit target; a child lists every MCP tool a sidebar thread does except watch_pull_request and unwatch_pull_request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Owner
Author
|
Closed without merge. The person chose to leave T3's tool text as it is. Our bot instructions already tell bots to give each task to its own worker with role |
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.
What
Agents now see when to pick the
generalrole ofdelegate_task, the tool that starts a child, which is a thread started by another thread. Therolefield gets the description "general: Use for multi-step tasks, such as making a PR." Nothing changes on screen, and a child starts as it did before. A new test shows that ageneralchild starts the same way as a thread opened from the sidebar.Why
Our goal is that a parent with a multi-step task starts a child that works like a sidebar thread. The
generalrole already does this, because it sends the child only the task text. Leaving outroledoes the same. The tool text did not say when to usegeneral, so nothing steered agents away from the specialized roles.How
generalchild through the real code, at effortmediumandhigh, and checks that they are equal. It also checks that the lists of tools the two threads can call differ only bywatch_pull_requestandunwatch_pull_request.agent-context-increaselabel.The evals that
AGENTS.mdnames were not run, because no API key was available, so no model has been tested on the new text. A free dry run shows that the first request changes in 15 of 146 eval cases, only in thedelegate_taskschema.Files
orchestratorMcp.tsholds the description.agentContextBudget.jsonholds the limit.ProviderReplayHarnessgets aconfigureMcpoption, so the test can set up tools as a real Claude thread does.generalRoleParity.test.tsis the new, fork-only test. It leaves out ids, the MCP token andCLAUDE_CODE_PROMPT_CACHE_TTL, which a child takes from thesubagentPromptCacheTtlsetting.