Skip to content

research-prompt-triage-context

Activate research hook state and inject research-method reminders.

hook UserPromptSubmit multi-harness mode: context

Activate research hook state and inject research-method reminders.

FieldValue
idresearch-prompt-triage-context
modecontext
logical_eventUserPromptSubmit
commandpython3 {repo_root}/hooks/wagents-hook.py research-prompt-triage-context --harness {harness}
timeout5
harnesses["codex", "claude-code", "github-copilot", "gemini-cli"]
Full hook config + command reference
config/hook-registry.json (entry)
{
"id": "research-prompt-triage-context",
"description": "Activate research hook state and inject research-method reminders.",
"mode": "context",
"logical_event": "UserPromptSubmit",
"command": "python3 {repo_root}/hooks/wagents-hook.py research-prompt-triage-context --harness {harness}",
"timeout": 5,
"harnesses": [
"codex",
"claude-code",
"github-copilot",
"gemini-cli"
]
}
hooks/wagents-hook.py (policy)
def _policy_prompt_triage(payload: NormalizedPayload) -> int:
if not _is_research_prompt(payload.prompt):
return 0
# activate state + inject reminders
_write_state(payload)
return _additional_context(payload, "Research mode active. Use evidence-ledger, obey readonly guards, verify before stop.", "research-prompt-triage-context")

Dispatcher also falls back to research_hook.py for some surfaces.


View source on GitHub