Codex CLI
What it is
OpenAI's open-source coding agent for the terminal. It reads and edits files and runs commands, with sandbox and approval settings that you control separately.
Who it is for
- People comfortable reviewing code and shell commands
Not ideal for
- Anyone unwilling to use a terminal for installs and config
- Workflows that must stay 100% point-and-click
Your first 30 minutes
- 1
Install it and sign in, or set up an API key, following the official quickstart.
- 2
Open a small sample project and ask it to explain the code, without giving it permission to write.
- 3
Then allow it to write in that folder only, ask for one small change and read the diff.
Use cases it fits
Characterisation tests for legacy code
The agent finds the behaviours of an untested module, writes tests that pin its current output, runs them and reports coverage. Tests are labelled as characterisation tests, because they may lock in existing bugs. You review them.
Notebook reproducibility check
The agent reruns each notebook in a clean environment with fixed seeds and compares the outputs with the saved ones, reporting differences. The author fixes them.
First-pass pull request reviewer
The agent reads the diff and the code around it, runs linters, lists issues by severity and posts review comments. You can mark false positives so it learns. You decide what to act on.
Failing test reproduced and patched
The agent reads the CI failure, checks out the branch, reproduces the failure, edits the code and runs the tests before opening a pull request. It never edits a test without flagging it, so a real bug is not hidden. You review the patch.
Clear issue into a first implementation
The agent explores the repository, plans the change, implements it with tests and opens a draft pull request. Keeping it a small draft limits the cost of a wrong approach. You review.
Dependency upgrades with tests
The agent updates one group of outdated packages at a time, runs the tests and fixes simple compile errors. It opens a pull request with notes from the changelog and pinned versions. You merge.
An easier start
Cline
Coding agents and AI code editorsAn open-source coding agent that works inside your code editor and asks before it edits files or runs commands.
- IDE extension
Alternatives at this level
Aider
Coding agents and AI code editorsAn open-source AI pair programmer for the terminal that works with Git and with hosted or local models.
- Terminal
Claude Code
Coding agents and AI code editorsAnthropic's coding agent for the terminal and code editors. It reads your project, edits files and runs commands within the permissions you set.
- Terminal
Goose
Coding agents and AI code editorsAn open-source agent that runs on your machine and can be extended with tools, for coding and other local tasks.
- Terminal