-
Notifications
You must be signed in to change notification settings - Fork 4
Custom Agent Types
Alessio Rocchi edited this page Jan 27, 2026
·
1 revision
Create specialized agent types for your workflows.
import { registerAgent } from '@blackms/aistack';
registerAgent({
type: 'my-custom-agent',
name: 'My Custom Agent',
description: 'Specialized agent for X',
systemPrompt: `You are a specialized agent that...
Key responsibilities:
- Responsibility 1
- Responsibility 2
Approach:
1. Step 1
2. Step 2`,
capabilities: [
'custom-capability-1',
'custom-capability-2'
]
});// Spawn custom agent
const agent = spawnAgent('my-custom-agent', {
name: 'my-instance'
});
// Use like any other agent
const task = await memory.createTask('my-custom-agent', 'Do custom work');
await memory.assignTask(task.id, agent.id);registerAgent({
type: 'financial-analyst',
name: 'Financial Analyst',
description: 'Analyze financial data and reports',
systemPrompt: `You are a financial analyst specializing in...`,
capabilities: ['financial-analysis', 'report-generation']
});registerAgent({
type: 'slack-bot',
name: 'Slack Integration Agent',
description: 'Manage Slack interactions',
systemPrompt: `You are a Slack bot that...`,
capabilities: ['slack-messages', 'slack-commands']
});Related:
Getting Started
Core Concepts
Agent Guides
- Overview
- Coder
- Researcher
- Tester
- Reviewer
- Adversarial
- Architect
- Coordinator
- Analyst
- DevOps
- Documentation
- Security Auditor
MCP Tools
- Overview
- Agent Tools
- Memory Tools
- Task Tools
- Session Tools
- System Tools
- GitHub Tools
- Review Loop Tools
- Identity Tools
Recipes
- Index
- Code Review
- Doc Sync
- Multi-Agent
- Adversarial Testing
- Full-Stack Feature
- Memory Patterns
- GitHub Integration
Advanced
- Plugin Development
- Custom Agent Types
- Workflow Engine
- Vector Search Setup
- Web Dashboard
- Programmatic API
- Resource Monitoring
Reference