SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
Enh: Do not show progress bar for human mode
Kilian Lieretad8e9127b7cb
diff --git a/sweagent/run/run_batch.py b/sweagent/run/run_batch.pyindex 5a6afd05..4d1ab867 100644--- a/sweagent/run/run_batch.py+++ b/sweagent/run/run_batch.py@@ -10,6 +10,7 @@ import sysimport timeimport tracebackfrom concurrent.futures import ThreadPoolExecutor, as_completed+from contextlib import ExitStackfrom pathlib import Pathfrom typing import Self@@ -162,7 +163,10 @@ class RunBatch:self._chooks.on_end()def main_single_worker(self) -> None:- with Live(self._progress_manager.render_group):+ with ExitStack() as stack:+ # Conditionally add progress bar+ if self.agent_config.model.name not in ["human", "human_thought"]:+ stack.enter_context(Live(self._progress_manager.render_group))for instance in self.instances:try:self.run_instance(instance)