Plugin SDK

Plugin Examples

Example plugin implementations to get you started.

Analytics Plugin

Sends task completion data to your analytics platform. Uses after_task_complete hook and api:read permission.

hooks: { after_task_complete: async (p) => { await fetch(ANALYTICS_URL, { method: 'POST', body: JSON.stringify(p) }); } }

Slack Notifier

Posts task updates to Slack channels. Demonstrates tool definition with event-driven behavior.

tools: [{ name: "slack_notify", handler: async (a) => { await fetch(a.webhook_url, { method: 'POST', body: JSON.stringify({ text: a.message }) }); } }]

Custom Agent

Creates a specialized research agent with custom tools and memory scope.

export class ResearchAgent { name = "research-agent"; tools = ["web_search", "scrape_url"]; memory = { type: "semantic", scope: "per-agent" }; }