fix: exclude 'execute' tool from sub-agent tool set - #677
Merged
Conversation
The 'execute' tool is provided by SandboxBackendProtocolV2 via the core backend (LocalShellBackend). Sub-agents inherit the backend and can see it, but it should only be available to the orchestrator. Register a harness profile that excludes 'execute' (and write_todos) from sub-agent tool sets via the createToolExclusionMiddleware.
write_todos was removed from the codebase entirely. The only remaining exclusion is 'execute', which is provided by the backend protocol and should only be available to the orchestrator.
TodoListMiddleware and SummarizationMiddleware are now wanted on sub-agents. The only remaining exclusion is 'execute', which is provided by the backend protocol and should remain orchestrator-only.
avoidwork
added a commit
that referenced
this pull request
Aug 2, 2026
Patch release — 1 fix commit since 1.38.11. ### Commits - fix: exclude 'execute' tool from sub-agent tool set (#677) ### Changes - `package.json`: 1.38.11 → 1.38.12 - `CHANGELOG.md`: updated
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.
Description
The 'execute' tool is provided by SandboxBackendProtocolV2 via the core backend (LocalShellBackend). Sub-agents inherit the backend and can see it, but it should only be available to the orchestrator. Register a harness profile that excludes 'execute' from sub-agent tool sets via the createToolExclusionMiddleware.
Type of Change
Testing
All 1054 tests pass. The harness profile mechanism is the same one deepagents uses internally for profile-based tool exclusions.
Coverage
Checklist
npm run lintpassesDetails
Commit:
fix: exclude 'execute' tool from sub-agent tool setChanged files:
src/agent/deepAgents.jsRule 5.4: PR template at
.github/PULL_REQUEST_TEMPLATE.mdwas used. All sections filled.