Features
Autopilot Mode

Autopilot Mode

Fully autonomous operation with automatic PR merging.

🚨

Autopilot can merge code without human review. Use with caution.

Environments

EnvironmentAuto-mergeCI RequiredUse Case
devAfter CI passesYesPersonal projects
stageAfter CI + delayYesTeam staging
prodNeverYesProduction (review required)

Configuration

# ~/.pilot/config.yaml
autopilot:
  enabled: true
  environment: stage
  auto_merge: true
  require_ci: true
  merge_delay: 5m  # Wait before merging (stage only)
  protected_branches:
    - main
    - production

Usage

# Development - fast iteration
pilot start --github --autopilot=dev
 
# Staging - with safety delay
pilot start --github --autopilot=stage
 
# Production - no auto-merge
pilot start --github --autopilot=prod

Safety Features

CI Requirement

Autopilot always waits for CI to pass:

Task → PR → CI Running → CI Passes → Merge
                      ↘ CI Fails → Notify, No Merge

Merge Delay (Stage)

In stage mode, there's a configurable delay:

CI Passes → 5min delay → Check for comments → Merge
                       ↘ Comments found → Notify, No Merge

Protected Branches

Direct pushes to protected branches are blocked. Autopilot always creates PRs.

Monitoring

Track autopilot activity:

# View recent autopilot actions
pilot logs --autopilot
 
# Dashboard with real-time updates
pilot start --github --autopilot=dev --dashboard

Rollback

If autopilot merges something problematic:

# Revert the last autopilot merge
pilot rollback --last
 
# Revert a specific PR
pilot rollback --pr 123