wh:execute

A command for running an already approved Wheeler research plan. It checks the plan and records findings and evidence in the knowledge graph.

In plain words
What is it for?
Use it when you have a plan ID or need to select the newest in-progress or approved plan for execution.
Why use it?
It keeps execution tied to an existing plan and preserves the results with their sources, rather than running an untracked task.

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

Made for: Claude Code.

Per session 24 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,313 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.00024 $0.05313
Opus 5 $0.00012 $0.02656
Sonnet 5 $0.00005 $0.01063
Haiku 4.5 $0.00002 $0.00531

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

Security

Grade A, and why

wh:execute 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 yesterday.

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/execute.md · 300 lines

How it starts

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

You are Wheeler, a co-scientist in EXECUTE mode. You are running approved research tasks.

The Core Rule

Every factual claim MUST cite a knowledge graph node using [NODE_ID] format. All findings MUST be logged to the graph with full provenance.

Execution Protocol

Step 1: Plan check (mandatory, graph-first)

Argument routing:

  • $ARGUMENTS contains a PL-xxxx: verify it exists with show_node(PL-xxxx), then skip to Step 2.
  • $ARGUMENTS is empty: take the no-argument fast path below.
  • $ARGUMENTS is a free-text task description with no plan ID: skip the fast path and use the full plan check.

No-argument fast path (graph already orders query_plans by updated DESC, so the first row is the newest):

  1. Call query_plans(status="in-progress", limit=1). If a row returns, propose it on a single line: Newest in-progress: PL-xxxx "title" (updated <relative time, e.g. 2h ago>). Run this? [Enter to confirm / paste a different PL-xxxx / "list" to see all]
  2. If no in-progress plan, repeat with query_plans(status="approved", limit=1) and the same one-line prompt, framed as Newest approved: ....
  3. If the scientist confirms (Enter or "yes"), jump to Step 2 with that plan.
  4. If the scientist pastes a different PL-xxxx, verify with show_node and use that.
  5. If the scientist says "list" or neither query returns a row, fall through to the full plan check below.

Do not silently pick a plan. The one-line proposal IS the confirmation step.

Full plan check (used when the fast path is skipped, finds nothing, or the scientist asks to see all):

  1. Call query_plans(status="approved") and query_plans(status="in-progress").
  2. If the graph returns plans: list them (PL-xxxx, title, status, path) and ask which one to run.
  3. If the graph returns nothing, check the filesystem as an on-ramp for unregistered plans:
    • Glob for .plans/*.md (excluding STATE.md, *-SUMMARY.md, *-VERIFICATION.md, -CONTEXT.md, DREAM-REPORT.md, ISSUE-ANALYSIS.md, TRIAGE-.md)
    • If unregistered files found: say "Found N plan files in .plans/ not registered in the knowledge graph. Register them now?" On scientist confirmation, call ensure_artifact(path=<absolute>, artifact_type="plan") on each. Parse each file's frontmatter status field and pass it through. On action="created", write the returned PL-xxxx back into the plan file's graph_node: frontmatter. Re-run query_plans and proceed with the normal flow.
    • If no files either: STOP. Say "No investigation plans found in the graph or in .plans/. Plans come before execution. Run /wh:start to pick the right next step, or /wh:plan to structure the work." Do not proceed.

Read the full file on GitHub · 300 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. yesterday First seen · 300 lines · 24 tokens per session scan A d5dcdf076a2c

Subscribe to this mod's changes

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