autoresearch: Command for Claude Code

.claude/commands/autoresearch/scenario.md

autoresearch:scenario is a command for Claude Code from uditgoenka/autoresearch. It costs 16 tokens per session (1,077 once invoked), scanned A, original, MIT.

A command that creates possible edge cases from a starting scenario. Edge cases are unusual inputs, failures, or conditions that a feature should handle.

In plain words
What is it for?
Use it to explore a web, mobile, API, CLI, data-pipeline, or infrastructure scenario and produce cases in Markdown, JSON, or Gherkin test format.
Why use it?
It helps find problems that a normal successful test might miss, across areas such as validation, permissions, and different application types.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: names the AskUserQuestion tool.

This is uditgoenka/autoresearch's own configuration. It tells Claude Code how to work on autoresearch 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 autoresearch configures →

About the project

autoresearch is an agent workflow that repeatedly changes a project, verifies a measurable result, keeps or discards the change, and continues iterating toward a goal. It is for autonomous improvement tasks in Claude Code, OpenCode, and OpenAI Codex across domains with mechanical success measures. The catalogue contains its commands, hooks, skills, plugin, agent, and instruction.

uditgoenka/autoresearch · 6,206 stars · on GitHub · udit.co

Reuse

Borrowing it

Nothing to install: this file belongs to uditgoenka/autoresearch. 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/uditgoenka/autoresearch/master/.claude/commands/autoresearch/scenario.md
Clone the repo
git clone --depth 1 https://github.com/uditgoenka/autoresearch

Made for: Claude Code.

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 autoresearch:scenario

README.md
[![agentmods](https://agentmods.dev/badge/commands/uditgoenka/autoresearch/scenario.svg)](https://agentmods.dev/commands/uditgoenka/autoresearch/scenario)
Your own site
<a href="https://agentmods.dev/commands/uditgoenka/autoresearch/scenario"><img src="https://agentmods.dev/badge/commands/uditgoenka/autoresearch/scenario.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 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,077 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.00016 $0.01077
Opus 5 $0.00008 $0.00539
Sonnet 5 $0.00003 $0.00215
Haiku 4.5 $0.00002 $0.00108

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

Security

Grade A, and why

autoresearch:scenario 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/commands/autoresearch/scenario.md · 107 lines

How it starts

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

EXECUTE IMMEDIATELY.

Parse Arguments

Extract from $ARGUMENTS:

  • Scenario: — seed scenario description (or full $ARGUMENTS text if no keyword)
  • Domain: or --domain — web, mobile, API, CLI, data pipeline, infrastructure
  • Scope: or --scope — file globs for codebase context
  • Focus: or --focus — specific dimension to prioritize
  • --depth — shallow (10), standard (20), deep (40+)
  • --format — markdown (default), json, gherkin
  • Iterations: or --iterations — default 20. "unlimited" for unbounded.
  • --evals, --evals-interval N, --chain, --<subcommand>

Setup (if Scenario or Domain missing)

AskUserQuestion (single batch): Q1 (Scenario): "Describe the feature/flow to explore" Q2 (Domain): "What domain?" — web app, mobile app, API, CLI, data pipeline, infrastructure Q3 (Scope): "Which files for context?" — suggested globs + entire codebase Q4 (Depth): "How deep?" — quick (10), standard (20), deep (40+), unlimited If all provided → skip.

12 Dimensions

# Dimension Explores
1 Happy path Normal successful flows
2 Validation Input boundaries, types, formats
3 Permissions Auth, roles, access control
4 Concurrency Race conditions, deadlocks, ordering
5 State Invalid transitions, corruption
6 Scale High volume, large data, many users
7 Failure Network errors, timeouts, partial failures
8 Security Injection, abuse, bypass attempts
9 Integration Third-party failures, API contract violations
10 Data Null, empty, unicode, injection, overflow
11 UX Confusion, misuse, accessibility
12 Recovery Retry, rollback, idempotency

Establish Baseline

  1. Read seed scenario + codebase context
  2. Create output directory: autoresearch/scenario-{YYMMDD}-{HHMM}/
  3. TSV header: iteration\ttimestamp\tscenario\tdimension\tclassification\tseverity\tdescription
  4. No metric_direction comment (exploration, not optimization)

Iteration Loop

Read the full file on GitHub · 107 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 · 107 lines · 16 tokens per session scan A fc383ca569a4

Subscribe to this mod's changes

autoresearch:scenario is a command published in the GitHub repository uditgoenka/autoresearch (6,206 stars, last pushed 26d ago), licensed MIT. It adds 16 tokens to every session and 1,077 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-30.