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]

edited blocklist

Talor Abramovich2bffd620d171
diff --git a/config/ctf_crypto.yaml b/config/ctf_crypto.yaml
index c091dc14..46f922aa 100644
--- a/config/ctf_crypto.yaml
+++ b/config/ctf_crypto.yaml
@@ -113,6 +113,16 @@ command_files:
- config/commands/forfeit.sh
parse_command: ParseCommandDetailed
history_processor: Last5Observations
+blocklist:
+- vim
+- vi
+- emacs
+- nano
+- nohup
+- gdb
+blocklist_error_template: |
+ Interactive operation '{name}' is not supported by this environment.
+ Please consider using one of the interactive commands available to you in this environment.
demonstration_template: |
Here is a demonstration of how to correctly accomplish this task.
It is included to show you how to correctly use the interface.
diff --git a/config/ctf_forensics.yaml b/config/ctf_forensics.yaml
index b48bb3e0..198e6804 100644
--- a/config/ctf_forensics.yaml
+++ b/config/ctf_forensics.yaml
@@ -113,6 +113,16 @@ command_files:
- config/commands/forfeit.sh
parse_command: ParseCommandDetailed
history_processor: Last5Observations
+blocklist:
+- vim
+- vi
+- emacs
+- nano
+- nohup
+- gdb
+blocklist_error_template: |
+ Interactive operation '{name}' is not supported by this environment.
+ Please consider using one of the interactive commands available to you in this environment.
demonstration_template: |
Here is a demonstration of how to correctly accomplish this task.
It is included to show you how to correctly use the interface.
diff --git a/config/ctf_misc.yaml b/config/ctf_misc.yaml
index 2c659709..d577af07 100644
--- a/config/ctf_misc.yaml
+++ b/config/ctf_misc.yaml
@@ -113,6 +113,16 @@ command_files:
- config/commands/forfeit.sh
parse_command: ParseCommandDetailed
history_processor: Last5Observations
+blocklist:
+- vim
+- vi
+- emacs
+- nano
+- nohup
+- gdb
+blocklist_error_template: |
+ Interactive operation '{name}' is not supported by this environment.
+ Please consider using one of the interactive commands available to you in this environment.
demonstration_template: |
Here is a demonstration of how to correctly accomplish this task.
It is included to show you how to correctly use the interface.
diff --git a/config/ctf_pwn.yaml b/config/ctf_pwn.yaml
index c894cfbf..f1ed14f9 100644
--- a/config/ctf_pwn.yaml
+++ b/config/ctf_pwn.yaml
@@ -113,6 +113,16 @@ command_files:
- config/commands/forfeit.sh
parse_command: ParseCommandDetailed
history_processor: Last5Observations
+blocklist:
+- vim
+- vi
+- emacs
+- nano
+- nohup
+- gdb
+blocklist_error_template: |
+ Interactive operation '{name}' is not supported by this environment.
+ Please consider using one of the interactive commands available to you in this environment.
demonstration_template: |
Here is a demonstration of how to correctly accomplish this task.
It is included to show you how to correctly use the interface.
diff --git a/config/ctf_rev.yaml b/config/ctf_rev.yaml
index eea26946..dde0b3f6 100644
--- a/config/ctf_rev.yaml
+++ b/config/ctf_rev.yaml
@@ -113,6 +113,16 @@ command_files:
- config/commands/forfeit.sh
parse_command: ParseCommandDetailed
history_processor: Last5Observations
+blocklist:
+- vim
+- vi
+- emacs
+- nano
+- nohup
+- gdb
+blocklist_error_template: |
+ Interactive operation '{name}' is not supported by this environment.
+ Please consider using one of the interactive commands available to you in this environment.
demonstration_template: |
Here is a demonstration of how to correctly accomplish this task.
It is included to show you how to correctly use the interface.
diff --git a/config/ctf_web.yaml b/config/ctf_web.yaml
index f0d36c1e..156d460d 100644
--- a/config/ctf_web.yaml
+++ b/config/ctf_web.yaml
@@ -113,6 +113,16 @@ command_files:
- config/commands/forfeit.sh
parse_command: ParseCommandDetailed
history_processor: Last5Observations
+blocklist:
+- vim
+- vi
+- emacs
+- nano
+- nohup
+- gdb
+blocklist_error_template: |
+ Interactive operation '{name}' is not supported by this environment.
+ Please consider using one of the interactive commands available to you in this environment.
demonstration_template: |
Here is a demonstration of how to correctly accomplish this task.
It is included to show you how to correctly use the interface.
diff --git a/config/default_ctf.yaml b/config/default_ctf.yaml
index 69faccc3..0b62dff1 100644
--- a/config/default_ctf.yaml
+++ b/config/default_ctf.yaml
@@ -118,3 +118,13 @@ command_files:
- config/commands/forfeit.sh
parse_command: ParseCommandDetailed
history_processor: Last5Observations
+blocklist:
+- vim
+- vi
+- emacs
+- nano
+- nohup
+- gdb
+blocklist_error_template: |
+ Interactive operation '{name}' is not supported by this environment.
+ Please consider using one of the interactive commands available to you in this environment.