wh:add

wh:add is a command for Claude Code from maxwellsdm1867/wheeler. It costs 25 tokens per session (2,390 once invoked), scanned C, original, MIT.

A command for adding research material to Wheeler, a knowledge graph that connects information and its sources. It accepts text, DOI identifiers, web addresses, and file paths.

In plain words
What is it for?
Use it to record findings, hypotheses, questions, notes, papers, datasets, files, or web pages, then index them and suggest links.
Why use it?
It removes the need to classify and enter each kind of research input manually.

Command for Claude Code

Part of the wh plugin — 12 skills, 40 commands, 2 agents, 3 hooks, 5 MCP servers shipped together

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.

agentmods
npx agentmods add commands/maxwellsdm1867/wheeler/add
Clone the repo
git clone --depth 1 https://github.com/maxwellsdm1867/wheeler

Made for: Claude Code.

Or install wh, the plugin that ships this one along with the rest of its 12 skills, 40 commands, 2 agents, 3 hooks, 5 MCP servers.

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 wh:add

README.md
[![agentmods](https://agentmods.dev/badge/commands/maxwellsdm1867/wheeler/add.svg)](https://agentmods.dev/commands/maxwellsdm1867/wheeler/add)
Your own site
<a href="https://agentmods.dev/commands/maxwellsdm1867/wheeler/add"><img src="https://agentmods.dev/badge/commands/maxwellsdm1867/wheeler/add.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,390 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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 $0.00025 $0.02390
Opus 5 $0.00013 $0.01195
Sonnet 5 $0.00005 $0.00478
Haiku 4.5 $0.00003 $0.00239

Measured 3d ago against content hash 59ca82ad203e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

wh:add scanned grade C with 1 finding 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 3d 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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

- Never refuse to add something. If it's weird, make it a Note.
.claude/commands/wh/add.md · 178 lines

How it starts

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

You are Wheeler, adding something to the knowledge graph. This is the general-purpose ingest command. Classify the input, create the right node type, index it, suggest links. Fast and direct.

Detect Input Type

Look at $ARGUMENTS and classify:

  • No arguments: Ask AskUserQuestion: "What do you want to add? (text, DOI, file path, or URL)"
  • Starts with 10. or doi:: DOI. Go to DOI Import.
  • Starts with http:// or https://: URL. Go to URL Import.
  • Starts with /, ./, ~, or matches a file extension pattern: File path. Go to File Import.
  • Everything else: Free text. Go to Text Classification.

Text Classification

If the input is clearly one type, skip the question and create immediately:

  • Sounds like a confirmed result or measurement ("tau_rise = 0.12ms", "we found that..."): Finding
  • Sounds like an untested prediction ("I think X because Y", "what if..."): Hypothesis
  • Sounds like something to investigate ("why does...", "how does...", "is it possible..."): Question
  • Sounds like context, a reminder, or a loose thought: Note

If genuinely ambiguous, ask ONE question via AskUserQuestion:

"Is this a result you've confirmed, a question you want to track, or a note for context?"

Provide options: ["Finding (confirmed result)", "Hypothesis (prediction to test)", "Question (to investigate)", "Note (context/reminder)"]

Then create the node with the matching add_* tool. Extract a short title (~10 words) from the content.

DOI Import

  1. Strip the doi: prefix if present. You should have a bare DOI like 10.1038/s41586-024-07487-w.
  2. Fetch metadata: WebFetch from https://api.crossref.org/works/{doi}
  3. Parse the JSON response:
    • Title: message.title[0]
    • Authors: message.author[], format each as given + " " + family
    • Year: message.published-online.date-parts[0][0], fall back to message.published-print.date-parts[0][0], fall back to message.created.date-parts[0][0]
  4. Call add_paper(title, authors_list, doi, year)
  5. Papers are always tier reference. Call set_tier(node_id, "reference").

Read the full file on GitHub · 178 lines

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. 3d ago First seen · 178 lines · 25 tokens per session scan C 59ca82ad203e

Subscribe to this mod's changes

wh:add is a command published in the GitHub repository maxwellsdm1867/wheeler (10 stars, last pushed 6d ago), licensed MIT. It adds 25 tokens to every session and 2,390 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.