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 bash command
Kilian Lieretb673e3340dc1
diff --git a/sweagent/tools/commands.py b/sweagent/tools/commands.pyindex 23bfcbdb..c01b8abe 100644--- a/sweagent/tools/commands.py+++ b/sweagent/tools/commands.py@@ -202,7 +202,7 @@ class Command(BaseModel):BASH_COMMAND = Command(name="bash",# name="execute_bash",- signature="echo '<command>'\n<command>\necho \"root@workspace:${{PWD}} #\n[Command finished with exit code ${{?}}]\"",+ signature="<command>",# signature="echo '<command>'\n<command>\necho \"root@workspace:${{PWD}} #\n[Command finished with exit code ${{?}}]\"",docstring="runs the given command directly in bash",arguments=[