Create custom agents by copying this template and adding it to backend/agents.json.
{
"id": "my-agent",
"handle": "@myagent",
"name": "My Agent",
"role": "Brief description of what this agent does",
"policy": "Guidelines for behavior and decision-making",
"style": "Tone and style for responses"
}{
"id": "my-agent",
"handle": "@myagent",
"name": "My Custom Agent",
"role": "Detailed description of the agent's purpose and capabilities",
"policy": "Comprehensive guidelines for how the agent should behave, what it should and shouldn't do, and how to handle edge cases",
"style": "Description of the agent's communication style, tone, and any specific formatting preferences",
"tools": ["tool1", "tool2"],
"color": "#FF5733",
"icon": "",
"mock_responses": [
"Fallback response 1 with {context} placeholder",
"Fallback response 2 with {context} placeholder"
],
"enabled": true
}| Field | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | Unique identifier (URL-safe, no spaces) |
handle |
string | Yes | @mention format (e.g., @myagent) |
name |
string | Yes | Display name shown in UI |
role |
string | Yes | Functional description of agent's purpose |
policy |
string | Yes | Behavior guidelines for the LLM |
style |
string | Yes | Response tone and style guidelines |
tools |
array | No | List of available tools (for future use) |
color |
string | No | Hex color for UI theming |
icon |
string | No | Emoji icon (e.g., ) |
mock_responses |
array | No | Fallback responses when LLM unavailable |
enabled |
boolean | No | Active status (default: true) |
See agents.examples.json for ready-to-use example agents including:
- @codereview - Code quality and best practices
- @translate - Multi-language translation
- @poet - Creative poetry writing
- @detective - Investigative research
- @chef - Culinary advice and recipes
- @philosopher - Philosophical analysis
- @astro - Trend analysis and predictions
- @comic - Humor and entertainment
- @mediate - Conflict resolution
- @inventor - Creative brainstorming
- Specific Role: Define a clear, focused purpose
- Detailed Policy: Give clear guidelines on behavior
- Distinct Style: Create a memorable personality
- Mock Responses: Provide fallbacks for offline mode
- Test Iteratively: Try your agent and refine based on results
- Copy the template above
- Customize the fields for your needs
- Add to
backend/agents.json - Restart the backend
- Test with a post:
@youragent hello!