- Added dual-mode support: JSON stdin or event name as argument
- Updated agent config to use agent-hook with event names
- Centralizes all hook logic in one script
- Works with both wrapper scripts and direct Kiro hooks
- Remove mcpServers from agent config
- Add includeMcpJson: true to use ~/.kiro/settings/cli.json
- Allows agent to access MCP servers from global config
- Replace complex PID-based lookup with AGENT_ID env var
- Much more reliable and cleaner approach
- AGENT_ID is exported by tmux and shell environment