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(tools): Allow the use of git

Kilian Lieretea32b6ac3ae9
diff --git a/sweagent/tools/tools.py b/sweagent/tools/tools.py
index b4f46aff..9affcfb0 100644
--- a/sweagent/tools/tools.py
+++ b/sweagent/tools/tools.py
@@ -26,7 +26,6 @@ class ToolFilterConfig(BaseModel):
"emacs",
"nano",
"nohup",
- "git",
"gdb",
"less",
"tail -f",
@@ -54,7 +53,7 @@ class ToolFilterConfig(BaseModel):
"radare2": r"\b(?:radare2)\b.*\s+-c\s+.*",
"r2": r"\b(?:radare2)\b.*\s+-c\s+.*",
}
- """Block any command that matches one of these regexes unless it also matches the regex"""
+ """Block any command that matches one of these names unless it also matches the regex"""
class ToolConfig(BaseModel):