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]
fixing some bugs related to spaces and git commands
Talor Abramovich0a6539bf3eb5
diff --git a/sweagent/environment/swe_env.py b/sweagent/environment/swe_env.pyindex 2f33e320..21d48169 100644--- a/sweagent/environment/swe_env.py+++ b/sweagent/environment/swe_env.py@@ -875,10 +875,6 @@ class SWEEnv(gym.Env):Returns:output: output from container"""- if self.challenge is not None and input.startswith("git"):- msg = "Skipping git commands for CTF challenges"- self.logger.debug(msg)- return msglogs = self.communicate(input, timeout_duration=timeout_duration)if self.returncode != 0:self.logger.error(f"{error_msg}: {logs}")