ComparisonCoding
Best AI Coding Assistants 2026: 7 Tools Compared
Claude Code vs Cursor vs Copilot vs Codex and more: real prices, hidden usage limits, agent modes, each tool’s weak spots and ready-to-copy AGENTS.md files.
Verdict
For teams on GitHub, Copilot is the safest default: cheap to start, a cloud agent that opens pull requests, many models and admin budgets. For heavy agent work in the terminal, pick Claude Code or Codex and plan around their limits. Since the SpaceX deal, Cursor mainly pays off if you are happy with Grok models.
You pay $20 a month for an AI coding agent, and on Thursday afternoon it stops mid-refactor because you hit your weekly limit. Or the opposite happens: no limit, but your token bill at the end of the month is three times the subscription. In 2026, picking the best AI coding assistant is first a decision about how you get billed and only then about code quality.
This comparison puts seven tools through the same criteria: real prices and hidden limits, agent modes, IDE support, model choice and privacy. You also get copy-paste AGENTS.md and CLAUDE.md files, the traps most reviews skip, and a clear call on who should use what.
What is the best AI coding assistant right now?
If your company already lives on GitHub, start with GitHub Copilot: the cheapest entry point, a cloud agent that opens pull requests, and Claude, GPT and Gemini models under one plan. If you mostly work in the terminal on large changes, choose Claude Code or OpenAI Codex. Cursor now mainly suits developers who are happy with Grok models.
Comparison table (as of November 22, 2026)
| Tool | Entry plan | Higher tiers | How usage is metered | Cloud agent / background PRs | Models |
|---|---|---|---|---|---|
| Claude Code (Anthropic) | Pro $20/mo | Max $100, Ultra $200 | 5-hour windows + weekly cap, shared with Claude chat | yes (cloud sessions) | Claude only |
| Cursor (SpaceX) | Plus $8/mo (Grok only) | Premium $30, Super $100, Ultra $200 | weekly Grok pool; Claude and GPT at API list price | yes (cloud agents from Premium) | Grok included, others pay-as-you-go |
| GitHub Copilot | Pro $10/mo | Pro+ $39, Max $100 | token-based AI Credits | yes (cloud agent, PR from an issue) | GPT, Claude, Gemini, Grok and more |
| OpenAI Codex | Plus $20/mo (Go $8 too) | Pro from $100 | 5-hour windows (Plus) + weekly limits, extra credits | yes (Codex cloud) | GPT only |
| Google Antigravity | free, AI Pro $19.99 | AI Ultra $99.99 and $199.99 | weekly and 5-hour quotas | remote agents | Gemini 4, Claude 5.5 |
| Devin Desktop (formerly Windsurf) | Pro $20/mo | Teams $40, Max $200 | daily and weekly quotas | Devin Cloud sold separately | multiple providers |
| JetBrains Junie | Junie Lite free | AI credits or your own API key | credits (1 credit = $1) | GitHub Actions, GitLab CI | multiple providers, BYOK |
Prices in USD from official pricing pages, before tax. Team plans: Claude Team from $25/seat monthly, Copilot Business $19/user, Codex Business $25/user billed monthly, Cursor Teams from $30/seat.
Claude Code: many places to work, the least predictable limits
Claude Code runs in the terminal, in VS Code and JetBrains extensions, in a desktop app, in the browser (cloud sessions), on mobile, in Slack and in GitHub Actions. It ships hooks, subagents, skills, checkpoints and a sandbox, plus fine-grained permission rules you can commit for the whole team.
Strengths:
- works in the terminal, IDEs, the browser, on mobile, in Slack and in GitHub Actions, with automated code review on Team and Enterprise,
- runs through Amazon Bedrock, Google Cloud and Microsoft Foundry, so a company can stay inside its existing cloud contract,
/usageshows what eats your allowance (say, a bloated CLAUDE.md or an MCP server) and suggests fixes.
Weaknesses:
- Limits are shared with chat. Everything you do in Claude and Claude Code counts against the same limits. Pro has a 5-hour window and a weekly cap; Max adds a separate weekly cap for Fable. Anthropic doesn’t publish message counts, and the Max plan terms reserve the right to add further caps.
- Real usage is expensive. Anthropic’s own docs put the average enterprise cost at about $13 per developer per active day and $150–250 per month on token billing. That is several times a Pro subscription, which is why heavy users burn through Pro quickly.
- Agent teams multiply cost. The docs say a team of agents in plan mode uses roughly 7x the tokens of a normal session.
- Claude models only. You can’t switch to GPT or Gemini when Claude struggles with a task.
- Outages happen. On March 3, 2026, Claude Code, claude.ai and the Console saw elevated errors for about 7 hours. On September 29, 2026, claude.ai, the API, Claude Code and Cowork were down for about an hour, and some messages sent in that window may not have been saved.
- No native AGENTS.md. Most rivals adopted the shared standard; Claude Code reads only CLAUDE.md, so you have to import it (example below).
- Privacy on personal plans depends on a toggle. On Free, Pro and Max, Anthropic trains on your data if the setting is on and keeps it for 5 years (30 days if it’s off). Team, Enterprise and API usage isn’t used for training by default.
Cursor: a polished editor with new rules after the SpaceX deal
On August 14, 2026, Cursor announced it is now part of SpaceX. On October 12, 2026, it launched The X Subscription, one plan covering Grok, Cursor and X Premium. It’s the biggest shake-up in this roundup.
Strengths:
- a refined editor with Tab completions and the agent in one window,
- project rules in
.cursor/rulesplus AGENTS.md support, including nested files, - cloud agents and automated code review (Bugbot) on higher tiers,
- Privacy Mode: when it’s on, Cursor says neither it nor model providers train on your code.
Weaknesses:
- Claude and GPT are no longer bundled in new plans. From Premium up you pay for them separately at API list price from prepaid credit. The $8 Plus plan only covers Grok models.
- Uncertainty for existing customers. Legacy plans (Pro $20, Pro+ $60, Ultra $200, Teams $40) stay available to current subscribers, but users in the launch thread complain about unclear migration paths and no advance email.
- Less model neutrality. People chose Cursor because switching models was easy. Now the cheap path is one model family: Grok.
Our take: if you are on a legacy Pro plan with bundled third-party usage, don’t switch to The X Subscription until you have added up what you spend on Claude and GPT.
GitHub Copilot: cheapest entry, deepest GitHub integration
Since June 1, 2026, Copilot bills in AI Credits based on tokens, at each model’s API rate. Code completions stay unlimited on paid plans and don’t use credits.
Strengths:
- Pro at $10 includes $15 of usage ($10 base plus $5 “flex”), Pro+ at $39 includes $70, Max at $100 includes $200,
- the cloud agent: assign an issue to Copilot, it works in a GitHub Actions environment and opens a pull request,
- Claude and Codex agents also run inside Copilot (public preview, all paid plans),
- the broadest model menu: GPT, Claude, Gemini, Grok, Kimi and others,
- reads
.github/copilot-instructions.mdand AGENTS.md, and in the cloud agent also CLAUDE.md and GEMINI.md, - on Business and Enterprise, credits are pooled and admins can set budgets per enterprise, cost center and user.
Weaknesses:
- The flex allowance can move. GitHub says flex amounts will vary over time and gives no formula.
- The cloud agent has hard limits: one repository and one PR per task, a 59-minute cap per session, GitHub-hosted repos only. It also burns GitHub Actions minutes.
- The billing switch was bumpy. Ahead of the change, GitHub temporarily tightened limits on Free, Pro and Pro+ and paused self-serve Business purchases. Annual Pro subscribers drop to Free when their plan expires.
- The Free plan is just 2,000 completions a month, auto model selection only and no cloud agent.
OpenAI Codex: a strong agent with a complicated price sheet
Codex runs in a desktop app, the CLI, an IDE extension, the cloud, GitHub reviews, Slack and Linear. It comes with ChatGPT plans.
Strengths:
- one ChatGPT subscription covers chat and the coding agent,
- Pro (from $100) currently has no 5-hour limit,
- layered AGENTS.md: a global file, one at the repo root and nested files in subfolders,
- with an API key you pay only for tokens, no subscription.
Weaknesses:
- Huge spread in limits. For Plus, OpenAI estimates 17–180 local messages per 5 hours on GPT-6.2 Sol and 6–50 on GPT-6.2 Astra. Fast and Ultrafast modes drain the allowance several times faster.
- Cloud tasks can cost more than local messages, and both share one pool.
- No cloud features with an API key.
- OpenAI models only.
- For consumer services, OpenAI may train on your content unless you opt out. Business and Enterprise content isn’t used for training by default.
The rest of the field: Google, Devin and JetBrains
Google Antigravity is now Google’s main coding product: a desktop app, the agy CLI, extensions for six IDEs and an SDK. On June 18, 2026, Gemini CLI stopped serving Google AI Pro and Ultra subscribers and users of free Gemini Code Assist (enterprise Code Assist licenses kept access). Jules is being shut down: sessions ran until November 11, 2026, then it’s read-only through year-end. Plus: AI Pro and Ultra also include Claude Sonnet 5.5 and Opus 5.5. Minus: Google retired two developer tools in one year.
Devin Desktop is Windsurf renamed (June 2, 2026), with unchanged prices: Pro $20, Teams $40/seat, Max $200. Plus: it hosts outside agents such as Codex and Claude Agent. Minus: Cognition estimated only 7–27 daily messages on top-tier models in Pro.
JetBrains Junie moved into the Air environment and Junie CLI; the old plugin stops working on December 3, 2026. Plus: the free Junie Lite model, bring-your-own-key at no markup, and a local mode where code never leaves your machine. Minus: yet another migration for JetBrains users.
What it actually costs
The subscription is just the cover charge. What matters is how many tokens an agent burns when every step resends the whole conversation and tool output.
- Copilot Pro: 1,500 credits buy, for example, 7.5M uncached Claude Sonnet 5.5 input tokens or 1.5M output tokens (GitHub lists 200 and 1,000 credits per million). Cached tokens are 20x cheaper than fresh input.
- Cursor: Cursor’s docs say daily agent users usually spend $60–100 a month, power users $200+.
- Claude Code on the API: $150–250 per developer per month in enterprises, per Anthropic.
Bottom line: a $20 plan covers completions and a few agent tasks a day. If an agent runs for hours daily, budget around $100–200 a month whichever tool you pick. For chat plan prices, see our AI pricing guide for 2026.
Ready-to-use instruction files: AGENTS.md, CLAUDE.md, Cursor rules
One instruction file in the repo saves you from re-explaining the basics every session. Codex, Cursor and Copilot all read AGENTS.md. Drop this template in your repo root and fill it in:
# AGENTS.md
## Project
E-commerce app, Node.js 22 + PostgreSQL backend, React frontend.
## Commands
- install: npm ci
- test: npm test
- lint: npm run lint
Run tests and lint before you finish. A task without green tests is not done.
## Rules
- Do not touch migrations/ unless explicitly asked.
- Do not add npm dependencies without asking.
- Never read or print .env or anything in secrets/.
- Small commits, message format: "type: what and why".
## When unsure
Stop and ask instead of guessing API or table names.
Claude Code ignores AGENTS.md, so add a CLAUDE.md next to it that imports the file:
@AGENTS.md
## Claude Code only
For changes in src/payments/, start in plan mode.
In Cursor, file-scoped rules live in .cursor/rules/ with the .mdc extension (a plain .md there is ignored):
---
description: "Backend service conventions"
globs: src/services/**/*.ts
alwaysApply: false
---
- One service per file in src/services/
- Return errors as Result objects, don't throw
A solid first prompt for any agent on a new task:
Read AGENTS.md and the files related to [feature]. Don't change any code yet.
Give me a 5-point plan, list the files you will touch and the risks.
Once I approve, make changes in small steps and run the tests after each one.
Traps most comparisons don’t mention
-
The agent left running overnight. Long sessions resend the full history with every request. Claude Code’s docs warn that a one-line question in an all-day session still draws usage for the whole conversation. Use
/clearbetween tasks and set spend limits. -
Secrets in context. Block the agent from reading credential files. In Claude Code, add this to
.claude/settings.json:{ "permissions": { "deny": ["Read(./.env)", "Read(./.env.*)", "Read(./secrets/**)"] } }Caveat: per the docs, these rules won’t stop, say, a Python script that opens the file itself. Only the OS-level sandbox blocks every process.
-
Local transcripts. Claude Code stores session transcripts in plain text under
~/.claude/projects/for 30 days. If the agent saw a secret, so does that file. -
Rubber-stamp reviews. An agent that writes and grades its own code will wave its own bugs through. Treat every agent PR like one from a new hire: read the diff, run the tests, check new dependencies. Our explainer on what vibe coding is covers where this style of work breaks down.
-
Hidden multipliers. “Fast”, “Max” and large-context modes drain limits many times faster. Check before you flip them on.
Who should pick which
| You are | Our take: pick | Why |
|---|---|---|
| Junior dev, hobbyist, student | Copilot Pro ($10) or free Antigravity | lowest cost, model choice, easy IDE setup |
| Developer at a GitHub Enterprise shop | Copilot Business/Enterprise | admin budgets, pooled credits, the agent opens PRs in your repos |
| Freelancer shipping big changes across projects | Claude Code Max or Codex Pro | strong terminal agents; choose after a trial on your own code |
| Team with strict privacy requirements | Claude Code via Bedrock/Google Cloud/Foundry, or Junie with a local model | data stays under your cloud contract or on your hardware |
| Editor-first developer | Cursor (legacy plan) or Devin Desktop | comfortable IDE; in Cursor, price non-Grok models first |
Not sure whether Claude or GPT handles your codebase better? Run a blind test with the method from our guide to comparing assistants yourself: same task, same files, scored without knowing which tool wrote what. For how the underlying models compare as chat assistants, see our ChatGPT vs Claude vs Gemini comparison.
The verdict
Our take: in November 2026 there is no single winner, but there is a clear order to try them in. Copilot gives the most for the least money and the least risk for GitHub teams. Claude Code and Codex are built for agent-style work in the terminal, but their limits are opaque, and Claude Code also locks you into one vendor’s models. Cursor, after the SpaceX deal, mostly pays off for Grok fans.
FAQ
Is Claude Code free?
No. Claude Code isn’t included in the free Claude plan. You need at least Pro ($20 a month, or $17 a month billed annually) or an API account where you pay per token.
Is Cursor better than Claude Code?
They do different jobs. Cursor is a code editor with an agent; Claude Code is an agent that runs in your terminal, IDE and the cloud. Since October 2026, new Cursor plans bill Claude models separately at API prices, so in our view, Claude Code is the cheaper route for heavy Claude use.
Does GitHub Copilot have usage limits?
Yes. Since June 1, 2026, paid plans come with a monthly pool of AI Credits (worth $15 on Pro, for example). When it runs out, you buy more or wait for the next month. Code completions on paid plans remain unlimited.
Will my code be used to train models?
On business plans (Copilot Business, Claude Team, ChatGPT Business), not by default. On personal plans it depends on your privacy settings, so check them right after you sign up.
Your next step
Pick one small, real ticket from your current sprint, add the AGENTS.md template above to the repo, and give the same ticket to two tools from the table. After a week, compare not just the quality of the PRs but how much allowance or money each agent burned.
Sources
- Anthropic – Plans & pricing
- Anthropic – Use Claude Code with your Pro, Max, or Ultra plan
- Anthropic – What is the Max plan?
- Claude Code Docs – Manage costs effectively
- Claude Code Docs – Data usage
- Claude Code Docs – Feature availability
- Claude Code Docs – How Claude remembers your project (CLAUDE.md)
- Claude Code Docs – Configure permissions
- Claude Status – incident on September 29, 2026
- Claude Status – incident on March 3, 2026
- Cursor – Pricing and plans (Help)
- Cursor – Pricing
- Cursor Docs – Models & Pricing
- Cursor – Cursor is now a part of SpaceX
- Cursor Forum – Introducing The X Subscription
- Cursor Docs – Rules
- GitHub Docs – Plans for GitHub Copilot
- GitHub Blog – Copilot is moving to usage-based billing
- GitHub Blog – Flex allotments in Pro and Pro+ and a new Max plan
- GitHub Docs – About Copilot cloud agent
- GitHub Docs – Models and pricing for GitHub Copilot
- GitHub Docs – Support for different types of custom instructions
- GitHub Docs – Third-party coding agents
- OpenAI – Codex Pricing
- OpenAI – Custom instructions with AGENTS.md
- OpenAI – How your data is used to improve model performance
- Google Antigravity – Pricing
- Google Antigravity – Changes to Antigravity plans
- Google One – Google AI plans
- Google Antigravity – Choose your Antigravity
- Google Developers Blog – Transitioning Gemini CLI to Antigravity CLI
- Jules – Changelog
- Cognition – Introducing our new Windsurf pricing plans
- Cognition – Windsurf is now Devin Desktop
- JetBrains – Junie