Giter VIP home page Giter VIP logo

swept's Introduction

Bug Reports & Feature Requests ⟢  Code Changes

Landing Page Docs PyPI

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:

  1. πŸ” reads your codebase
  2. πŸ“ plans the changes
  3. ⚑writes a pull request with code⚑

See highlights at https://docs.sweep.dev/examples.

sweep.mp4

🌠 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)
  • 🎊 New: Enhanced file handling with streaming logic in modify_file, allowing for larger files to be processed.

πŸš€ 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:

  1. Add the Sweep GitHub app to your desired repos
  2. Read about recipes for best use cases.
  3. 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"
  4. 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! Remember to put the "Sweep:" prefix.
    • πŸ’‘ 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

  1. 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.
  2. 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.
  3. Choose a repository from the dropdown at the top (the Github app must be installed to this repository).

    • ⚑ Start chatting with Sweep Chat! ⚑

Screenshot_20230711_015033

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.

  1. git clone https://github.com/sweepai/sweep && poetry install
  2. python sweepai/app/cli.py. Note that you need python 3.10+.

πŸ’° Pricing

  • We charge $240/month for 120 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

Star History Chart

Consider starring us if you're using Sweep so more people hear about us!

Contributors

Thank you for your contribution!

and, of course, Sweep!

swept's People

Contributors

kevinlu1248 avatar wwzeng1 avatar lukejagg avatar sweep-nightly[bot] avatar asc11cat avatar sweep-ai[bot] avatar jodyz0203 avatar eltociear avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.