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]

Codespace: Automatically activate swe-agent env

Kilian Lieret3ce6f0b993f2
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 2a93bd17..d80e7ebf 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 && docker pull sweagent/swe-agent && conda env create -f environment.yml && conda init && 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 && echo '\nconda activate swe-agent\n' > ~/.bashrc",
"features": {
"docker-in-docker": "latest"
},