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: Handling of ^D to quit in human mode
Kilian Lieret9ada0ee7ebfd
diff --git a/sweagent/agent/models.py b/sweagent/agent/models.pyindex 089deeec..6ec68f4b 100644--- a/sweagent/agent/models.py+++ b/sweagent/agent/models.py@@ -286,6 +286,9 @@ class HumanModel(AbstractModel):except KeyboardInterrupt:print("^C (exit with ^D)")return self.query(history, action_prompt)+ except EOFError:+ print("\nGoodbye!")+ return {"message": "exit"}class HumanThoughtModel(HumanModel):