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]

Change: Revert back to 'bash' without mirroring command

Kilian Liereta57be1c4595f
diff --git a/sweagent/tools/commands.py b/sweagent/tools/commands.py
index da1c48c9..23bfcbdb 100644
--- a/sweagent/tools/commands.py
+++ b/sweagent/tools/commands.py
@@ -200,8 +200,10 @@ class Command(BaseModel):
# Default Bash tool
BASH_COMMAND = Command(
- name="execute_bash",
+ name="bash",
+ # name="execute_bash",
signature="echo '<command>'\n<command>\necho \"root@workspace:${{PWD}} #\n[Command finished with exit code ${{?}}]\"",
+ # signature="echo '<command>'\n<command>\necho \"root@workspace:${{PWD}} #\n[Command finished with exit code ${{?}}]\"",
docstring="runs the given command directly in bash",
arguments=[
Argument(