Claude Code is an agentic coding tool by Anthropic that lives in your terminal.
Subagents are specialized agents that Claude Code can delegate tasks to. Each subagent is defined in a Markdown file (.md).
When Claude Code encounters a task that matches a subagent's description, it can launch that subagent to handle the work autonomously. Subagents run with their own context and return results back to the main conversation.
To make an agent available across all your projects, copy the .md file to your global agents directory:
cp agents/senior-code-reviewer.md ~/.claude/agents/To make an agent available only within a specific project, copy the .md file to the .claude/agents/ directory inside the project repo:
mkdir -p .claude/agents
cp agents/senior-code-reviewer.md .claude/agents/Claude Code supports MCP servers, which let it connect to external tools and capabilities.
For example, you can install the Playwright MCP server with:
claude mcp add playwright npx @playwright/mcp@latest| Name | Path | Description |
|---|---|---|
| Senior Code Reviewer | agents/senior-code-reviewer.md |
Reviews code for quality, reuse, and efficiency. |