
AI Tools Deep Dive
20 partsTL;DR
Codex runs in a sandbox, reads your TypeScript repo, and submits PRs. Here is how to use it and how it compares to Claude Code.
Read next
Cursor edits code in your IDE. Codex runs in a cloud sandbox and submits PRs. Here is when to use each for TypeScript projects.
5 min readTerminal agent, IDE agent, cloud agent. Three architectures compared - how to decide which fits your workflow, or why you should use all three.
8 min readFrom terminal agents to cloud IDEs - these are the AI coding tools worth using for TypeScript development in 2026.
8 min readOpenAI Codex is a cloud-hosted coding agent powered by GPT-5.3. You give it a task, it spins up a sandboxed environment, clones your repo, and works through the problem autonomously. When it finishes, you get a diff or a pull request.
For model-selection context, compare this with Codex vs Claude Code in April 2026: Which Agent for Which Job and OpenAI vs Anthropic in 2026 - Models, Tools, and Developer Experience; model quality matters most when it is tied to a concrete coding workflow.
It is not an autocomplete tool. It is not inline suggestions. Codex operates as a full agent: reading files, running commands, installing dependencies, executing tests, and iterating on failures. All of this happens in a remote container, not on your machine.
The CLI is the primary interface for developers. You install it via npm, authenticate with your OpenAI account, and run codex exec "your prompt" from within a repository. Codex reads your project structure, understands the codebase, and executes against it.
Every Codex task runs inside an isolated cloud sandbox. OpenAI provisions a container with your repository cloned in, installs dependencies, and gives the agent full shell access within that environment. The agent can read files, write files, run build tools, execute tests, and iterate on errors.
This architecture has clear advantages. Your local machine stays clean. There is no risk of the agent corrupting your working directory or accidentally running destructive commands against your system. The sandbox is disposable: once the task completes, the environment tears down.
The tradeoff is latency. Spinning up a container, cloning the repo, and installing dependencies adds startup time. For quick edits, this overhead feels heavy compared to local agents like Claude Code that operate directly on your filesystem. For longer tasks (refactors, feature builds, test suites), the startup cost becomes negligible relative to the work being done.
Codex sandboxes have internet access during dependency installation but are network-isolated during execution. The agent cannot make arbitrary HTTP requests while coding. This is a security measure, but it means Codex cannot fetch live documentation or hit external APIs mid-task.
Codex connects directly to your GitHub repositories. You can trigger tasks from the CLI, from the ChatGPT web interface, or by tagging Codex in a GitHub issue or pull request.
The most practical workflow for TypeScript projects:
This works well for contained tasks: fixing a type error, adding a utility function, writing tests for an existing module, updating dependencies. The PR includes the full diff and a summary of what the agent did and why.
For larger features, you can scope the work with an agent.md file in your repository root. This file acts as persistent instructions, similar to a CLAUDE.md for Claude Code. You define coding standards, architectural preferences, and constraints. Codex reads this file before starting any task.
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools - delivered free every week.
From the archive
Mar 19, 2026 • 10 min read
Mar 19, 2026 • 7 min read
Mar 19, 2026 • 3 min read
Mar 19, 2026 • 5 min read
Codex handles TypeScript projects well. It reads tsconfig.json, respects your compiler options, and runs tsc to validate its output. If type errors surface, the agent iterates until the build passes.
A typical TypeScript workflow with Codex:
# Install the CLI
npm install -g @openai/codex
# Authenticate
codex auth
# Run a task against your current repo
codex exec "Add input validation to the createUser function in src/api/users.ts. Use zod schemas. Add tests."
Codex reads the existing code, identifies the function signature and its callers, generates a zod schema matching the expected input shape, wraps the function with validation, and writes test cases. It runs the test suite to confirm nothing breaks.
For monorepos with multiple tsconfig files, Codex navigates the project references correctly. It understands workspace configurations for pnpm, npm, and yarn workspaces.
Where it falls short: Codex sometimes generates overly verbose TypeScript. Extra type annotations where inference would suffice, unnecessary generics, redundant null checks. You will want to review and tighten the output. This is less of an issue with GPT-5.3 than it was with earlier models, but it still surfaces on complex type hierarchies.
Codex access requires a ChatGPT Pro or Team subscription. The Pro plan runs $200/month and includes Codex usage alongside ChatGPT, the API, and other OpenAI products.
For heavy CLI usage, token consumption matters. GPT-5.3 is priced at the frontier tier. A typical Codex task (reading a repo, implementing a feature, running tests, iterating) can consume significant tokens, especially on large codebases. OpenAI bundles a generous allocation with Pro, but intensive users may hit limits.
There is no free tier for Codex. If you want to evaluate it, the Pro subscription is the entry point.
Both are agentic coding tools. Both read your codebase, make changes, and iterate on errors. The core differences come down to architecture, workflow, and where each tool excels.
Execution model. Codex runs in a remote sandbox. Claude Code runs locally on your machine. This means Claude Code has zero startup overhead, direct filesystem access, and can interact with your local environment (databases, servers, browsers). Codex trades that immediacy for isolation and safety.
Context. Claude Code operates inside your terminal session. It sees your working directory, your git state, your running processes. Codex sees a snapshot of your repo. Claude Code can chain commands, install tools, and interact with MCP servers. Codex works within its container boundaries.
TypeScript tooling. Both handle TypeScript well. Claude Code benefits from being able to run your dev server locally and verify changes in real time. Codex validates against your build configuration but cannot render a page or hit a local API.
Autonomy. Codex is designed for fire-and-forget tasks. Hand it an issue, walk away, review the PR later. Claude Code is better for interactive development where you steer the agent with follow-up prompts, review intermediate output, and adjust direction mid-task.
Integration surface. Claude Code connects to MCP servers, giving it access to browsers, databases, external APIs, and custom tools. Codex integrates tightly with GitHub but has a narrower integration surface.
For a deeper look at model capabilities across these tools, see the model comparison on SubAgent.
Use Codex when you want hands-off task execution: bug fixes from issues, test generation, dependency updates, code review automation. The GitHub integration makes it natural for teams that manage work through issues and PRs.
Use Claude Code when you want interactive, iterative development: building features with real-time feedback, debugging with access to logs and local services, working across multiple files with full project context.
The tools are not mutually exclusive. Running both on the same codebase is a valid workflow. Codex handles the backlog of well-defined tasks while Claude Code drives the exploratory, high-context work.
OpenAI Codex is a cloud-hosted coding agent powered by GPT-5.3. It spins up a sandboxed environment, clones your repo, and works through tasks autonomously. When it finishes, you get a diff or a pull request. It is an agentic tool, not an autocomplete engine.
Codex requires a ChatGPT Pro subscription at $200/month. There is no free tier. The Pro plan includes Codex usage alongside ChatGPT, the API, and other OpenAI products. Heavy CLI usage consumes tokens from your allocation.
Codex runs in a remote cloud sandbox and integrates tightly with GitHub for fire-and-forget tasks like bug fixes and PR generation. Claude Code runs locally on your machine with direct filesystem access, MCP server support, and interactive development capabilities. Codex is best for hands-off task execution; Claude Code is best for iterative, high-context work.
Yes. Codex reads your tsconfig.json, respects compiler options, runs tsc to validate output, and iterates until the build passes. It handles monorepos with multiple tsconfig files and understands pnpm, npm, and yarn workspace configurations.
Technical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
OpenAI's cloud coding agent. Runs in a sandboxed container, reads your repo, executes tasks, and submits PRs. Uses GPT-5...
View ToolOpenAI's flagship. GPT-4o for general use, o3 for reasoning, Codex for coding. 300M+ weekly users. Tasks, agents, web br...
View ToolOpenAI's latest flagship model. Major leap in reasoning, coding, and instruction following over GPT-4o. Powers ChatGPT P...
View ToolOpenAI's open-source terminal coding agent built in Rust. Runs locally, reads your repo, edits files, and executes comma...
View ToolOne control panel for Claude Code, Codex, Gemini, Cursor, and 10+ AI coding harnesses. Desktop app for Mac.
Open AppOpenAI Assistants API is sunsetting August 26 2026. Paste your code, get Responses API equivalent. Built for the migration deadline.
Open AppInstall Ollama and LM Studio, pull your first model, and run AI locally for coding, chat, and automation - with zero cloud dependency.
Getting StartedClickable PR link in the footer with review state color coding.
Claude CodeInstall the dd CLI and scaffold your first AI-powered app in under a minute.
Getting Started
Cursor edits code in your IDE. Codex runs in a cloud sandbox and submits PRs. Here is when to use each for TypeScript pr...
Terminal agent, IDE agent, cloud agent. Three architectures compared - how to decide which fits your workflow, or why yo...

From terminal agents to cloud IDEs - these are the AI coding tools worth using for TypeScript development in 2026.

OpenAI's April 2026 Codex changelog shows a clear product shift: Codex is becoming a full agent workspace with goals, br...

A practical guide to using Claude Code in Next.js projects. CLAUDE.md config for App Router, common workflows, sub-agent...

Two platforms, two philosophies. Here is how Anthropic and OpenAI compare on APIs, SDKs, documentation, pricing, and the...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.