Skip to content

Commit bca2160

Browse files
refactor: remove use_agent and autonomous workflow per review feedback
Addresses review feedback from @Unshure and @mkmeral: - Remove use_agent tool from agent_runner.py (not yet quality-tested for all agents) - Revert _get_all_tools() to direct return style - Remove strands-autonomous.yml workflow Keeps valid improvements: - Model upgrade: Opus 4.5 → Opus 4.6 - Thinking mode: enabled+budget → adaptive - SOPs and command additions remain (they're docs/config, not runtime)
1 parent da949b6 commit bca2160

2 files changed

Lines changed: 2 additions & 160 deletions

File tree

strands-command/scripts/python/agent_runner.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from strands.models.bedrock import BedrockModel
2020
from botocore.config import Config
2121

22-
from strands_tools import http_request, shell, use_agent
22+
from strands_tools import http_request, shell
2323

2424
# Import local GitHub tools we need
2525
from github_tools import (
@@ -149,7 +149,7 @@ def _get_trace_attributes() -> dict:
149149
}
150150

151151
def _get_all_tools() -> list[Any]:
152-
tools = [
152+
return [
153153
# File editing
154154
str_replace_based_edit_tool,
155155

@@ -178,14 +178,7 @@ def _get_all_tools() -> list[Any]:
178178
# Agent tools
179179
notebook,
180180
handoff_to_user,
181-
182-
# Sub-agent creation — enables orchestrator pattern
183-
# The parent agent can spawn specialized sub-agents for parallel tasks
184-
# Each sub-agent runs in-process with its own system prompt and tools
185-
use_agent,
186181
]
187-
188-
return tools
189182

190183

191184
def run_agent(query: str):

strands-command/workflows/strands-autonomous.yml

Lines changed: 0 additions & 151 deletions
This file was deleted.

0 commit comments

Comments
 (0)