wh:update

An update command for Wheeler, a research-session tool that runs inside the coding agent. It checks whether a newer Wheeler version exists and can offer to install it.

In plain words
What is it for?
Use it to check for Wheeler updates and upgrade the installed version when one is available.
Why use it?
It removes the need to check Wheeler's version and installation details by hand. It also accounts for both current and older Wheeler server setups.

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

Made for: Claude Code.

Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,689 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00011 $0.01689
Opus 5 $0.00005 $0.00844
Sonnet 5 $0.00002 $0.00338
Haiku 4.5 $0.00001 $0.00169

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

Security

Grade B, and why

wh:update scanned grade B 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 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Wheeler registers its MCP servers in `~/.claude/settings.json` under `mcpServers`.
.claude/commands/wh/update.md · 173 lines

How it starts

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

Check for a new Wheeler version and offer to upgrade.

Step 0: Resolve the Wheeler venv

Wheeler registers its MCP servers in ~/.claude/settings.json under mcpServers. A modern install uses the SPLIT servers (wheeler_core, wheeler_query, wheeler_mutations, wheeler_ops); the legacy monolith used a single wheeler key (now removed by the installer). Each command resolves to an absolute path in the same venv bin, e.g. /Users/me/wheeler-user-test/.venv/bin/wheeler-core-mcp, so derive WHEELER_BIN from whichever Wheeler key is present:

python3 -c "
import json, pathlib, os, shutil
def load(p):
    try: return json.loads(pathlib.Path(os.path.expanduser(p)).read_text())
    except Exception: return {}
# Search a project .mcp.json (the session override) BEFORE the global settings,
# so we resolve the install actually serving this session. Split keys first (the
# current shape), then the legacy monolith key.
KEYS = ('wheeler_core', 'wheeler_query', 'wheeler_mutations', 'wheeler_ops', 'wheeler')
bin_dir = ''
for cfg in (load('.mcp.json'), load('~/.claude/settings.json')):
    servers = cfg.get('mcpServers', cfg)  # .mcp.json may keep servers at top level
    for key in KEYS:
        cmd = (servers.get(key) or {}).get('command', '') if isinstance(servers, dict) else ''
        if cmd and os.path.isabs(cmd) and pathlib.Path(cmd).exists():
            bin_dir = str(pathlib.Path(cmd).parent); break
    if bin_dir: break
# Last resort: a Wheeler console script on PATH.
if not bin_dir:
    for name in ('wheeler-core-mcp', 'wheeler'):
        found = shutil.which(name)
        if found: bin_dir = str(pathlib.Path(found).parent); break
print(bin_dir or 'NOT_FOUND')
"

Save this as WHEELER_BIN. All subsequent commands MUST use $WHEELER_BIN/python and $WHEELER_BIN/wheeler instead of bare python or wheeler. Never use source .venv/bin/activate — that activates whatever venv is in the CWD, which may not be Wheeler's.

If NOT_FOUND, tell the user Wheeler is not registered (no Wheeler MCP server in ~/.claude/settings.json and no wheeler-core-mcp on PATH).

Read the full file on GitHub · 173 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 · 173 lines · 11 tokens per session scan B c3d15b1ea33e

Subscribe to this mod's changes

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