agentleFS
svyatovsvyatov/supermatt/skills/jury/SKILL.md

jury

Skill2 starsChanged 2 months agoMITView on GitHub

Put a question or decision to a jury of 3 or 5 subagents: blind independent votes, one anonymized review round, and one committed verdict with the vote, the dissent, and the first action.

1 other project uses 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. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Stop before any dispatch when:

    line 18
  2. Distinctive:

    Read what the question needs once: the code, docs, links, and conversation it points at.

    line 25
  3. Distinctive:

    Leave your own leaning out of the brief, and leave out any option label that judges ("the safe option").

    line 33
  4. Distinctive:

    If the blind vote is unanimous and every confidence is 70 or higher, go to Step 6.

    line 80
  5. Distinctive:

    Run one review round, never more.

    line 84
  6. Distinctive:

    Anonymize: Remove the lens names from the juror blocks.

    line 87
  7. Distinctive:

    HIGH: all seats, or four of five, chose it, and the reasons in Why are verified or rest on files you read.

    line 122

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Jury

One model asked once gives one line of reasoning, and asking it to debate itself mostly makes it agree with itself. A jury gets independence from separate subagents that vote blind, and it gets correction from one review round where every vote change must name its reason. You are the foreman: you frame, dispatch, check facts, and deliver one verdict. There is always a verdict.

Step 1: Gate

The question is the arguments. A trailing 5 sets the panel size and is not part of the question. If the question is empty, take the decision under discussion in this conversation, and if there is none, ask for it.

Stop before any dispatch when:

  • The question has one checkable answer (what a function returns, what a doc says). Answer it and say that no jury was needed.
  • This host cannot dispatch subagents. Say so and stop. Never play the jurors yourself in one context: a juror that has read the other answers is not independent.

Step 2: Brief

Read what the question needs once: the code, docs, links, and conversation it points at. Then write the brief, the only thing every juror sees:

  • Question: one sentence.
  • Options: two to four, with neutral labels (A, B, C, or short plain names). A juror may also answer "none", with a better framing.
  • Criteria: two to four things a good answer must do well.
  • Facts: each with its source (path:line, URL, or "user said").
  • Constraints: budget, deadline, what cannot change.

Leave your own leaning out of the brief, and leave out any option label that judges ("the safe option"). Ask the user one question only if you cannot name the options. Show the brief, then continue without waiting.

Step 3: Seat the panel

Seat three jurors, or five when the arguments end in 5. Each seat gets one lens, in table order. A lens tells the juror where to look. It does not pick the juror's side, so every vote is free.

#LensQuestion the lens asks
1Pre-mortemIt is a year later and this choice failed. What caused it?
2First principlesSet aside how it is usually done. What does the problem itself require?
3CostWhat does each option cost to build, to run, and to undo?
4OutsiderWhat does someone with no history in this choice see?
5EvidenceWhich facts in the brief carry the decision, and how solid is each?

This host is Codex when any of CODEX_SANDBOX, CODEX_SESSION_ID, or CODEX_THREAD_ID is set. When it is not, run command -v codex. If it prints a path, the last seat is a Codex seat: it runs on a different model family, and different families catch different mistakes. Otherwise every seat is a subagent of this host.

Step 4: Blind vote

Dispatch every seat in one message, so no juror can see another's answer. A host seat is a fresh subagent, never a fork of this conversation, that gets only the juror prompt. The Codex seat is a Bash call in the same message, with a 600000 ms timeout. Make its directory first with mktemp -d:

codex exec --ignore-user-config --disable apps --disable plugins -s read-only -c 'approval_policy="never"' --ephemeral --skip-git-repo-check -C <project root> -o <temp dir>/vote.md - > <temp dir>/codex.log 2>&1 <<'EOF'
<juror prompt>
EOF

The flags keep the seat read-only, with no MCP servers, plugins, or approval escalation, so it cannot write through the user's own config. Read its answer from vote.md, never from the command output. If the command exits non-zero or the file is empty, read the reason from tail -5 <temp dir>/codex.log, dispatch a host subagent with the same lens, and record the swap and its reason for the Panel line.

