Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch1 #4120

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Patch1 #4120

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
}
}
114 changes: 4 additions & 110 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,118 +1,12 @@
<p align="center">
<img src="https://github.com/sweepai/sweep/assets/26889185/39d500fc-9276-402c-9ec7-3e61f57ad233">
</p>
<p align="center">
<i>Github Issues ⟶&nbsp; Pull Requests! </i>
</p>
<p align="center">
<a href="https://github.com/apps/sweep-ai">
<img alt="Install Sweep Github App" src="https://img.shields.io/badge/Install Sweep-GitHub App-purple?link=https://github.com/apps/sweep-ai">
</a>
<a href="https://community.sweep.dev/">
<img src="https://dcbadge.vercel.app/api/server/sweep?style=flat" />
</a>
<a href="https://hub.docker.com/r/sweepai/sweep">
<img alt="Docker Pulls" src="https://img.shields.io/docker/pulls/sweepai/sweep" />
</a>
<a href="https://docs.sweep.dev/">
<img alt="Docs" src="https://img.shields.io/badge/Docs-docs.sweep.dev-red?link=https%3A%2F%2Fdocs.sweep.dev">
</a>
<a href="https://github.com/sweepai/sweep">
<img src="https://img.shields.io/github/commit-activity/m/sweepai/sweep" />
</a>
<a href="https://pypi.org/project/sweepai">
<img src="https://badge.fury.io/py/sweepai.svg" alt="PyPI version" height="18">
</a>
<a href="https://hub.docker.com/r/sweepai/sweep">
<img alt="Self Host Sweep Docker Image" src="https://img.shields.io/badge/Host Sweep-Docker Image-2496ED?link=https://hub.docker.com/r/sweepai/sweep">
</a>
<a href="https://github.com/sweepai/sweep/actions/workflows/unittest.yml">
<img src="https://github.com/sweepai/sweep/actions/workflows/unittest.yml/badge.svg" alt="Python Unit Tests">
</a>
</p>

---

<b>Sweep</b> 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](https://github.com/apps/sweep-ai) and open a Github Issue like: `Sweep: Add typehints to src/utils/github_utils.py` and Sweep will:
1. Search through your codebase to find the dependencies of github_utils.py
2. Modify the code to add typehints
3. **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](https://docs.sweep.dev/usage/config#tips-for-writing-rules)

[![Sweep Youtube Tutorial](docs/public/assets/youtube_thumbnail.png)](https://www.youtube.com/watch?v=GVEkDZmWw8E)


> [!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](https://docs.sweep.dev/usage/config#tips-for-writing-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**](https://github.com/apps/sweep-ai) to your desired repositories.

* For more details, visit our [installation page](https://docs.sweep.dev/getting-started).

* 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
<b>Sweep</b> is an AI junior developer that turns bugs and feature requests into code changes. :robot:

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!
Hi everyone!

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
Every user receives unlimited GPT-3.5 tickets and 5 GPT-4 tickets per month. For professionals who want to try unlimited GPT-4 tickets and priority support, you can get a one week free trial of [Sweep Pro](https://buy.stripe.com/00g5npeT71H2gzCfZ8).

For more GPT-4 tickets visit <a href='https://buy.stripe.com/00g3fh7qF85q0AE14d'>our payment portal</a>!

You can get enterprise support by [contacting us](https://form.typeform.com/to/wliuvyWE).

---

> [!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](https://github.com/sweepai/sweep#development). For detailed guidelines on how to contribute, please see the [CONTRIBUTING.md](CONTRIBUTING.md) file.


<h2 align="center">
Contributors
</h2>
<p align="center">
Thank you for your contribution!
</p>
<p align="center">
<a href="https://github.com/sweepai/sweep/graphs/contributors">
<img src="https://contrib.rocks/image?repo=sweepai/sweep" />
</a>
</p>
<p align="center">
and, of course, Sweep!
</p>
Thank you for all of the support so far.
We've moved to a new frontend-based app that is available [via request here](https://form.typeform.com/to/wliuvyWE).