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: Block su as command (#752)
Kilian Lieretf67891315d5a
diff --git a/sweagent/agent/agents.py b/sweagent/agent/agents.pyindex 6d3852e3..39cc0d7f 100644--- a/sweagent/agent/agents.py+++ b/sweagent/agent/agents.py@@ -88,6 +88,7 @@ class AgentConfig(FrozenSerializable):"vim","emacs","nano",+ "su",)# Should extract environment state in a json readable formstate_command: Command = Command(