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: Minor doc improvements

Kilian Lieret5a9f697b6554
diff --git a/docs/background/iat.md b/docs/background/iat.md
index c6e56f37..aea92507 100644
--- a/docs/background/iat.md
+++ b/docs/background/iat.md
@@ -1,6 +1,6 @@
# Interactive Agent Tools (IATs)
-Interactive Agent Tools were first developed as part of our <span class="enigma">[EnIGMA](../../background#enigma)</span> project, but are compatible with all uses of SWE-agent.
+Interactive Agent Tools were first developed as part of our <span class="enigma">[EnIGMA](../background/index.md#enigma)</span> project, but are compatible with all uses of SWE-agent.
This page focuses on their usage for capture the flag (CTF) challenges.
Tools useful for debugging (`gdb`, `radare2`), remote server interaction (`netcat`, `socat`) and penetration testing (`metasploit`) are widely used during CTF problem-solving and by cybersecurity experts. These tools are all interactive, i.e., they wait for user input, evaluate it, and print the results (read-eval-print loop, REPL).
diff --git a/docs/background/index.md b/docs/background/index.md
index 74fa9737..e92aa8e4 100644
--- a/docs/background/index.md
+++ b/docs/background/index.md
@@ -33,11 +33,11 @@ If you found this work helpful, please consider using the following citation:
}
```
-## <span class="enigma">EnIGMA</span> <a name="enigma"></a>
+## SWE-agent <span class="enigma">EnIGMA</span> <a name="enigma"></a>
-<span class="enigma">EnIGMA</span> (Enhanced Interactive Generative Model Agent) is an LM agent built on top of SWE-agent for solving Capture The Flag (CTF) cybersecurity challenges.
+SWE-agent <span class="enigma">EnIGMA</span> (Enhanced Interactive Generative Model Agent) adds advanced **offensive cybersecurity capabilities**.
-On [NYU CTF benchmark](https://github.com/NYU-LLM-CTF/LLM_CTF_Database), EnIGMA solves **13.5%** of challenges, achieving the state-of-the-art performance on the full test set of 200 CTF challenges (leaderboard), **surpassing previous agents by more than 3x** ([leaderboard](https://enigma-agent.github.io/#leaderboard)).
+On [NYU CTF benchmark](https://github.com/NYU-LLM-CTF/LLM_CTF_Database), EnIGMA solves **13.5%** of the capture the flag (CTF) challenges, achieving the state-of-the-art performance on the full test set of 200 challenges (leaderboard), **surpassing previous agents by more than 3x** ([leaderboard](https://enigma-agent.github.io/#leaderboard)).
We accomplish our results by extending the [🤖 ACIs](../background/aci.md) first introduced in SWE-agent, to the cybersecurity domain. We establish the novel [**:gear: Interactive Agent Tools** (IATs)](iat.md) concept, which enables our agent to use interactive tools such as a debugger, in a multiprocess way such that the agent still has access to the main shell.
diff --git a/docs/index.md b/docs/index.md
index 10206081..2549bf45 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -3,9 +3,9 @@
![SWE-agent banner](assets/readme_assets/swe-agent-banner.png)
SWE-agent turns LMs (e.g. GPT-4) into agents that can
-[fix issues in real GitHub repositories](background#swe-agent),
-[solve coding challenges](usage/coding_challenges.md), and
-[solve capture the flag challenges](background#enigma) (<span class="enigma">EnIGMA</span> mode).
+[🐛 fix issues in real GitHub repositories](background#swe-agent),
+[⛳️ solve coding challenges](usage/coding_challenges.md), and
+[🔥 crack offensive cybersecurity challenges](background#enigma) (<span class="enigma">EnIGMA</span> mode).
<div class="grid cards" markdown>
@@ -22,7 +22,7 @@ SWE-agent turns LMs (e.g. GPT-4) into agents that can
---
- <span class="enigma">EnIGMA</span> turns SWE-agent to a cybersecurity expert that can solve Capture The Flag (CTF) challenges.
+ <span class="enigma">EnIGMA</span> turns SWE-agent into an offensive cybersecurity expert.
[:octicons-arrow-right-24: Learn more](background/index.md#enigma)
@@ -30,7 +30,7 @@ SWE-agent turns LMs (e.g. GPT-4) into agents that can
---
- We provide three different ways to get started, including running installation-free in your browser.
+ Three different ways to get started, including running installation-free in your browser.
[:octicons-arrow-right-24: Get started](installation/index.md)
@@ -47,7 +47,7 @@ SWE-agent turns LMs (e.g. GPT-4) into agents that can
---
- See what's new in SWE-agent
+ See what's new in SWE-agent.
[:octicons-arrow-right-24: Read the changelog](installation/changelog.md)
diff --git a/docs/overrides/main.html b/docs/overrides/main.html
index 6b1ab564..1b3546ad 100644
--- a/docs/overrides/main.html
+++ b/docs/overrides/main.html
@@ -3,7 +3,7 @@
<!-- This link won't work in local preview -->
<a href="SWE-agent/background#enigma" class="clickable-banner">
<div>
- News: <span class="enigma">EniGMA</span> uses SWE-agent to solve cybersecurity and CTF challanges to achieve <span class="enigma">3x previous SOTA!</span>
+ News: SWE-agent <span class="enigma">EniGMA</span> solves cybersecurity and CTF challanges to achieve <span class="enigma">3x improvement over previous SOTA!</span>
</div>
</a>
{% endblock %}
diff --git a/docs/usage/benchmarking.md b/docs/usage/benchmarking.md
index 60176679..26b1a83d 100644
--- a/docs/usage/benchmarking.md
+++ b/docs/usage/benchmarking.md
@@ -1,6 +1,10 @@
# Benchmarking
-There are two steps to the SWE-agent pipeline. First SWE-agent takes an input GitHub issue and returns a pull request that attempts to fix it. We call that step *inference*. The second step (currently, only available for issues in the SWE-bench benchmark) is to *evaluate* the pull request to verify that it has indeed fixed the issue.
+!!! note "Scope"
+ This page talks about benchmarking on SWE-bench to measure the software engineering capabilities of SWE-agent.
+ Benchmarking for the other modes (programming challenges, cybersecurity) are coming soon.
+
+There are two steps to the SWE-agent/SWE-bench pipeline. First SWE-agent takes an input GitHub issue and returns a pull request that attempts to fix it. We call that step *inference*. The second step (currently only available for issues in the SWE-bench benchmark) is to *evaluate* the pull request to verify that it has indeed fixed the issue.
!!! warning "Architectures"
At this moment, there are known issues with a small number of repositories that don't install properly for `arm64` / `aarch64` architecture computers. We're working on a fix, but if you'd like to run and evaluate on the entirety of SWE-bench, the easiest way is by using an `x86` machine.
diff --git a/docs/usage/enigma.md b/docs/usage/enigma.md
index 8c0f018e..f69bbc35 100644
--- a/docs/usage/enigma.md
+++ b/docs/usage/enigma.md
@@ -1,6 +1,6 @@
-# EnIGMA Tutorial
+# <span class="enigma">EnIGMA</span> Tutorial
-This tutorial walks you through running EnIGMA from the command-line.
+This tutorial walks you through running <span class="enigma">[EnIGMA](../background/index.md#enigma)</span> from the command-line.
It is based on basic knowledge of the command-line of SWE-agent that is covered [here](cl_tutorial.md).
This tutorial focuses on using EnIGMA as a tool to solve individual CTF challenges.
@@ -52,15 +52,12 @@ Here,
* `--config_file` includes settings such as the prompts. Changing the config file is the easiest way to get started with modifying EnIGMA (more advanced options are discussed [here](../config/config.md)).
* `--per_instance_cost_limit` limits the total inference cost to $2 (default is $3).
-!!! tip "All options"
- Run `python run.py --help` to see all available options for `run.py`. This tutorial will only cover a subset of options.
-
!!! tip "Running more than once"
* The complete details of the run are saved as a "trajectory" file (more about them [here](trajectories.md)). They can also be turned into new [demonstrations](../config/demonstrations.md).
* If you run the same command more than once, you will find that SWE-agent aborts with ` Skipping existing trajectory`. You can either remove the trajectory from the warning message, or add the `--skip_existing=False` flag.
- * If you solve multiple challenges from the same in the same environment, you can specify the
- `--cache_task_images` flag. This will create a persistent docker image with the initialized environment
- required for the problem.
+
+!!! tip "Next reading"
+ There are plenty of options to configure and speed up SWE-agent EnIGMA. Read more about them in the [SWE-agent tutorial](cl_tutorial.md).
## Specifying the challenge