codex

Execute and manage Codex CLI sessions for code analysis, refactoring, and automated editing.

239|30|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/jdrhyne/agent-skills --skill codex-jdrhyne
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/jdrhyne/agent-skills/tree/main/codex/codex
Command: npx skills add https://github.com/jdrhyne/agent-skills --skill codex-jdrhyne

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables users to run and manage the Codex CLI (codex exec, codex resume) for code analysis, automated editing, and refactoring tasks, consolidating workflow into a single conversational interface.

Core Features & Use Cases

  • Run and resume Codex sessions
  • Choose model and reasoning level
  • Select sandbox modes: read-only, workspace-write, danger-full-access
  • Assemble and execute codex commands with common flags (-m/--model, --config, -C, --cd)
  • Enforce safety practices: skip git repo checks by default, redirect thinking tokens
  • Guidance and workflow for analysis of repositories and software projects

Quick Start

Start a new Codex session to analyze a repository: codex exec -m gpt-5.2 --sandbox read-only --full-auto --skip-git-repo-check 'Analyze this repository comprehensively...' 2>/dev/null

Frequently Asked Questions about codex

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

FAQPage Schema
How do I automate code analysis and refactoring with the Codex CLI?

You can automate code analysis and refactoring with the Codex CLI by running the codex exec command with your prompt, which processes automated edits using GPT-5.2 by default while enforcing safety practices like skipping git repo checks.

What is the best way to resume a previous Codex CLI session across projects?

The best way to resume a Codex CLI session across projects is to use the codex resume command, which safely restores your previous session context and state for continued code analysis and automated editing.

Do I need to install anything specific to run Codex CLI commands for code edits?

Yes, you need the codex CLI installed and accessible on your system PATH to execute code edits. This environment setup allows the skill to assemble and run commands with flags like -m/--model and --config.

How does sandbox mode work when executing Codex CLI tasks?

Sandbox mode controls file system access during Codex CLI task execution by offering read-only, workspace-write, and danger-full-access options, ensuring safe code analysis and automated editing by restricting permissions as needed.

Why are thinking tokens redirected when running codex exec for repository analysis?

Thinking tokens are redirected during codex exec repository analysis to enforce safety practices and prevent output clutter, ensuring cleaner command results unless you explicitly request to view them.

Can I use a different model instead of GPT-5.2 for Codex CLI session management?

Yes, you can select a different model instead of GPT-5.2 for Codex CLI session management by using the -m or --model flag during command assembly, allowing you to tailor the model and reasoning level to your code analysis needs.