← Back

ChatGPT / Codex Extension Concepts

Summary Table

⚡ Slash Commands🔧 Function Calling / MCP🧠 Skills🤖 Custom GPTs📦 Plugins
What it is Built-in or user shortcuts External tool & API connection Reusable workflow instructions Custom AI persona + toolset Bundled distribution package
Activation User types /cmd On demand / always available Auto (context-matching) or explicit $skill Via GPT Store or direct link Via install
Scope Codex CLI / IDE ChatGPT + Codex + API Codex CLI, IDE, App ChatGPT only Codex CLI
Token cost Minimal High (front-loaded) ~100 tokens until needed Depends on configuration Depends on contents
Best for Manual workflow shortcuts External APIs & data Repeatable coding expertise End-user personas & workflows Team sharing & distribution
Can contain Prompts / scripts Tool schemas, MCP servers Instructions + scripts + resources Instructions + Actions + tools + persona Skills + MCP + Apps
Installation Built into CLI; custom via config Configure in API payload or mcp_servers Place in .agents/skills/ or via $skill-installer Build in GPT Builder; share via GPT Store /plugin install
Examples /resume, /fork, /compact, /clear, /diff, /review GitHub, Postgres, Slack, Zapier, Stripe linear, tdd, code-review, deploy, docx DALL·E GPT, Data Analyst, Canva, Consensus Via local marketplace or GitHub repos
⚠️ No native Hooks: Unlike Claude Code, Codex CLI has no built-in lifecycle hook system. Hook-like behavior (auto-lint, pre-commit gates, notifications) is available if you use Cursor (a third-party IDE by Anysphere, not OpenAI) which introduced its own hooks in v1.7. If you need deterministic enforcement natively, Claude Code is currently the stronger choice.
📦 Plugins now available: As of Codex CLI v0.110.0 (March 2026), Codex supports a plugin system that bundles skills, MCP servers, and app connectors — installable via /plugin install with local marketplace support.

Layered Mental Model

Ordered by learning sequence

ChatGPT / Codex Extension & Customization ├── 1. Slash Commands → user-triggered shortcuts ├── 2. Function Calling / MCP → external connections (APIs, DBs, services) ├── 3. Skills → auto-loaded domain expertise (open standard) ├── 4. Custom GPTs → full AI personas bundling instructions + tools └── 5. Plugins → bundled distributions of skills, MCP & apps

In a single sentence each:


Installation Methods

⚡ Slash Commands (Codex CLI)

# Built-in commands ship with Codex
/resume        # reopen saved conversations
/fork          # clone conversation into new thread
/compact       # summarize to conserve tokens
/clear         # start a fresh chat

# Custom commands via AGENTS.md or config

🔧 Function Calling / MCP

// Via API payload (function calling)
tools: [{
  type: "function",
  function: {
    name: "get_weather",
    description: "Get current weather for a location",
    parameters: { ... }
  }
}]

// Via MCP server config
mcp_servers: [{
  type: "url",
  url: "https://mcp.github.com/sse",
  name: "github-mcp"
}]

🧠 Skills (Codex CLI / IDE)

# Skills live in .agents/skills/ (repo-scoped)
.agents/skills/my-skill/
├── SKILL.md        # name, description, instructions
├── scripts/        # optional executables
└── resources/      # optional supporting files

# Install from community via skill-installer
$skill-installer install the linear skill from the .experimental folder

# Or install from a community registry
npx skills add linear

🤖 Custom GPTs (ChatGPT)

  1. Go to chatgpt.com → Explore GPTs → Create
  2. Use GPT Builder to define instructions, upload knowledge, add Actions
  3. Publish to the GPT Store (public) or share via private link
  4. Optionally add Custom Actions using an OpenAPI schema to call external APIs

📦 Plugins (Codex CLI v0.110.0+)

# Install from a marketplace
/plugin marketplace add owner/repository
/plugin install plugin-name@marketplace-name

# Codex auto-discovers installed plugins at session start
# Plugins can bundle skills, MCP servers, and app connectors
New in v0.110.0 (March 2026): Codex CLI now supports a plugin architecture that loads skills, MCP entries, and app connectors from config or a local marketplace. This brings Codex closer to Claude Code’s plugin model with /plugin install syntax.

Configuration Scoping — Where You Put Things Matters

Like Claude Code, Codex configuration is directory-scoped. The directory you launch Codex from determines which instructions, skills, and settings are active.

Example: If you add project conventions to ~/.codex/AGENTS.md (user level), those instructions apply to every repo you open. Put them in the project’s AGENTS.md instead, and they only activate when you launch Codex from that project.

Scope Hierarchy (highest precedence first)

ScopeLocationApplies toShared?
CLI flagsCommand-line argumentsCurrent session onlyNo
Project.codex/config.toml, AGENTS.mdAll project collaboratorsYes (committed to git)
User~/.codex/config.toml, ~/.codex/AGENTS.mdYou, all your projectsNo
SystemSystem config directoriesAll users on machineYes

How Each Config Type Resolves

ConfigResolution rule
AGENTS.mdChecks ~/.codex/AGENTS.md first, then walks up from your working directory to the repo root, concatenating files. Closer files appear later in the prompt (higher precedence). Combined size capped at 32 KiB.
SkillsScanned upward from $CWD/.agents/skills/ to repo root, then ~/.agents/skills/ (user level), then system level. All discovered skills are available; no merging by name.
config.tomlClosest .codex/config.toml wins over user-level. CLI flags override everything.
Trust gate: Project-level .codex/ configuration only loads in trusted projects. If you mark a project as untrusted, Codex ignores all project-level config and falls back to user/system defaults — a safety measure against malicious repo configs.

Practical Rule of Thumb


Popular Examples by Category

⚡ Slash Commands (Codex CLI)

CommandWhat it does
/resumeReopen a saved conversation
/forkClone conversation into a new thread
/compactSummarize conversation to conserve tokens
/clearClear the terminal and start a fresh chat
/diffDisplay Git changes including untracked files
/reviewRequest working tree analysis

🔧 Function Calling / MCP Tools

ToolWhat it does
githubRead PRs, create issues, review code diffs
postgresQuery databases in plain English
slackSend messages, search threads
zapierTrigger 5,000+ app automations
stripeLook up payments, customers, subscriptions
web_searchLive web search (built-in, opt-in)

🧠 Skills (Codex)

SkillAuto-activates when…
linearYou mention tasks, issues, or project management
tddYou ask Codex to write tests
code-reviewYou ask for a review of existing code
deployYou mention deployment, release, or CI/CD
docxYou ask Codex to create or edit a Word document

🤖 Custom GPTs (ChatGPT)

GPTWhat it does
DALL·EGenerate and edit images from text
Data AnalystUpload CSVs; get charts and insights
CanvaDesign graphics via natural language
ConsensusSearch peer-reviewed research papers
Code CopilotSpecialized coding assistant with project context

Key Concepts Unique to OpenAI

AGENTS.md

The OpenAI equivalent of Claude's CLAUDE.md. A markdown file in your repo root that gives the agent persistent project context — tech stack, conventions, key commands, and guidelines. Codex reads it automatically at session start.

See real examples: View the AGENTS.md & CLAUDE.md from this repository side by side.
# Project Context
## Stack: Next.js 14, TypeScript, Supabase
## Run: npm run dev
## Test: npm test
## Conventions: functional components, no default exports

GPT Store

ChatGPT's marketplace for Custom GPTs — roughly comparable to a mix of Claude's plugin distribution and project-specific assistants. Users can discover, install, share, and in some cases monetize GPTs.

Session Forking (/fork)

Codex CLI lets you clone a conversation into a new thread with /fork (or codex fork from the shell). Useful for branching off an existing conversation to explore a different approach without losing the original.

Codex Cloud Sandboxes

Codex's cloud agent runs tasks in isolated, ephemeral sandboxes preloaded with your repository. This enables fully autonomous, asynchronous task delegation — you describe the task, Codex works independently, then returns a diff or PR. Claude's equivalent is background sub-agents.


Built-in Session Commands (Codex CLI)

Not part of the extension stack — native Codex CLI utilities

CommandWhat it does
/initGenerate an AGENTS.md scaffold for the current project
/resumeReopen a saved conversation (interactive picker)
/forkClone conversation into a new thread
/compactSummarize conversation to conserve tokens
/clearClear the terminal and start a fresh chat
/statusDisplay session configuration and token usage
codex resumeResume a session by ID, or use --last for most recent
codex forkCreate a new thread from a previous session

Cross-Platform Note: Skills are a Shared Standard

Skills (SKILL.md format) are not OpenAI-proprietary — Anthropic introduced the format, and OpenAI Codex now supports the same folder-and-markdown skill pattern.
PlatformSkills locationStatus
Claude Code.claude/skills/Originated standard (Oct 2025)
Codex CLI.agents/skills/Added in v0.94.0 (Feb 2026); personal skills added in v0.95.0