Skip to main content

codex_guard_decision

Function codex_guard_decision 

Source
pub fn codex_guard_decision(
    payload: &str,
    marker: Option<GuardMarker>,
) -> Option<String>
Expand description

Codex’s hook contract blocks by returning { "decision": "block", "reason": "..." } on stdout. Keep this separate from Claude Code’s hookSpecificOutput shape so both harnesses use their native conventions.