autopilot

autopilot is a skill for Claude Code, Codex from phuongduyphan/cc-tmux-agents. It costs 115 tokens per session (3,878 once invoked), scanned A, original, MIT.

An autonomous coordinator that assigns a task to one coding subagent—Pi, OpenCode, Codex, or Cursor—and follows it until completion. It checks progress periodically and performs a final review.

In plain words
What is it for?
Delegating a coding task to a supported subagent, monitoring its progress, interrupting it when needed, and reviewing the finished result.
Why use it?
It handles progress checks and course corrections automatically, so the user does not need to keep polling the delegated agent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions subagents; mentions Codex.

Good fit Delegating a coding task to a supported subagent, monitoring its progress, interrupting it when needed, and reviewing the finished result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phuongduyphan/cc-tmux-agents/autopilot
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add phuongduyphan/cc-tmux-agents --skill autopilot
Clone the repo
git clone --depth 1 https://github.com/phuongduyphan/cc-tmux-agents

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for autopilot

README.md
[![agentmods](https://agentmods.dev/badge/skills/phuongduyphan/cc-tmux-agents/autopilot/github.svg)](https://agentmods.dev/skills/phuongduyphan/cc-tmux-agents/autopilot)
Your own site
<a href="https://agentmods.dev/skills/phuongduyphan/cc-tmux-agents/autopilot"><img src="https://agentmods.dev/badge/skills/phuongduyphan/cc-tmux-agents/autopilot/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for autopilot

Your own site · 80×15
<a href="https://agentmods.dev/skills/phuongduyphan/cc-tmux-agents/autopilot"><img src="https://agentmods.dev/badge/skills/phuongduyphan/cc-tmux-agents/autopilot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,878 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00115 $0.03878
Opus 5 $0.00057 $0.01939
Sonnet 5 $0.00023 $0.00776
Haiku 4.5 $0.00012 $0.00388

Measured 12d ago against content hash 6fbacb83b38f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

autopilot scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/autopilot/SKILL.md · 204 lines

How it starts

The opening of the file, as written. The whole thing — 204 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/autopilot: autonomous subagent orchestrator

Drives a single subagent (pi / opencode / codex / cursor) toward a goal without user-driven polling. Wraps the existing dispatchers at ~/.claude/skills/<name>/bin/<name>-agent and adds two wake sources, a checkpoint protocol, and a final review gate.

This skill is the autonomous counterpart to /pi, /opencode, /codex, /cursor (which forbid auto-polling). When operating inside /autopilot, you are explicitly authorized to auto-poll those same dispatchers.

Invocation

/autopilot <pi|opencode|codex|cursor> <task description>
  • First token after /autopilot selects the subagent: one of pi, opencode, codex, cursor. Reject anything else.
  • Everything after the subagent token is the task.

Session naming and files

Session: cc-<subagent>-autopilot (e.g. cc-pi-autopilot). Distinct from the user-driven cc-<subagent> sessions so the two don't collide. Pass it explicitly: <dispatcher> --session cc-<subagent>-autopilot <verb>.

Fresh session per task. If a session with this name already exists when /autopilot is invoked fresh, stop it first.

Three files per run:

File Purpose
/tmp/cc-autopilot-<subagent>-task.md the full task, so the subagent can re-read it
/tmp/cc-autopilot-<subagent>-decisions.md the decision log; the single artifact the user reads when they return
/tmp/cc-autopilot-<subagent>.done the done-sentinel; its presence means the loop has ended

The control flow

Every turn begins by checking the sentinel, then routing on the wake source. The full loop:

EVERY WAKE:
  sentinel present?  ──yes──▶ stale wake; one-line note; END turn (never restart)
        │ no
        ▼
  session absent?    ──yes──▶ PHASE 1 (start), then END turn
        │ no (a wake-up)
        ▼
  route on wake source:
    wait ping = idle/completion ──────────────▶ PHASE 3 (review)
    wait ping = timeout (still busy) ──────────▶ re-arm wait; END turn
    120s report tick ─────────────────────────▶ EVALUATE
    60s permission re-check / 10-min tick ─────▶ CHECKPOINT TICK

CHECKPOINT TICK (capture pane, classify one state):
    idle        ──▶ PHASE 3 (review)
    permission  ──▶ answer prompt; schedule 60s re-check; wait stays armed; END turn
    crashed     ──▶ BAIL (summary, stop, set sentinel, surface)
    busy        ──▶ kill wait; Escape + confirm; request 3-para report;
                    schedule 120s tick; END turn

EVALUATE (read the report):
    ground-truth with git diff; harvest DECISION lines
    direction OK?  ──yes──▶ send bare "continue" ──▶ RE-ARM
                   ──no───▶ inspect myself (Read/Bash/Grep)
                            same blocker 2nd round?  ──yes──▶ BAIL
                                                     ──no───▶ send "continue" + concrete fix;
                                                              log intervention ──▶ RE-ARM

PHASE 3 REVIEW (agent idle):
    git diff + run tests myself; harvest DECISION lines
    good?  ──yes──▶ summary to log; stop session; set sentinel; END loop (no re-arm)
           ──no───▶ send numbered fixes; log verdict ──▶ RE-ARM

RE-ARM: start fresh bg wait; schedule 10-min timer (subject to the one-pending-timer invariant)

Read the full file on GitHub · 204 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 204 lines · 115 tokens per session scan A 6fbacb83b38f

Subscribe to this mod's changes

autopilot is a skill published in the GitHub repository phuongduyphan/cc-tmux-agents (8 stars, last pushed 1mo ago), licensed MIT. It adds 115 tokens to every session and 3,878 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

repo-hygiene

Use when the scheduled repo-hygiene workflow runs from GitHub Actions (or an operator dry-run) to scan the repository for small, certain docs/test/code hygiene issues and fix them as one batched branch.

QwenLM/qwen-code · 48 tokens

find-simplifications

Use for a periodic repo-wide sweep of qwen-code for accumulated excess surface — dead components and files, orphaned locale keys, exports nothing consumes, added-then-removed scaffolding — filing candidates on a tracking issue and landing only what a maintainer has said yes to. Repo-wide and evidence-first; every…

QwenLM/qwen-code · 103 tokens

autoprompt

Run explicitly requested Autoprompt work with task routing, owned assignments, independent checks, and bounded recovery.

Spielewoy/autoprompt-skill · 25 tokens

autoprompt

Run explicitly requested Autoprompt v2 work through the private controller. Ordinary coding and review requests do not activate this skill.

Spielewoy/autoprompt-skill · 29 tokens

ap-run-coordinator

Start only ready, non-overlapping roadmap work and combine returned status at the written integration points.

Spielewoy/autoprompt-skill · 24 tokens

performance-optimization

Measure-first performance work. Use on triggers like "it's slow", "profile this", "optimize perf", "fix the bottleneck", "improve load time / Core Web Vitals", or when a measured regression needs fixing. Enforces measure-before-optimize. Fills a perf gap not covered by existing project skills. Not a build/ship…

BlackBeltTechnology/pi-agent-dashboard · 77 tokens