![Bug hunting with Amazon Bedrock and SWE-Agent π¨βπ»](https://assets.community.aws/a/2g6DixSRM07DVsM753S97Y3PXLN/Firs.webp)
Bug hunting with Amazon Bedrock and SWE-Agent π¨βπ»
Use Amazon Bedrock with SWE-Agent to create your own software engineering agent that can fix real-life bugs and issues in GitHub repositories.
JoΓ£o Galego
Amazon Employee
Published May 6, 2024
I'm very pleased to announce that starting with the
0.3.0
release you can now run SWE-Agent using Amazon Bedrock β°οΈπβ As of May 2024, Amazon Bedrock support in SWE-Agent only covers Anthropic Claude models.
![](https://assets.community.aws/a/2g5o6wVu4AbvG6Lirw9MJbzqW6z/swe-.webp)
SWE-Agent is an open source project developed and maintained by the Princeton NLP group that turns language models into software engineering agents that can fix real-life bugs and issues in GitHub repositories.
Based on a Agent-Computer Interface (ACI) paradigm, SWE-Agent is able to resolve ~12.29% of issues in the SWE-Bench dataset and takes just a few minutes to run.
0a/ Enable access to Anthropicβs Claude models via Amazon Bedrock
π‘ Please refer to the Amazon Bedrock User Guide (Set up > Model access) for more information on how to request model access.
![](https://assets.community.aws/a/2g6GIXBWbxzxdlkv9OJlR09CyzV/bedr.webp)
0b/ Install Docker π³
1/ Set up AWS credentials
π For security reasons, SWE-Agent will not look inside thekeys.cfg
file for AWS credentials.
2/ Pull the SWE-Agent image
3/ Run SWE-Agent
βοΈ Use the--temperature
and--top_p
options to have more control over the model output.
Among other things, SWE-Agent will save the thought-action-observation steps generated by the agent when trying to solve the issue inside a JSON-formatted trajectory file, which you can visualize with the inspector tool:
![](https://assets.community.aws/a/2g5qhslucomH1hlsp48UYY977xo/swe_.webp)
Depending on the model selected and the inference parameters, SWE-Agent can even create a patch file that you can apply directly to a local repository:
![](https://assets.community.aws/a/2g6C10URvwcx7b5zm8p8YtlGnmd/swe-.webp)
Try it out and let me know what you think in the comments section below π
Β
Β
Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.