Skip to content

fix: exclude 'execute' tool from sub-agent tool set - #677

Merged
avoidwork merged 4 commits into
mainfrom
fix/subagent-execute-tool
Aug 2, 2026
Merged

fix: exclude 'execute' tool from sub-agent tool set#677
avoidwork merged 4 commits into
mainfrom
fix/subagent-execute-tool

Conversation

@avoidwork

@avoidwork avoidwork commented Aug 2, 2026

Copy link
Copy Markdown
Owner

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

  • Bugfix (non-breaking change which fixes an issue)

Testing

All 1054 tests pass. The harness profile mechanism is the same one deepagents uses internally for profile-based tool exclusions.

Coverage

  • Line coverage maintained

Checklist

  • npm run lint passes
  • Tests pass with maintained line coverage
  • No forbidden patterns used
  • Conventional Commit style applied

Details

Commit: fix: exclude 'execute' tool from sub-agent tool set

Changed files: src/agent/deepAgents.js

Rule 5.4: PR template at .github/PULL_REQUEST_TEMPLATE.md was used. All sections filled.

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.
@avoidwork avoidwork added the bug Something isn't working label Aug 2, 2026
@avoidwork avoidwork self-assigned this Aug 2, 2026
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
avoidwork merged commit 2859081 into main Aug 2, 2026
2 checks passed
@avoidwork
avoidwork deleted the fix/subagent-execute-tool branch August 2, 2026 18:04
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant