GithubHelp home page GithubHelp logo

jmanhype / sweep Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sweepai/sweep

1.0 0.0 0.0 1.88 MB

Sweep is an AI junior developer

Home Page: https://sweep.dev

License: Other

Shell 0.10% Ruby 0.02% Python 60.73% TypeScript 10.46% Jupyter Notebook 28.69%

sweep's Introduction

Bug Reports & Feature Requests ⟶  Code Changes

Landing Page Docs PyPI

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.

sweep.mp4

🌠 Features

  • Automatic interactive bug fixes & feature development
  • PR auto self-review + comment handling (effectively Reflexion)
  • Address developer comments after PR is created using PR replies & code comments
  • Code snippets embedding-based semantic & popularity search (🔍 Rebuilding our Search Engine in a Day)
  • Chain-of-Thought retrieval using GPT Functions
  • 🎊 New: Sweep Chat, a local interface for Sweep (see below)

🚀 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.

  1. Install Sweep GitHub app to desired repos

  2. Run pip install sweepai && sweep. Note that you need python 3.10 or greater.

  3. 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.

  4. 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.

  1. git clone https://github.com/sweepai/sweep && poetry install
  2. python sweepai/app/cli.py. Note that you need python 3.10 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.

  1. Add the Sweep GitHub app to desired repos
  2. Create new issue in repo, like "Sweep: Write tests"
  3. "👀" means it is taking a look, and it will generate the desired code
  4. "🚀" means the bot has finished its job and created a PR

🤝 Contributing

Contributions are welcome and greatly appreciated! For detailed guidelines on how to contribute, please see the CONTRIBUTING.md file. In essence, you'll need to fork the repository, create a new branch for your feature or bug fix, commit your changes, and open a pull request. 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
  • Gradio for Sweep Chat

🗺️ Roadmap

We're currently working on responding to linters and external search. For more, 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!

sweep's People

Stargazers

 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.