cursor-subagent-start-context

Inject repository conventions and session context when a Cursor subagent starts.

hook SubagentStart cursor mode: context

Inject repository conventions and session context when a Cursor subagent starts.

FieldValue
idcursor-subagent-start-context
status_messageGathering subagent context
modecontext
logical_eventSubagentStart
commandpython3 {repo_root}/hooks/wagents-hook.py cursor-subagent-start-context --harness {harness}
timeout5
harnesses["cursor"]
Full hook config + policy reference
config/hook-registry.json (entry)
{
"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"
]
}
wagents/hooks/policies/subagent_start.py (context)
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


View source on GitHub