Skip to content
Back to skills

Codex Agent

ASecurity

Run Codex tasks via the ai_cli Task Tool runner.

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
ai-agentspythonbash

Works with

  • cli

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill codex-agent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codex Agent?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Codex Agent
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-codex-agent-694d7e7e/badge)](https://www.skillsdirectory.com/skills/majiayu000-codex-agent-694d7e7e)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: codex-agent
description: Run Codex tasks via the ai_cli Task Tool runner.
version: 0.8.0
---

# Codex Agent

Use this skill to run Codex tasks via the ai_cli runner. This is intended for Claude
to delegate work to Codex when appropriate, including long-running background tasks
that can be monitored while other work continues.

## Invocation

Call the runner script (installed path in projects is `.claude/scripts`):

```bash
python3 .claude/scripts/sc_codex_task.py --json '{...}'
```

Use `sc_codex_task.py` only (do not call other runner script names).
Do not invent flags like `--run_in_background`, `--description`, `--prompt`, or `--subagent_type`.

## Input

Provide Task Tool input JSON with:
- `description`
- `prompt`
- `subagent_type` (defaults to `sc-codex` if not provided by the caller)

## Notes

- Model flags (aliases and full names are accepted):
  - `--model codex` (default: gpt-5.2-codex)
  - `--model codex-max` or `--model max` (maps to gpt-5.1-codex-max)
  - `--model codex-mini` or `--model mini` (maps to gpt-5.1-codex-mini)
  - `--model gpt-5` (maps to gpt-5.2)
- Background mode:
  - Default is background unless `--no-background` is provided.
  - Add `--background` to force background explicitly.
  - Add `--no-background` to force blocking mode.
  - The JSON output includes `output_file` (JSONL transcript path) and `agentId`.
  - Poll `output_file` via a short Python loop (avoid `tail -f` and avoid `timeout`, which may be missing on macOS).
- Blocking mode (default without `--background`) returns `{ "output", "agentId" }`.
- The runner enforces schema validation and logs to `.claude/state/logs/<package-name>/`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.