AGENT SKILL

campaign-autopilot-bridge

Operate a long-running Claude-Codex autopilot loop built on exchange.md, campaign.yaml, runtime state, tmux visibility, inspections, and resumable execution. Use when the user mentions autopilot, exchange, bridge, campaign, resume, paused capacity, long-running iteration, or wants the two providers to keep taking turns across tasks.

License 许可
MIT
最近更新
2026-07-19
Stars
★ 0
Forks
0

01 前言 Front Matter

name
campaign-autopilot-bridge
description
Operate a long-running Claude-Codex autopilot loop built on exchange.md, campaign.yaml, runtime state, tmux visibility, inspections, and resumable execution. Use when the user mentions autopilot, exchange, bridge, campaign, resume, paused capacity, long-running iteration, or wants the two providers to keep taking turns across tasks.
user_invocable
true

03 SKILL.md 正文

Campaign Autopilot Bridge

Purpose

Use this skill when work should continue through a structured Claude -> Codex -> Claude loop instead of one-shot chat turns.

Core files:

  • campaign_autopilot/campaign.yaml
  • campaign_autopilot/scripts/exchange_bridge.py
  • campaign_autopilot/scripts/campaign_driver.py
  • campaign_autopilot/runtime/
  • campaign_autopilot/exchange.md when generated at runtime
  • .autopilot/instances/*.json

Use This Skill When

  • the user says autopilot, exchange, bridge, campaign, resume
  • the user wants Claude and Codex to keep iterating without manual handoff
  • the user asks why tmux panes look stuck or repetitive
  • the user wants to recover from paused_capacity, paused_drift, paused_stuck, or inspection rewinds
  • the user wants better observability around long-running proposal, review, or execution loops

Main Commands

Preferred global usage:

autopilot 8

Select a specific project when needed:

autopilot --instance <name> 100

Inspection helpers:

autopilot request-inspection --task-id <task_id> --reason "check this task"
autopilot request-inspection --previous-all --reason "check all previous steps"
autopilot resume-mainline

Repo-local wrappers remain valid if you are already inside a project checkout.

State Model

Project-level states live in campaign_state.json:

  • running
  • paused_capacity
  • paused_stuck
  • paused_drift
  • paused_safety
  • paused_user_decision
  • paused_execution_required
  • paused_execution_stalled
  • project_done

Exchange-level states live in exchange.md:

  • waiting_for_proposal
  • waiting_for_review
  • review_written
  • ready_for_execution
  • execution_required

Expected Flow

Per active task:

  1. campaign_driver seeds exchange.md
  2. Claude writes the proposal
  3. Codex reviews it
  4. Claude revises it if needed
  5. approved work moves into execution
  6. the task either completes, requests inspection/evidence/spec revision, or rewinds
  7. the campaign advances to the next runnable task

Operating Rules

  • treat exchange.md as the current shared buffer, not as long-term memory
  • prefer the BRIDGE pane over raw model panes for fast situational awareness
  • keep runtime surgery as a last resort; prefer fixing bridge logic
  • treat campaign.yaml, plans, and skill definitions as frozen-layer inputs unless the user explicitly authorizes a spec change
  • ops-only monitor/status defects should self-heal immediately instead of waiting for the user to call them out

Output Contract

When operating the harness, report:

  • current active task
  • current project state
  • current exchange state
  • whether autopilot is running, paused, or done
  • the exact next command if user action is required