wheeler: Command for Claude Code

.claude/commands/wh/llmsr-discover.md

wh:llmsr-discover is a command for Claude Code from maxwellsdm1867/wheeler. It costs 38 tokens per session (5,096 once invoked), scanned A, original, MIT.

A workflow for discovering a mathematical equation from data with LLM-SR and adding the final result to Wheeler's knowledge graph. LLM-SR is a method that searches for equations that fit observed data.

In plain words
What is it for?
Use it to assemble and run an equation-discovery job, then record the winning equation and its fit measure in the graph.
Why use it?
It helps structure the objective, datasets, grouping, and specification before the search, reducing the risk of finding a good equation for the wrong question.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; mentions Codex.

This is maxwellsdm1867/wheeler's own configuration. It tells Claude Code how to work on wheeler itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything wheeler configures →

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

Reuse

Borrowing it

Nothing to install: this file belongs to maxwellsdm1867/wheeler. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/maxwellsdm1867/wheeler/main/.claude/commands/wh/llmsr-discover.md
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:llmsr-discover

README.md
[![agentmods](https://agentmods.dev/badge/commands/maxwellsdm1867/wheeler/llmsr-discover.svg)](https://agentmods.dev/commands/maxwellsdm1867/wheeler/llmsr-discover)
Your own site
<a href="https://agentmods.dev/commands/maxwellsdm1867/wheeler/llmsr-discover"><img src="https://agentmods.dev/badge/commands/maxwellsdm1867/wheeler/llmsr-discover.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,096 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.
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.00038 $0.05096
Opus 5 $0.00019 $0.02548
Sonnet 5 $0.00008 $0.01019
Haiku 4.5 $0.00004 $0.00510

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

Security

Grade A, and why

wh:llmsr-discover 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 8d 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/llmsr-discover.md · 199 lines

How it starts

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

You are Wheeler, running LLM-SR equation discovery and marshalling the result into the knowledge graph. You orchestrate the evolutionary search; the wheeler llmsr CLI owns the mechanics (buffer, fit, score) and never calls a model; a sub-agent (or the Codex CLI) proposes the equations; one deterministic wheeler integrate verb writes the graph. The graph records the FINAL result only: the winning equation as a Script and the fit metric as a Finding. The per-candidate search trail stays on disk in the run directory, never in the graph.

Your job before the search starts is to ASSEMBLE THE JOB with the scientist: the objective, the tables and their roles, the grouping, and the spec. Most of this act is that assembly, because that is where a run goes wrong. A search pointed at the wrong objective runs perfectly and answers the wrong question.

This act is a plug-in for LLM-SR, not a Wheeler method. The search core is adapted from the LLM-SR pipeline (Shojaee et al., ICLR 2025, arXiv:2404.18400, https://github.com/deep-symbolic-mathematics/LLM-SR), which itself builds on DeepMind's FunSearch (Romera-Paredes et al., Nature 2023, doi:10.1038/s41586-023-06924-6). Wheeler supplies the driver and the provenance; the science is theirs. When you report a discovered equation to the scientist, say plainly that the method is LLM-SR and that published results should cite LLM-SR (and FunSearch where appropriate), not Wheeler. Point them at wheeler/integrations/llmsr/vendor/NOTICE.md for the BibTeX and at the upstream repository for the real pipeline.

Preflight

  1. Confirm the tool is installed AND its engine actually loaded: run wheeler llmsr --help. Treat it as unavailable if the command exits non-zero or its output contains UNAVAILABLE:. A zero exit alone is not enough: when the engine fails to import, Wheeler still registers the command group as a stub so the cause stays visible, and --help then exits 0 while carrying UNAVAILABLE: in its description line. Report the cause the output actually shows. Do not name a cause the output does not support.

    • Output contains UNAVAILABLE: <error> (running wheeler llmsr with no subcommand prints the same thing as wheeler llmsr is unavailable: <error>, and exits 1): the engine is present but one of its imports failed, and the message names the failing module. Report that module. If it is scipy, LLM-SR needs the optional extra (uv tool install wheeler --with scipy, or pip install 'wheeler[llmsr]').

    • No such command 'llmsr': AMBIGUOUS, do not guess. On an older build the subcommand was registered inside a guarded try/except ImportError, so an absent engine AND a present-but-unimportable engine both collapsed to this one message. Get the true cause by importing the module with Wheeler's OWN interpreter, which is often NOT the python3 on PATH (a uv tool install has its own isolated venv, so a scipy in the system or project Python is irrelevant):

      WHEELER_PY="$(sed -n '1s/^#!//p' "$(command -v wheeler)")"
      "$WHEELER_PY" -c "import wheeler.integrations.llmsr.cli"
      

      Report whatever that names: No module named 'scipy' means the scipy extra is missing, not that the build lacks the engine. No module named 'wheeler.integrations.llmsr' means the build genuinely lacks the engine.

    • Anything else: quote the error verbatim rather than guessing at a cause.

    Stop in every case. Do not attempt the run.

  2. Read context so the run is shaped by the graph. Use mcp__wheeler_core__search_context on the request and mcp__wheeler_query__query_datasets / query_open_questions / query_hypotheses to see the datasets, the motivating question, and any existing hypotheses about the functional form. Post a one-line preamble naming what you found. Use this only to pick inputs and a link target. Do not invent results. Do not do the scientist's thinking.

Read the full file on GitHub · 199 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. 8d ago First seen · 199 lines · 38 tokens per session scan A e2d315b4ad0d

Subscribe to this mod's changes

wh:llmsr-discover is a command published in the GitHub repository maxwellsdm1867/wheeler (11 stars, last pushed 6d ago), licensed MIT. It adds 38 tokens to every session and 5,096 once invoked, about $0.0002 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.

Related

Other commands, from other repositories

planning

You are the Planning Agent for NanoResearch. Your job is to design a detailed experiment blueprint from the ideation output.

OpenRaiser/NanoResearch · 0 tokens

analysis

You are the Analysis Agent for NanoResearch. Your job is to analyze experiment results and produce structured findings.

OpenRaiser/NanoResearch · 0 tokens

cite-check

Verify that citations actually exist and that the claims they support are faithful to the cited source. Runs deterministic existence checks (Crossref / OpenAlex / Semantic Scholar / arXiv) plus a claim-faithfulness pass via the alterlab-citation-verifier skill.

AlterLab-IEU/AlterLab-Academic-Skills · 56 tokens

replication-package

Scaffold or audit a social-science replication package at a target directory, and audit the manuscript and its archived research objects against FAIR principles.

scdenney/open-science-skills · 0 tokens

paper-review-lite

Run a Critical-Reviewer-style pre-submission audit of the current paper using parallel sub-agents inside Claude Code. Adversarial and quote-grounded, with a verification cross-check to filter hallucinations. Covers content and argument, numerical consistency, references and DOIs, writing quality, figures and…

scdenney/open-science-skills · 0 tokens

literature-review

Build or audit a literature review for the task below. Produce an evidence map, closest-prior-work assessment, gap verdict, source-cluster structure, and synthesis plan that can feed into narrative-building, hypothesis-building, or pre-registration-writing.

scdenney/open-science-skills · 0 tokens