cursor-subagent-start-context
Inject repository conventions and session context when a Cursor subagent starts.
hook
SubagentStart
cursor
mode: context
config/hook-registry.json (entry) wagents/hooks/policies/subagent_start.py (context)
Inject repository conventions and session context when a Cursor subagent starts.
Registry Entry
Section titled “Registry Entry”| Field | Value |
|---|---|
| id | cursor-subagent-start-context |
| status_message | Gathering subagent context |
| mode | context |
| logical_event | SubagentStart |
| command | python3 {repo_root}/hooks/wagents-hook.py cursor-subagent-start-context --harness {harness} |
| timeout | 5 |
| harnesses | ["cursor"] |
Full hook config + policy reference
{ "id": "cursor-subagent-start-context", "description": "Inject repository conventions and session context when a Cursor subagent starts.", "status_message": "Gathering subagent context", "mode": "context", "logical_event": "SubagentStart", "command": "python3 {repo_root}/hooks/wagents-hook.py cursor-subagent-start-context --harness {harness}", "timeout": 5, "harnesses": [ "cursor" ]}def subagent_start_context(git_context: str, *, source: str = "config/hook-registry.json") -> str: """Build the informational context message for a starting subagent.""" ...Command: python3 .../wagents-hook.py cursor-subagent-start-context --harness cursor
Resources
Section titled “Resources”Hooks HubAll repo-managed lifecycle hooks.
wagents hooksInspect and validate hooks via CLI.
