Custom agents enable you to configure the AI to adopt different personas tailored to specific development roles and tasks. For example, you might create agents for a security reviewer, planner, solution architect, or other specialized roles. Each persona can have its own behavior, available tools, and instructions.
You can also use handoffs to create guided workflows between agents. Transition seamlessly from one specialized agent to another with a single select. For example, move from a planning agent directly into an implementation agent, or hand off to a code reviewer with the relevant context.
Below is a planning agent example provided in the docs:
---description: Generate an implementation plan for new features or refactoring existing code.name: Plannertools: ['web/fetch', 'search/codebase', 'search/usages']model: ['Claude Opus 4.5', 'GPT-5.2'] # Tries models in orderhandoffs: - label: Implement Plan agent: agent prompt: Implement the plan outlined above. send: false---### Planning instructionsYou are in planning mode. Your task is to generate an implementation plan for a new feature or for refactoring existing code.Don't make any code edits, just generate a plan.The plan consists of a Markdown document that describes the implementation plan, including the following sections:* Overview: A brief description of the feature or refactoring task.* Requirements: A list of requirements for the feature or refactoring task.* Implementation Steps: A detailed list of steps to implement the feature or refactoring task.* Testing: A list of tests that need to be implemented to verify the feature or refactoring task.
There is a section about how the custom agent file should be structured, Check it out.
I wanted to provide references to custom agents in the OSS repos and I found Microsoft/skills.