guard-users-codex

Classify and gate Codex CLI requests with scoped approvals and risk-based constraints.

Updated Feb 23, 2026
One-click install
npx skills add https://github.com/AndrewRober/CodexCli-GuardRails --skill guard-users-codex
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: guard-users-codex
Source: https://github.com/AndrewRober/CodexCli-GuardRails/tree/main/skills/guard-users-codex
Command: npx skills add https://github.com/AndrewRober/CodexCli-GuardRails --skill guard-users-codex

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guardrails for Codex CLI to prevent destructive actions, require scoped approvals, and reduce exposure of secrets.

Core Features & Use Cases

  • Refuse catastrophic actions and enforce scoped approvals.
  • Require explicit approvals for destructive (Class 2) and cloud/remote (Class 3) actions.
  • Reduce secret leakage and enforce deterministic payload matching and workspace safety.

Quick Start

Load the guard-users-codex policy into your Codex CLI loader and begin issuing requests with explicit, scoped approvals for any potentially destructive actions.

Frequently Asked Questions about guard-users-codex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent destructive actions when using Codex CLI?▼

To prevent destructive actions in Codex CLI, load a guardrail policy that classifies requests and refuses catastrophic operations. This enforces scoped approvals and risk-based constraints, requiring explicit consent before executing potentially harmful workspace commands.

How do I redact secrets in Codex CLI workspace operations?▼

To redact secrets in Codex CLI operations, apply a guardrail policy that enforces deterministic payload matching and reduces secret leakage. This mechanism intercepts requests within workspace boundaries to ensure sensitive data is masked before processing.

When do I need explicit approvals for cloud operations in Codex CLI?▼

You need explicit approvals for cloud operations in Codex CLI when a guardrail policy classifies an action as Class 3. This classification triggers scoped approval requirements for any remote or cloud-based actions before they are executed.

Does Codex CLI require approvals for local file modifications?▼

Codex CLI requires approvals for local file modifications when the action is classified as Class 2 destructive. A safety-first guardrail policy intercepts these requests and enforces explicit, scoped approvals before allowing any workspace modifications.

What is the best way to enforce workspace safety boundaries in Codex CLI?▼

The best way to enforce workspace safety boundaries in Codex CLI is to load a guardrail policy that applies risk-based constraints across local and cloud operations. This approach uses deterministic payload matching to gate requests and ensure actions stay within defined limits.

Can I use guard-users-codex to scope approvals for specific destructive commands?▼

Yes, guard-users-codex enforces scoped approvals for specific destructive commands. It classifies requests by risk level and gates them, requiring explicit approval for Class 2 and Class 3 actions before they proceed within the workspace.