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]
no files support
Talor Abramovich89a4533ab0c7
diff --git a/sweagent/environment/utils.py b/sweagent/environment/utils.pyindex 35223ef8..cd8f76d7 100644--- a/sweagent/environment/utils.py+++ b/sweagent/environment/utils.py@@ -763,7 +763,7 @@ class InstanceBuilder:"""For CTF challenges"""challenge = json.loads(Path(file_path).read_text())self.args["challenge"] = challenge- self.args["challenge"]["files"] = challenge.get("files", "No files are provided in this challenge.")+ self.args["challenge"]["files"] = challenge.get("files", [])self.args["challenge"]["points"] = challenge.get("points", 10)self.args["challenge"]["category_friendly"] = CTF_CHALLENGES_CATEGORIES.get(challenge["category"])if (Path(file_path).parent / "docker-compose.yml").is_file():