Skip to content

Repository files navigation

AutoPilot 🤖

Your team talks in Slack. AutoPilot writes the code and opens the PR.

How it works

  1. Team discusses a bug or feature in a Slack thread
  2. AutoPilot reads the thread and classifies the intent
  3. If actionable, it reads the relevant files from your GitHub repo
  4. Gemini 3.1 Pro writes the fix
  5. AutoPilot opens a PR on GitHub
  6. Reports back in the same Slack thread with the PR link

Setup

1. Install dependencies

npx create-next-app@latest autopilot --typescript --tailwind --app --yes
cd autopilot
npm install @google/generative-ai @supabase/supabase-js @slack/web-api octokit

2. Set up Supabase

  • Create a new Supabase project
  • Run supabase/schema.sql in the SQL editor
  • Copy your project URL and service role key

3. Set up Slack

  • Create a new Slack app at api.slack.com
  • Enable Event Subscriptions
  • Set request URL to: https://your-domain.vercel.app/api/slack
  • Subscribe to message.channels and message.groups events
  • Add bot scopes: chat:write, channels:history, groups:history
  • Install to workspace and copy bot token + signing secret

4. Set up GitHub

  • Create a personal access token with repo scope
  • Set GITHUB_OWNER and GITHUB_REPO to your target repository

5. Add environment variables

Copy .env.local.example to .env.local and fill in all values.

6. Deploy to Vercel

vercel deploy

Add all environment variables in the Vercel dashboard.

Dashboard

Visit your deployed URL to see all agent runs, PRs opened, and activity history.

Safety

AutoPilot never merges PRs automatically. It always opens a PR for human review. It only acts when confidence is above 80%. When unsure, it posts a message asking for human help.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages