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:- AGENTS.md — Codex uses
AGENTS.md(notCLAUDE.mdorBRAND.md) for persistent context - No memory file — Codex doesn’t support cross-session memory like Claude Code and Cursor
- No web research —
WebSearchandWebFetchare not available, so competitive research is done through ad platform data only - Safety rules —
.rulesfiles that block direct API calls to ad platforms, ensuring everything goes through Adspirer’s authenticated pipeline - Dollar-sign commands — Skills are invoked with
$adspirer-*syntax
What Gets Installed
The one-command installer sets up everything:- Plugin Marketplace (Recommended)
- Shell Installer
- Manual Install
/plugins → navigate to the Adspirer tab → select Adspirer Ads Agent → press Enter to install. OAuth runs automatically on first use.The 5 Skills
Codex uses the same Agent Skills standard as Claude Code. Each skill is aSKILL.md file with YAML frontmatter and workflow instructions.
How Skills Work in Codex
- Codex discovers skills from
~/.agents/skills/automatically - Progressive disclosure: metadata loads first, full
SKILL.mdloads when the skill is needed - Invoke explicitly with
$adspirer-*or let Codex match automatically from your description - 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
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:
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:
- Global:
~/.codex/AGENTS.md(applies to all projects) - Project: Walks from git root to current directory, merging each level
- Maximum combined size: 32 KiB
STRATEGY.md — Strategic Decisions
Same as Claude Code and Cursor. Persists directives across sessions: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:
Skill loads
Context loads
AGENTS.md for brand context and KPI targets. Reads STRATEGY.md for active directives.Connections check
get_connections_status to identify connected ad platforms.Data pull
Strategy check
STRATEGY.md. Flags “Strategy Drift” items.Results
Approval Modes
Codex has 3 approval modes that affect how the agent interacts:Comparison with Other Clients
FAQ
Why doesn't Codex have memory?
Why doesn't Codex have memory?
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.Can the agent do competitive research without WebSearch?
Can the agent do competitive research without WebSearch?
What are safety rules?
What are safety rules?
.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.Can I use Codex as an MCP server for other agents?
Can I use Codex as an MCP server for other agents?
Related Documentation
- Claude Code Agent — How Adspirer works in Claude Code
- Cursor Agent — How Adspirer works in Cursor
- Performance Marketing Agent — Architecture overview
- Skill Reference — All 5 skills with invocation details
- Codex Setup — Installation guide

