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]

[pre-commit.ci] auto fixes from pre-commit.com hooks

pre-commit-ci[bot]a432dc6392c0
diff --git a/sweagent/tools/commands.py b/sweagent/tools/commands.py
index 12998678..2554c9f8 100644
--- a/sweagent/tools/commands.py
+++ b/sweagent/tools/commands.py
@@ -186,6 +186,7 @@ class Command(BaseModel):
if not arg.required:
found_optional = True
from collections import Counter
+
name_counts = Counter(arg.name for arg in self.arguments)
duplicates = {name for name, count in name_counts.items() if count > 1}
if duplicates: