Claude Code and Codex are the two terminal-first coding agents most often put side by side, and for app development they are more alike than different. Both read project instructions, run commands, use skills and delegate to subagents. This page compares what each documents and where the real choice lies. We read both vendors’ documentation, and Flutter’s AI page, on the day this post was written. They change quickly, so check the pages linked below.
What each one is
Claude Code’s documentation describes “an AI-powered coding assistant that helps you build features, fix bugs, and automate development tasks”, available “in your terminal, IDE, desktop app, and browser”, with each surface connected to “the same underlying Claude Code engine.”
OpenAI’s Codex documentation says you can “build with the Codex CLI, IDE extension, and cloud automation.” The CLI page lists three reasons to use it: “work against your local repository”, “stay in control” of the model, permissions and commands, and “compose with scripts and CI”, including calling codex exec from workflows. A separate Codex Cloud page covers running “coding tasks in the cloud” and reviewing the results.
Project instructions
- Claude Code: CLAUDE.md. Loaded from your working directory and every directory above it, with an
/initcommand and a recommended length of under 200 lines. A Flutter template is here. - Codex: AGENTS.md. “Codex reads
AGENTS.mdfiles before doing any work.” It builds an instruction chain: a global file in your Codex home folder, then project files from the project root down to your working directory, concatenated with the closest files overriding earlier ones.
Both are context, not enforcement. If you use both tools on one project, keep the shared guidance in one file and reference it from the other.
Skills and subagents
Both have them.
- Skills. Claude Code documents
SKILL.mdfiles that Claude uses when relevant or that you call with/skill-name. Codex documents that “a skill packages instructions, resources, and optional scripts so either product can follow a workflow reliably”, and that skills “build on the open agent skills standard.” The shared format means a skill written well for one may be a good start for the other, though we have not tested that. - Subagents. Claude Code’s run “in their own context window with a custom system prompt, specific tool access, and independent permissions.” Codex’s documentation says it can run subagent workflows “by spawning specialized agents in parallel and then collecting their results in one response”, and that “subagent workflows consume more tokens than comparable single-agent runs.” Custom agents can be defined in local Codex clients.
Claude Code also documents hooks, commands that run automatically at set points such as before or after a tool call. Codex documents rules that “control which commands Codex can run outside the sandbox”, plus sandboxing and approvals.
Flutter’s official plugin works with both
Flutter’s documentation has a page on developing with AI that covers both. The plugin bundles skills, rules, the Dart and Flutter MCP server (access to “analyzer diagnostics, symbol resolution, test runners, and runtime inspection”) and specialised agents.
- Claude Code:
claude plugin marketplace add flutter/agent-plugins, thenclaude plugin install dart-flutter@dart-flutter. Rules go into yourCLAUDE.md. - Codex:
codex plugin marketplace add flutter/agent-plugins, thencodex plugin add dart-flutter@dart-flutter. Rules go in a.agent/rules/folder, or are appended toCODEX.md, per that page.
Side by side
| Claude Code | Codex | |
|---|---|---|
| Surfaces | Terminal, IDE, desktop app, browser | CLI, IDE extension, cloud |
| Project instructions | CLAUDE.md |
AGENTS.md chain |
| Skills | SKILL.md |
Skills on the open agent skills standard |
| Subagents | Yes, own context and tools | Yes, parallel, custom agents in local clients |
| Hooks and rules | Hooks; permission settings | Rules for commands outside the sandbox; approvals |
| Flutter official plugin | Yes | Yes |
| Scripting | Documented commands | codex exec for scripts and CI |
Where the choice really lies
These points are our view, not either vendor’s:
- Which models you want. Each tool is built around its vendor’s models, and the models are the largest difference. Try both on your own code.
- Where you want long tasks to run. Codex documents a cloud mode for tasks that run away from your machine. Claude Code documents a browser surface as well as the terminal.
- Which tool your team already uses, and which the people reviewing your code trust.
- Process, not product. Both need the same research, product decisions and store checks. That part is the same work, and it is what MobileKit adds.
MobileKit and Codex
MobileKit is a pack of skills, agents and commands built as a .claude/ folder for Claude Code. Codex documents skills on an open standard and reads AGENTS.md, so a port may be possible, but we have not tested MobileKit in Codex and do not claim it works there.
A fair test
- Pick one real Flutter task from your app, such as a settings screen with a toggle and a test.
- Install Flutter’s official plugin in each tool.
- Give both the same instructions and the same project rules.
- Compare the corrections you made, the time it took, and how easy each diff was to review.
For other comparisons, see Claude Code vs GitHub Copilot for Flutter and Cursor vs Claude Code for Flutter. Codex is an independent product of OpenAI, and MobileKit is not affiliated with it.
Sources read on the day this post was written: learn.chatgpt.com/docs/codex/cli, learn.chatgpt.com/docs/agent-configuration/agents-md, learn.chatgpt.com/docs/agent-configuration/subagents, learn.chatgpt.com/docs/build-skills, docs.flutter.dev/ai/get-started, code.claude.com/docs/en/overview.