/e2a-labs:autopilotfrom e2a Labs
Configures and operates a policy-first, always-on local email agent that monitors an inbox, handles support tasks, reviews unauthorized senders, and requires human approval for outbound mail.
Ships in e2a Labs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Autopilot turns one existing e2a inbox into an always-on local agent trigger. It uses the current e2a protection and CLI surfaces; it does not require or propose server, API, database, SDK, MCP, or core-CLI changes.
Use tether instead when the owner wants to steer an already-running interactive
session by email. Use a cloud webhook instead when a stable public service should
own the workflow. Autopilot is the local-machine daemon: e2a listen connects
outbound, so the machine does not need a public endpoint.
Conduct onboarding as a conversation. Ask one logical question at a time, reflect material answers, explain a tradeoff before asking for a risky opt-out, and skip facts the user already supplied. Do not paste the entire questionnaire.
The interview must establish:
Use the plugin-local entrypoint for the authoritative interview and policy.
autopilot.sh sits in this skill's own directory, next to this SKILL.md.
Substitute its absolute path for $AUTOPILOT in every command below; the script
resolves its own resources, so any working directory works.
"$AUTOPILOT" interview
It saves after every answer and can resume.
Render the deterministic plan after onboarding:
"$AUTOPILOT" plan
Show the complete output, limitations, and 64-character plan digest to the user. Then ask for confirmation of that exact digest. A casual earlier “yes,” approval of the design, or permission to continue polishing is not installation approval.
Only after the user confirms the displayed digest may you run:
"$AUTOPILOT" install --confirm <digest>
install is visibly mutating. It uses the operator's current account-scoped e2a
CLI session to verify inbox ownership, save the existing protection document,
mint one dedicated agent-scoped supervisor key, apply the confirmed protection,
verify it, and create owner-only local state and a secret-free service definition.
It rolls back protection and revokes the new key if installation fails. It never
stores the account credential.
Installation deliberately does not start the service. Starting an always-on agent is a second intentional action. Ask before running:
"$AUTOPILOT" start --agent [email protected]
Never start Autopilot merely because install succeeded.
The supervisor owns the agent-scoped e2a key. A task runtime never receives an e2a key, MCP credential, forward token, or arbitrary mailbox access. Each job gets a new local socket and capability exposing only:
current-message (read)current-thread (read)reply (submit)escalatecompleteThe gateway binds reads and replies to the current job, chooses reply recipients from the existing thread, and injects the owner CC when configured. It has no list, search, delete, arbitrary-recipient, key-management, protection, or review- approval operation. Do not “help” a runtime by adding direct e2a MCP or CLI access.
Inbound delivery is defense in depth:
Durable metadata-only jobs move through pending, running, retry, done,
and dead. Message bodies are fetched only for the active job and are not written
to the spool or logs. Stale running jobs recover after restart. Listener bouncing
and independent unread reconciliation cover silent WebSocket gaps.
Adapters are one-shot and receive a sanitized environment plus the job gateway. Claude Code and Codex run with their session-persistence, MCP inheritance, and user config disabled; Hermes uses one-shot safe mode. None of these adapter flags is treated as an isolation boundary by itself.
For every job the harness also wraps the runtime process in a per-job OS
sandbox when one is available: sandbox-exec on macOS (an allow-default
profile with file-read* denies) or bwrap on Linux (tmpfs mask over the
install root). The sandbox denies reads of the Autopilot install root's
credential, policy, state, and log files while leaving the confirmed workspace
and the network usable — coding agents need their own LLM APIs. When neither
tool exists the runtime runs unwrapped, and the acknowledged
external-isolation model below remains the mitigation.
The OS account is still a trust boundary. A hostile process running as the same user may inspect owner-readable files outside the denied set or process state. A prompt that says “do not read secrets” is not a sandbox; do not describe it as one.
# Foreground debugging
"$AUTOPILOT" run --agent [email protected]
# Service lifecycle
"$AUTOPILOT" start --agent [email protected]
"$AUTOPILOT" stop --agent [email protected]
# Local status; --verify temporarily uses the current account CLI session to
# compare observable e2a protection fields with the installed policy.
"$AUTOPILOT" status --agent [email protected]
"$AUTOPILOT" status --agent [email protected] --verify
# Paths only by default; add --follow to tail
"$AUTOPILOT" logs --agent [email protected] --follow
After starting, verify all of these before declaring success:
status --verify reports
matches-policy.Use only synthetic addresses and content in repository fixtures and public logs.
Show the uninstall plan and require the literal confirmation DELETE:
"$AUTOPILOT" uninstall \
--agent [email protected] --confirm DELETE
Uninstall stops the service, revokes its dedicated key, removes the service definition, and moves local state to a recoverable timestamped archive. It does not restore the pre-install protection automatically: an administrator may have changed it later, and a blind restore could overwrite intentional security work.
Always disclose these in the plan:
status --verify is an explicit drift check.autopilot.mjs (opens in a new tab)autopilot.sh (opens in a new tab)config.mjs (opens in a new tab)daemon.mjs (opens in a new tab)gateway.mjs (opens in a new tab)installer.mjs (opens in a new tab)interview.mjs (opens in a new tab)job-tool.mjs (opens in a new tab)lock.mjs (opens in a new tab)mail-client.mjs (opens in a new tab)operator.mjs (opens in a new tab)policy.mjs (opens in a new tab)runner.mjs (opens in a new tab)runtime.mjs (opens in a new tab)service.mjs (opens in a new tab)setup.mjs (opens in a new tab)spool.mjs (opens in a new tab)supervisor.mjs (opens in a new tab)test/autopilot-cli.test.mjs (opens in a new tab)test/clean-room.test.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
email-agent, autopilot, e2a, inbox-monitoring, policy-driven
npx claudepluginhub tokencanopy/e2a --plugin e2a-labs3 skills in this plugin
/agentifyBeta — Deploy the autonomous-repo feedback loop into a GitHub repo. Scaffolds the lane workflows, the runtime skill, and one config file as a reviewed PR, then prints the one-time identity/secret setup checklist. Turns a repo into one that triages incoming feedback into issues and prepares human-gated fix PRs. Use when someone wants to make a repo self-managing / "agentify" it / install the feedback loop./tetherBeta — Stay in the loop over email during a long-running coding session. The agent sends threaded status updates to your inbox as it sees fit and picks up your emailed replies (questions/instructions) within a few minutes, so you can steer a working agent while AFK. Transport is e2a. Use when you want to walk away from a session but keep commanding it from your inbox.Other plugins' skills for the same job