HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.
Python agent-apiagent-frameworkagent-harnessai-agentsai-infrastructurecoding-agentconformance-testingdeepseek-harnessharness-engineeringhermesllmopen-protocolopen-sourceopen-standardpi-coding-agentself-hosteduhpunified-apiunified-harness-protocolunified-interface
aider's reflected shell output carries an ask (#314)
github-actions[bot]1e8d45534a2d
diff --git a/runner/aider_driver.py b/runner/aider_driver.pyindex 46131afc..a340fe24 100644--- a/runner/aider_driver.py+++ b/runner/aider_driver.py@@ -272,6 +272,10 @@ def _install(coder, gate: _Gate) -> None:io.confirm_ask = confirm_ask+REFLECT_ASK = ("Continue the task with this output. If more commands or edits are needed, propose "+ "them now; otherwise write your answer for the user, stating what the output shows.")++def _run_shell_commands_reporting(coder, gate: _Gate, reflect: bool = True):"""Wrap Coder.run_shell_commands so each approved command's OUTPUT is reported too.@@ -302,7 +306,11 @@ def _run_shell_commands_reporting(coder, gate: _Gate, reflect: bool = True):# it cannot report a token the script produced, and every other backend here can.# Setting the reflection gives aider the same in-turn loop, using aider's own mechanism# and its own max_reflections bound rather than a loop of ours.- coder.reflected_message = str(out)+ # With an ask, as aider's own lint and test reflections carry one ("Fix any errors+ # below"): the bare output reflected as the next message got "Ok" from gpt-5.4 after+ # the browser column's tool calls, and the person's answer was the plan plus "Ok"+ # (hosted, 2026-09-28).+ coder.reflected_message = str(out).rstrip() + "\n\n" + REFLECT_ASKreturn outcoder.run_shell_commands = wrappeddiff --git a/runner/tests/test_aider_driver.py b/runner/tests/test_aider_driver.pyindex 313ad635..5ec9b653 100644--- a/runner/tests/test_aider_driver.py+++ b/runner/tests/test_aider_driver.py@@ -406,6 +406,8 @@ def test_shell_output_is_fed_back_so_the_model_sees_it_in_the_same_turn():aider_driver._run_shell_commands_reporting(c, g, reflect=True)c.run_shell_commands()assert c.reflected_message and "STAMP-OK" in c.reflected_message+ # the output is followed by an ask, as aider's own reflections are, or the model answers "Ok"+ assert c.reflected_message.endswith("\n\n" + aider_driver.REFLECT_ASK) and c.reflected_message.index("STAMP-OK") < c.reflected_message.index(aider_driver.REFLECT_ASK)def test_a_reflection_does_not_re_run_the_command_it_reported():