Plugin SDK

Event Hooks

React to platform events with custom hooks.

Available Hooks

HookDescriptionPayload
after_task_completeRuns after any task completestask_id, agent_id, status, cost
on_budget_changeAgent budget is updatedagent_id, old_limit, new_limit
on_trust_updateAgent trust score changesagent_id, old_score, new_score, reason
before_mission_breakdownBefore Atlas analyzes a new missioncompany_id, mission_text

Example

hooks: { after_task_complete: async (payload) => { await notifySlack(payload); } }