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]
added binary file view command
Talor Abramoviche2595b94db7d
diff --git a/sweagent/environment/swe_env.py b/sweagent/environment/swe_env.pyindex b45e42e0..9d65d3ff 100644--- a/sweagent/environment/swe_env.py+++ b/sweagent/environment/swe_env.py@@ -531,7 +531,7 @@ class SWEEnv(gym.Env):self.reset_container()return observation, 0, True, infoexcept UnicodeError as e:- observation += "\nCOMMAND PRODUCED TOO MANY NON-UNICODE CHARACTERS. PLEASE TRY ANOTHER COMMAND."+ observation += "\nCOMMAND PRODUCED TOO MANY NON-UNICODE CHARACTERS. PLEASE TRY ANOTHER COMMAND.\nIF YOU WANT TO VIEW BINARY FILES, PLEASE USE `xxd` OR `hexdump` INSTEAD.\n"self.logger.error(f"Unicode error: {e}")except Exception:observation += "\nEXECUTION FAILED OR COMMAND MALFORMED"