docs/installation/migration.md
Welcome to SWE-agent 1.0! So much new stuff! Here's a quick rundown of the cool new things you can do:
litellm (see models).Agent class is now much easier to modify.If you're familiar with the old SWE-agent, here are the main changes you need to be aware of.
!!! tip "SWE-agent 0.7"
The old SWE-agent before the major overhaul is still preserved on the v0.7 branch.
In particular, this is still the version to use for the SWE-agent EnIGMA configuration.
You can also switch to the old documentation using the dropdown in the top menu bar.
run.py script, we now have a central sweagent entry point that you can call after installing the package.
This should be much more convenient!run.py command, we now have several subcommands: sweagent run to run over single issues, sweagent run-batch to run over a whole batch of issues, and various utility commands. Run sweagent --help to see all options. Splitting up both commands made it easier to make both use cases more convenient and flexible.--agent.model.name=gpt-4o.
The configuration files have also been updated to reflect this.We removed the complicated mess of environment setup options (conda environments, pip, docker images, etc.).
Instead, you now always start from a docker image of your choice and we recommend that this should ship with all the dependencies you need.
However, you can also execute additional commands before starting the agent with EnvironmentConfig.post_startup_commands.
Additionally, every tool bundle can include a setup.sh script that will be executed, allowing to e.g., install flake8 if needed by the tools.
tools/ directory. You can mix and match tools to your liking.The codebase has been nearly rewritten from scratch and both more powerful and more flexible.
SWEEnv class is basically gone and only is a small wrapper around a swerex runtimeAgent class also has gotten a lot simpler. It also delegates a lot of tool/execution logic to the new Tools class.