Autopilot
Label a GitHub issue "agent" and agents carry it to a tested, reviewed, merged and released change, stopping only at the gates you choose.
With the autopilot plugins, a project's GitHub repository runs agents for you. Label an issue
agent and an agent writes the spec and the plan, builds it, writes tests, verifies every
acceptance criterion, reviews the change, opens a pull request, fixes CI, and merges and releases
it, as far as the autonomy level allows.
Autonomy levels
Picked when the project is created (--autonomy), saved in entapex.json.
| Level | Agents do | You do |
|---|---|---|
| Assisted | Everything up to an open pull request with passing checks | Review, merge and release |
| Autopilot with gates (default) | Merge when CI passes, publish the release | Approve the production deploy |
| Full autopilot | Everything, including production | Read the summary on the issue |
At every level, agents stop and ask before a migration that drops or rewrites data, deleting user data, changing secrets, billing or authentication settings, or the first Google Play upload.
The gates are GitHub's own, not promises in a prompt: branch protection requires the CI check
before anything merges (and an approving review at Assisted), and production deploys run in a
production environment that needs your approval at Autopilot with gates.
What runs where
| Workflow | When | What it does |
|---|---|---|
ci.yml | Every pull request and push to main or agent/* | pnpm check (lint, types, unit tests) and pnpm build |
e2e.yml | Pull requests (web apps with email and password sign-in) | Playwright tests against the running project |
db.yml | Changes to Supabase migrations | Row-level security tests (pgTAP) on a fresh local Supabase |
agent.yml | An issue labelled agent | /entapex-autopilot:run <issue>: issue to release |
A comment that mentions @claude | Answers it, in the issue or the pull request | |
CI fails on an agent/* branch | /entapex-git:ci-fix | |
nightly.yml | Every night, and Mondays | Issue triage and a security audit; dependency updates |
deploy-web.yml, deploy-android.yml | A GitHub release is published | Vercel production deploy; EAS build sent to Google Play testing |
The agents run Claude Code through claude-code-action, with the project's entapex plugins installed from the entapex marketplace.
Connect GitHub
Run once in the project:
pnpm dlx create-entapex-stack@latest connect githubIt creates the repository (private unless you add --public) and pushes, adds the labels agents
use, protects main, creates the production environment, and lets workflows open pull
requests. --dry-run shows the steps without doing them. Then it lists what only you can do:
- A secret for the agents:
claude setup-token, thengh secret set CLAUDE_CODE_OAUTH_TOKEN(or anANTHROPIC_API_KEYsecret). - Install the Claude GitHub App on the repository. Agents push as the app, so their pushes start CI.
- For deploys: Vercel (
VERCEL_TOKEN,VERCEL_ORG_ID,VERCEL_PROJECT_ID) and Expo (EXPO_TOKEN) secrets.
Branch protection and environment approvals on private repositories need a paid GitHub plan.
Tests every project has
Autopilot is only as good as its checks, so every project ships with tests that pnpm check runs:
- Drizzle + Postgres: the API's routers on an in-memory Postgres, called as different users
(
packages/api/src/routers/*.test.ts). - Convex: the real functions on an in-memory Convex backend (
apps/server/test/). - Supabase: row-level security in SQL (
apps/server/supabase/tests/,pnpm --filter <scope>/server test:db). - Web: Playwright tests in
apps/web/e2e(pnpm e2e). Android: Maestro flows inapps/mobile/.maestro.
pnpm gen feature writes a test for each new API next to the code.