Turns a research question into ranked, testable hypotheses with cited grounding and the smallest experiment for each, then stops for the operator's choice. Intake through ask_user, literature through the researcher agent and citation-check, independent council proposals, a testability ranking recorded with decide as advice, a hazard checkpoint, and the operator's own choice through an operator_only ask_user question. Headless runs end with the ranked options. Never chooses the question or the hypothesis.
Ships in literature. 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.
Turn the operator's research question into a slate of cited, falsifiable hypotheses, ranked by how testable they are, each top one with the smallest experiment that could refute it. Then stop. The operator chooses which hypothesis to pursue, or none. You never choose the question or the hypothesis, in any mode.
How the choice is kept with the operator: a hypothesis choice exists only as
the operator's answer to an ask_user question marked operator_only: true.
PanCode records that answer on the session decision board with the mark
operator_choice, and nothing else can produce that mark: decide cannot,
ask_user action=complete cannot write or replace it, a timeout or yolo
autonomy answers nothing for it, and a headless run has no ask_user at all.
So never write a choice anywhere else: not in the slate, a file, a decide
call or a complete decision.
ask_user registered means an operator is attending: run steps 1 to 8. In a
headless run without an --answers file, ask_user is not registered and nobody will reply: take the
intake from the task text, run steps 2 to 7, and end with the headless report
in step 8. Never end a headless run with a question.
You need five things: the research question, the constraints, the data available, the budget and the time. Use what the task already states and ask only for what is missing.
ask_user call with operator_only: true and no
options. Never offer candidate questions as a choice you made.ask_user round (up to four questions, options where
natural). An answer of "none" or "unknown" is an answer."not given". With
no research question in the task, stop and say that the run needs one.Collect what is known, with a source for every statement.
researcher subagent with the question and constraints so raw
search output stays out of the main context window. When the pancite MCP
server is trusted (and granted pancode mcp trust pancite --network for
workers), follow PanCite's own pancite:literature-review and
pancite:evidence-policy skills (or read pancite://workflows and
pancite://methodology via mcp_pancite__:read_resource) instead of
improvising search rules; otherwise fall back to the arxiv-literature
skill. Ask for findings whose evidence names a DOI, arxiv:<id>, PMID or
URL.citation-check skill (using PanCite's
pancite:bibliography-audit skill and mcp_pancite__verify-citation when
available, or its web_fetch fallback). Record each source's verdict:
VERIFIED, MISMATCH, NOT_FOUND, UNAVAILABLE, or UNVERIFIED when no check ran.L1, L2, ...). A statement
with no source is kept and marked "unsourced": true, and wherever it is
quoted to the operator it carries [unsourced]. Never cite from memory a
work you have not resolved, and never drop a NOT_FOUND or MISMATCH quietly:
keep the verdict beside the statement.Several models propose hypotheses without seeing each other.
dispatch with mode: "council", the roster the operator named (else
default), rounds: 1 and synthesis: "none". One round with no
synthesis is what keeps the members independent: each answers the same task
and none reads another's answer.default autonomy, which a headless run
cannot give, so headless pancode run at default refuses it. Say so
in the report and fall back as below; a headless council needs the run
started with --autonomy yolo.parallel
researcher tasks instead. Record "independentModels": false in the slate,
because one model's three answers are not a council.Merge the answers yourself:
proposedBy lists every member that proposed it.disagreements as {member, position}. Never drop a member's hypothesis
silently; one you fold into another stays listed in merged.Rank every hypothesis, most testable first, on: a falsifiable prediction;
the data required (available now, or to collect); the cost; the time; and the
number of physical steps (fewer is more testable). Then record the ranking
with decide: key hypothesis-ranking, value the order (H2 > H1 > H3),
the orderings you rejected as alternatives, and the rationale. The ranking
is advice. It is not a choice, and saying "I recommend" about it is fine;
acting on it is not.
For each of the top three:
reproduce check (pinned input digests, seed, compare: twice or a
reference, a declared tolerance) or a numeric-compare check, with the
verify entry id it would get. Draft the entry in the slate; do not add it
to the project's verifier file before the operator chooses. Physical work
gets a manual criterion with a measurable threshold.Write the slate to research/hypotheses/<slug>.json, unless the operator
named another place, in this shape:
{
"schema": "pancode.hypothesis-slate.v1",
"question": {"text": "...", "constraints": "...", "data": "...", "budget": "...", "time": "..."},
"literature": [
{"id": "L1", "statement": "...", "sources": [{"id": "doi:10.1000/x", "verdict": "VERIFIED"}]},
{"id": "L2", "statement": "...", "unsourced": true}
],
"council": {"roster": "default", "members": ["a", "b", "c"], "independentModels": true},
"hypotheses": [
{
"id": "H1", "status": "proposed",
"statement": "...", "prediction": "...",
"proposedBy": ["a", "c"], "grounding": ["L1"],
"disagreements": [{"member": "b", "position": "..."}], "merged": [],
"testability": {"data": "...", "cost": "...", "time": "...", "physicalSteps": 0},
"experiment": {
"summary": "...",
"successCriterion": {"kind": "reproduce", "verifyId": "h1-...", "statement": "..."}
},
"hazard": {"flagged": false, "categories": [], "note": ""}
}
],
"ranking": {"order": ["H1"], "rationale": "...", "decision": "hypothesis-ranking"}
}
status stays proposed: tested, supported and refuted come later, from
evidence. Write the slate with write or edit: PanCode then records each
hypothesis in the project's claims ledger as proposed, and moves it when the
check its verifyId names runs: tested when it ran, supported or refuted by
the claim that run's judgement produced. Report that status from the ledger
(pancode claims, or the note on the verify result) and never edit it
into the slate. Run the checker with run_script (or bash and python3 when the
pack is installed outside the workspace) and fix every error it reports:
run_script(interpreter="python3",
script="${pluginRoot}/assets/scripts/hypothesis_slate.py",
args=["--markdown", "research/hypotheses/<slug>.json"],
inputs=["research/hypotheses/<slug>.json"])
It refuses a slate with an uncited, unmarked statement, a hypothesis without
a prediction, a ranking that misses a hypothesis, or any key that records a
choice (selected, chosen, choice, ...). Its hazardConfirmationsRequired
lists every hypothesis the slate flags or its term screen matches. Exit 0
means valid, 1 errors, 2 unreadable.
Before the choice, every hypothesis in hazardConfirmationsRequired, plus any
you judge hazardous yourself, needs the operator's explicit confirmation.
ask_user call per flagged hypothesis, operator_only: true,
header Hazard check H<n>, the categories and matched terms in the question,
and the options Keep H<n> as an option (the operator confirms the work has
the review and approvals it needs, and H is offered in step 8) and
Drop H<n>. A flagged hypothesis the operator did not keep is not offered.
The checker's table still says flagged for a kept one; say in your text
which flags the operator confirmed.This checkpoint adds to PanCode's safety policy and safety judge; both still review every tool call.
Attended: show the ranked table from the checker (--markdown) with the
disagreements and hazard flags in your text, then ask one ask_user question
with operator_only: true, header Hypothesis choice, and the options: every
hypothesis still eligible, in rank order (H2: <short statement>, with its
prediction and experiment as the description; one ranked below the top three
says it has no experiment drafted yet, and one kept at the hazard checkpoint
says hazard confirmed), then Refine the hypotheses and None of these.
Eligible means not dropped at the hazard checkpoint. Mark no option
recommended.
operator_choice_unanswered or a cancel: the choice stays open. End the
turn and change nothing.Do not restate the choice in an action=complete decision or a decide call.
Headless: end here with the report: the question, the ranked table, the disagreements, the hazard flags awaiting confirmation, the unsourced statements, the slate path, and the line "The operator chooses: run this interactively, or reply with a hypothesis id." Never pick one, and never write "proceeding with H".
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/literature:hypothesis-workflowfrom literature
npx claudepluginhub panstudio/pancode --plugin literature2 skills in this plugin