dwgx/claude-codex-subagent
6 stars · Last commit 2026-07-06
Claude Code skill for delegating scoped worker tasks to the local Codex CLI
README preview
# claude-codex-subagent [](https://github.com/dwgx/claude-codex-subagent/actions/workflows/ci.yml) [](LICENSE) [](https://claude.com/claude-code) **Save Claude's tokens by delegating grunt work to the local Codex CLI.** A Claude Code skill that turns `codex exec` into a worker subagent. Claude stays the orchestrator — planning, deciding, verifying — while Codex handles everything that would otherwise burn Claude's context: web searches, large reads, bulk analysis, long file writes, running tests, audits. Works on macOS, Linux, and Windows (git-bash or WSL). Zero runtime dependencies beyond `codex` on your PATH. No Node, no Python, no MCP server. --- ## The problem Claude Code is great, but every WebFetch, every Read of a 2000-line file, every long grep output eats into your context window. Do it enough times in one session and you've paid thousands of tokens for work that produced a one-sentence conclusion. Codex CLI solves this if you use it right: it has its own fresh context, its own network, and its own sandboxed shell. You hand it a scoped task, it does a ton of work internally, and it hands back a short answer. **You (Claude) only pay for the prompt in and the answer out.**