v2/src/cli/simple-commands/init/templates/commands/hooks/notification.md
Send coordination notifications and track important decisions.
npx claude-flow hook notification [options]
--message, -m <text> - Notification message--level, -l <level> - Message level (info/warning/error/success)--telemetry - Include in telemetry (default: true)--broadcast - Broadcast to all agents--memory-store - Store in memorynpx claude-flow hook notification --message "Completed authentication module"
npx claude-flow hook notification -m "Potential security issue found" -l warning
npx claude-flow hook notification -m "API refactoring started" --broadcast
npx claude-flow hook notification -m "Chose JWT over sessions for auth" --memory-store
This hook is used by agents for:
Manual usage in agents:
# For coordination
npx claude-flow hook notification --message "Starting database migration" --broadcast --memory-store
Returns JSON with:
{
"message": "Completed authentication module",
"level": "success",
"timestamp": 1234567890,
"telemetryRecorded": true,
"broadcasted": false,
"memoryKey": "notifications/success/auth-complete",
"recipients": ["coordinator", "tester"],
"acknowledged": true
}
agent list - View active agentsmemory usage - Memory storageswarm monitor - Real-time monitoringtelemetry - Analytics tracking