(Custom) Agent
(Custom) Agent
Sessions handling review, investigation, build, or other varied tasks all within the same conversation can quickly flood the main context.
That’s when custom agents (or subagents) come into play: each dedicated to one task type, with its own model, tool access and system prompt.
They allow delegating tasks or running parallel work during a session without flooding the main context, or without having to initiate a new session with a pre-configured agent.
- Format: Claude Code
repository/
└── .claude/
└── agents/
└── agent-name.md
~/.claude/
└── agents/
└── agent-name.md
~/.claude/plugins/cache/<marketplace>/<plugin>/
└── agents/
└── agent-name.md---
name: agent-name
description: What this agent specializes in and when it should be invoked
# many other frontmatter properties
---
Detailed system prompt for the agent describing its role, expertise and behavior.