google-gemini / google-gemini/gemini-cli
Feature: Missing Subagent Hook Events
Open
🔒 maintainer only
area/agent
kind/customer-issue
priority/p2
status/bot-triaged
workstream-rollup
- Dominant language
- TypeScript
- Stars
- 107k
- Forks
- 14.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 45
Description
# Feature: Missing Subagent Hook Events
## Description
With the introduction of subagents, we need to provide hook points for their lifecycle to maintain parity with the main agent's hooks.
## Proposed Changes
- Add `BeforeSubAgent` and `AfterSubAgent` (or `SubAgentStart`/`SubAgentEnd`) to the `HookEventName` enum.
- Trigger these events in the subagent execution loop.
- Update documentation to include these new events.
## Acceptance Criteria
- [ ] `HookEventName` includes subagent events.
- [ ] Subagent lifecycle correctly triggers hooks.
- [ ] Integration tests verify subagent hook execution.
Contributor guide
Assessment
This issue has not been assessed yet.