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: Add startup message to terminal (#294)
Kilian Lieret43b8de5a6341
diff --git a/.devcontainer/bashrc_epilog.sh b/.devcontainer/bashrc_epilog.shnew file mode 100644index 00000000..d731fb29--- /dev/null+++ b/.devcontainer/bashrc_epilog.sh@@ -0,0 +1,7 @@++if [ -z "$(docker images -q sweagent/swe-agent 2> /dev/null)" ]; then ─╯+ echo "⚠️ Please wait for the postCreateCommand to start and finish (a new window will appear shortly) ⚠️"+fi++echo "Here's an example SWE-agent command to try out:"+echo "python run.py --model_name gpt4 --data_path https://github.com/pvlib/pvlib-python/issues/1603 --config_file config/default_from_url.yaml"\ No newline at end of filediff --git a/.devcontainer/oncreate.sh b/.devcontainer/oncreate.shindex c6186d73..311b40f7 100755--- a/.devcontainer/oncreate.sh+++ b/.devcontainer/oncreate.sh@@ -9,3 +9,4 @@ sudo usermod -aG docker vscodesudo chmod 666 /var/run/docker.sockpip install -e '.'cp .devcontainer/sample_keys.cfg keys.cfg+cat .devcontainer/bashrc_epilog.sh >> ~/.bashrc\ No newline at end of file