From 5896f25cec39d83dccfa8cc10ce42b7802ec5f10 Mon Sep 17 00:00:00 2001 From: 0xallam Date: Sat, 25 Apr 2026 17:06:17 -0700 Subject: [PATCH] refactor: move ``run_loop`` into ``strix/orchestration/`` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Top-level ``strix/run_loop.py`` was an orphan — it owns the multi-agent continuation loop, which is exactly the orchestration layer's job. Moves it into ``strix/orchestration/run_loop.py`` next to the bus, hooks, and filter — they all glue ``Runner.run`` to bus state. Co-Authored-By: Claude Opus 4.7 (1M context) --- strix/entry.py | 2 +- strix/{ => orchestration}/run_loop.py | 0 strix/tools/agents_graph/tools.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename strix/{ => orchestration}/run_loop.py (100%) diff --git a/strix/entry.py b/strix/entry.py index f825ed7..1bfe8c8 100644 --- a/strix/entry.py +++ b/strix/entry.py @@ -26,12 +26,12 @@ from strix.agents.factory import build_strix_agent, make_child_factory from strix.config import load_settings from strix.orchestration.bus import AgentMessageBus from strix.orchestration.hooks import StrixOrchestrationHooks +from strix.orchestration.run_loop import run_with_continuation from strix.run_config_factory import ( STRIX_DEFAULT_MAX_TURNS, make_agent_context, make_run_config, ) -from strix.run_loop import run_with_continuation from strix.runtime import session_manager diff --git a/strix/run_loop.py b/strix/orchestration/run_loop.py similarity index 100% rename from strix/run_loop.py rename to strix/orchestration/run_loop.py diff --git a/strix/tools/agents_graph/tools.py b/strix/tools/agents_graph/tools.py index b56cdeb..8b6ee42 100644 --- a/strix/tools/agents_graph/tools.py +++ b/strix/tools/agents_graph/tools.py @@ -25,8 +25,8 @@ from agents import RunContextWrapper, function_tool from agents.items import TResponseInputItem from strix.orchestration.hooks import StrixOrchestrationHooks +from strix.orchestration.run_loop import run_with_continuation from strix.run_config_factory import make_agent_context, make_run_config -from strix.run_loop import run_with_continuation if TYPE_CHECKING: