agentleFS
leekleek/agent-skills/skills/panel/SKILL.md

panel

Skill3 starsChanged 2 months agoMITView on GitHub

Convene a panel of agent CLIs (grok, claude, codex, agy) on a prompt or a code review, then report one consensus grouped by how much they agree.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Put one task in front of four agent CLIs (grok, claude, codex, agy) run each in its own subagent, headless, then report a single consensus …

    line 14
  2. Very specific:

    Review: when the user asks to review a branch, PR, WIP, or "review since X".

    line 30
  3. Distinctive:

    Write the one task string now.

    line 39
  4. Very specific:

    Run command -v for each of grok, claude, codex, agy.

    line 44
  5. Distinctive:

    Keep review read-only: Before fanning out, save git status --porcelain and git diff as the baseline.

    line 101
  6. Distinctive:

    Fix list: every point at every grade, Unanimous through Lone, as one checklist.

    line 146
  7. Distinctive:

    Offer the shortcut: ask whether to verify and apply the whole list as one commit, naming the count, e.g.

    line 149

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Panel

Put one task in front of four agent CLIs (grok, claude, codex, agy) run each in its own subagent, headless, then report a single consensus grouped by how much the panel agrees.

Each CLI runs as its own latest/default model. Never pass --model to any of them. The point of the panel is four independent models; pinning a model defeats it.

Two task shapes:

  • Prompt: the user's text goes to all four, unchanged.
  • Review: pin one diff scope and tell all four to review it, read-only, same scope each.

Process

1. Read the task and pick the shape

  • Review when the user asks to review a branch, PR, WIP, or "review since X". Pin the fixed point the way code-review does: the diff is git diff <fixed-point>...HEAD (three-dot, against the merge-base), default main when the user names none. For uncommitted work in progress, drop the ...HEAD so the diff also covers staged and unsaved changes. Confirm the ref resolves (git rev-parse <fixed-point>) and the diff is non-empty before fanning out, a bad ref should fail here, not inside four subagents.
  • Prompt otherwise; the user's text is the task, passed word for word.

Write the one task string now. Every CLI receives the identical string, so the four results compare cleanly.

2. Check who is on the panel

Run command -v for each of grok, claude, codex, agy. Drop any that is absent and record it for the final report. If fewer than two remain, there is no consensus to form: say which are missing and stop.

3. Fan out: one subagent per CLI, in parallel

Spawn one subagent per present CLI, all in a single message so they run at once (in Claude Code with this plugin installed, subagent_type=leek-skills:panelist: a small, cheap wrapper, since the thinking happens inside the CLI it runs). Give each subagent the same task string and this brief:

  • Pass the task safely: never inline it. A prompt with a backtick, $, or quote gets run by the shell if you paste it into the command. Put the task in a variable with a quoted heredoc, then pass "$TASK":

    TASK=$(cat <<'PANEL_EOF'
    …the one task string…
    PANEL_EOF
    )

    The quoted 'PANEL_EOF' delimiter and the quotes around "$TASK" stop every expansion. Then run your CLI once, headless, from the repo root, using its row below. Add no --model; keep the row's flags as written.

  • Run every CLI detached: never let one time out. These agent CLIs take many minutes, and a slow model (codex at high reasoning is the usual culprit) will run past the Bash tool's 10-minute foreground ceiling and get killed mid-orientation, before it ever reports. Do not run the command in the foreground with a big timeout, 10 min is the hard max and it will be killed. Instead redirect the command's output to a scratch file and launch it with the Bash tool's run_in_background: true: append > "$SCRATCH/panel-<cli>.out" 2>&1 to the row's command (keep the < /dev/null). Your turn pauses and you are re-invoked automatically when the CLI exits; then read the scratch file and distill it. Background runs have no timeout; this is what guarantees nothing is cut off.
  • Distill the output into a short, normalized result. For each point the CLI makes, capture three things: a one-line claim, a location (file:line, or general), and a one-line reason. Drop the CLI's logs, thinking, and prose.
  • Return { cli, status, points[] }. status is responded, or errored with a one-line cause. Return the object only, no narration.

