Skip to main content

Using Templates

Templates give you a working agent in seconds. Start from a proven foundation, then customize.

Available Templates

Using cast init

Interactive prompt:

Skip the prompt

Template Structure

Every template includes:

Template: default

A Claude Code-style agent with file and bash tools. Tools included: Example invocations:
Best for: General-purpose coding assistance, file manipulation, automation.

Template: research-agent

Deep research with web search and document synthesis. Tools included: Example invocations:
The research-agent template includes a mock web search. For production, integrate with SerpAPI, Tavily, or similar.
Best for: Research tasks, report generation, competitive analysis.

Template: support-agent

Customer support with ticket handling. Tools included: Example invocations:
Best for: Customer support automation, help desk, FAQ handling.

Template: mcp-tools

Example of custom MCP tool integration. Tools included: Use this to learn:
  • How to define tool schemas
  • How to implement tool handlers
  • How to integrate external services
Best for: Learning tool development, prototyping custom integrations.

Customizing Templates

1. Edit CLAUDE.md

The CLAUDE.md file contains agent instructions:

2. Modify Tools

Edit src/index.ts to add, remove, or modify tools:

3. Add Dependencies

Then use in your agent:

4. Redeploy

After changes:

See Also

Custom Agents

Build from scratch

MCP Integration

Advanced tool patterns