setup_cursor_mode.sh 928 B

123456789101112131415161718
  1. #!/bin/bash
  2. pip install flake8
  3. # Cursor Mode from SWE-Bench
  4. # https://github.com/princeton-nlp/SWE-agent/blob/ca54d5556b9db4f4f2be21f09530ce69a72c0305/config/configs/default_sys-env_cursors_window100-detailed_cmd_format-last_5_history-1_demos.yaml#L108-L111
  5. echo 'source /opendevin/plugins/swe_agent_commands/_setup_cursor_mode_env.sh' >> ~/.bashrc
  6. # make _split_string (py) available
  7. echo 'export PATH=$PATH:/opendevin/plugins/swe_agent_commands' >> ~/.bashrc
  8. echo 'source /opendevin/plugins/swe_agent_commands/cursors_defaults.sh' >> ~/.bashrc
  9. echo 'source /opendevin/plugins/swe_agent_commands/cursors_edit_linting.sh' >> ~/.bashrc
  10. echo 'source /opendevin/plugins/swe_agent_commands/search.sh' >> ~/.bashrc
  11. echo 'export SWE_CMD_WORK_DIR="/opendevin/plugins/swe_agent_commands/workdir"' >> ~/.bashrc
  12. sudo mkdir -p /opendevin/plugins/swe_agent_commands/workdir
  13. sudo chmod 777 /opendevin/plugins/swe_agent_commands/workdir