OpenAI Codex Sub Agents
PassAudited by ClawScan on May 10, 2026.
Overview
This is a coherent Codex CLI integration, but it can let the agent run a local coding tool that edits files, executes commands, and uses your Codex/OpenAI authentication.
Install this only if you want Clawdbot to delegate coding work to Codex CLI. Use specific project directories, avoid `--full-auto`, `danger-full-access`, or `--yolo` on untrusted code, and review Codex auth syncing, MCP servers, and session storage before enabling it.
Findings (5)
Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.
Codex may modify project files and run commands in the selected workspace as part of a coding task.
The skill documents a workflow where Clawdbot invokes Codex CLI with `--full-auto`, allowing automated workspace edits and command execution for coding tasks.
exec codex exec --full-auto --cd ~/projects/medreport "fix TypeScript errors in src/components"
Use this only on trusted repositories, set `--cd` to a specific project, and prefer read-only or approval-based modes for unfamiliar code.
Installing or configuring this integration can give Clawdbot access to your Codex/OpenAI-authenticated account context.
The integration describes copying Codex OAuth tokens from the local Codex auth file into Clawdbot auth profiles.
Clawdbot auto-syncs OAuth tokens from Codex CLI: - Source: `~/.codex/auth.json` - Target: `~/.clawdbot/agents/<agentId>/agent/auth-profiles.json`
Only use this with an account and agent configuration you trust; review token storage locations and log out or rotate credentials if access is no longer needed.
The local behavior depends on the externally installed Codex CLI package and its version.
The skill is instruction-only and asks the user to install an external global npm package rather than providing a pinned managed install artifact.
npm i -g @openai/codex
Install Codex CLI from the official source, keep it updated intentionally, and consider pinning or reviewing the package version in controlled environments.
Tasks, code context, and results may move between the main agent and the coding subagent.
The integration pattern enables a main agent to spawn or communicate with a Codex-backed coding subagent.
tools: {
agentToAgent: {
enabled: true,
allow: ["main", "coder"]
}
}Restrict allowed agents and tools to the minimum needed, and avoid sending sensitive repository or credential data to subagents unnecessarily.
Prior prompts, task context, or code-related session state may remain on disk after a task is finished.
The Codex CLI keeps session files that can persist coding context and be resumed later.
Session Files Location: `~/.codex/sessions/`
Avoid putting secrets in prompts, and periodically review or clear Codex session files if persistence is not desired.
