inquire

inquire is a skill for Claude Code from jongwony/epistemic-protocols. It costs 99 tokens per session (5,258 once invoked), scanned A, original, MIT.

A method for finding missing context before carrying out a task. It checks what is known, verifies what can be checked in the project, and asks focused questions about the remaining uncertainty.

In plain words
What is it for?
Use it before tasks where requirements, facts, or priorities are unclear. It helps gather evidence, identify unresolved decisions, and ask the most useful questions first.
Why use it?
It reduces the risk of acting on incorrect assumptions or conflicting information. It separates questions that can be answered from the code from those that need your input.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the aitesis plugin — 1 skill shipped together

Good fit Use it before tasks where requirements, facts, or priorities are unclear. It helps gather evidence, identify unresolved decisions, and ask the most useful questions first.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jongwony/epistemic-protocols/inquire
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jongwony/epistemic-protocols --skill inquire
Clone the repo
git clone --depth 1 https://github.com/jongwony/epistemic-protocols

Made for: Claude Code.

Or install aitesis, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for inquire

README.md
[![agentmods](https://agentmods.dev/badge/skills/jongwony/epistemic-protocols/inquire/github.svg)](https://agentmods.dev/skills/jongwony/epistemic-protocols/inquire)
Your own site
<a href="https://agentmods.dev/skills/jongwony/epistemic-protocols/inquire"><img src="https://agentmods.dev/badge/skills/jongwony/epistemic-protocols/inquire/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for inquire

Your own site · 80×15
<a href="https://agentmods.dev/skills/jongwony/epistemic-protocols/inquire"><img src="https://agentmods.dev/badge/skills/jongwony/epistemic-protocols/inquire.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,258 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Data Exfiltration · line 173
    Code or instructions that leak agent conversation context to external services, potentially exposing sensitive user interactions.
    Fix: Remove any code that sends prompts, responses, or session data externally. Preserve user privacy; never exfiltrate conversation content.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00099 $0.05258
Opus 5.5 $0.00040 $0.02103
Sonnet 5.5 $0.00020 $0.01052
Haiku 4.5 $0.00010 $0.00526

Measured 21d ago against content hash a7f47d800d47, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

inquire scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 21d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

aitesis/skills/inquire/SKILL.md · 379 lines

How it starts

The opening of the file, as written. The whole thing — 379 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Aitesis Protocol

Collect every piece of context the AI can reach on its own, then hand back what it cannot reach as the user's own unknown. Type: (ContextInsufficient, AI, INQUIRE, Prospect) → SufficientContext.

Definition

Aitesis (αἴτησις): A dialogical act of collecting context to the limit of the AI's own reach before the person is asked for anything. The AI infers what the prospect leaves uncertain, pushes each uncertainty through every source it can read or run on its own, and writes down for each what that reached — a fact that settles it, a finding on ground it declares short, or nothing. What remains open is handed back as the person's own unknown, shown so they can recognize it. The beneficiary is the person's epistemic state: collection spares them recalling everything the work rests on. Completion establishes the collected context the work ahead reads — not the factual correctness of its parts, nor the readiness of work resting on what is open.

/-!
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.
-/

/-! ── FLOW ──
Aitesis(X) → start(c) → inquire(c, utterances), c the fused session context. Every collection ends
in a completion whose relay proceeds; an utterance that bears on the run reopens collection. A
mid-collection stop is the harness's interrupt — a delegation point.
-/

/-! ── MORPHISM ──
Prospect
  → scan(prospect, context)  -- live inventory of what the context leaves uncertain (focus)
  → collect(uncertainties)   -- every source within the AI's own reach; returns join the context first
  → read(uncertainty)        -- settled with a citation, ground short with its candidate, or unreached
  → relay(open)              -- what is open handed back as the person's own unknown, each with its reach; proceed
  → fuse(answer)             -- an answer joins the context whole
  → SufficientContext
requires:  insufficient(X)       -- declared by invoking /inquire
deficit:   ContextInsufficient   -- activation precondition
preserves: task_identity(X)      -- the prospect is never rewritten; the context only grows (session clear, compact, or rewind is the harness's)
invariant: Evidence over Inference over Detection
invariant: Focus never records   -- inventory, relay, and bearing are re-read every turn; only a cited source or the person's turn moves a value into the record
-/

namespace Aitesis

/-! ── GROUND ──
The session primitive this contract reads.
-/

inductive Origin | person | assistant | external | peer | injected | unknown
  deriving DecidableEq

/-- A turn is who sent it and what it says. What the turn does — a statement, a request, an
    instruction, a report of what was observed — is read from its content, never stored here. -/
structure Turn (P : Type) where
  origin  : Origin
  content : P

abbrev Context (P : Type) := List (Turn P)

/-- An origin that may ground: the harness says who sent a turn, and that is all this admits on.
    The assistant's own turns, injected text, and turns of unknown origin ground nothing. -/
def Grounding := {o : Origin // o ≠ .assistant ∧ o ≠ .injected ∧ o ≠ .unknown}

/-- Any turn a person sent, whatever it does. -/
def Utterance (P : Type) := {e : Turn P // e.origin = .person}
def Response (P : Type) := {e : Turn P // e.origin = .assistant}
/-- A turn from outside the conversation: what a tool or the environment returned, or a peer's
    report. A person's account of what they observed is an utterance, read as such. -/
def Evidence (P : Type) := {e : Turn P // e.origin = .external ∨ e.origin = .peer}

def fuse {P : Type} (c : Context P) (u : Utterance P) : Context P := c ++ [u.val]

/-- One turn of the context, with the origin it grounds on. -/
structure Cite {P : Type} (c : Context P) where
  idx : Nat
  lt  : idx < c.length
  src : Grounding
  ok  : (c[idx]'lt).origin = src.val

/-- `admits` reads only who sent the cited turn; `supports` is the model's reading of what that
    turn says, including what it does — a statement, a request, a report of an observation. -/
structure Coord (P A : Type) where
  admits   : Grounding → Prop
  supports : Context P → Turn P → A → Prop

/-- `open_` may carry a candidate citation whose support is still short. -/
inductive Occ {P A : Type} (q : Coord P A) (c : Context P)
  | open_  (candidate : Option (Cite c))
  | filled (a : A) (src : Cite c) (allowed : q.admits src.src)
      (supported : q.supports c (c[src.idx]'src.lt) a)

/-- The same turn, cited from a longer context; what it supports is judged again against the
    context that now stands. -/
def Cite.lift {P : Type} {c : Context P} (s : Cite c) (t : Context P) : Cite (c ++ t) :=
  { idx := s.idx
    lt := by have := s.lt; simp; omega
    src := s.src
    ok := by rw [List.getElem_append_left s.lt]; exact s.ok }

/-! ── TYPES ── -/

noncomputable section

variable {P : Type}

/-- `X`: the prospect for action — planning, task execution, analysis, investigation, or any
purposeful action requiring context — read as the context it lands in. -/
abbrev Prospect (P : Type) := Context P

/-- The deficit: the work ahead rests on ground not yet checked — a reading presupposed, a missing
value filled in, a search stopped early. Invoking `/inquire` declares it. **Your judgment** only on
the AI-guided path: finding none means not starting, which leaves no outcome of this protocol. -/
axiom insufficient : Context P → Prop

abbrev Entry := String

/-- **Your judgment**, the inventory: every uncertainty the prospect rests on that this run has
raised — a missing fact, a contradiction between the utterance and what was collected, a relevance
gap; no fixed taxonomy — read over the whole fused context. An uncertainty collection exposes joins
in the collection that exposed it; one the person dismissed stays here, and `live` sets it apart.
Whether a reworded uncertainty is the same one is your judgment. Guidance for the reading, not a
step it must take: show first what an answer would change most. -/
axiom uncertainties : Context P → List Entry

/-- **Your collection**, to the limit of your own reach: every live uncertainty, and every one
collection exposes, pushed through every source you can read or run without changing existing state,
until none is left; where to look is yours to judge, and no list of sources bounds it. What the
context holds from a source is not fetched again unless an utterance or evidence says it changed.
What you say you read, you read whole. An observation that needs to change existing state, someone's
permission, or another's authority is beyond your reach: name it, with what it needs, in `reach`,
and hand it off. Each return is an evidence turn; a run that observed nothing returns its null
result. Direction: `references/judgments.md` §Collection. -/
axiom collect : Context P → List (Evidence P)

inductive Proposer | draft | person

inductive Standing | set | adopted

/-- What settles an uncertainty: a fact, sourced by the citation; or a value the person holds, with
who first put it forward (`draft` is your visible candidate) and how it came to stand. -/
inductive Settled
  | fact (value : Entry)
  | held (value : Entry) (proposer : Proposer) (standing : Standing)

def Settled.isHeld : Settled → Bool
  | .fact _    => false
  | .held .. => true

/-- **Your judgment**, the record rule: the cited turn settles `x` as `s` on the context as it now
stands. Evidence — what a source returned, what the person reports they observed, or a decision of
theirs that another source relays — settles a fact: that the decision exists is a fact. A decision
the work rests on that the person holds — a value, a preference, a scope — stays open until their
own turn gives it: in their own words (`set`), or by taking a candidate (`adopted`) — yours only if
it was visible as yours, with what decides it and your contrary grounds, before that turn. Evidence
informs it without settling it. A question, a request to look, a deferral, or a bare mention settles
nothing. A held value changes only by the person's later words; evidence against it is shown. A fact
is re-read against current evidence; a correction is shown in the convergence trace, citing both
turns. -/
axiom Settles : Entry → Context P → Turn P → Settled → Prop

def settleCoord (x : Entry) : Coord P Settled :=
  { admits := fun _ => True, supports := Settles x }

/-- **Your reading**: how `x` stands in `c` — filled by the latest turn that settles it; open with a
candidate citation where a cited evidence or person turn points toward a value but its ground is
short; open with none where nothing was reached. Your own inference is never a citation: it stays
marked as yours. -/
axiom operative : (c : Context P) → (x : Entry) → Occ (settleCoord (P := P) x) c

def isFilled {A : Type} {q : Coord P A} {c : Context P} : Occ q c → Bool
  | .open_ _   => false
  | .filled .. => true

def stands {c : Context P} {x : Entry} : Occ (settleCoord (P := P) x) c → Bool
  | .open_ _          => false
  | .filled s src _ _ => !s.isHeld || decide (src.src.val = .person)

/-- **Your record** of what collection reached for `x`: the sources tried and those not reached, by
name, with what each unreached one needs; what was found and where its ground falls short; what an
answer would change; where collected material conflicts, what conflicts with what, each quoted with
its source; where a decision blocks collection, which collection waits on it. Whether `x` is the
person's to settle is your reading, shown for their correction. What they said they know or do not
know is carried as said; beyond that, whether they know is not established. -/
axiom reach : Context P → Entry → String

/-- **Your record**: findings collection turned up that answer no uncertainty raised, each with its
source. They are shown, not handed back. -/
axiom detections : Context P → List String

/-- **Your judgment**: the cited turn dismisses `x` — in whatever words, no reason demanded. Whether
an earlier dismissal still holds once new evidence bears on `x` is read on the current context. -/
axiom DismissalSupported : Entry → Context P → Turn P → Unit → Prop

/-- Only the person dismisses. -/
def dismissalCoord (x : Entry) : Coord P Unit :=
  { admits := (·.val = .person), supports := DismissalSupported x }

/-- **Your reading**: the person's dismissal of `x`; `open_` until one reaches it. -/
axiom dismissal : (c : Context P) → (x : Entry) → Occ (dismissalCoord (P := P) x) c

def live (c : Context P) : List Entry :=
  (uncertainties c).filter (fun x => !isFilled (dismissal c x))

structure Recorded (c : Context P) where
  item         : Entry
  settled      : Settled
  src          : Cite c
  supported    : Settles item c (c[src.idx]'src.lt) settled
  heldByPerson : settled.isHeld = true → src.src.val = .person

def recordOf {c : Context P} (x : Entry) : Occ (settleCoord (P := P) x) c → List (Recorded c)
  | .open_ _                  => []
  | .filled s src _ supported =>
    if h : s.isHeld = true → src.src.val = .person then [⟨x, s, src, supported, h⟩] else []

def record (c : Context P) : List (Recorded c) :=
  (live c).flatMap (fun x => recordOf x (operative c x))

structure Open where
  item  : Entry
  reach : String

def residual (c : Context P) : List Open :=
  ((live c).filter (fun x => !stands (operative c x))).map (fun x => ⟨x, reach c x⟩)

structure Dismissed (c : Context P) where
  item     : Entry
  src      : Cite c
  byPerson : src.src.val = .person
  stood    : Occ (settleCoord (P := P) item) (c.take (src.idx + 1))
  reached  : String

def dismissedOf {c : Context P} (x : Entry) : Occ (dismissalCoord (P := P) x) c → List (Dismissed c)
  | .open_ _                 => []
  | .filled _ src allowed _  =>
    [⟨x, src, allowed, operative (c.take (src.idx + 1)) x, reach (c.take (src.idx + 1)) x⟩]

def dismissed (c : Context P) : List (Dismissed c) :=
  (uncertainties c).flatMap (fun x => dismissedOf x (dismissal c x))

/-- **Your judgment**: the latest utterance, read whole against the prospect and the fused context,
bears on this run — an answer, a correction, a source to read, a dismissal, or anything that exposes
a new uncertainty, changes the evidence, or revises who may settle what, even where it looks like
other work. An utterance that bears on none of it leaves the run as it stands: the session answers
it, that answer stays in the context, no collection of this run opens, and the last completion
stands. -/
axiom Reaches : Context P → Prop

/-- **Your record**: the contrary grounds presented with the relay — a value you doubt, a premise
that may not hold, a source that disagrees; empty when there were none. -/
axiom dissent : Context P → List String

structure Closed (P : Type) where
  context    : Context P
  record     : List (Recorded context)
  residual   : List Open
  dismissed  : List (Dismissed context)
  detections : List String
  dissent    : List String

def closed (c : Context P) : Closed P :=
  { context := c, record := record c, residual := residual c, dismissed := dismissed c,
    detections := detections c, dissent := dissent c }

/-- Once it has run, the person can recognize, for each thing the work ahead rests on, what was
settled and from which source, what the AI found only on ground it declares short or could not
reach, what it put forward as its own candidate, and what is theirs alone to decide — and can answer
their share or correct that reading. -/
structure SufficientContext (P : Type) where
  closure : Closed P

/-! ── MODE STATE ──
Λ is the fused context and nothing else; every reading above is taken from it.
-/

/-! ── PHASE TRANSITIONS ──
`respond` is the relay (`surface`); `session` is the session's own answer to an utterance about
other work.
-/

def collected (c : Context P) : Context P := c ++ (collect c).map (·.val)

def collectAndSettle (respond : Context P → Response P) (c : Context P) : SufficientContext P :=
  ⟨closed (collected c ++ [(respond (collected c)).val])⟩

open Classical in
def inquire (respond session : Context P → Response P) :
    Context P → SufficientContext P → List (Utterance P) → SufficientContext P
  | _, r, []      => r
  | c, r, u :: us =>
    let c' := fuse c u
    if ¬ Reaches c' then inquire respond session (c' ++ [(session c').val]) r us
    else
      let r' := collectAndSettle respond c'
      inquire respond session r'.closure.context r' us

def start (respond session : Context P → Response P) (c : Context P)
    (us : List (Utterance P)) : SufficientContext P :=
  let r := collectAndSettle respond c
  inquire respond session r.closure.context r us

/-! ── CONVERGENCE ──
completed: collection has reached everything it can. What is open neither blocks completion nor is
settled by it. A finding alone establishes nothing about what is open. Evidence demonstrated at each
completion: for every uncertainty raised, how it stands — settled, with its citation and, for a held
value, who proposed it and how it stood; a corrected fact, citing both turns; open, with its reach,
marked as shown, the person's recognition not yet established unless a later turn of theirs showed
it; dismissed, with the person's words and how it stood then — beside the detections and the
dissent.
-/

/-! ── TOOL GROUNDING ──
What each operation of this contract does. An interaction with the person is one of two kinds,
and its kind fixes how it continues once its text is presented. A Constitution settles a judgment
through the person's turn. An Extension settles none for the person: it passes on a result its
cited ground fixes, or carries reversible work forward on a judgment the AI states, which stays
the AI's proposal until the person takes it. Beyond the Constitution operations a contract
annotates, whether work goes forward this way or waits for the person's answer is the AI's
judgment in the situation, and work that cannot be undone waits for the authorization it needs.
Work carried forward, on a grant or a stated judgment or as clear work, returns with an account
of how the request was read, what was judged on what basis — naming an alternative set aside
where it may be preferred — and how far the work went.
-/

inductive Interaction | constitution | extension

inductive Continuation | stop | proceed

inductive Annot | sense | observe | track | transform | dispatch | interaction (kind : Interaction)

/-- Every interaction presents its text; a Constitution then stops for the person's turn, and an
    Extension proceeds. -/
def Interaction.realization : Interaction → Continuation
  | .constitution => .stop
  | .extension    => .proceed

inductive Op | scan | collect | read | surface | readAnswer | converge | seam

def grounding : Op → Annot × String
  | .scan       => (.sense, "Internal analysis: the inventory, as `uncertainties` states")
  | .collect    => (.observe, "record read, artifact read, artifact search, external fetch, environment run: collection as `collect` states")
  | .read       => (.sense, "Internal analysis: how each uncertainty stands and its reach, as `operative` and `reach` state")
  | .surface    => (.interaction .extension, "once everything reachable is reached: every open uncertainty handed back as the person's own unknown with its `reach`, marking which is theirs to settle as your reading; each settled one with its provenance — the evidence and where it was read, or the person's words, your earlier candidate marked as yours; the detections with sources; your contrary grounds")
  | .readAnswer => (.sense, "Internal analysis: whether the latest utterance bears on this run, and what it does there: settles, corrects, points to a source, says the person does not know either, dismisses, or exposes a new uncertainty")
  | .converge   => (.interaction .extension, "the convergence evidence CONVERGENCE names; proceed with SufficientContext")
  | .seam       => (.interaction .extension, "after completion, proceed to the next move the person declared, citing that turn")

/-! ── COMPOSITION ──
*: product — (D₁ × D₂) → (R₁ × R₂). Dimension resolution emergent via session context.
-/

end

end Aitesis

Read the full file on GitHub · 379 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 21d ago Changed · -77 lines a7f47d800d47
  2. 28d ago Changed · +7 tokens per session 8d9e5b7a518b
  3. 29d ago Changed · +52 tokens per session 3e8ad5262278
  4. 1mo ago Changed fb51359a84c5
  5. 1mo ago Changed 560813ccf1f4
  6. 1mo ago Changed · -1 lines 212717b77fb9
  7. 1mo ago Changed · -5 lines 94724fd1f0fd
  8. 1mo ago Changed · +10 lines 068f6e552bc9
  9. 1mo ago Changed · +3 lines · +1 tokens per session 9827016fd606
  10. 1mo ago First seen · 449 lines · 39 tokens per session scan A 9d63ee718fe7

Subscribe to this mod's changes

inquire is a skill published in the GitHub repository jongwony/epistemic-protocols (176 stars, last pushed 6d ago), licensed MIT. It adds 99 tokens to every session and 5,258 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

inquire compared with skills from other repositories

inquire next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
inquirejongwony/epistemic-protocolsSkill1766d agoMITA99Claude Code
flow-next-tracker-syncgmickel/flow-nextSkill735yesterdayMITA44Claude Code, Codex
flow-next-resolve-prgmickel/flow-nextSkill735yesterdayMITA36Claude Code, Codex
plugin-code-review-orchestratedexplyt/spring-pluginSkill1707d agoApache-2.0A72Claude Code, Codex
docsThe01Geek/prflowSkill1015d agoMITA97Claude Code
fix-js-globalsUI5/plugins-coding-agentsSkill482d agoApache-2.0A243Claude Code, Codex
fix-control-rendererUI5/plugins-coding-agentsSkill482d agoApache-2.0A196Claude Code, Codex