codex

Delegate coding and refactoring tasks to the Codex CLI agent in git repositories.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/DaddyElonMusk69/motis-agent --skill codex-daddyelonmusk69
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/DaddyElonMusk69/motis-agent/tree/main/skills/autonomous-ai-agents/codex
Command: npx skills add https://github.com/DaddyElonMusk69/motis-agent --skill codex-daddyelonmusk69

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Codex removes the manual overhead of implementing features, performing large-scale refactors, and conducting PR reviews by delegating coding tasks to an autonomous CLI agent that can make, test, and commit changes in a git workspace.

Core Features & Use Cases

  • Autonomous Coding: Run one-shot or long-running Codex sessions to implement features, add tests, or perform large refactorings inside a repository.
  • PR Review & Batch Fixes: Safely review pull requests in temporary clones or run parallel worktrees to fix many issues concurrently and create PRs for each branch.
  • Background/Interactive Modes: Support interactive PTY sessions for live tasks and background sessions with monitoring, logging, and the ability to submit inputs or kill sessions as needed.
  • Use Case: Launch Codex in a worktree to fix an assigned issue, monitor progress, then push and open a PR when complete.

Quick Start

Ask the agent to run codex exec --full-auto "Refactor the auth module" inside your project repository with pty enabled and monitor the session until it completes.

Frequently Asked Questions about codex

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

FAQPage Schema
How do I automate code refactoring in a local git repository?

You can automate code refactoring by launching an autonomous CLI agent to run one-shot or long-running sessions that implement changes, run tests, and commit directly inside your local git workspace.

Can I automate pull request reviews using an autonomous agent?

Yes, you can automate pull request reviews by running an autonomous agent in temporary git clones or parallel worktrees to review PRs, fix multiple issues concurrently, and create separate branches for each fix.

Do I need a PTY-enabled terminal to run autonomous coding agents?

Yes, PTY-enabled terminal calls are required to support both interactive live coding sessions and background monitoring, allowing you to submit inputs, track logs, or kill sessions as needed.

What is the best way to fix multiple git issues concurrently?

The best way to fix multiple git issues concurrently is to run parallel worktrees using an autonomous CLI agent, which handles batch issue fixes and creates individual PRs for each updated branch.

Does autonomous code review work with background sessions?

Autonomous code review supports background sessions by providing continuous monitoring, logging, and the ability to submit inputs or kill sessions remotely while the agent processes tasks in the git workspace.

Why does autonomous refactoring require an OpenAI API key?

An OpenAI API key is required because the autonomous CLI agent relies on it to process coding instructions, generate refactoring logic, and execute automated pull request reviews within your git repository.