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]

Doc: Add note about non-python dependencies (#663)

Kilian Lieret29c355cdcc03
diff --git a/docs/usage/cl_tutorial.md b/docs/usage/cl_tutorial.md
index f07a7cf1..b4a0aa5a 100644
--- a/docs/usage/cl_tutorial.md
+++ b/docs/usage/cl_tutorial.md
@@ -140,8 +140,26 @@ The config file can have the following keys:
* `install`: A custom command
* `post_install`: A list of custom commands
+Instead of the `setup.yaml` file, you can also directly specify the path to a shell script, e.g., `--environment_setup /path/to/setup.sh`.
If you have very specific requirements, that can _not_ be installed via conda, you can [create a custom Docker image](../config/docker.md).
+### Installing non-python dependencies
+
+While SWE-agent has so far only been benchmarked and optimized for python project, you can still use it on repositories of any language.
+
+In most cases, this means creating a [custom Docker image](../config/docker.md). However, you can for example install node dependencies with
+`--environment_setup setup.sh`, where `setup.sh` looks as follows:
+
+```bash
+apt-get update
+yes|apt-get install curl
+yes|curl -L https://bit.ly/n-install | bash
+/root/n/bin/n latest
+npm install
+```
+
+However, this will take some time, so make sure to cache the environment (see the next section) or create a [custom Docker image](../config/docker.md).
+
## Speeding up SWE-agent <a name="speedup"></a>
!!! tip "Speed up in v0.6"