Skip to content

Repository files navigation

Codex Delegate

Headless Codex CLI delegate skill by Artem Letyushev.

This repository packages a cross-platform agent skill that lets a controlling agent run codex exec once, non-interactively, capture the final message and event stream, and verify the work outside the delegated agent.

What It Does

  • Runs codex exec through scripts/delegate_codex.py
  • Captures JSONL events, stderr, exit code, output files, and the final response
  • Supports macOS, Linux, WSL, and Windows
  • Uses CODEX_BIN when the executable is not on PATH
  • Defaults to Codex read-only sandboxing
  • Keeps delegated output untrusted until the controlling agent checks diffs and tests

Install

With npx skills:

npx skills add letya999/codex-delegate

Or copy this repository into an agent skill directory such as .agents/skills/, .claude/skills/, or ~/.codex/skills/.

Quick Start

python3 scripts/delegate_codex.py \
  --cwd "$PWD" \
  --task "Review this repository and report the highest-risk issue." \
  --timeout 45m

Windows users can run the same wrapper with py -3. See QUICKSTART.md and references/runtime-setup.md for the full cross-platform pre-flight.

Agent Skill Entry Points

License

MIT License. See LICENSE.

About

Headless Codex CLI delegate skill with cross-platform Python wrapper, JSONL capture, sandbox-aware execution, and skills.sh discovery metadata.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages