/delphi:delphifrom delphi
Runs a Delphi-style consult on a draft decision using two AI advisors (Codex and Antigravity) with premise verification and iterative refinement until no new grounded objections remain.
Ships in delphi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
/delphi [decision?]
decision : what is about to be committed, and the current draft — read from the session when not given
panel : two advisors, by default Codex (codex-plus) and Antigravity (agy-plus)
Each advisor runs through its own plugin; that plugin and the delegation rule in force choose its model within the bound below, its effort and flags, keep its session resumable, and say how it reaches files outside its working directory. Each seat is one session on one model from its own vendor — a Gemini model for Antigravity — resumed every round, where its plugin would otherwise run several models in parallel.
The two seats run through the codex-plus and agy-plus plugins, and the brief follows the stint plugin's references/prompting.md.
references/prompting.md: the reviewing role and that it changes no file, the decision, the settled constraints, the current draft, entry points to the evidence, and what would change the answer. Every path the brief names is a plain file each advisor can read without running a command; content reached only through a command, such as git show, is saved to a file first. The first brief is number 1, and every brief sent after it, a delta brief included, takes the next number.response field — never a summary of either. Every later round resumes the same session.Answer.roundClear;Decisions.stop holds on the current brief, or where the user ends it, and hand over the exit. Each of these makes a new current brief at the moment it is decided, before stop is read, so the round that produced it does not stop on the old brief: an applied disposition that changes the draft's text, a factual repair, a user decision at Hand over, and new context bearing on the decision. The advisors then answer the draft as it now stands. Where the exit leaves items the user has not decided, it also gives each seat's raw-answer pointer — its raw files and its session id — for the user to open on demand.stop does not hold, resume the same two sessions with a DeltaBrief. Its free text names no seat and counts no agreement either — no "you both", no tally, no repeated verdict.The Lean block holds within one round; what spans rounds reaches it as parameters and judgments. Across rounds the prose holds, and each item's latest disposition governs: an item routed to the user is carried into every later hand over, into each DeltaBrief's open points and into the exit until the user settles it or a later verification refutes it — a refuted referral is retired, not carried; a decided point goes to the seats as a Decision, not again as an open point.
What the Lean block proves of provenance is narrow: the judgments take a point, so they are independent of an objection's sources field, and the closing judgment reads a seat-free RoundView. The judgments still read the session; judging a point on its grounds rather than on who raised it is the Dispose step's rule above.
/-!
How to read this block. It is core Lean 4 and elaborates as written, and you are the model it is
written for: you read it, and by inference over the context you settle each element it leaves
open. Every `axiom` is one of those judgments — a black box to the contract, yours to make from
the material in front of you; its doc comment says what you judge there, and nothing in this
block decides it for you. Every `def`, `inductive`, and `structure` is fixed by the contract.
The block fixes what counts as an answer, what the closing judgments may read, what a delta
brief can carry, and when the consult stops. The routes an objection takes, the order of the
steps and where the run holds for the user are the procedure above.
-/
namespace Delphi
/-- The session as it stands: the decision, the briefs, every advisor answer, the user's turns,
and what verification found. -/
axiom Session : Type
/-- The two seats of the panel. A seat is who answered; it travels with an objection only in its
`sources`. -/
inductive Seat
| first
| second
/-- What an advisor returned for one run: the number of the brief it answered, and its text.
An answer the Read step judges to evaluate the brief is recorded as `some`. -/
structure Answer where
brief : Nat
text : String
/-- An answer counts on the current brief only when it answers that brief and carries a character
other than the ASCII whitespace Lean's `Char.isWhitespace` tests — space, tab, carriage
return, line feed. Other blank characters are the Read step's to screen. -/
def answered (current : Nat) : Option Answer → Bool
| some a => a.brief == current && !a.text.all Char.isWhitespace
| none => false
/-- An objection's content, apart from who raised it. The judgments below take a point, never
the seats an objection lists. -/
structure Point where
text : String
/-- An objection as raised in a round, one per distinct point: its content and every seat that
raised it, at least one. -/
structure Objection where
point : Point
sources : List Seat
sources_ne : sources ≠ []
/-- Why an item goes to the user. `blocksClose`: a choice a refuted premise's fix turns on, which
keeps the round from being clear. -/
inductive Reason
| userValue
| split
| unverified
| blocksClose
/-- Where an objection's point goes. `keepEarlier`: a repeat that keeps its earlier disposition,
distinct from a refuted `drop`. -/
inductive Disposition
| apply
| drop
| keepEarlier
| toUser (r : Reason)
/-- A disposition that holds the current brief open: an applied change makes a new brief, and a
choice that blocks closing waits on the user. -/
def Disposition.holdsOpen : Disposition → Bool
| .apply => true
| .toUser .blocksClose => true
| _ => false
/-- **Your judgment**: the route the Dispose step gives the point, after this round's
verification. -/
axiom dispose : Session → Point → Disposition
/-- **Your judgment**: the point keeps the consult open — it is new (not raised and disposed of
before, or now carrying new evidence or a failure condition), its grounds hold at their
primary sources, and it bears on the draft or on a decision the user made — judged after
this round's verification of objection and endorsement premises. -/
axiom keepsOpen : Session → Point → Bool
/-- One round on one brief: the brief's number, each seat's answer, and the objections raised. -/
structure Round where
brief : Nat
answers : Seat → Option Answer
objections : List Objection
def Round.complete (r : Round) : Bool :=
answered r.brief (r.answers .first) && answered r.brief (r.answers .second)
/-- What the closing judgments read of a round: its brief, whether both seats answered it, and
its points — no seat and no `sources`. -/
structure RoundView where
brief : Nat
complete : Bool
points : List Point
def Round.view (r : Round) : RoundView :=
{ brief := r.brief, complete := r.complete, points := r.objections.map (·.point) }
/-- **Your judgment**, made after Read and Verify: both answers evaluate the brief, every premise
of the objections and endorsements has been checked, and no choice that blocks closing is
pending — the user's choice that a refuted premise's fix turns on. A premise that could not
be verified, handed to the user, does not block it. -/
axiom roundClear : Session → RoundView → Bool
/-- `current`: the number of the brief now standing. The consult stops on a complete round on
that brief that is `roundClear`, whose points include none that keeps it open and none whose
disposition holds the brief open. -/
noncomputable def stop (s : Session) (current : Nat) (r : Round) : Bool :=
let v := r.view
v.brief == current && v.complete && roundClear s v &&
(v.points.filter (keepsOpen s)).isEmpty &&
(v.points.filter (fun p => (dispose s p).holdsOpen)).isEmpty
/-- A user decision carried into the next brief: the choice, as a constraint. The facts it leans
on are not part of it and stay open to objection. -/
structure Decision where
choice : String
/-- What a resumed session receives. It has no field for a seat, a count, or a verdict: points
travel without their sources. `openPoints` are the open items as the prose carries them
across rounds. What its free text may say is the Delta round step's. -/
structure DeltaBrief where
changedWording : String
newEvidence : List String
openPoints : List Point
decisions : List Decision
/-- What the exit hands over: the items still open, each seat's raw-answer pointer where any item
remains, and the claim. -/
structure Exit where
toUser : List (Point × Reason)
raw : List (Seat × String)
claim : String
/-- `openItems`: the items still open, as the prose carries them across rounds. `rawAt`: where
each seat's raw answers are kept — its raw files and its session id. The panel's claim is
made only where the consult stopped; an exit the user called earlier says so instead. -/
noncomputable def exit (s : Session) (current : Nat) (r : Round) (openItems : List (Point × Reason))
(rawAt : Seat → String) : Exit :=
{ toUser := openItems,
raw := if openItems.isEmpty then [] else [(.first, rawAt .first), (.second, rawAt .second)],
claim := if stop s current r
then "this panel raised no new grounded objection to the current brief in this material"
else "the consult ended before a round on the current brief stopped it" }
end Delphi
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jongwony/cc-plugin --plugin delphiOther plugins' skills for the same job