Skip to content

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]

Fix: Manual multiline command execution in human model (#1174)

Kilian Lieret6cd19bfb48e5
diff --git a/sweagent/agent/models.py b/sweagent/agent/models.py
index 127851b3..81015167 100644
--- a/sweagent/agent/models.py
+++ b/sweagent/agent/models.py
@@ -386,8 +386,6 @@ class HumanModel(AbstractModel):
buffer = []
while True:
action = input("... ")
- if action.rstrip() == "end_multiline_command":
- return self._query(history, action_prompt)
if action.rstrip() == "end_multiline_command":
break
buffer.append(action)