ScriptsApr 7, 2026·2 min read

Sweep — AI Junior Developer for GitHub

AI-powered GitHub bot that turns issues into pull requests. Sweep reads your codebase, plans changes, writes code, and handles review feedback automatically.

SC
Script Depot · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

  1. Install the GitHub App: github.com/apps/sweep-ai
  2. Create an issue with the prefix Sweep:
  3. Sweep reads your codebase, plans changes, and opens a PR
Issue title: Sweep: Add dark mode toggle to settings page
Issue body: Add a dark mode toggle in the user settings. Use the existing ThemeProvider.

What is Sweep?

Sweep is an AI-powered GitHub bot that turns issues into pull requests. When you create an issue prefixed with "Sweep:", it reads your entire codebase, plans the necessary changes, writes the code, and opens a PR — then iterates based on your review comments.

Answer-Ready: Sweep is an AI GitHub bot that converts issues into pull requests automatically. It reads your codebase, plans multi-file changes, writes code, runs tests, and responds to review comments. Works with any GitHub repository.

Best for: Teams wanting to automate routine coding tasks via GitHub issues. Works with: Any GitHub repository (public or private). Setup time: Under 2 minutes (GitHub App install).

Core Features

1. Issue-to-PR Pipeline

GitHub Issue "Sweep: ..."
  → Codebase analysis
  → Change plan (posted as comment)
  → Code changes across multiple files
  → PR with description and diff
  → Responds to review comments

2. Codebase Understanding

Sweep indexes your entire repo to understand:

  • Project structure and patterns
  • Import relationships
  • Naming conventions
  • Test patterns

3. Multi-File Changes

Unlike simple code generators, Sweep handles coordinated changes:

Sweep: Add user avatar upload
  → Modified: src/api/users.ts (new endpoint)
  → Modified: src/components/AvatarUpload.tsx (new component)
  → Modified: src/types/user.ts (updated interface)
  → Created: tests/avatar-upload.test.ts (new tests)

4. Review Comment Handling

Review comment: "Use presigned URLs instead of direct upload"
Sweep: Updates the implementation, pushes new commits

5. Configuration

# .sweep/config.yaml
description: "E-commerce platform using Next.js and Prisma"
rules:
  - "Always use TypeScript strict mode"
  - "Follow the existing error handling pattern in src/lib/errors.ts"
  - "Write tests for all new API endpoints"
blocked_dirs:
  - "vendor/"
  - "generated/"

Use Cases

Task Example Issue
Bug fixes "Sweep: Fix null pointer in user search"
Features "Sweep: Add CSV export to reports page"
Refactoring "Sweep: Convert class components to hooks"
Tests "Sweep: Add unit tests for auth module"
Docs "Sweep: Add JSDoc to all exported functions"

FAQ

Q: Is Sweep free? A: Free for public repos. Paid plans for private repos starting at $480/year.

Q: How accurate is it? A: Best for well-defined, scoped tasks. Complex architectural changes may need human guidance.

Q: Does it run tests? A: Yes, Sweep runs your CI pipeline and fixes failures when possible.

🙏

Source & Thanks

Created by Sweep AI. Licensed under AGPL-3.0.

sweepai/sweep — 7k+ stars

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets