Skip to content

docs: fix SubagentStart inconsistency in hook-events.md #151

@philoserf

Description

@philoserf

Problem

In hook-events.md, SubagentStart is referenced in the "Agent-Level vs Settings-Level Hooks" comparison section:

Agent-level hooks can respond to agent lifecycle events like AgentStart and SubagentStart

However, SubagentStart does not appear in the main hook events table earlier in the document. This creates confusion about whether it's a valid event.

Solution

Either:

Option A (if SubagentStart exists): Add it to the main events table:

| SubagentStart | Fires when a subagent is spawned | agent_id, parent_agent_id, agent_type |

Option B (if SubagentStart doesn't exist): Remove the reference from the comparison section:

Agent-level hooks can respond to agent lifecycle events like AgentStart...

Recommendation: Verify against Claude Code's actual hook events and choose the appropriate option.

Files to Update

  • references/hook-events.md

Impact

  • Priority: High
  • Effort: Low
  • User Impact: Fixes documentation inconsistency that could cause user errors

Review context: commit f2fe29b (agent hooks documentation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions