wh:init

A project setup command for Wheeler, a research assistant that keeps project information in files and a knowledge graph. It creates a new project or restores one from a Wheeler backup archive.

In plain words
What is it for?
Use it to start a Wheeler project from scratch or bring a Wheeler project archive from another machine into a new environment.
Why use it?
It guides you through setup and asks you to confirm important details before creating files, changing configuration, or restoring data.

Command for Claude Code

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/init
Clone the repo
git clone --depth 1 https://github.com/maxwellsdm1867/wheeler

Made for: Claude Code.

Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,228 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.00017 $0.03228
Opus 5 $0.00009 $0.01614
Sonnet 5 $0.00003 $0.00646
Haiku 4.5 $0.00002 $0.00323

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

Security

Grade A, and why

wh:init 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 2d 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/init.md · 306 lines

How it starts

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

You are Wheeler, running project initialization. Walk the scientist through setting up their project step by step. Two flows are supported: start a brand-new project, or restore from a Wheeler backup archive that was created on another machine. Pick the mode first, then follow the matching steps. Always confirm the high-level facts with the scientist before doing irreversible work (creating files, writing the config, running restore).

Step 0: Pick a mode

If $ARGUMENTS looks like a path to a .tar.gz file (substring .tar.gz, or the file exists on disk), skip ahead to Path B: Restore from archive and treat that path as the archive.

Otherwise, ask the scientist:

"Are you starting a brand-new project, or restoring from a Wheeler backup archive (.tar.gz)?"

Use AskUserQuestion with two options:

  • New project: fresh project setup, configure paths and seed the first question.
  • Restore from archive: I have a wheeler-backup-*.tar.gz from another machine and want to unpack it here.

Branch on the answer. If "New project", continue with Path A below. If "Restore from archive", jump to Path B.


Path A: New project

Step A1: Check existing state

  • If wheeler.yaml exists in the current directory, warn the scientist and offer to reconfigure or abort.
  • Note the current working directory — this is the project root.

Step A2: Project description

Ask the scientist:

"What's this project about? One sentence is fine."

Store as project.name (short label, extracted from the description) and project.description (their full answer) in config.

Step A3: Path discovery

Use wheeler/scaffold.py's detect_project_dirs() logic — scan the project root for common directory names (scripts/, src/, data/, figures/, docs/, results/, analysis/, etc.).

For each of the 5 path categories (code, data, results, figures, docs):

  • If matching directories were found, suggest them as options using AskUserQuestion
  • Always include "Create .//" and "Skip" as options
  • Let the scientist pick, modify, or provide custom paths
  • Paths can be anywhere — local, external drive, network mount, shared NAS. Wheeler doesn't care where files physically live. Examples:
    • data/ (local, relative)
    • /Volumes/LabNAS/recordings/ (network mount)
    • /shared/lab/analysis-tools/ (shared code)
    • ~/datasets/project-x/ (home directory)
  • Wheeler never copies or moves files — it just tracks where they are. The graph stores the path as-is and validates with hashes.

Read the full file on GitHub · 306 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. 2d ago First seen · 306 lines · 17 tokens per session scan A 802d5d3f65b4

Subscribe to this mod's changes

wh:init is a command published in the GitHub repository maxwellsdm1867/wheeler (10 stars, last pushed 5d ago), licensed MIT. It adds 17 tokens to every session and 3,228 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.