Codex, Gemini CLI and Aider
Level 4 · Agents and app builders
What a coding agent in the terminal does. How Codex, Gemini CLI, Aider and Claude Code differ. Why git is your undo button.
Course contentsLesson 7 of 10
Level 1 · Chat and answer apps
Level 2 · AI at work
Level 3 · AI in the code editor
Level 4 · Agents and app builders
Level 5 · Pictures, video and voice
After this lesson you can
- Say why an agent suits the terminal
- Tell Codex, Gemini CLI and Aider apart
- Keep an easy undo before an agent starts
12 mincovers 6 glossary entries
Worth reading first: GitHub Copilot and Cline
What a coding agent in the terminal does
A terminal coding agent runs in the text window where coders type commands. You start it in a project folder and describe a job. It reads files, edits code and runs tests. OpenAI's Codex CLI came out in April 2025. Gemini CLI and Aider are two more that are open source. Claude Code works the same way.
The terminal suits an agent, because it works by typed commands, and so does the agent. It can run the tests, read the error and try again. No person has to copy text across. It also works when you log in to a server far away, where there is no editor at all.
OpenAI Codex is the agent you start by typing codex. The same account also works in a code editor, in a desktop app and in the cloud. In the cloud, Codex works on its own copy of your code. Then it sends back the changes for you to check. Old articles use the name for a 2021 model, which is a different thing.
Gemini CLI is Google's, and you start it by typing gemini. On June 18, 2026, Google moved free users and Google AI Pro users to a newer tool. That tool is the Antigravity CLI, and you start it by typing agy. Gemini CLI is still open source. It is now meant for firms on Google's paid Code Assist plans.
Aider is a free AI pair programmer for the terminal. It works with many models and over 100 coding languages. Its rule is simple. After each change, it saves a git commit with a clear note. Each AI edit is then one entry in your history, and typing /undo takes it back.
Claude Code, from Anthropic, works the same way. A goal goes in, and edits and test runs come out. You say yes to the risky steps. Each of these agents can run a command that deletes or breaks things. That is why each one asks before it acts, unless you tell it not to.
The common mistake is to run an agent in a folder with no git history. Then a bad edit across 12 files has no easy undo. Save your work with git before you start. Let the agent work. Then read its changes, as you would read a pull request, before you keep them.
cd my-app
codex "add a test for the login page"The terminal coding agents
| Tool | Made by | Start it with | Known for |
|---|---|---|---|
| OpenAI Codex | OpenAI | codex | Terminal, editor, desktop app and cloud in one account |
| Gemini CLI | gemini | Now for firms on a paid Code Assist plan | |
| Aider | An open source project | aider | A git commit after every change |
| Claude Code | Anthropic | claude | Asks before risky steps, many ways to extend it |
Worked example
Jack undoes one bad step
The words for this lesson6
Check yourself
Where should free users of Gemini CLI go now?
Finished this lesson?
Marking it complete also marks its 6 glossary entries learned, which updates your roadmap and your saved page. 0 are already marked.