codex-exec

Delegate non-interactive exploration and file reads to Codex CLI via codex exec.

2|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/lestrrat/claude-code --skill codex-exec-lestrrat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex-exec
Source: https://github.com/lestrrat/claude-code/tree/main/skills/codex-exec
Command: npx skills add https://github.com/lestrrat/claude-code --skill codex-exec-lestrrat

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Delegates lightweight, non-interactive tasks to Codex CLI, enabling quick explorations, searches, and reads without heavy reasoning.

Core Features & Use Cases

  • Lightweight task delegation to Codex CLI for exploration, quick file reads, and basic code review.
  • Deterministic, auditable execution with outputs suitable for Claude Code sessions.
  • Safe operation with explicit rules that prevent destructive or interactive actions.

Quick Start

Trigger codex-exec with a concise task description in a Claude Code session.

Frequently Asked Questions about codex-exec

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

FAQPage Schema
How do I delegate non-interactive tasks to Codex CLI for quick code exploration?

To delegate non-interactive tasks to Codex CLI, use codex exec with prescribed flags during a Claude Code session. This enables deterministic, auditable execution for lightweight exploration, file searches, and basic code reads without requiring heavy reasoning.

What is codex exec used for in Claude Code sessions?

Codex exec is used for delegating lightweight, non-interactive tasks to Codex CLI within Claude Code sessions. It performs quick explorations, file searches, and basic code reads, capturing output to .tmp files while enforcing safety rules to prevent destructive actions.

Can I run codex-exec for automated file searches without user interaction?

Yes, codex-exec supports automated file searches and basic code reads without user interaction. It requires deterministic execution with codex exec using prescribed flags, capturing all output to .tmp and enforcing explicit safety rules to prevent destructive or interactive actions.

Does Codex CLI support interactive commands during task execution?

No, Codex CLI does not support interactive commands when using codex-exec. The Skill enforces explicit safety rules that prevent destructive or interactive actions, focusing solely on deterministic, non-interactive task execution for quick exploration and simple reads.

What are the limitations of using codex-exec for code reviews?

Codex-exec is limited to lightweight exploration, file searches, and basic code reads without heavy reasoning. It enforces safety rules to prevent destructive actions and captures output to .tmp, making it unsuitable for complex, interactive, or destructive task execution.