Sweep fixes GitHub issues
Project description
Github Issues ⟶ Pull Requests!
Sweep is an AI junior developer that turns bugs and feature requests into code changes. Sweep automatically handles devex improvements like adding typehints/improving test coverage. :robot:
Install Sweep and open a Github Issue like: Sweep: Add typehints to src/utils/github_utils.py
and Sweep will:
- Search through your codebase to find the dependencies of github_utils.py
- Modify the code to add typehints
- Run and debug your code to write a Pull Request
Features
- Turns issues directly into pull requests (without an IDE)
- Addresses developer replies & comments on its PRs
- Understands your codebase using the dependency graph, text, and vector search.
- Runs your unit tests and autoformatters to validate generated code.
- Stack small fixes into your PR by applying Sweep Rules
[!NOTE]
What makes Sweep Different
We've been addressing code modification using LLMs for a while. We found and are fixing a lot of issues.
- Modifying Code - LLMs like GPT4 don't have a great way to automatically modify code. We heavily experiment on different ways to modify code so you don't have to. We've spent a really long time working on this - check out https://docs.sweep.dev/blogs/gpt-4-modification!
- Planning Code Changes - Retrieval-Augmented-Generation isn't enough. We wrote a code chunker that's used fairly heavily, and we're constantly improving this: https://docs.sweep.dev/blogs/chunking-improvements
- Sweep runs your Github Actions, catching bugs and making sure each line of new code has been properly validated!
- Sweep uses it's sandbox to format your code, and uses Rules to perform other changes like adding typehints, or any other small chores!
Getting Started
GitHub App
Install Sweep by adding the Sweep GitHub App to your desired repositories.
-
For more details, visit our installation page.
-
Note: Sweep only considers issues with the "Sweep:" title on creation and not on update. If you want Sweep to pick up an existing issue, you can add the "Sweep" label to the issue.
-
We focus on Python but support all languages GPT-4 can write. This includes JS/TS, Rust, Go, Java, C# and C++.
Story
We used to work in large, messy repositories, and we noticed how complex the code could get without regular refactors and unit tests. We realized that AI could handle these chores for us, so we built Sweep!
Unlike existing AI solutions, Sweep can solve entire tickets and can be parallelized + asynchronous: developers can spin up 10 tickets and Sweep will address them all at once.
Pricing
For professionals who want to try unlimited GPT-4 tickets and priority support, you can get a one week free trial of Sweep Pro.
For more GPT-4 tickets visit our payment portal!
You can get enterprise support by contacting us.
[!WARNING]
Limitations of Sweep
- Large-scale refactors: > 10 files or > 400 lines of code changes * e.g. Refactor the entire codebase from TensorFlow to PyTorch * If this is a use case you're looking forward to, let us know!
- Editing images and other non-text assets * e.g. Create favicons for our landing page * We can, however, read images.
Contributing
Contributions are welcome and greatly appreciated! To get set up, see Development. For detailed guidelines on how to contribute, please see the CONTRIBUTING.md file.
Contributors
Thank you for your contribution!
and, of course, Sweep!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sweepai-3.0.1.tar.gz
.
File metadata
- Download URL: sweepai-3.0.1.tar.gz
- Upload date:
- Size: 316.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 826c5ad12b2ec4e06802f48d6bfe39a5f6bedab2f2a6e20488d41b0c5f2cd60e |
|
MD5 | 9a47123c0f263191b7ded786a6aa0300 |
|
BLAKE2b-256 | a54ed816b06ff034084bb3193df30f16a4f748fc19ac7f35349fd6bf1cbd874a |
File details
Details for the file sweepai-3.0.1-py3-none-any.whl
.
File metadata
- Download URL: sweepai-3.0.1-py3-none-any.whl
- Upload date:
- Size: 355.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98bb4331cbd1117059798bb98e6b4e7fabc0488d28481f02c6d41676188efa22 |
|
MD5 | 77562c5c4ac921ef4ac268a100b27ab4 |
|
BLAKE2b-256 | c80c90a726b258a59c6f76f6b5b8220601da1e3342715ec41fed66a2126cf48c |