Custom Agents
10.1 Agent Definition File Format
Agent definition files are stored at.claude/agents/{name}.md, using YAML front matter:
10.2 Available Tools and Model Selection
Available tools:
Model selection:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
.claude/agents/{name}.md, using YAML front matter:
---
name: agent-name
description: |
One-line description of what this agent does.
tools: Read, Write, Edit, Bash, Glob, Grep
model: opus
---
# Agent Name
Agent instructions go here...
| Tool | Description |
|---|---|
| Read | Read files |
| Write | Write files |
| Edit | Edit files |
| Bash | Execute commands |
| Glob | File search |
| Grep | Content search |
| Task | Invoke sub-Agents |
| Skill | Invoke Skills |
| mcp__exa__web_search_exa | Web search |
| mcp__exa__get_code_context_exa | Code search |
| mcp__chrome-devtools__* | Browser automation |
| Model | Use Case |
|---|---|
opus | Complex tasks (implementation, checking, debugging) |
sonnet | Medium tasks |
haiku | Simple, fast tasks |
---
name: check
description: |
Code quality check expert with 10-minute timeout.
tools: Read, Write, Edit, Bash, Glob, Grep
model: opus
timeout: 600000
---
---
name: test
description: |
Test writing expert. Writes comprehensive tests for code changes.
tools: Read, Write, Edit, Bash, Glob, Grep
model: opus
---
# Test Agent
You are the Test Agent in the Trellis workflow.
## Core Responsibilities
1. **Analyze code changes** - Understand what was modified
2. **Write unit tests** - Cover new functionality
3. **Write integration tests** - Test cross-module interactions
4. **Run tests** - Verify all tests pass
## Workflow
### Step 1: Get Changes
```bash
git diff --name-only
pnpm test
---