research-prompt-triage-context
Activate research hook state and inject research-method reminders.
hook
UserPromptSubmit
multi-harness
mode: context
config/hook-registry.json (entry) hooks/wagents-hook.py (policy)
Activate research hook state and inject research-method reminders.
Registry Entry
Section titled “Registry Entry”| Field | Value |
|---|---|
| id | research-prompt-triage-context |
| 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"] |
Full hook config + command reference
{ "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" ]}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.
Resources
Section titled “Resources” Hooks Hub All repo-managed lifecycle hooks.
wagents hooks Inspect and validate hooks via CLI.
research skill The research skill that pairs with these guards.