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 comments2. 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 commits5. 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.