Sweep software chores
Project description
Spend time reviewing code generated by AI, not writing it.
🌐 Website • 📚 Docs • 📢 Discord
Sweep allows you to create and review GitHub issues with ease. Simply describe any issue and Sweep will do the rest. It will plan out what needs to be done, what changes to make, and write the changes to a PR.
Supported languages: Python, Javascript/Typescript, Rust, Go, Java/C#, C++ and anything else GPT-4 supports
✨ Demo
For the best experience, install Sweep to one of your repos and see the magic happen.
🚀 Getting Started
🖥️ Sweep Chat
Sweep Chat allows you to interact with Sweep locally and will sync with GitHub. You can plan out your changes with Sweep, and then Sweep can create a pull request for you.
-
Install Sweep GitHub app to desired repos
-
Run
pip install sweepai && sweep
. Note that you need python 3.11 or greater. -
This should spin up a GitHub auth flow in your browser. Copy-paste the 🔵 blue 8-digit code from your terminal into the page. Then wait a few seconds and it should spin up Sweep Chat. You should only need to do the auth once.
-
Pick a repo from the dropdown at the top (the Github app must be installed on this repo). Then start chatting with Sweep Chat. Relevant searched files will show up on the right. Sweep Chat can make PRs if you ask it to create a PR.
💡 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.11 or greater.
✨ 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.
- Add the Sweep GitHub app to desired repos
- Create new issue in repo, like "Sweep: Write tests"
- "👀" means it is taking a look, and it will generate the desired code
- "🚀" means the bot has finished its job and created a PR
For more detailed docs, see 🚀 Quickstart.
📘 Story
We were frustrated by small tickets, like simple bug fixes, annoying refactors, and small features, each task requiring 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: developers can spin up 10 tickets and Sweep will address them all at once.
📚 The Stack
- GPT-4 32k 0613 (default) / Claude v1.3 100k
- ActiveLoop DeepLake for Vector DB with MiniLM L12 as our embeddings model
- Modal Labs for infra + deployment
🌠 Features
- Automatic feature development
- PR auto self-review + comment handling (effectively Reflexion)
- Address developer comments after PR is created
- Code snippets embedding-based search
- Chain-of-Thought retrieval using GPT Functions
🗺️ Roadmap
We're currently working on responding to linters and external search. For more, see 🗺️ Roadmap.
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.2.3.tar.gz
.
File metadata
- Download URL: sweepai-0.2.3.tar.gz
- Upload date:
- Size: 58.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 462a66cc97b7f026ab44b71ceafb56525c1d8733e29d123982f3857205b96a5a |
|
MD5 | 1cde6d7cb0c364d807ccf72b33f643df |
|
BLAKE2b-256 | 9b8fa1ef2d8747cd17242e1c17d54505db2636b7cf1eb0ff39793b97c007a33f |
File details
Details for the file sweepai-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: sweepai-0.2.3-py3-none-any.whl
- Upload date:
- Size: 68.3 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 | 6c650ad240e427ae8b7ac50d77e866023c74ab6345e5ca10537d43335850fc5e |
|
MD5 | 2e58cc3b6273f21b87c8df7d51cbea6a |
|
BLAKE2b-256 | 3dc5fd3fbe98957b2bc7574b9f85197459e5c92786ddc5fc6052c8fcdaf38fe0 |