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]

Codespaces: Pull swe-agent image; conda init

Kilian Lieret716c685a3324
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 5a112b81..2a93bd17 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -9,7 +9,7 @@
"ms-azuretools.vscode-docker",
"ms-toolsai.jupyter"
],
- "postCreateCommand": "sudo usermod -aG docker vscode && sudo chmod 666 /var/run/docker.sock && conda env create -f environment.yml && conda activate swe-agent",
+ "postCreateCommand": "sudo usermod -aG docker vscode && sudo chmod 666 /var/run/docker.sock && docker pull sweagent/swe-agent && conda env create -f environment.yml && conda init && conda activate swe-agent",
"features": {
"docker-in-docker": "latest"
},