# Send Codex Sub Agents 1 to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "codex-sub-agents-1",
    "name": "Codex Sub Agents 1",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/phucanh08/codex-sub-agents-1",
    "canonicalUrl": "https://clawhub.ai/phucanh08/codex-sub-agents-1",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/codex-sub-agents-1",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=codex-sub-agents-1",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "_meta.json",
      "clawdbot-integration.md",
      "cli-reference.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "codex-sub-agents-1",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T23:42:00.079Z",
      "expiresAt": "2026-05-08T23:42:00.079Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=codex-sub-agents-1",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=codex-sub-agents-1",
        "contentDisposition": "attachment; filename=\"codex-sub-agents-1-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "codex-sub-agents-1"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/codex-sub-agents-1"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/codex-sub-agents-1",
    "downloadUrl": "https://openagent3.xyz/downloads/codex-sub-agents-1",
    "agentUrl": "https://openagent3.xyz/skills/codex-sub-agents-1/agent",
    "manifestUrl": "https://openagent3.xyz/skills/codex-sub-agents-1/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/codex-sub-agents-1/agent.md"
  }
}
```
## Documentation

### OpenAI Codex CLI Skill

Use OpenAI Codex CLI (codex) for coding tasks including code review, refactoring, bug fixes, CI repairs, and feature implementation. Codex CLI runs locally on your machine with full filesystem access.

### When to Use

User asks for code changes, refactoring, or implementation
CI/build failures need fixing
Code review before commit/push
Large codebase exploration or explanation
Tasks requiring file editing + command execution
When GPT-5-Codex model strengths are needed (code generation, tool use)

### Installation & Auth

Codex CLI requires ChatGPT Plus/Pro/Business/Enterprise subscription.

# Install
npm i -g @openai/codex

# Authenticate (opens browser for OAuth)
codex login

# Or use API key
printenv OPENAI_API_KEY | codex login --with-api-key

# Verify auth
codex login status

### Interactive Mode (TUI)

codex                           # Launch interactive terminal UI
codex "explain this codebase"   # Start with a prompt
codex --cd ~/projects/myapp     # Set working directory

### Non-Interactive (Scripting)

codex exec "fix the CI failure"                    # Run and exit
codex exec --full-auto "add input validation"      # Auto-approve workspace writes
codex exec --json "list all API endpoints"         # JSON output for parsing
codex exec -i screenshot.png "match this design"   # With image input

### Session Management

codex resume               # Pick from recent sessions
codex resume --last        # Continue most recent
codex resume <SESSION_ID>  # Resume specific session

### Slash Commands (In TUI)

CommandPurpose/modelSwitch model (gpt-5-codex, gpt-5)/approvalsSet approval mode (Auto, Read Only, Full Access)/reviewCode review against branch, uncommitted changes, or specific commit/diffShow Git diff including untracked files/compactSummarize conversation to free context/initGenerate AGENTS.md scaffold/statusShow session config and token usage/undoRevert most recent turn/newStart fresh conversation/mcpList configured MCP tools/mention <path>Attach file to conversation

### Approval Modes

ModeBehaviorAuto (default)Read/edit/run commands in workspace; asks for outside accessRead OnlyBrowse files only; requires approval for changesFull AccessFull machine access including network (use sparingly)

### Key Flags

FlagPurpose--model, -m <model>Override model (gpt-5-codex, gpt-5)--cd, -C <path>Set working directory--add-dir <path>Add additional writable roots--image, -i <path>Attach image(s) to prompt--full-autoWorkspace write + approve on failure--sandbox <mode>read-only, workspace-write, danger-full-access--jsonOutput newline-delimited JSON--searchEnable web search tool

### Pattern 1: Direct exec Tool

Call Codex from Clawdbot's exec tool for coding tasks:

# In Clawdbot session
exec codex exec --full-auto --cd ~/projects/medreport "fix the TypeScript errors in src/components"

### Pattern 2: Subagent Delegation

Spawn a coding subagent that uses Codex:

// In agents.defaults or per-agent config
{
  agents: {
    list: [
      {
        id: "coder",
        workspace: "~/clawd-coder",
        model: "openai-codex/gpt-5.2",  // Uses Codex auth
        tools: {
          allow: ["exec", "read", "write", "edit", "apply_patch", "process"]
        }
      }
    ]
  }
}

### Pattern 3: CLI Backend Fallback

Configure Codex as a text-only fallback:

{
  agents: {
    defaults: {
      cliBackends: {
        "codex-cli": {
          command: "codex",
          args: ["exec", "--full-auto"],
          output: "text",
          sessionArg: null  // Codex manages its own sessions
        }
      }
    }
  }
}

### Pattern 4: MCP Server Mode

Run Codex as an MCP server for other agents:

codex mcp-server  # Exposes Codex tools via stdio MCP

### Clawdbot Config: OpenAI Codex Provider

Use your ChatGPT Pro subscription via the openai-codex provider:

{
  agents: {
    defaults: {
      model: { primary: "openai-codex/gpt-5.2" },
      models: {
        "openai-codex/gpt-5.2": { alias: "Codex" },
        "anthropic/claude-opus-4-5": { alias: "Opus" }
      }
    }
  }
}

Auth syncs automatically from ~/.codex/auth.json to Clawdbot's auth profiles.

### Code Review Workflow

# Interactive review
codex
/review  # Choose: branch, uncommitted, or specific commit

# Non-interactive
codex exec "review the changes in this PR against main branch"

### Multi-Directory Projects

# Work across monorepo packages
codex --cd apps/frontend --add-dir ../backend --add-dir ../shared

# Or in TUI
codex --cd ~/projects/myapp --add-dir ~/projects/shared-lib

### Custom Slash Commands

Create reusable prompts in ~/.codex/prompts/:

<!-- ~/.codex/prompts/pr.md -->
---
description: Prepare and open a draft PR
argument-hint: [BRANCH=<name>] [TITLE="<title>"]
---

Create branch \`dev/$BRANCH\` if specified.
Stage and commit changes with a clear message.
Open a draft PR with title $TITLE or auto-generate one.

Invoke: /prompts:pr BRANCH=feature-auth TITLE="Add OAuth flow"

### MCP Integration

Add MCP servers to extend Codex:

# Add stdio server
codex mcp add github -- npx @anthropic/mcp-server-github

# Add HTTP server
codex mcp add docs --url https://mcp.deepwiki.com/mcp

# List configured
codex mcp list

### Web Search

Enable in ~/.codex/config.toml:

[features]
web_search_request = true

[sandbox_workspace_write]
network_access = true

Then Codex can search for current docs, APIs, etc.

### Best Practices

Start with /init to create AGENTS.md with repo-specific instructions
Use /review before commits for AI code review
Set /approvals appropriately — Auto for trusted repos, Read Only for exploration
Use --add-dir for monorepos instead of danger-full-access
Resume sessions to maintain context across coding sessions
Attach images for UI work, design specs, error screenshots

### Fix CI Failure

codex exec --full-auto "The CI is failing on the lint step. Fix all ESLint errors."

### Refactor Component

codex exec --cd src/components "Refactor UserProfile.tsx to use React Query instead of useEffect for data fetching"

### Implement Feature from Spec

codex exec -i spec.png --cd ~/projects/app "Implement this feature based on the design spec"

### Code Review PR

codex exec "Review the diff between main and feature/auth branch. Focus on security issues."

### Troubleshooting

IssueSolutionAuth failsRun codex logout then codex loginCommands blockedCheck /approvals, may need --full-autoOut of contextUse /compact to summarizeWrong directoryUse --cd flag or check /statusModel unavailableVerify subscription tier supports model

### References

Codex CLI Overview
Codex CLI Features
Codex CLI Reference
Slash Commands Guide
AGENTS.md Spec
Codex GitHub
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: phucanh08
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T23:42:00.079Z
- Expires at: 2026-05-08T23:42:00.079Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/codex-sub-agents-1)
- [Send to Agent page](https://openagent3.xyz/skills/codex-sub-agents-1/agent)
- [JSON manifest](https://openagent3.xyz/skills/codex-sub-agents-1/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/codex-sub-agents-1/agent.md)
- [Download page](https://openagent3.xyz/downloads/codex-sub-agents-1)