Skip to content
Back to skills

Skill

ASecurity

Hand work to other AI coding agents through their official CLIs (Claude Code, Codex, Antigravity, OpenCode, GitHub Copilot, OpenRouter's free tier), with optional read-only ChatGPT chat workers through Crossfeed Chat, choosing the model from what each subscription has left. Use to delegate a task to another model, fan out many tasks in parallel, or convene an adversarial council of independent models before a consequential call.

  • 6 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added October 11, 2026
ai-agentspythonrustgobashdebugginggitapidatabase

Works with

  • claude code
  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ABCastor/crossfeed-orchestrator --skill skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/abcastor-skill/badge)](https://www.skillsdirectory.com/skills/abcastor-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: crossfeed-orchestrator
description: >-
  Hand work to other AI coding agents through their official CLIs (Claude Code, Codex, Antigravity,
  OpenCode, GitHub Copilot, OpenRouter's free tier), with optional read-only ChatGPT chat workers through
  Crossfeed Chat, choosing the model from what each subscription
  has left. Use to delegate a task to another model, fan out many tasks in parallel, or convene an
  adversarial council of independent models before a consequential call.
---

# Crossfeed Orchestrator

You lead: design, brief, verify and integrate. Workers use another vendor's official CLI on a folder. Never dispatch this host to itself as an external worker.

Every lead must obey the brief's `lead:` line: delegate tasks through external `dispatch`, keep its own turns short, and tell the operator it is preserving its pool.

Paths are relative to this folder. Load `readers/<harness>.md` once per session: `claude-code`, `codex`, `pi` or `opencode`. Run from the installed skill folder or repo root (parent of `skill/`). Never copy scripts into projects. Read optional `LIVE-RULES.md` once: private operator policy, installer-kept, never in repo. Respect live skill/roster/repo writer locks in the context home.

## Every dispatch: brief, then dispatch

```bash
python3 scripts/fleetctl.py brief
python3 scripts/fleetctl.py dispatch --role review --prompt-file /project/brief.txt --dir /project --mode read-only --last /project/report.md
```

`dispatch` selects pool/model/level, streams final text, passes through wrapper exit, names receipt on stderr. Inspect with `select --role R [--stakes S] --json`; `--family F` selects task/evidence family. `brief`, `select` and `dispatch` detect the lead's pool from the harness environment; pass `--lead POOL` when needed. A pressured lead pool is excluded except for irreversible stakes, which still respect off switches and hard quota gates. Writes: `--mode write` in a fresh worktree; `--dry-run` makes no model call. Selection may lack policy: load `references/routing-by-hand.md` for exceptions and explain overrides.

Classify the material before `select` or `dispatch` (BR-DATA-001; the default is `private`). Pass `--data-class code` when every byte sent is project source or its docs, with no notes, memory, personal or client data and no secrets; `--data-class public` for public material only. The default `private` refuses lanes whose `data_policy` is lower (`public-only` free promotions and candidate lanes, or `code-ok` where the operator sets it), so label public and code material to reach them. The Antigravity Gemini 4 Neon and Hydrogen High lanes carry no data policy since 26 November 2026 and take any class (BR-ROSTER-001).

Admission stakes: `low` = cheap and reversible; `normal`; `high` = costly to redo; `irreversible` = cannot undo. Save through routing, never downgrading judgment; reduce parallelism before quality.

Before viewing picks, label `--work-kind coding|review|research|writing` and `--difficulty easy|ordinary|hard` (easy: the answer is found, copied or reformatted; ordinary: it takes normal work; hard: it needs real multi-step reasoning or debugging; an easier label picks a lower thinking effort, so never understate). Override routing failure stakes with `--rating-stakes routine|important|critical` (1×/5×/20× typical job price). Use `select --no-explore --json` to inspect the mean pick, and reuse an opaque `--task-id ID` across attempts of the same task.
After checking a worker's result, record `fleetctl.py accept RUN_ID --verdict pass|fail --check "what was checked"` with the dispatch or linked worker run ID.
An exit code alone does not count; record the verdict only after an independent test or review.

Brief, one row per pool:

```text
pool | level | binding window | used | resets | price | models on
off: <disabled models and stand-ins>
Cash (USD, separate from quota pressure): <funding, estimate, worst case and headroom>
pick: fleetctl.py select --role R [--stakes S]
```

`price` is quota price (lambda): zero for projected surplus, fallback for unknown projections. `brief --verbose` gives limits, resets, plans, pins and effort warnings; `brief --json` gives full data. Console wins over every model name. Report confirmed receipt identity; if unconfirmed, report selected identity as selected. Never name a switched-off model in a command or report.

## Repository work with Gemini and browser GPT

`fleetctl.py studio-repo --help` describes opt-in browser reads. For local/private code, authorize only reviewed committed files with `--local-repo`, repeated `--share PATH=BLOB` and an exact `--expect-model`. Prefer Neon where eligible. A Studio answer may propose a patch, but cannot apply it. Never send secrets, personal data or a workspace archive.

For a native Gemini edit, inspect `scripts/roster.sh list agy` and the current quota/admission evidence first. Prefer the strongest eligible Neon for the task; never treat an unknown cap as a cleared refusal. Use the exact admitted write lane with `scripts/agy-agent.sh --lane LANE --write --sandbox --dir CLEAN_ISOLATED_WORKTREE --prompt TASK` only with an approved sandbox and secret-free checkout. Review the diff outside it. Stop on refusal; never retry the job via Studio or a paid fallback. See [the Antigravity lane](references/lane-antigravity.md).

Browser GPT (including Pro) is separate from Codex. For a named browser GPT task use `scripts/chatgpt-agent.sh run --exact --lane SELECTOR --prompt-file BRIEF` so a refused Pro job stops instead of following the general replacement policy. Discover saved browser selectors via `scripts/roster.sh list chatgpt-chat`. `fleetctl.py glance --json --no-refresh` exposes seven-day terminal job counts in `route_usage`; these are not tokens, cash, or provider limits.

## Pick the mode

State the inferred mode.

| Task | Mode |
|---|---|
| Unsettled fork | Council |
| Decision taken | Worker |
| Breadth | Fan-out |
| Bounded question | Single worker |
| Wide design space | Constraint-diverse generation: each worker gets a different constraint; compare, recommend, propose a hybrid |

Never reopen a settled decision. Council on your own doubt. Same-vendor subagents are never independent reviewers/council seats: use `--exclude-lineage <lead vendor>`.

## Session cleanup

Crossfeed retires run-owned sessions after receipt capture. Use `fleetctl.py traces` to check for leftovers, or `fleetctl.py traces --purge --yes` to dispose of proven stale artifacts. See [No trace](../docs/USAGE.md#no-trace) for limits and exit codes.

## Hard rules

- Official CLIs, intended logins, operator's account; recheck terms before sustained automation. API and partner-plan lanes must declare and enforce their authentication class; never infer billing from an API key. Crossfeed Chat is a separate read-only subscription-relay route requiring dated account-risk acceptance, which does not imply vendor permission; see `docs/CHATGPT.md`. `claude -p` never uses `--bare` (API billing). `fleetctl.py doctor` names missing prerequisites.
- Control authority is defined by BR-SWITCH-001 in `BUSINESS-RULES.md` (checkout or installed root): agents may change controls within recorded operator limits. Read [controls](references/controls.md) before changing them.
- Free/anonymous lanes, OpenRouter free lanes and research-scout: public/synthetic material only. No private facts, notes, memory, personal/client data, credentials or unreleased names. Citations count only after you open them. OpenRouter checks live free-only pricing before every default call; paid MiMo is a separate explicit opt-in.
- Do not use the bounded paid transport without the operator's account envelope and a reservation. No envelope ships. Quota exhaustion, `forced`, a target or an allow list do not grant spend. Automatic paid selection requires a separate operator grant and measured fit. Only operator-approved exact public prompt text goes to the paid transport; no tools, files or private material. MiMo retains its explicit opt-in. The legacy explicit Gemini text route has an estimate-only cap outside the hard ledger and is never automatic. Read [cash policy](../docs/SELECTOR.md#cash-funding-and-owner-envelopes) and optional `LIVE-RULES.md`.
- Copilot Student is read-only and Auto-only. Another account may admit operator-verified exact named models sharing one subscription pool with a per-call credit cap; follow [the account rule](references/lane-copilot.md).
- UNKNOWN quota fails open for routing; keep frontier lanes single-slot until the gauge is proven. EXHAUSTED and an open quota-error circuit fail closed. `forced` never overrides a known failure or a paid cap. Spend expiring surplus on useful quality-sensitive work; do not start unresumable work that cannot finish before reset. Front-load expensive work on a pool that has just reset.
- Always pass agy `--lane` or `--role`; bare agy uses its settings model.

## Run it

```bash
scripts/fanout.sh tasks.jsonl --parallel 3
scripts/swarm.sh review --dir /project --prompt "Attack PLAN.md against code and tests."
```

Load `references/fanout.md` for tasks/profiles. A paid dispatch is one attempt; a nonmetered dispatch cannot retry into paid. For nonmetered work, `dispatch` can try another nonmetered top-three option after any nonzero exit except cancellation, including after a worker started. Exit 4/5 alone does not identify a prelaunch refusal. Inspect partial edits after a started writer fails.

| Wrapper exit | Meaning |
|---|---|
| 0 | Success; verify deliverable |
| 4 | Claude/Codex/agy: empty output; OpenCode: lease/event JSON failure; Copilot: invalid JSON; OpenRouter: lease failure |
| 5 | Prelaunch refusal (off/switch/quota/cap/no route), or OpenCode session error, Copilot missing/failing result |
| 8 | Receipt/ledger/telemetry failure; output may exist |
| 124 | Wall-clock kill |
| 125 | Idle watchdog kill |

Other codes: wrapper-specific or CLI passthrough; see lane reference. OpenCode 6 = no successful terminal step, 7 = empty output.

| fanout exit | Meaning |
|---|---|
| 0 | Complete |
| 1 | Incomplete; read `summary.tsv` |
| 2 | Bad call/missing tasks |
| 3 | Write path held |
| 4 | Refused, nothing dispatched, no `summary.tsv` |

## The brief contract

One problem, cold-agent brief, named context home per worker. Put deterministic work in code or the brief. Start lean; inject only the needed skill/memory slice. State exact write scope, acceptance check and writable report path inside `--dir`. Create the report first, write incrementally. Require a digest: conclusion, evidence, changed paths, verification. Verify claims before they count.

Prefer disjoint tasks to duplicate opinions. Let `fanout.sh` carry parallelism: never wrap each worker in another expensive lead-pool agent. Never add a management tier: right-size the brief, not a foreman. For every convened opinion, including fan-outs, verification passes and GPT Pro, state the frame and evidence flatly; never pre-argue the answer. A long brief is a bias smell.

Workers see `--dir`, its `AGENTS.md`/`CLAUDE.md` and prompt; OpenRouter sees only the prompt. Never hand a peer or worker work your own session was refused.

## Liveness

Idle watchdog: default 0 (diagnostics only), output or process-group CPU; HTTP watches stream bytes. Silence logs every 10 minutes; a positive explicit `--idle-timeout` opts into killing. No default wall clock except OpenCode's roster `timeout_s`. Never add outer `timeout`/`gtimeout`; use wrapper `--timeout` for a hard budget.

Never detach: no `nohup`, trailing `&`, `disown` or `setsid`. Run foreground inside a harness-tracked tool call (reader file). After 124/125 inspect `git status` and partial reports before relaunching.

## Isolation and writers

Writes need a clean git worktree (required for OpenCode `--write`). One writer per root, disjoint write roots; fanout exit 3 when held. Ignored databases collide across worktrees: use separate databases. `/tmp` does not isolate workers. No secrets in a worker folder. Workers never write in the operator's vault: every wrapper refuses a vault `--dir`, output file, working file (prompt, key, log; `vault_guard.py check --work`) or write-target brief (exit 5) and runs tool-using CLIs under a Seatbelt write block (`references/isolation.md`). If a harness sandbox blocks `.git` writes or local sockets, the lead commits and runs full suites outside that sandbox.

## Load on demand

Under `references/`, load as needed:

| Trigger | File |
|---|---|
| Selection exception | `routing-by-hand.md` |
| Levels, switches, stand-ins, pins | `controls.md` |
| Gauges, emergency, lead CRITICAL | `quota.md` |
| Tasks, swarm, project wiring | `fanout.md` |
| Council | `council.md` |
| Killed/hung run, wrapper edits | `liveness.md` |
| Untrusted input, other write isolation | `isolation.md` |
| Level override | `effort.md` |
| Install, add, replace, or archive a model (required release checklist) | `roster-admission.md` |
| Codex details | `lane-codex.md` |
| Scripted `claude -p` | `headless-claude.md` |
| agy | `lane-antigravity.md` |
| OpenCode media/context/scout | `lane-opencode.md` |
| Copilot | `lane-copilot.md` |
| OpenRouter | `lane-openrouter.md` |
| Images/audio/video | `media.md` |

For away windows or delegated decisions, load optional installer-kept live-only `references/afk-mode.md` or `references/delegated-decisions.md`. Never invent operator policy. Quota-refresh edits need engine `docs/QUOTA-REFRESH.md`.

## Changing the scripts

Touched `scripts/`? Run `tests/run-all.sh`. Keep the idle watchdog/default here for `scripts/check-dispatch-invariants.sh`.

Files in this skill

  • SKILL.md8.9 KB
  • readers/claude-code.md2.6 KB
  • readers/codex.md2 KB
  • readers/opencode.md1.4 KB
  • readers/pi.md1.8 KB
  • references/controls.md6.7 KB
  • references/council.md5.9 KB
  • references/effort.md1.5 KB
  • references/fanout.md4.2 KB
  • references/headless-claude.md2.6 KB
  • references/isolation.md2.8 KB
  • references/lane-antigravity.md2.1 KB
  • references/lane-codex.md2.4 KB
  • references/lane-copilot.md1.5 KB
  • references/lane-opencode.md3.6 KB
  • references/lane-openrouter.md2.2 KB
  • references/liveness.md2.9 KB
  • references/media.md3.4 KB
  • references/quota.md3.1 KB
  • references/roster-admission.md2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.