Skip to Content
entapex-stack

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.

LevelAgents doYou do
AssistedEverything up to an open pull request with passing checksReview, merge and release
Autopilot with gates (default)Merge when CI passes, publish the releaseApprove the production deploy
Full autopilotEverything, including productionRead 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

WorkflowWhenWhat it does
ci.ymlEvery pull request and push to main or agent/*pnpm check (lint, types, unit tests) and pnpm build
e2e.ymlPull requests (web apps with email and password sign-in)Playwright tests against the running project
db.ymlChanges to Supabase migrationsRow-level security tests (pgTAP) on a fresh local Supabase
agent.ymlAn issue labelled agent/entapex-autopilot:run <issue>: issue to release
A comment that mentions @claudeAnswers it, in the issue or the pull request
CI fails on an agent/* branch/entapex-git:ci-fix
nightly.ymlEvery night, and MondaysIssue triage and a security audit; dependency updates
deploy-web.yml, deploy-android.ymlA GitHub release is publishedVercel 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 github

It 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:

  1. A secret for the agents: claude setup-token, then gh secret set CLAUDE_CODE_OAUTH_TOKEN (or an ANTHROPIC_API_KEY secret).
  2. Install the Claude GitHub App on the repository. Agents push as the app, so their pushes start CI.
  3. 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 in apps/mobile/.maestro.

pnpm gen feature writes a test for each new API next to the code.

On this page