Claude Code plugin
Install one plugin and Claude Code (or Cowork) is connected to the graph, with five slash commands, a fact-checking subagent, the caller skills, and an opt-in hook that suggests checking the Markdown Claude writes.
/plugin marketplace add minerval-ai/minerval /plugin install minerval@minerval
The repository minerval-ai/minerval is its own marketplace, named minerval, holding one plugin of the same name. Everything the plugin adds is a file in plugin/ on GitHub.
Signing in
With nothing set, the first Minerval call gets an OAuth challenge and Claude Code opens the consent page in your browser. Approve it and you are done. Run /mcp to sign in again. To use an API key instead, export it before you start Claude Code:
export MINERVAL_API_KEY=epk_…
| Variable | What it does |
|---|---|
MINERVAL_API_KEY | Sent as x-api-key on every call. Empty by default, which leaves sign-in to OAuth. |
MINERVAL_MCP_URL | The server to connect to. Defaults to https://api.claimgraph.io/mcp; a local API serves http://localhost:3000/mcp. |
MINERVAL_FACTCHECK_HOOK | 1, true or yes turns the hook on (below). Off otherwise. |
See Authentication for what each way in allows.
Commands
Each command is a prompt that tells Claude which tools to call and how to report. The text of each is in plugin/commands/.
| Command | What it does | Cost |
|---|---|---|
/minerval:check <text or file> | Runs a passage, or a file's prose, through assess_text and reads the verdicts with get_text_analysis. Groups the results worst first: contradicted or doubtful as written, misleading as written, supported, insufficient evidence, not in the graph. Each matched claim comes with its verdict and page link, and the report ends with a bottom line. | charged one assess_text per chunk |
/minerval:claim <id or assertion> | One node: its canonical form, assessment (status, credence where stated, summary, date), the subclaim tree marked by status, and its arguments and dependents. Given a UUID or a claim page URL it reads directly. Given an assertion it runs match_claim first, says whether you affirm or deny the claim, and falls back to search_claims when nothing matches. | free by id; charged for an assertion |
/minerval:factcheck-diff [base ref] | Collects the prose a diff adds (Markdown, docs, comments, user-facing strings), skips code and generated files, and checks it with assess_text. With no argument it reads staged and unstaged changes; with a ref, the diff from its merge base. Reports blockers, cautions and clear lines per file, and changes no files. It may run only git diff, git status, git merge-base and git rev-parse. | charged one assess_text per file or chunk |
/minerval:contribute <claim and what to file> | Finds the target node, reads what is already on record, settles the contribution type with you, and drafts it. Shows you the exact text and waits for your confirmation before submit_contribution. For a claim or question the graph does not hold, it uses propose_claim instead, after the same confirmation. | free contribution; charged proposal, refunded if a good-faith proposal is rejected |
/minerval:report <what went wrong> | Files a report about the server or its tools with raise_issue: a failure, a missing tool, or an improvement, with a severity. Never about a claim. Shows you the draft first and returns the report id and how many others have hit the same thing. | free, 5 an hour |
A contribution is free, and limited to 10 an hour (3 for an account under a day old or below 50 reputation), because each one commands a review nobody pays for. What a charged tool can cost is on Owls and pricing.
The fact-checker subagent
fact-checker is a subagent the main thread can hand a document, a diff or a single assertion. Its instructions confine it to the graph's judgment tools (assess_text with get_text_analysis, match_claim, search_claims, get_claim, get_decomposition) and local file reads, with no web search and no answers from its own recollection. It returns one entry per judged claim, worst first, and a bottom line on whether the text is safe to ship and the smallest edits that would fix it. When a tool errors it files the fault with raise_issue and finishes with what it has.
verified, supported, inconclusive, doubtful, contradicted, or unknown, which is an assessed finding that the evidence is insufficient. unassessed (no assessment yet) and not_in_graph are silence, and silence is not evidence either way. undecided means the Matcher reached no verdict on which claim the text states; it says nothing about the claim's truth, and is not the same as unknown. When stance is denies, the text asserts the claim's negation, so the verdict reads inverted.Skills
The plugin carries the caller skills: the graph's principles for an outside agent, written as guidance. Claude loads each when its description fits the task. The MCP server serves the same files as resources (minerval://skills/…) for clients that do not load skills. Resources, prompts, skills →
| Skill | Loaded when |
|---|---|
claim-checking | Writing or reviewing prose that asserts checkable facts, or asked whether a claim is true, disputed or supported |
commissioning-research | The user wants to fund work on the graph: a mandate, an assessment, backing an existing mandate |
using-minerval | Helping someone use the product: its surfaces, the site page by page, connecting, owls |
writing-from-the-graph | Making a document from what the graph holds: which reads help, importance, pinned citations, requests |
sql | A question needs a filter, join or count that only query_sql offers |
minerval-constitution | Asking why the graph judged as it did, or what a status, confidence or contestation means. The constitution is bundled in full |
administrator-skills | Asking how one of the graph's own agents will treat something. Its skills and role prompts are bundled verbatim |
The opt-in hook
The plugin has one hook, off unless MINERVAL_FACTCHECK_HOOK is 1, true or yes in the environment Claude Code starts in. It runs after every Write or Edit. When the file ends in .md, .mdx, .markdown, .rst or .txt, it adds a note to Claude's context: if the new text asserts disputable facts, check it with assess_text, warn only about clear cases the graph holds as contradicted or doubtful, cite each one's page, mind the stance, and do not re-check text already checked this session.
The hook calls nothing itself. The charge comes when Claude acts on the note, so with the hook on, writing Markdown can spend owls without a separate request from you. It is off by default for that reason, and because most edits assert nothing checkable.
Running a local copy
To try a checkout of the repository, start Claude Code with claude --plugin-dir ./plugin, or add the checkout as a marketplace with /plugin marketplace add /path/to/minerval. Set MINERVAL_MCP_URL to point it at a local API.