Sweep software chores
Project description
Bug Reports & Feature Requests ⟶ Code Changes
Sweep is an AI junior developer that transforms bug reports & feature requests into code changes.
Describe bugs, small features, and refactors like you would to a junior developer, and Sweep:
- 🔍 reads your codebase
- 📝 plans the changes
- ⚡writes a pull request with code⚡
See highlights at https://docs.sweep.dev/examples.
🌠 Features
- 🔧 Turns issues directly into pull requests (without an IDE)
- 👀 Addresses developer replies & comments on its PRs
- 🕵️♂️ Uses embedding-based code search, with popularity reranking for repository-level code understanding (🔍 Rebuilding our Search Engine in a Day)
- 🎊 New: Fixes PRs based on Github Actions feedback
- 🎊 New: Sweep Chat, a local interface for Sweep (see below)
🚀 Getting Started
✨ Sweep Github App
Setting up Sweep is as simple as adding the GitHub bot to a repo, then creating an issue for the bot to address. Here are the steps to get started:
- Add the Sweep GitHub app to your desired repos
- Read about recipes for best use cases.
- Create a new issue in your repo. The issue should describe the problem or feature you want Sweep to address. For example, you could write "Sweep: In sweepai/app/ui.py use an os-agnostic temp directory"
- Respond with a message like "Sweep: use a different package instead" to have Sweep retry the issue or pull request. You can also comment on the code for minor changes! 💡 Hint: commenting "revert" reverts all edits in a file.
We support all languages GPT4 supports, including Python, Typescript, Rust, Go, Java, C# and C++.
🗨️ Sweep Chat
Sweep Chat allows you to interact with Sweep and GitHub locally. You can collaborate on the plan with Sweep, and then have it create the pull request for you. Here's how to use Sweep Chat:
Prerequisites: Install Sweep GitHub app to your repository
-
Run
pip3 install sweepai && sweep
. Note that you need python 3.10+.- Alternatively run
pip3 install --force-reinstall sweepai && sweep
if the previous command fails. - This runs GitHub authentication in your browser.
- Alternatively run
-
Copy the 🔵 blue 8-digit code from your terminal into the page. You should only need to do the authentication once.
- Wait a few seconds and Sweep Chat will start.
-
Choose a repository from the dropdown at the top (the Github app must be installed to this repository).
- ⚡ Start chatting with Sweep Chat! ⚡
Tips:
- 🔍 Relevant searched files will show up on the right.
- 🔘 Sweep Chat creates PRs when the "Create PR" button is clicked.
- 💡 You can force dark mode by going to http://127.0.0.1:7861/?__theme=dark.
From Source
If you want the nightly build and or if the latest build has issues.
git clone https://github.com/sweepai/sweep && poetry install
python sweepai/app/cli.py
. Note that you need python 3.10+.
💰 Pricing
- We charge $120/month for 60 GPT4 tickets per month.
- For unpaid users, we offer 5 free GPT4 tickets per month.
- We also offer unlimited GPT3.5 tickets.
🤝 Contributing
Contributions are welcome and greatly appreciated! For detailed guidelines on how to contribute, please see the CONTRIBUTING.md file. For more detailed docs, see 🚀 Quickstart.
📘 Story
We were frustrated by small tickets, like simple bug fixes, annoying refactors, and small features. Each task required us to open our IDE to fix simple bugs. So we decided to leverage the capabilities of ChatGPT to address this directly in GitHub.
Unlike existing AI solutions, this can solve entire tickets and can be parallelized + asynchronous: developers can spin up 10 tickets and Sweep will address them all at once.
📚 The Stack
- GPT-4 32k 0613 (default)
- ActiveLoop DeepLake for Vector DB with MiniLM L12 as our embeddings model
- Modal Labs for infra + deployment
- Gradio for Sweep Chat
🗺️ Roadmap
See 🗺️ Roadmap
⭐ Star History
Consider starring us if you're using Sweep so more people hear about us!
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-0.5.1.tar.gz
.
File metadata
- Download URL: sweepai-0.5.1.tar.gz
- Upload date:
- Size: 72.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd2c7a637b9f7df368ec8a63b642ece92090267483304424a4fcf87a2c84ee76 |
|
MD5 | 6099a4f21789ad03b3ca348bd5f48073 |
|
BLAKE2b-256 | bb67d3e9ed58e5c629bc6840c0d20e94e52fc4fd799452a4ab8605e4918a8061 |
File details
Details for the file sweepai-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: sweepai-0.5.1-py3-none-any.whl
- Upload date:
- Size: 83.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | edc41a4d0180c538dac68171748c1ef5825f47d807249701962290d51d35d393 |
|
MD5 | b6ca5b2002b3ef2e2bc2b4685502b215 |
|
BLAKE2b-256 | 7458ed7de421afe130a0eeec9debef36ff744e82fabc688cb29f1a29c8c0fc57 |