Hooks
Wingman supports two hook systems:
- Tool hooks (agent-level): run commands before/after tool execution.
- Gateway hooks (internal): respond to gateway/session events.
Tool hooks
Configure in wingman.config.json or per-agent.
Hooks receive a JSON payload on stdin that includes session + tool context.
Matchers support pipe-separated tool names, wildcards, or regex.
Gateway hooks
Gateway hooks are configured under hooks:
This enables internal hook plugins to deliver messages to agents when gateway events occur.
