Skip to main content
Your AI advertising manager in Codex CLI. The performance marketing agent runs as a Codex agent config with 5 dedicated skills and safety rules that prevent direct API calls to ad platforms.

How It Works

Codex CLI uses a plan-execute-verify loop: it explains its plan, you approve, it executes, then verifies results. When your task involves advertising, Codex loads the Adspirer agent config and skills to follow proven workflows.

What Makes Codex Different

Codex has some unique characteristics compared to Claude Code and Cursor:
  1. AGENTS.md — Codex uses AGENTS.md (not CLAUDE.md or BRAND.md) for persistent context
  2. No memory file — Codex doesn’t support cross-session memory like Claude Code and Cursor
  3. No web researchWebSearch and WebFetch are not available, so competitive research is done through ad platform data only
  4. Safety rules.rules files that block direct API calls to ad platforms, ensuring everything goes through Adspirer’s authenticated pipeline
  5. Dollar-sign commands — Skills are invoked with $adspirer-* syntax

What Gets Installed

The one-command installer sets up everything:

The 5 Skills

Codex uses the same Agent Skills standard as Claude Code. Each skill is a SKILL.md file with YAML frontmatter and workflow instructions.

How Skills Work in Codex

  1. Codex discovers skills from ~/.agents/skills/ automatically
  2. Progressive disclosure: metadata loads first, full SKILL.md loads when the skill is needed
  3. Invoke explicitly with $adspirer-* or let Codex match automatically from your description
  4. Skills use generic verbs (“Search”, “Crawl”) instead of tool-specific names since Codex doesn’t have WebSearch/WebFetch

Run a performance review across all connected platforms.

Sign up for Adspirer — free to start

15 free tool calls/month. No credit card required. Connect your ad accounts in 2 minutes.

Codex-Specific Adaptations

The Codex versions of Adspirer skills are adapted from the same source templates as Claude Code and Cursor, with these differences:

Safety Rules

Codex uses .rules files to enforce safety at a deeper level than skills. The campaign-safety.rules file blocks direct API calls to ad platforms:
This ensures all ad platform operations go through Adspirer’s authenticated, auditable pipeline — never through raw API calls or curl commands.

Full Safety Stack


Context Files

Codex uses two persistent files (no memory file).

AGENTS.md — Brand Context

Created by $adspirer-setup. This is Codex’s equivalent of CLAUDE.md (Claude Code) and BRAND.md (Cursor). Codex uses a hierarchical AGENTS.md loading system:
  1. Global: ~/.codex/AGENTS.md (applies to all projects)
  2. Project: Walks from git root to current directory, merging each level
  3. Maximum combined size: 32 KiB

STRATEGY.md — Strategic Decisions

Same as Claude Code and Cursor. Persists directives across sessions:
Since Codex doesn’t have a memory file, STRATEGY.md and AGENTS.md are the primary ways to persist context across sessions. Put anything you want the agent to remember in these files.

The Agent Loop

When you invoke $adspirer-performance-review in Codex:
1

Skill loads

Codex discovers and loads the performance review skill via progressive disclosure.
2

Context loads

Reads AGENTS.md for brand context and KPI targets. Reads STRATEGY.md for active directives.
3

Connections check

Calls get_connections_status to identify connected ad platforms.
4

Data pull

For each connected platform, calls performance tools via Adspirer MCP.
5

Strategy check

Compares campaign data against STRATEGY.md. Flags “Strategy Drift” items.
6

Results

Presents a unified scorecard with recommendations and top 3 actions.

Approval Modes

Codex has 3 approval modes that affect how the agent interacts: For advertising tasks, Auto mode works well — you get automatic approvals for read operations and prompted for spend-affecting actions.

Comparison with Other Clients


FAQ

Codex CLI doesn’t support a persistent memory file like Claude Code’s MEMORY.md. Use AGENTS.md and STRATEGY.md to persist important context. The agent will record decisions and findings in STRATEGY.md when you confirm them.
The Codex agent can’t crawl websites or search the web. It relies on Adspirer’s ad platform data (search terms, keyword volumes, campaign performance, benchmarks) for insights. For competitive research, use Claude Code or Cursor instead.
Codex .rules files block specific command patterns. Adspirer’s campaign-safety.rules prevents direct curl or API calls to Google Ads, Meta, LinkedIn, and TikTok APIs. This ensures all operations go through Adspirer’s authenticated pipeline with proper OAuth, audit logging, and safety checks.
Yes. Codex CLI can expose itself as an MCP server for the OpenAI Agents SDK. This means you can build higher-level agents that delegate advertising tasks to Codex + Adspirer. See the Codex Agents SDK guide.
Last modified on July 8, 2026