Claude Code · Configuration files
Define a subagent
A Markdown file with front matter in .claude/agents defines a specialist Claude can delegate to.
---
name: test-runner
description: Runs the test suite and reports failures. Use after code changes.
tools: Bash, Read
---
Run the tests, then summarize each failure with the file and line.
Official Claude Code documentation