test-research

A test command from harness-maker for checking that slash commands and question-and-answer flows work in supported coding environments. It asks which IDE is being used and then reports the result.

In plain words
What is it for?
Running the Phase 1 A4 verification for Claude Code, Cursor Plan Mode, Cursor Agent Mode, or another environment.
Why use it?
It provides a small repeatable check that command discovery, user questions, and the command's continuation logic work correctly.

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/ecro/harness-maker/test-research
Clone the repo
git clone --depth 1 https://github.com/Ecro/harness-maker

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 366 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.00000 $0.00366
Opus 5 $0.00000 $0.00183
Sonnet 5 $0.00000 $0.00073
Haiku 4.5 $0.00000 $0.00037

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

Security

Grade A, and why

test-research 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.

tests/cursor-compat/fixture/.claude/commands/hm/test-research.md · 46 lines

What it actually says

/hm:test-research

harness-maker Phase 1 fixture for verifying that slash commands and Q&A loops work in both IDEs.

Mission

Follow this procedure exactly.

Step 1 — Ask the user

Ask the user the following question:

"Phase 1 A4 verification — Which IDE / mode is running this command?

  1. Claude Code
  2. Cursor (Plan Mode, entered via Shift+Tab)
  3. Cursor (Agent Mode, default)
  4. Other (free-text)"

Question-tool selection:

  • Claude Code — use AskUserQuestion (structured 4-option select)
  • Cursor Plan Mode — Cursor's native AskQuestion tool fires automatically
  • Cursor Agent Mode — fall back to natural-language chat (PASS if it works equivalently)

Step 2 — Output a single line

Once the answer is in, output exactly:

PHASE-1 A4 PASSED — slash command + Q&A loop works in <user answer>

Step 3 — Stop

No additional work. No analysis. No further tool calls.

Verification points

  • Command discovery: when the user types /hm:test-research, the IDE shows it in the slash-command dropdown
  • Q&A loop: an interview-style question receives a user response and the command flow continues
  • Natural-language fallback: if structured Q&A tools are unavailable, plain chat works equivalently

Note

This fixture lives at .claude/commands/hm/. If Cursor does not recognize this location (i.e. command does not appear in the dropdown), a separate render to .cursor/commands/ will be required (Phase 2 design decision).

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 · 46 lines · 0 tokens per session scan A f141192b69a6

Subscribe to this mod's changes

test-research is a command published in the GitHub repository Ecro/harness-maker (4 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 366 tokens. 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.