Claude Opus 5.5

vitest-5-0-0-20-b

Claude Code's read-only tools, web search on, ludion sync off

Question

What does vitest -p do?

Answer key

A correct answer says
`-p` is shorthand for `--project`.
The stale answer
There is no short alias for --project.

The change's lesson

Answer

`vitest -p` is short for `--project`. When your Vitest config defines several projects (formerly called a "workspace"), it runs only the project you name, for example `vitest -p frontend`. You can repeat it to pick more than one project (`-p a -p b`), use wildcards (`-p "packages/*"`), or put `!` before a name to exclude that project. I checked this against the CLI page in the Vitest docs.

Answering cost $0.09.

Grade

correct

The judge's reason: It states that `-p` is shorthand for `--project` and does not claim there is no short alias.

The judge's log

Session log

What the agent wrote, the tools it called, and what they returned, from docs/bench/2026-10-11-done3/runs/B-project/vitest-5-0-0-20-b.jsonl. Thinking and the session's settings are left out. The raw log

  1. Tool call: ToolSearch

    {
      "query": "select:WebFetch",
      "max_results": 1
    }
  2. Tool output

    {"type":"tool_reference","tool_name":"WebFetch"}
  3. Tool call: WebFetch

    {
      "url": "https://vitest.dev/guide/cli",
      "prompt": "Is there any CLI option with the short alias -p? List all short aliases (single-letter flags) and what they map to."
    }
  4. Tool output

    Yes. `-p` is the short alias for `--project <name>`, which runs a named project from the workspace feature. It can be repeated, supports wildcards, and can exclude projects with a `!` prefix.
    
    The page lists six options with single-letter aliases:
    
    - `-r` → `--root <path>`: sets the root path
    - `-c` → `--config <path>`: sets the config file path
    - `-u` → `--update [type]`: updates snapshots
    - `-w` → `--watch`: enables watch mode
    - `-t` → `--testNamePattern <pattern>`: runs tests whose full names match a regexp
    - `-p` → `--project <name>`: selects the project to run
  5. Agent

    `vitest -p` is short for `--project`. When your Vitest config defines several projects (formerly called a "workspace"), it runs only the project you name, for example `vitest -p frontend`. You can repeat it to pick more than one project (`-p a -p b`), use wildcards (`-p "packages/*"`), or put `!` before a name to exclude that project. I checked this against the CLI page in the Vitest docs.