AI agent CLI tools for developers
Compare AI agent CLI tools by repo understanding, terminal control, edit safety, test behavior and handoff quality.

Put it into practice
What you will produce
A repeatable trial record naming CLI version, configuration, approvals, changed paths and verification.
- 01
Define one comparable task
Choose a small repository task with a clear expected result and no production data or external side effects.
Expected result: Every CLI is evaluated on the same bounded task.
- 02
Record the trial setup
Note installed version, configuration, approval mode, and starting Git state for each CLI.
Expected result: Another developer can reproduce the conditions.
- 03
Observe actual access
Track requested permissions and changed paths; stop if unrelated files, secrets, or unapproved network access appear.
Expected result: The trial measures actual access rather than advertised controls.
- 04
Compare outcome and recovery
Apply the same task check, inspect the diff, and confirm Git can restore the disposable workspace.
Expected result: Selection rests on result, access scope, and recoverability.
Compare observable criteria
This guide compares documented command-line interfaces only. Check current installation, account, platform, and access requirements in each vendor's documentation.
Documentation checked on 2026-10-18
Scroll horizontally to compare all tools.
| Criterion | Claude Code | Codex | Cursor CLI | Copilot CLI |
|---|---|---|---|---|
| Interactive terminal | Claude Code CLI session. | Codex terminal UI. | Cursor `agent` interactive session. | Interactive Copilot CLI session. |
| Non-interactive automation | CLI command and print options are documented; confirm the command and permission behavior for your version. | `codex exec` is documented for scripts and CI. | Print mode is documented for scripts and CI; cloud handoff is also available. | Direct prompt execution is documented for scripts and CI/CD. |
| Permission and safety controls | Permission modes and tool-specific rules. | Sandbox modes and approval controls. | Agent, Plan, Ask modes and sandbox toggle. | Tool allow/deny controls; Autopilot can proceed through implementation and testing without step-by-step prompts. |
| Review or session tools | Use the CLI session and Git diff; configured extensions include hooks and subagents. | `codex review`, session resume, and managed worktrees. | Resume sessions, review proposals, and hand off to cloud agents. | Review workflow, custom agents, session resume, and GitHub-linked commands. |
Acceptance checks
- Every CLI is evaluated on the same bounded task.
- The trial measures actual access rather than advertised controls.
- Selection rests on result, access scope, and recoverability.
Limits and trade-offs
A CLI label or approval prompt is not a complete security model. Re-check vendor docs as permissions and defaults change.
Official sources
Compare CLI agents
Related guides
Claude Code vs Cursor vs Copilot
Claude Code vs Cursor vs GitHub Copilot : three different tools solving three different problems. What each is actually good at and which one I use daily.
Everyone has an opinion. Most of them are based on a 20 minute trial or tribal loyalty. I've used all three seriously. Here's what I actually think. What the tools offer Copilot combines editor suggestions with chat and agent capabilities. Cursor integrates assistance and agents into its editor. Claude Code provides an agent available in the terminal and supported editor integrations. Exact capabilities depend on version, plan and environment. Compare them on your own repository using the same local edit, multi file task and diff review. Record the model, files changed, commands run, errors found and review time. A plausible answer does not replace tests. Features change: check the documentation for GitHub Copilot, Cursor and Claude Code. Pricing and limits also depend on plan and region. Compare the same task Use a test repository and ask all three tools to fix the same bug with the same context and acceptance…
Read the guideClaude Code Subagents: Parallel Agents
Learn when Claude Code subagents help, how to split parallel work, and how to configure a focused custom subagent without creating conflicts.
Subagents are useful when a task can be split cleanly: one agent searches the authentication code, another traces the database path, and the main conversation compares what they found. They add little to "read this file" or to work where every step depends on the same context. Short version: delegate independent research or a separate review when the results are worth the extra context and usage. Give each agent a narrow scope, the files or area to inspect, and a specific report format. Keep dependent work in the main conversation. Claude Code agents vs subagents Claude Code's documentation calls delegated workers subagents and uses Agent for the tool that starts them. When people search for Claude Code agents in this context, they usually mean subagents: workers that handle a delegated task in their own context and return a result to the main conversation. Claude Code's subagent documentation uses this terminology.…
Read the guideCLAUDE.md: A Guide for Every Developer
One markdown file that makes AI coding assistants actually understand your codebase. Here's what to put in it.
There's a reason Claude Code writes great code in some projects and generic boilerplate in others. It's not the model. It's CLAUDE.md . It is one part of my Claude Code workflow: project conventions reduce guesswork, but they do not guarantee a speedup or remove the need to review the change. What it is CLAUDE.md is a plain markdown file that Claude Code reads at the start of every session. Think of it as the onboarding doc you'd give a senior contractor on day one: stack, conventions, rules, context. Without it, Claude infers patterns from what it sees in the codebase. Sometimes it infers correctly. Often it doesn't especially for implicit conventions your team just "knows". A CLAUDE.md makes your rules available without repeating them, but does not guarantee compliance: review the diff and run the checks. What to put in it 1. Stack and versions Simple but important. These…
Read the guide