Per-lane install → auth → verify onboarding for the cross-vendor worker lanes (codex, antigravity/gemini) with a cost-model/tier briefing before anything is installed. NOT a dispatcher (`core/infra/call-worker.sh` is), and NOT a paid probe run without explicit user approval — every real round-trip probe is announced before it runs.
2 stars
0 votes
0 copies
3 views
Added October 8, 2026
ai-agentspythongoshellbashapibackend
Works with
terminal
cli
api
Security analysis
F34/100
criticalPipes output to a shell interpreter
mediumUses curl or wget to download content
criticalDownloads and executes remote scripts — classic supply chain attack
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Worker Setup?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/joymin5655-worker-setup)
---
name: worker-setup
description: Per-lane install → auth → verify onboarding for the cross-vendor worker lanes (codex, antigravity/gemini) with a cost-model/tier briefing before anything is installed. NOT a dispatcher (`core/infra/call-worker.sh` is), and NOT a paid probe run without explicit user approval — every real round-trip probe is announced before it runs.
when_to_use: "User-invoked only (`/worker-setup`): set up the codex/gemini lanes after `setup.sh --doctor` WARNed about a worker lane or `/council-review` reported a lane absent."
tools: Bash, Read, Grep, Glob
disable-model-invocation: true
---
# /worker-setup
## Goal
Onboard the cross-vendor worker lanes (`core/infra/backends.json`) one at a
time: install → authenticate → verify, with an honest cost/allocation
briefing up front. This skill never dispatches a review or a completion
check itself — that is `core/infra/call-worker.sh`, consumed by
`/council-review` and `/verify-completion --second-opinion`. This skill only
gets a lane from absent to healthy.
## Step 0 — resolve the harness root
```bash
HR="$(bash "${CLAUDE_PLUGIN_ROOT}/scripts/harness-root.sh")" || echo "worker-setup: agent-harness core (backends registry) not found — install agent-harness@agent, or set AGENT_HARNESS_ROOT to a harness checkout" >&2
test -n "$HR" && test -f "$HR/core/infra/backends.json" || echo "worker-setup: backends registry not found at ${HR:-<unresolved>}" >&2
```
Stop here with that guidance if the registry does not resolve. Paths below are
under `$HR`; every command block resolves it again, because each Bash call is a
fresh shell.
## Step 1 — read-only status sweep (zero paid calls)
Read `$HR/core/infra/backends.json` **live** with `jq`, in a block that sets
`HR` first like the one above — never hardcode the lane list, the registry is
the source of truth and can grow lanes this skill has never seen. For every
backend, report one row:
| Column | How to get it |
|---|---|
| lane | the backend's key in `.backends` |
| vendor | `.backends[$lane].vendor` |
| cmd on PATH | `command -v` on `.backends[$lane].cmd[0]` |
| preflight on PATH | `command -v` on `.backends[$lane].preflight[0]` |
| config seeded | codex: `~/.codex/config.toml` exists; gemini/antigravity: `~/.agent/antigravity-tiers.json` |
| cost model | from step 2's table |
| tiers | keys of `.backends[$lane].tier_args` |
| roles served | reverse-lookup: which `.roles[*].backend` (or `.fallback`) names this lane |
Also run once, read-only:
```bash
HR="$(bash "${CLAUDE_PLUGIN_ROOT}/scripts/harness-root.sh")"
[ -n "$HR" ] && python3 "$HR/core/infra/runtime-profile.py" detect --json # empty HR: stop
```
It reports `{installed, authenticated, plan}` for claude, codex and antigravity from
local CLIs/files only (no network, no agy call). Show the plans next to the lane rows
(claude `max`, codex `plus`, ...). The google plan is `unknown` by design — Antigravity
exposes no local plan field — so say that rather than guessing; `authenticated: unknown`
means "not verifiable locally", not "logged out". A `plus` plan is a normal reviewer
seat. The `save` subcommand records the main/reviewer vendors for later runs:
```bash
HR="$(bash "${CLAUDE_PLUGIN_ROOT}/scripts/harness-root.sh")"
[ -n "$HR" ] && python3 "$HR/core/infra/runtime-profile.py" save
```
Also check once, separately: is `$HOME/bin` on `PATH` (workers/preflights
resolve from there — `setup.sh`'s `ensure_home_bin`/doctor row).
This step makes no network calls of its own and runs only the local status
subcommands `claude auth status` and `codex login status` (never `agy`) beyond
`command -v` — it is safe to run unconditionally, including before the user
has decided anything.
## Step 2 — cost & allocation briefing
State the cost model per lane (SSOT: `docs/model-routing.md` §
Cross-vendor lanes → "Lane cost models"), in plain terms:
- **antigravity (gemini lane)** — the user's Google account quota (Antigravity
free/AI Pro tiers), authenticated via the OS keyring; exhausting it
mid-review fails open (the lane reports rate-limited and is skipped, never
an upgrade prompt).
- **codex** — the user's ChatGPT subscription quota (`codex exec`).
One paragraph on allocation, not a design: tier-aware task allocation across
vendors seats TOP-tier votes/advisors for review and gate work, treats codex
MID as the implementer lane, and spends the subscription-quota lanes
(antigravity, codex) on review volume. Close this paragraph with:
cross-vendor task-allocation routing is a candidate follow-up design, not
built here — route it through `/spec` when it's taken up. Do not design that
routing in this skill.
## Step 3 — ask which absent lanes to onboard
From step 1's table, list every lane that is not fully healthy (missing cmd,
missing preflight, or unseeded config) and ask the user which of those to
onboard now — options with a sensible default (e.g. "onboard all absent
lanes"). A declined lane stays reported absent in `/council-review`'s lane
status line — this skill never substitutes another vendor for a lane the
user chose not to onboard.
## Step 4 — per-lane install → auth → verify
For each lane the user selected, in order:
**Install — run by the user, not by this session.** Hand the user the command
for their lane and let them run it (`!` prefix, or their own terminal). Do NOT
execute a vendor installer from this skill: `rules/public-repo.md` forbids
pulling dependencies without explicit approval, and a piped remote installer is
unpinned, unsigned code executing in a `$HOME` that already holds this user's
CLI credentials. Where a package manager is available, prefer it — it pins a
version and leaves an audit trail:
- codex: `npm install -g @openai/codex`, or `brew install --cask codex` on
macOS. Shell installer (`curl -fsSL https://chatgpt.com/codex/install.sh | sh`)
only if neither is available.
- antigravity (agy): `curl -fsSL https://antigravity.google/cli/install.sh | bash`
— no package-manager path published (`adapters/antigravity/README.md`).
For a shell-installer path (antigravity, or codex's fallback), tell the user
they can download and read the script before running it
(`curl -fsSL <url> -o install.sh`, inspect, then `bash install.sh`) — say so
rather than assuming they know.
**Auth — interactive, run by the user, not headless.** These are browser or
keyring flows this session cannot drive; instruct the user to run them
themselves via the `!` shell-passthrough prefix, then confirm before moving
on:
- codex: `! codex login` (check with `codex login status` — exit 0 means
logged in, exit 1 prints "Not logged in").
- antigravity: `! agy` (one interactive session; credential lands in the OS
keyring — `GEMINI_API_KEY` is deliberately not used, per
`adapters/antigravity/README.md`).
**Never echo, log, or store a key or token** — instruct, don't collect. No
shipped lane needs this session to see a secret (antigravity's opt-in
`ANTIGRAVITY_AUTH=apikey` path reads its key from a macOS Keychain item the
user seeds themselves — `adapters/antigravity/README.md`). If a lane ever does
need a key in the environment, it belongs in the user's shell profile or a
secret manager, exported **before** this session started — never inlined on a
command this session runs (it would land in the transcript, the session JSONL
under `~/.claude/projects/`, and shell history), and never in a repo `.env`.
**Wire it into the harness**, after auth succeeds:
```bash
HR="$(bash "${CLAUDE_PLUGIN_ROOT}/scripts/harness-root.sh")"
[ -n "$HR" ] && bash "$HR/setup.sh" --codex # or --antigravity
```
This lands the symlinks in `~/bin`, seeds the tiers/profile templates, and
runs `setup.sh`'s own post-install doctor pass. `--antigravity` also installs the native-hook
plugin into `~/.gemini/config/plugins/agent-harness` (guards the user's own interactive agy
sessions, not only the worker). Check it with:
```bash
HR="$(bash "${CLAUDE_PLUGIN_ROOT}/scripts/harness-root.sh")"
[ -n "$HR" ] && python3 "$HR/adapters/antigravity/install-plugin.py" --root "$HR" --check
```
Remove it with the same script and `--uninstall`; global-folder loading by a real agy was
not measured (`adapters/antigravity/README.md`, "Native hooks (plugin)").
**Verify — with an explicit heads-up before each real call.** Before running
any of the following, tell the user which ones are real round-trip probes
(they spend the lane's quota):
```bash
codex login status # codex's own preflight: local check, no network call, not billable
antigravity-preflight # real round trip, free-tier quota
```
A nonzero exit here means the lane stays absent — report the exit code and the
probe's **first stderr line**, not its raw output, and do not retry silently.
The auth-failure branch is exactly where a vendor CLI is most likely to echo
the offending key prefix or the account identity back at you, and this session's
output is durable (transcript, session JSONL, anything pasted into an issue).
If the first line is not enough to act on, tell the user to read the full
output themselves rather than reprinting it here.
**macOS-only sandbox note.** `antigravity-worker.sh` uses `sandbox-exec`
(macOS-only). On Linux it refuses unless `ANTIGRAVITY_WORKER_ALLOW_UNSANDBOXED=1`
— warn the user this is an explicit, unsandboxed opt-out (Linux sandboxing is
backlog, not solved here).
## Step 5 — final verification
```bash
HR="$(bash "${CLAUDE_PLUGIN_ROOT}/scripts/harness-root.sh")"
[ -n "$HR" ] && bash "$HR/setup.sh" --doctor
```
Re-print step 1's status table (now reflecting the onboarding just done), and
close with a degrade summary in `/council-review`'s own terms:
- gemini/antigravity absent → council degrades toward a single-vendor
(Claude-only) review with an honest first line, not silently.
- codex absent → the same degrade, from the other voting lane.
## Boundaries
- Never flip `enabled` flags in `core/infra/backends.json` without asking —
a disabled lane's `disabled_reason` is a deliberate decision, not a bug to
silently reverse.
- Never store credentials. Any API key or OAuth token is the user's to
export/manage; this skill only tells them how.
- Every real round-trip probe (antigravity-preflight and any live dispatch) is
announced before it runs — no silent paid call.
- This skill does not design or implement cross-vendor task-allocation
routing — that is future `/spec` work; step 2 briefs on it, nothing more.