No. 082 Pin the behavior

Use a subagent to run the test suite and report only the…

Use a subagent to run the test suite and r.

  • Claude Code
  • Codex
  • Cursor
  • Pin the behavior

Prompt

Use a subagent to run the test suite and report only the failing tests with their error messages

When to use

“Use a subagent to run the test suite and report only the…” fits when the behavior should be pinned by a test, not only by a reading of the diff, because it says “Use a subagent to run the test suite and report only the failing tests with their error messages”, and it briefs a separate pass rather than the whole session.

Send “Use a subagent to run the test suite and report only the…” as the turn itself: Use a subagent to run the test suite and report only the failing tests with their error messages

When not to use

Leave “Use a subagent to run the test suite and report only the…” unused when you already have the failing test in front of you and you wanted it explained, because “Use a subagent to run the test suite and report only the failing tests with their error messages” points the other way

How to run it

Claude Code

Claude Code runs “Use a subagent to run the test suite and report only the…” as .claude/agentsthat command.md, a separate pass that receives “Use a subagent to run the test suite and report only the failing tests with their error messages”, while the main thread keeps the shorter task.

Codex

Codex takes “Use a subagent to run the test suite and report only the…” as a paste above the task. Leave AGENTS.md unchanged so the next thread does not inherit “Use a subagent to run the test suite and report only the failing tests with their error messages”.

Cursor

Cursor should see “Use a subagent to run the test suite and report only the…” only as a chat paste of “Use a subagent to run the test suite and report only the failing tests with their error messages” for this turn. A file at .cursor/rules would keep applying after the turn ends.

Comparison

对比待补

This before-and-after was not run on this machine.

Related

来源:Anthropic · https://code.claude.com/docs/en/sub-agents · 2026-12-01