Headless commands (< /dev/null stops the CLI blocking on stdin):

CLICommand
claudeclaude -p "$TASK" --dangerously-skip-permissions < /dev/null
codexcodex exec --dangerously-bypass-approvals-and-sandbox --cd "$PWD" "$TASK" < /dev/null
agyagy --dangerously-skip-permissions --print-timeout 30m -p "$TASK" < /dev/null
grokgrok -p "$TASK" --always-approve < /dev/null

In review shape, the task string is this brief. Name the pinned diff from step 1 in plain words, with no backticks, so nothing is left for a shell to expand:

Review the change from git diff FIXED-POINT in this repository. Read the diff and any files you need. Report concrete findings only, for each, a one-line claim, the file:line, and a one-line reason. Review only; do not modify any file. Be concise.

Keep review read-only. Before fanning out, save git status --porcelain and git diff as the baseline. After every subagent returns, compare against it. A path the CLIs changed that was clean in the baseline: revert it (git checkout -- <path>, delete new files) and name that CLI. A path that was already dirty holds the user's unsaved work: report it and leave it as it is. This tree check (not a per-CLI flag) is what enforces review-only.

Per-CLI notes: read-only options and their traps, structured-output flags, absent-vs-errored, auth: live in references/cli-invocations.md. Read it only when a CLI misbehaves or the panel roster changes.

4. Cluster into consensus

First check the panel had a quorum: at least two CLIs must have responded, not just been present. With fewer, there is no consensus: report the single result plainly and say the panel was short.

Collect the results. Only a returned { cli, status, points[] } object is a result: a panelist pauses while its CLI runs, and a notification without that object is interim, so end the turn with no reply and wait for the next one. Match points that make the same claim, even when worded differently or aimed at the same area. Grade each cluster by the share of the responders (N) that raised it, and state N so a grade is never read as more agreement than it holds:

  • Unanimous: all N.
  • Majority: more than half, but not all.
  • Split: exactly half (a tie; only when N is even).
  • Lone: fewer than half.
  • Conflict: CLIs directly disagree on the same point.

Clustering is a judgement call. When two points are plausibly the same, join them; a borderline join that lifts a point to a higher grade is the whole value of the panel.

5. Report the consensus

Print the clusters, most-agreed first, under ## Unanimous, ## Majority, ## Split, ## Lone, ## Conflict (skip any that are empty). One line per point: the claim, its location, the CLIs that raised it in brackets, e.g. [claude, codex, grok], and its one-line reason. For a Conflict, state both sides and who holds each.

Then a one-line summary: how many points at each grade, the responder count N, and any CLI that was absent or errored.

Close with a Recommended next steps block:

  1. Fix list: every point at every grade, Unanimous through Lone, as one checklist. Do not curate: a Lone finding is a real finding until verified otherwise. For a Conflict, list both sides and say which one the code supports.
  2. Offer the shortcut: ask whether to verify and apply the whole list as one commit, naming the count, e.g. "Reply fix all to verify and apply all 11 points."

On fix all, work every point: verify each against the code, apply the ones that hold, and report the ones that do not with a one-line reason. Never apply only the confident subset and hand the rest back as "weigh individually"; the user asked for the panel so they would not have to re-adjudicate it. Ask only about a point that conflicts with a recorded decision.

Safety

Headless mode auto-approves every tool, so each CLI could write files even though the brief says review only. Two guards, in order: run the panel on a clean working tree, and in review shape revert any stray write with the git status check in step 3. Per-CLI read-only flags exist but behave inconsistently, codex --sandbox read-only works, agy --mode plan hijacks the task into planning, and grok's profile name is machine-specific, so the tree check, not a flag, is what enforces read-only. See the references file.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.