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]
Avoid removing untracked files (e.g. build files) on startup
carlosejimenez6e30af6ca07c
diff --git a/sweagent/environment/swe_env.py b/sweagent/environment/swe_env.pyindex 4cc0866e..7001c2df 100644--- a/sweagent/environment/swe_env.py+++ b/sweagent/environment/swe_env.py@@ -131,7 +131,7 @@ class SWEEnv:"git status","git restore .",f"git reset --hard {self.repo.base_commit}",- "git clean -fdxq",+ "git clean -fdq",]self.communicate(input=" && ".join(startup_commands),