
On this page
A year ago, comparing AI coding tools meant comparing models. In late 2026 the four tools most developers ask me about (Claude Code, OpenAI Codex, Cursor and Google Antigravity) have converged on the same five building blocks. Once you know those blocks, switching between tools is mostly a question of folder names.
This guide compares them block by block: how to install each CLI, where the rules file lives, how Agent Skills, subagents and hooks work, and how to connect an MCP server like Supabase or Stripe. Every command comes from the tool's official documentation as of November 2026. These products change monthly, so each section links the doc page to re-check.
The five building blocks every agent now shares
| Block | What it does | Loaded when |
|---|---|---|
| Rules file | Permanent project instructions: stack, commands, conventions | Every session |
| Agent Skills | A folder with a SKILL.md that teaches one task (write a migration, audit SEO) | Only when the task matches the skill's description |
| Subagents | Helper agents with their own context and tool limits (reviewer, explorer) | When the main agent delegates, or you call one |
| Hooks | Scripts that run on events, e.g. before a file edit; can block the action | On the event, every time |
| MCP servers | Connections to outside systems: databases, payments, GitHub, a browser | Tool names at start; full schemas on demand (varies by tool) |
The important shift is Agent Skills. Anthropic published the format as an open standard (agentskills.io), and Codex, Cursor and Antigravity now all read SKILL.md files. A skill you write once works in all four tools; only the folder changes. I cover that in detail in the Agent Skills guide.
Side-by-side comparison
| Feature | Claude Code | Codex CLI | Cursor | Antigravity |
|---|---|---|---|---|
| Made by | Anthropic | OpenAI | Cursor (Anysphere) | |
| CLI command | claude | codex | agent | agy |
| Rules file | CLAUDE.md (reads AGENTS.md if no CLAUDE.md) | AGENTS.md | .cursor/rules/*.mdc + AGENTS.md | AGENTS.md or GEMINI.md, .agents/rules/ |
| Project skills | .claude/skills/ | .agents/skills/ | .cursor/skills/, .agents/skills/ (also reads .claude/skills/) | .agents/skills/ |
| Custom subagents | .claude/agents/*.md | .codex/agents/*.toml | .cursor/agents/*.md (also reads .claude/agents/) | .agents/agents/*.md |
| Hooks | .claude/settings.json | not covered here | .cursor/hooks.json | Inside plugins |
| Project MCP config | .mcp.json | .codex/config.toml | .cursor/mcp.json | .agents/mcp_config.json |
| Plugins | Plugin marketplace (/plugin) | not covered here | Cursor Marketplace | agy plugin install |
Claude Code
Claude Code is Anthropic's terminal agent. It also runs in VS Code, JetBrains, a desktop app and the browser, but the CLI is the core.
# macOS / Linux / WSL
curl -fsSL https://claude.ai/install.sh | bash
# Windows PowerShell
irm https://claude.ai/install.ps1 | iex
# or with npm (Node.js 22+)
npm install -g @anthropic-ai/claude-code
cd my-project
claude- Rules:
CLAUDE.mdin the project root (or.claude/CLAUDE.md), plus~/.claude/CLAUDE.mdfor personal rules./initwrites a first version for you. Recent versions readAGENTS.mdwhen there is noCLAUDE.md, and you can import it with@AGENTS.md. - Skills:
.claude/skills/<name>/SKILL.md(project) or~/.claude/skills/(personal). Claude loads a skill when your request matches its description, or you run it with/skill-name. - Subagents: Markdown files in
.claude/agents/. Built-in ones includeExplore(fast read-only search),Planandgeneral-purpose. - Hooks: in
.claude/settings.json, on events likePreToolUse,PostToolUse,UserPromptSubmitandStop. A hook that exits with code2blocks the action. - Headless:
claude -p "prompt" --output-format jsonfor scripts and CI.
# Remote MCP server (OAuth happens inside Claude Code with /mcp)
claude mcp add --transport http --scope project supabase https://mcp.supabase.com/mcp
# Local (stdio) MCP server
claude mcp add --transport stdio context7 -- npx -y @upstash/context7-mcp
claude mcp list--scope project writes the server to .mcp.json, so the whole team gets it from Git. The default scope (local) keeps it private to you. Docs: code.claude.com/docs (opens in a new tab).
OpenAI Codex CLI
Codex is OpenAI's open-source coding agent (github.com/openai/codex (opens in a new tab)). You can sign in with a ChatGPT plan or an API key.
npm install -g @openai/codex # or: brew install --cask codex
codex login # browser sign-in with ChatGPT
codex # start in the current project- Rules:
AGENTS.md. Codex merges the files from the repo root down to your current folder, so a nestedAGENTS.mdadds rules for that part of the code. Personal rules go in~/.codex/AGENTS.md. - Skills:
.agents/skills/in the repo,~/.agents/skills/for personal ones. Run one with$skill-name. Built-in$skill-creatorand$skill-installerhelp you write or install skills. - Subagents: on by default. Custom agents are TOML files in
.codex/agents/withname,descriptionanddeveloper_instructions. - Safety: sandbox modes (
read-only,workspace-write,danger-full-access) and approval policies, changed in a session with/permissions. - Headless:
codex exec "task"(read-only sandbox by default).
# Local MCP server
codex mcp add context7 -- npx -y @upstash/context7-mcp
# Remote MCP server, then sign in with OAuth
codex mcp add stripe --url https://mcp.stripe.com
codex mcp login stripeBoth commands write to [mcp_servers.<name>] in ~/.codex/config.toml; a project can have its own .codex/config.toml once you mark the project as trusted. Docs: OpenAI Codex docs (opens in a new tab).
Cursor (editor + CLI)
Cursor is best known as a VS Code-based editor, but it also ships a terminal agent. The binary is called agent.
# macOS / Linux / WSL
curl https://cursor.com/install -fsS | bash
# Windows PowerShell
irm 'https://cursor.com/install?win32=true' | iex
agent # interactive
agent -p "review these changes for security issues" # non-interactive- Rules:
.mdcfiles in.cursor/rules/withdescription,globsandalwaysApplyin the frontmatter, plus plainAGENTS.mdfiles (nested ones are supported). - Skills:
.cursor/skills/or.agents/skills/, and for compatibility Cursor also loads.claude/skills/and.codex/skills/. Run one with/skill-name. - Subagents: built-in
exploreandbrowser; custom ones in.cursor/agents/(it also reads.claude/agents/), with fields likereadonlyandis_background. - Hooks:
.cursor/hooks.jsonwith events likebeforeShellExecution,afterFileEditandbeforeMCPExecution. Exit code2blocks.
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
},
"stripe": {
"url": "https://mcp.stripe.com"
}
}
}Remote servers that support OAuth open a browser sign-in. Servers are switched on and off in Cursor's Customize panel. Docs: cursor.com/docs (opens in a new tab).
Google Antigravity (IDE + agy CLI)
Antigravity is Google's agent-first platform: a desktop app, a standalone IDE, extensions for other editors and the agy terminal agent. The CLI keeps backward compatibility with Gemini CLI setups and can import them with agy plugin import gemini.
# macOS / Linux
curl -fsSL https://antigravity.google/cli/install.sh | bash
# Windows PowerShell
irm https://antigravity.google/cli/install.ps1 | iex
agy --version
agy- Rules:
AGENTS.mdorGEMINI.md(always on), and.agents/rules/*.mdwith a requiredtrigger(always_on,model_decision,globormanual). A rule with a missing trigger is silently ignored. - Skills:
.agents/skills/in the workspace,~/.gemini/config/skills/globally. In the CLI each skill becomes a slash command; run/skills reloadafter adding one. - Subagents: built-in
research,browserandself; custom ones in.agents/agents/. A subagent can work on its own Git branch (worktree)./agentsopens the Agent Manager panel. - Plugins: bundle skills, MCP servers, subagents, rules and hooks.
agy plugin install <name>or a GitHub URL;agy plugin import claudeconverts a Claude Code setup.
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
},
"supabase": {
"serverUrl": "https://mcp.supabase.com/mcp"
}
}
}The IDE also has an MCP Store ("…" menu in the agent panel → MCP Servers → Install). The IDE and the CLI read the same mcp_config.json files, so a server added once works in both. Remote servers must use Streamable HTTP. Docs: antigravity.google/docs (opens in a new tab).
Which one should you use?
| If you… | Start with |
|---|---|
| Live in the terminal and want hooks, skills, subagents and MCP all in one tool | Claude Code |
| Already pay for ChatGPT and want an open-source CLI with a strict sandbox | Codex CLI |
| Want an editor first, with tab completion and an agent in the same window | Cursor |
| Want to run several agents in parallel from one manager, or work in Google Cloud | Antigravity |
| Work in a team where people use different tools | Any of them, with a shared AGENTS.md and .agents/skills/ |
The last row matters most. Because the formats converged, you don't have to pick one tool for the team. Put the project rules in AGENTS.md, put skills in .agents/skills/, and Codex, Cursor and Antigravity read them directly. Claude Code reads AGENTS.md too, and a one-line CLAUDE.md containing @AGENTS.md makes it explicit.
How I use this on client work
I build MERN and Next.js apps for clients and use Claude Code every day. This website is the example I can show in full: an AGENTS.md with the project rules, 27 skills and 10 subagents in .claude/. I walk through that setup, and what each part is actually used for, in How I use Claude Code on a real project.
Frequently asked questions
Can I use the same skills in Claude Code, Codex, Cursor and Antigravity?
Yes. All four read the Agent Skills format: a folder with a SKILL.md file. Only the folder differs: .claude/skills for Claude Code, .agents/skills for Codex and Antigravity, and Cursor reads .cursor/skills, .agents/skills and .claude/skills.
Does Claude Code read AGENTS.md?
Recent versions do: Claude Code reads AGENTS.md when there is no CLAUDE.md in the project. You can also add a CLAUDE.md that imports it with @AGENTS.md.
What is the Cursor CLI command called?
The official docs call the binary agent. Run agent for an interactive session or agent -p "prompt" for a non-interactive run.
Is it safe to connect Supabase or Stripe MCP to an AI agent?
Use a development project or Stripe test mode, prefer read-only access, and review every write. Data the agent reads can contain prompt-injection text, so never connect production data while you experiment.
- Claude Code
- Codex
- Cursor
- Antigravity
- MCP
- Agent Skills
Keep reading
desi · Personal safety app
desi: An Event-Driven Safety Platform with Two-Way SMS and Ride Handoff
The serverless backend and admin portal for desi, a life-safety app that checks in by SMS when someone is out for the night and gets them a ride home. 30 Edge Functions, 65 migrations with Row-Level Security and 1,000+ automated tests.
- Deno / TypeScript Edge Functions
- 30
- PostgreSQL migrations, Row-Level Security on every table
- 65

AI Coding Tools7 min read
Agent Skills Explained: Write One SKILL.md for Claude Code, Codex, Cursor and Antigravity
Agent Skills are folders of instructions an AI coding agent loads only when a task needs them. What they are, why they beat a giant rules file, how to write your first SKILL.md, and the GitHub repos worth installing from.

AI Coding Tools6 min read
How I Use Claude Code on a Real Next.js Project: AGENTS.md, 27 Skills and 10 Subagents
The actual Claude Code setup behind this website: what goes in AGENTS.md, which skills and subagents are installed and why, how a feature goes from plan to Lighthouse check, and the guardrails I'd add next.
