Not loaded · from Phone a Friend
Runs iterative multi-model refinement via parallel phone-a-friend relays across rounds, with Grok synthesizing replies. Use for team discussions that converge rather than one-shot opinions.
Claude Code won't load this skill
It ships in Phone a Friend at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Orchestrate a Bash round loop in the current conversation. Grok reads the
friends' replies and synthesizes between rounds. Do not spawn subagents or
use Agent Teams. /phone-a-friend also handles a single parallel consultation;
when the user explicitly invokes this skill for one, run one round here.
Read the task and options from the user's request after the skill text (or
$ARGUMENTS when the host supplies it). Preserve the full task in the first
round's prompt, including scope and instructions not to edit files.
--backend a,b: unique friend names from antigravity, claude, codex,
gemini, opencode, pi, ollama. Default: claude,gemini.
Never select grok, including through a direct CLI fallback. Reject an
invalid backend before running anything. A single friend is valid.--max-rounds N: positive integer, default 3, capped at 5.--model NAME: optional model override for ollama and opencode only.Use Bash for the following blocks, keeping their variables in the same
session. Resolve RELAY_BIN with command -v phone-a-friend; if missing,
report how to install it and stop. Do not substitute ./phone-a-friend.
Resolve REPO with git rev-parse --show-toplevel or the current directory.
Keep PaF's read-only sandbox and do not escalate permissions on failure.
Keep preflight proportional to the request. For named friends, resolve the
binary and repository, check their executables once, then dispatch. For
"all available backends", use one doctor --json result to select detected
backends other than Grok. An installed CLI is detected, not proven ready:
doctor does not establish authentication, remaining quota, or model access.
Say "six backends detected; attempting six relays", and report readiness
from the actual results. Skip known unavailable endpoints or missing models
with their specific reason. Do not make extra inference calls merely to
probe readiness, repeat discovery, or inspect repository files for a
self-contained question. Diagnose a backend further only after it fails.
Set BACKENDS to the validated comma-separated list. Set TASK_DESCRIPTION
as data through a safely quoted assignment or file, never as shell code.
Do the same for later synthesis text. Do not use eval or interpolate user
content into an executable command string.
Match the relay instructions to the task. Set TASK_INSTRUCTIONS to a short
instruction appropriate to the user's requested output:
Keep orchestration requirements (which friends, concurrency, timing, session labels) with the host. Include all substantive task details and constraints in the friend prompt, without asking friends to dispatch another team.
Create a unique team ID and reuse ${TEAM_ID}-${BACKEND} as each friend's
session label for every round. All allowed friends support PaF sessions.
ROUND_DIR="$(mktemp -d "${TMPDIR:-/tmp}/paf-team.XXXXXXXX")"
TEAM_ID="paf-team-$(basename "$ROUND_DIR")"
ROUND=1
ROUND_PROMPT="$ROUND_DIR/r${ROUND}-prompt.txt"
printf '%s\n\n%s\n' \
"$TASK_INSTRUCTIONS" \
"$TASK_DESCRIPTION" > "$ROUND_PROMPT"
Run this block once per round, then return to Grok's synthesis step. Do not automatically run all rounds without reading and synthesizing the replies.
PIDS=()
for BACKEND in ${BACKENDS//,/ }; do
MODEL_ARGS=()
if [[ -n "${MODEL:-}" && ( "$BACKEND" == ollama || "$BACKEND" == opencode ) ]]; then
MODEL_ARGS=(--model "$MODEL")
fi
(
if PHONE_A_FRIEND_HOST=grok PHONE_A_FRIEND_INCLUDE_DIFF=false \
"$RELAY_BIN" --to "$BACKEND" --repo "$REPO" \
--prompt "$(cat "$ROUND_PROMPT")" --session "${TEAM_ID}-${BACKEND}" \
--timeout 180 --no-stream --no-include-diff --sandbox read-only \
"${MODEL_ARGS[@]}" \
> "$ROUND_DIR/r${ROUND}-${BACKEND}.out" \
2> "$ROUND_DIR/r${ROUND}-${BACKEND}.err"; then
printf '0\n' > "$ROUND_DIR/r${ROUND}-${BACKEND}.status"
else
printf '%s\n' "$?" > "$ROUND_DIR/r${ROUND}-${BACKEND}.status"
fi
) &
PIDS+=("$!")
done
for PID in "${PIDS[@]}"; do wait "$PID"; done
Keep local file contents out of relay payloads unless the user explicitly
authorized sending them. Pass the repo path so tool-capable friends can read
it themselves. Ollama has no file access: limit its prompt to the task and
authorized context. Do not attach a diff unless the user requested that
review scope. Never read or send credentials or .env contents.
Read each status file and answer. Stderr includes normal progress and
receipts; non-empty stderr alone does not mean failure. For a nonzero exit,
report the backend and relevant error with credentials redacted. Never
treat partial failed output as a successful vote. Do not retry auth errors.
Reuse preflight diagnostics when available; otherwise use
"$RELAY_BIN" doctor --json if executable identity needs checking. A quota,
authentication, or provider failure is a failed attempt, not an answer.
For a simple question, report the answers and failures in a compact table and stop when the answers agree. Do not invent risks, require a review-style verdict, or run another round just to fill the round budget. For a requested critique, Grok summarizes agreement, attributed disagreements, and concrete unresolved issues, then chooses:
If continuing, increment ROUND, write the synthesis and focused follow-up
questions to a new ROUND_PROMPT using printf '%s\n' "$SYNTHESIS_TEXT",
and repeat the parallel block with the same session labels. Retain the
original constraints in the follow-up. Continue with working friends only
when doing so still meets the user's request, and disclose any omissions.
Finish with the result (or review verdict), round count, a compact per-backend
status table, and TEAM_ID for inspecting the sessions later. When timing is
requested, measure each relay around its invocation and the whole parallel
round separately; do not report the sum of relay times as wall time. Call
sessions "created" or "saved" after the first success; call resume verified
only after a successful follow-up in the same session. Temporary round files
can be removed after the results have been read and presented.
Every relay must carry PHONE_A_FRIEND_HOST=grok. Never call --to grok.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (freibergergarcia/phone-a-friend) — no native marketplace selected
npx claudepluginhub p/freibergergarcia-phone-a-friend4 skills in this plugin
/-codexphone-a-teamIterative multi-model refinement from inside Codex. Runs N rounds of parallel relays through phone-a-friend to friend backends (Claude, Gemini, OpenCode, Ollama), synthesizes between rounds, and converges on a final answer. No subagent spawn, no Agent Teams primitive: pure Bash orchestration plus the model's own synthesis./curiosity-engineStructured Q&A rally between the host orchestrating model and a backend model. Both sides must always reply with ANSWER and QUESTION prefixes. Seeded by topic, runs for N rounds./phone-a-friendAsk Antigravity, Codex, Gemini, Claude, OpenCode, pi, Grok, Ollama, or xAI for a second opinion through the phone-a-friend CLI while preserving the user's request in --prompt.Other plugins' skills for the same job