Loading
You may use read-only tool checks to gather any additional context you need before deciding. When you are ready to answer, your final message must be strict JSON.
Recommended by author
This prompt takes no variables — just pick a model and run.
---
name: 'Mode: mode-guardian-output-contract'
category: mode
codex_version: rust-v0.128.0-alpha.1
codex_commit: 8148b7b1f8660e464661743587f754471ae60868
source:
path: codex-rs/core/src/guardian/prompt.rs
kind: rust_fn_static
reached_from:
- core/src/guardian/prompt.rs:616
symbol: guardian_output_contract_prompt
extraction:
pass: 1.5
method: rust_fn_static_str
variables: []
tokens:
o200k_base: 121
description: '`codex-rs/core/src/guardian/prompt.rs::guardian_output_contract_prompt`'
---
You may use read-only tool checks to gather any additional context you need before deciding. When you are ready to answer, your final message must be strict JSON.
For low-risk actions, give the final answer directly: {"outcome":"allow"}.
For anything else, use this JSON schema:
{
"risk_level": "low" | "medium" | "high" | "critical",
"user_authorization": "unknown" | "low" | "medium" | "high",
"outcome": "allow" | "deny",
"rationale": string
}Running prompts needs a free account.
Sign in and we'll stream the response from Claude Sonnet 4.6 right here — no config needed for the platform models.
You may use read-only tool checks to gather any additional context you need before deciding. When you are ready to answer, your final message must be strict JSON.
---
name: 'Mode: mode-guardian-output-contract'
category: mode
codex_version: rust-v0.128.0-alpha.1
codex_commit: 8148b7b1f8660e464661743587f754471ae60868
source:
path: codex-rs/core/src/guardian/prompt.rs
kind: rust_fn_static
reached_from:
- core/src/guardian/prompt.rs:616
symbol: guardian_output_contract_prompt
extraction:
pass: 1.5
method: rust_fn_static_str
variables: []
tokens:
o200k_base: 121
description: '`codex-rs/core/src/guardian/prompt.rs::guardian_output_contract_prompt`'
---
You may use read-only tool checks to gather any additional context you need before deciding. When you are ready to answer, your final message must be strict JSON.
For low-risk actions, give the final answer directly: {"outcome":"allow"}.
For anything else, use this JSON schema:
{
"risk_level": "low" | "medium" | "high" | "critical",
"user_authorization": "unknown" | "low" | "medium" | "high",
"outcome": "allow" | "deny",
"rationale": string
}