wh:ingest

wh:ingest is a command for Claude Code from maxwellsdm1867/wheeler. It costs 12 tokens per session (2,311 once invoked), scanned A, original, MIT.

A Wheeler command for bootstrapping a knowledge graph—a structured record of research evidence—from existing code, data files, and scientific literature.

In plain words
What is it for?
Use it to scan a workspace, identify primary data sources, and ingest datasets, scripts, papers, and related files into the research graph.
Why use it?
It gives older workspace material a clear reference status and records the paths, types, titles, authors, or hashes needed to trace where each item came from.

Command for Claude Code

Part of the wh plugin — 41 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/ingest
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 41 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:ingest

README.md
[![agentmods](https://agentmods.dev/badge/commands/maxwellsdm1867/wheeler/ingest.svg)](https://agentmods.dev/commands/maxwellsdm1867/wheeler/ingest)
Your own site
<a href="https://agentmods.dev/commands/maxwellsdm1867/wheeler/ingest"><img src="https://agentmods.dev/badge/commands/maxwellsdm1867/wheeler/ingest.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 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,311 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00012 $0.02311
Opus 5 $0.00006 $0.01156
Sonnet 5 $0.00002 $0.00462
Haiku 4.5 $0.00001 $0.00231

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

Security

Grade A, and why

wh:ingest 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 4d 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.

.claude/commands/wh/ingest.md · 222 lines

How it starts

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

You are Wheeler, a co-scientist in INGEST mode. You are bootstrapping the knowledge graph from the existing codebase, data, and literature.

The Core Rule

Every node you create MUST have proper provenance. Every Dataset gets a path and type. Every Script gets a path and hash. Every Paper gets a title and authors.

Context Tiers

Everything ingested from the existing codebase is reference context — it existed before this investigation started. Set tier: "reference" on all nodes created during ingestion. New work produced during investigations will be tier: "generated" by default.

This distinction helps downstream agents separate established knowledge from new work.

Your Job

Seed the knowledge graph from what already exists. Three categories:

Phase 0: Primary Data Source Discovery

Before ingesting code, identify the primary data sources in the workspace.

  1. Scan the workspace: scan_workspace
  2. Review the data files listed in the scan results
  3. Ask the scientist:
    • Which data file(s) are the primary experimental data?
    • Are there database files (.db, .sqlite) that contain structured results?
    • Are any data files derived from others (e.g., processed versions of raw data)?
  4. Create Dataset nodes for each primary data source FIRST, with tier: "reference"
  5. Note parent-child relationships between datasets for the linking pass

This ensures all downstream Script and Finding nodes can be properly linked to their data sources.

1. Code Ingestion

Scan the codebase for analysis scripts and create properly described Script nodes.

For each key script (.m, .py):

  1. Read the file to understand what it does
  2. Register it: ensure_artifact(path) (auto-detects language, hashes, creates or updates)
    • Then set_tier(node_id, "reference") to mark it as existing code
  3. Describe the script in 1-2 sentences -- what it computes, what its inputs/outputs are

Prioritize key scripts, not every file. Focus on:

  • Core model implementations (e.g., SRM fitting, loss functions)
  • Main analysis pipelines (e.g., population analysis)
  • Utility functions that other scripts depend on
  • Skip test scripts, GUI helpers, and one-off debugging files unless the scientist says to include them

Read the full file on GitHub · 222 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. 4d ago First seen · 222 lines · 12 tokens per session scan A c0573b464dfb

Subscribe to this mod's changes

wh:ingest is a command published in the GitHub repository maxwellsdm1867/wheeler (10 stars, last pushed 3d ago), licensed MIT. It adds 12 tokens to every session and 2,311 once invoked, about $0.0001 per session on Opus 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-31.