Plugin SDK
Event Hooks
React to platform events with custom hooks.
Available Hooks
| Hook | Description | Payload |
|---|---|---|
after_task_complete | Runs after any task completes | task_id, agent_id, status, cost |
on_budget_change | Agent budget is updated | agent_id, old_limit, new_limit |
on_trust_update | Agent trust score changes | agent_id, old_score, new_score, reason |
before_mission_breakdown | Before Atlas analyzes a new mission | company_id, mission_text |
Example
hooks: { after_task_complete: async (payload) => { await notifySlack(payload); } }