The juror prompt:

You are one juror on a panel of <N>. The other jurors answer the same brief on their own, and you will not see their answers. Do not ask the user anything and do not change any file. You may read files and run read-only commands to check the facts in the brief.

Your lens: <lens>: <question the lens asks>. Use it to decide where to look. It does not decide your vote: vote for the option the evidence supports.

<brief>

Return only this block:
CHOICE: <one option label, or "none: <a better framing>">
CONFIDENCE: <0-100>
REASONS: <at most 3, each with the fact or path:line it rests on>
WOULD CHANGE MY MIND: <the one finding that would flip your choice>
RISKIEST ASSUMPTION: <the assumption your choice depends on most>

Seats may return one at a time as background notifications. Wait for every seat without writing a message for each arrival, and treat a completion notice for a seat you already have as nothing to answer. Retry a seat that fails or returns no CHOICE once, then drop it and note the drop. Tally the choices. This is the blind vote.

If the blind vote is unanimous and every confidence is 70 or higher, go to Step 6.

Step 5: Review

Run one review round, never more. More rounds make jurors agree with each other, and they do not make the answer more correct.

  1. Check facts. Find the factual claims the jurors disagree on that could change the vote. Check each against its source yourself, and mark it verified, contradicted, or unverifiable.
  2. Anonymize. Remove the lens names from the juror blocks. Label them Position A, B, C, and give each reviewer its own shuffled order.
  3. Dispatch fresh reviewers, one per seat, in one message, never forks. The Codex seat reviews through codex exec with -o <temp dir>/review.md and the same log redirect, unless it failed in Step 4. If that call fails, dispatch a host reviewer and record the swap. A fresh reviewer wrote none of the positions, so it has no answer of its own to protect.

The reviewer prompt:

You are one reviewer on a panel of <N>. Below are anonymous positions on the same brief, in random order. Do not ask the user anything and do not change any file.

<brief>

Fact checks by the foreman:
<claim>: <verified | contradicted | unverifiable>, <source>

<Position A: juror block>
<Position B: juror block>
...

Return only this block:
REVIEW: <for each position, its strongest point and its weakest point>
EVERYONE MISSED: <what no position considered>
CHOICE: <one option label, or "none: <a better framing>">
CONFIDENCE: <0-100>
CHANGED FROM MAJORITY BECAUSE: <if your choice differs from the most common choice above, the argument or checked fact that decided it; otherwise "none">

Tally the choices. This is the review vote.

Step 6: Verdict

The review vote decides, or the blind vote when Step 5 was skipped. The blind vote stands instead when the review majority differs from it and no reviewer names the argument or fact behind the change: a change with no reason is agreement, not evidence.

You may overrule the majority only with a checked fact that defeats its main reason. Say so in the verdict. On a tie, pick the option whose main reason survived the fact checks. If that still ties, pick the option that is cheaper to undo.

Confidence:

  • HIGH: all seats, or four of five, chose it, and the reasons in Why are verified or rest on files you read.
  • MEDIUM: a majority chose it.
  • LOW: you broke a tie, you overruled the majority, or the main reason is unverifiable.

A "none" verdict is valid: give the better framing as the verdict and the first action under it.

Step 7: Report

Output only this block. The brief was already shown in Step 2. Show the juror blocks and reviews only if the user asks for them.

## Verdict: <option, or "Reframe: <better framing>">

Confidence: <HIGH | MEDIUM | LOW>
Vote: blind <A 2, B 1>, review <A 3>. <what changed a vote and why, or "no change">

Why:
1. <reason, with its source>

Dissent: <the strongest case for the option that lost, in its best form>
Everyone missed: <from the reviews, or "review skipped: unanimous blind vote">
Riskiest assumption: <assumption>. Test: <the cheapest check>. If it fails: <the option the verdict flips to>.
First action: <one concrete step>

Panel: <N> seats (<seats per model family>), lenses <list>. <drops or swaps>

When every seat ran on one model family, end the Panel line with: "One model family, so the seats can share a blind spot." When the user comes back with the result of the Test, run the jury again from Step 2 with that result as a fact.

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.