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]

Web: Always use experimental speedups

Kilian Lieretaa70648e35dd
diff --git a/sweagent/api/server.py b/sweagent/api/server.py
index 41040b22..55fc0229 100644
--- a/sweagent/api/server.py
+++ b/sweagent/api/server.py
@@ -33,6 +33,8 @@ app.config['SESSION_TYPE'] = 'memcache'
THREADS: Dict[str, "MainThread"] = {}
+os.environ["SWE_AGENT_EXPERIMENTAL_COMMUNICATE"] = "1"
+env_utils.START_UP_DELAY = 1
def ensure_session_id_set():
@@ -105,9 +107,7 @@ def run():
model_name = request.args["model"]
test_run = request.args["test_run"].lower() == "true"
if test_run:
- os.environ["SWE_AGENT_EXPERIMENTAL_COMMUNICATE"] = "1"
model_name = "instant_empty_submit"
- env_utils.START_UP_DELAY = 1
defaults = ScriptArguments(
suffix="",
environment=EnvironmentArguments(