Include AGENT_RESPONSE variable in agentStop hook
Kiro Product
IDE
Feature Description
The agentStop hook fires with no payload. USER_PROMPT is empty, so hook consumers can't access what the agent actually did. Please expose an AGENT_RESPONSE environment variable (or similar) containing the agent's final response or session summary. This is the natural counterpart to USER_PROMPT on promptSubmit.
Use Case
I'm the maintainer of kiro-learn, a continuous-learning memory system for Kiro. The agentStop hook is where session summaries should be captured, allowing a memory system to form a cohesive narrative for the turn. This already exists in Kiro CLI, and it would be great to have for IDE
Additional Context
No response
🤖 Potential Duplicate Detected
This issue appears to be similar to:
What happens next?
- ⏰ This issue will be automatically closed in 3 days
- 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
- 💬 Comment on the original issue if you have additional information
Why is this marked as duplicate? Both request including the assistant/agent response in the stop hook event payload. The new issue asks for AGENT_RESPONSE variable in agentStop hook, while #6258 requests assistant response in stop hook event payload - these are essentially the same feature request for the same hook functionality.
Duplicate of https://github.com/kirodotdev/Kiro/issues/6258
Thank you for your feedback! 🙏
The duplicate label has been removed and this issue has been sent back for maintainer review.
A maintainer will review this issue shortly.