UPDATED IN DECEMBER 2026

CLI agents (Claude Code, Codex) as primary

How shifting from IDE plugins to CLI-based agents makes AI a programmable, scriptable part of your development workflow rather than a typing assistant - and why, with models now leased for about a quarter, workflows name a role and resolve the model ID in one place.

L3 · SYSTEMATICWhat this level takes
MUSTNot met, not at this level
  • Coding conventions are written as explicit, agent-parseable rules (not implicit tribal knowledge)
  • Per-team or per-repo rules files exist and are maintained with code review
  • CLI agents (Claude Code, Codex) are the primary coding interface for 50%+ of feature work
SHOULDExpected in practice, not required
  • Agent usage is tracked per developer and per repository
  • Agent instruction files follow a standardized template across the organization
  • Workflows and agent configurations name a model role (planner, worker, reviewer), and the model ID behind each role is resolved in one place
EVIDENCEHow you would check
  • CLI agent session logs or telemetry showing primary usage
  • Rules files in repository with commit history showing regular updates
  • Coding conventions document cross-referenced from agent instruction files
DEPENDS ON
  • Development L2 (Context Engineering) - agent instruction files must exist before rules-per-team layering is meaningful

What It Is

CLI agents - Claude Code, OpenAI Codex CLI, Aider, and similar tools - run in your terminal rather than inside an IDE plugin. This architectural difference is more significant than it appears. A CLI agent is a programmable tool: it can be invoked by scripts, chained into workflows, run in CI/CD pipelines, triggered by git hooks, and executed in remote environments without a graphical IDE. An IDE plugin is a convenience feature; a CLI agent is infrastructure.

At L3 (Systematic), CLI agents become primary - not supplementary. The developer's main AI interaction is no longer the chat sidebar or inline suggestions, but a terminal session where they describe tasks, the agent executes them, and the developer reviews results. The IDE still exists (with Copilot still running for inline assistance), but the high-leverage work happens in the CLI.

Claude Code is the canonical example: run claude in your project root, give it a task, and it uses tools to read files, make edits, run tests, and iterate until the task is complete. As of March 2026, Claude Code also supports Computer Use (interacting with GUIs, browsers, and desktop applications) and Auto Mode (dynamically choosing between tool use strategies), extending CLI agents beyond pure code tasks into full-environment automation. OpenAI's Codex runs both as a local CLI and as a cloud-hosted agent inside ChatGPT; the CLI is actively developed again, with five releases (0.168.0 to 0.172.0) in November 2026 alone. Aider supports multiple backends and is especially strong for pair-programming style interaction. Gemini Code Assist Agent Mode, now GA on IntelliJ (and other JetBrains IDEs), blurs the CLI/IDE boundary by offering terminal-grade agentic capabilities from within the IDE. All of these tools share the same core architecture: a language model with tool access, running autonomously.

By June 2026, the same CLI architecture also runs on self-hostable open-weight models, which makes a locally-run agent a credible primary path rather than a fallback. Z.ai's GLM-5.2 (MIT-licensed, ~June 13) beat GPT-5.5 on SWE-bench Pro at roughly one-sixth the cost; Kimi K2.7-Code (Moonshot, June 12) shipped with day-one vLLM/SGLang support; and DeepSeek V4 now leads open-weight SWE-bench. All of them run through llama.cpp, vLLM, or Ollama and plug into the same CLI-agent loop as hosted models. The sovereignty case got concrete the same week: Anthropic's hosted Fable 5 and Mythos 5 launched June 9 and were disabled worldwide June 12 under a US export-control order. Fable 5 was restored July 1 after the export controls lifted June 30, but the three-week outage proved the point: teams that depend on a CLI agent for primary work should keep a self-hostable model wired into the same workflow so a single vendor or policy change cannot stall delivery.

July 2026 refreshed the entire model layer underneath these harnesses. Claude Opus 5 (July 24, $5/$25 per 1M tokens, low/medium/high effort toggle) became the new Claude Code default, marketed as near-Fable performance at half the price. GPT-5.6 went GA July 9 in Sol/Terra/Luna tiers, with Sol 54% more token-efficient on coding and a 1.05M context window. Grok 4.5 (July 16, $2/$6) shipped with Grok Build, a terminal agent whose agent loop is open-sourced and speaks the Agent Client Protocol, and Zhipu released the ZCode harness for GLM-5.2 (July 6). The more important shift is the dominant usage pattern that emerged with them: model routing, or "frontier plans, cheap executes." Cursor's Router/Auto (July 22) exposes Intelligence/Balance/Cost modes; open-weight GLM-5.2, Kimi K2.7-Code, and DeepSeek V4 increasingly serve as cheap execution workers under a frontier planner; and the mixmod demo of GPT-5.5 supervising local Qwen workers cut frontier-token spend by 75.5%. At L3, "which model" is becoming a routing policy inside the CLI harness, not a single procurement decision.

August then inverted that routing policy in four weeks. Anthropic made Sonnet 5's introductory pricing permanent on August 10, cancelling the scheduled 1 September rise from $2/$10 to $3/$15 per MTok, and retired Claude Opus 4.1 from the first-party API on August 5. OpenAI cut GPT-5.6 Sol from $5/$30 to $4/$20 on August 21, promotional through at least November 21, having already cut Luna about 80% to $0.20/$1.20 and Terra about 20% to $2.00/$12.00 on July 30. Grok 4.6 arrived on August 12 with a 500K context at $2/$6 and an Artificial Analysis Intelligence Index of 61, tied with GPT-5.6 Sol - the cheapest frontier-class coding model of the month. Meta shipped its first coding agent, Muse Code, on August 5: terminal-native on macOS and Linux, built on Muse Spark 1.2 with a 1M context, spawning subagents in isolated git worktrees, priced at $1.25 in / $0.15 cached / $4.25 out per MTok and still in beta. Even the open-weight floor moved. DeepSeek V4 Pro (August 13, roughly 671B total / 37B active MoE, MIT, 1M context) shipped with an API price increase, ending DeepSeek's role as the automatic cheap option, while Qwen3.8-Max (August 3, 2.4T total / 95B active, text weights released August 12) and GLM-5.3 (August 14, roughly 753B/40B, claiming about a 50% coding gain over 5.2 - a vendor claim) moved into the space it vacated. The practice implication is blunt: any routing config written in July is now wrong. Re-cost every workload, and put the next re-costing in the calendar before you close the spreadsheet.

The structural change underneath the prices matters more than any single one of them. deepseek-ai/deepseek-harness went public on August 13 under MIT - command name dsh, Node.js, developer preview - the same day V4 Pro went GA, and its organising idea is that everything is a plugin: the model adapter, the tool registry, the session log and the agent loop itself are all replaceable. A satellite ecosystem of web UIs, desktop shells, context dashboards and agent-team layers formed around it within weeks. Read alongside Shopify's July 29 conclusion that after five months of model swaps the harness, not the model, is the durable asset, this turns a vague preference into a concrete L3 maturity test: can you swap the model underneath your CLI agent without rewriting the harness above it?

September re-priced the top of the stack again, and this time vendors sold cost per task rather than price per token. Claude Opus 5.5 (September 22) dropped to $4/$20 per MTok from Opus 5's $5/$25, with thinking always on; Anthropic says it runs at roughly Fable 5.1 level on most work and about 40% cheaper than Opus 5 (vendor-reported). Claude Sonnet 5.5 (September 28) stayed at $2/$10 and claims up to 30% lower cost per task, and Fable 5.1 (September 1) sits above both at $10/$50. On the OpenAI side, GPT-6 Sol and Luna shipped September 22: Sol at $2/$10 ($4/$15 above 272K context) became the Codex default (superseded by GPT-6.1 Sol a week later), and Luna at $0.10/$0.50 set a new API price floor, more than 50% below GPT-5.6 Luna. The cheap execution tier filled out underneath: DeepSeek V4.1 Flash (MIT, $0.15/$0.60 off-peak, double at weekday peak), Xiaomi MiMo-V2.6 (MIT, Flash at $0.14/$0.28), GLM-5.3 and Kimi K3. One counter-example belongs in every routing review: Gemini 3.8 Flash kept a low token price yet its cost per task rose from $0.40 to $0.58 against 3.7 Flash, because it takes more reasoning steps and tool calls. The August lesson therefore stands with a sharper edge - any routing config written in August is stale again, and the number to re-cost is cost per task, not the price sheet.

The adoption baseline moved too. JetBrains' 2026 Developer Ecosystem Survey (15,000+ professional developers, fielded May to July across eight languages) reports 90% using AI coding agents at work at least weekly and 68% daily, with Claude Code at 39% tool share (up from 18% in January 2026), GitHub Copilot at 21% (down from 29%), Codex at 16% (up from 3%) and Cursor at 12% (down from 18%). Claude Code is the primary tool for 31% of respondents. JetBrains competes in this market, so read the shares with that in mind - but it is the largest public sample available, and it says CLI-first is now the majority position rather than the advanced one.

October refreshed the lineup once more and, for the first time, made the install channel part of the L3 question. On the model side: GPT-6.1 Sol (September 29, $2/$10, same price as GPT-6 Sol) became the Codex workhorse (GPT-6.2 Sol took over in November), and GPT-6.1 Terra (October 26, $1/$5) added a mid tier. Claude Haiku 5.5 (October 7) joined GPT-6 Luna at the $0.10/$0.50 floor; the per-token cut against Haiku 4.5 is about 90%, but Anthropic itself estimates about 75% lower real workload cost, and on Terminal-Bench it scores roughly 20% at the default effort against 39.2% at max (vendor-reported) - set the effort level deliberately when you use it as a worker. The open-weight tier added Kimi K3.1 Pro (October 23, $2/$10, weights promised by November 4) and Mistral Large 4 with open weights (October 29). On the harness side, GitHub's Copilot CLI belongs in the primary set, and Google's agent for individuals is Antigravity (Gemini CLI stopped serving individual accounts on June 18, and Jules goes read-only on November 11 and offline on December 31, folded into Antigravity). The Stack Overflow 2026 survey (October 6, 30,000+ responses) puts coding-agent use at 66%, with Claude Code used by 66% and Copilot by 59% of agent users.

The security change is the one to act on. On October 29 a trojanized build of the official Claude Code extension (versions 2.1.312 and 2.1.313) sat in Cursor's marketplace for about 11 hours, reaching up to 5,000 users by Cursor's upper bound. Its loader added an attacker SSH key, a reverse tunnel and persistence, beaconed the names of secret-like environment variables, and its artefacts survive uninstalling the extension. Anthropic's own channels were clean. A CLI agent that is your primary tool runs with your shell, your keys and your repositories, so where you install it from and which version you run are now part of the L3 standard: install from the vendor's own channel, pin and review the version the team runs, and treat a marketplace copy as a third-party package.

November turned the monthly lineup change into a planning rule. The arrivals: Claude Fable 5.2 (November 9, $8/$40 per MTok, 1M context, the default Fable model from Claude Code 2.1.321), GPT-6.2 Astra and Sol (November 17; Astra at $8/$40, Sol at $2/$10 and the default in the Codex CLI model catalog from 0.171.0), Microsoft's MAI Code 2 and MAI Code 2 Flash in Copilot (November 17; "96% of Claude Opus 5.5's performance at 5% of the cost" is Microsoft's own claim), and Gemini 4 Carbon, Hydrogen and Neon. The departures matter more. GitHub Copilot retired three models on November 16 (Claude Opus 4.8, Claude Opus 5 and GPT-5.6 Terra) and retires six more on December 14: Claude Fable 5, Claude Haiku 4.5, Gemini 3.8 Flash, Gemini 4 Argon, Grok 4.6 and Kimi K3. Opus 5 was the Claude Code default from July 24 and was gone from Copilot less than four months later. A model is now leased for about a quarter, not chosen.

That changes what "primary" should be attached to. Earlier editions told you to re-cost the routing table every month; the lesson of November is that a script, CI job or prompt template that names a specific model ID has an expiry date built in, and it fails on the vendor's schedule, not yours. At L3, workflows name a role (planner, worker, reviewer, cheap bulk worker) and one configuration file maps each role to a current model ID. When a model is retired, one line changes and every workflow follows. The harness is the part you keep, and it is not free to move either: VS Code retires its Local harness in February 2027 with the warning that "Switching harnesses doesn't automatically convert every customization", and Runta's FrontierHarness benchmark (run by a vendor in this market) found that with the model held fixed, the harness changed cost per task by 1.8x to 5x.

Two smaller November changes belong in the same review. Claude was down twice on November 13, for about 2 hours and then about 2.5 hours by tracker counts, the second time with the API included, and Copilot, Cursor and OpenAI also had outages during the month, so the role map should include a fallback provider you have actually run. And Claude Code 2.1.325 (November 13) changed sandboxed Bash commands to follow the normal permission flow by default, where they were previously allowed automatically; a team that relied on the sandbox as its approval now sees prompts, and should decide deliberately whether to restore the old behaviour (sandbox.autoAllowBashIfSandboxed: true) or keep the sandbox as containment and the permission flow as approval.

The "primary" designation at L3 reflects a workflow inversion. At L1-L2, developers write code and occasionally use AI to help. At L3, developers describe what they want and the agent writes code, with the developer reviewing and steering. The human role shifts from implementer to orchestrator.

Why It Matters

The move to CLI-first agents is the inflection point where AI assistance becomes systematically integrated rather than ad-hoc:

  • Scriptability - CLI agents can be invoked from Makefiles, shell scripts, CI/CD pipelines, and GitHub Actions; IDE plugins cannot
  • Automation foundation - the same CLI command you run manually can become an automated step in your workflow; this is the path to L4 unattended agents
  • Environment independence - CLI agents run anywhere a terminal runs: local machines, CI runners, remote servers, Docker containers
  • Composability - CLI agents can be chained with other CLI tools; claude "generate tests" | grep TODO is a legitimate workflow
  • Separation of concerns - your IDE focuses on editing; your terminal focuses on agentic tasks; concerns don't compete for the same interface

CLI agents also enable a crucial L3 practice: systematic measurement. When agent invocations are CLI commands, they can be logged, timed, and analyzed. You can measure how long tasks take, how often agents need corrections, and which task types produce the best results. This measurement is what makes L3 systematic rather than just guided.

TIP

Create shell aliases for your most common agent tasks. alias write-tests='claude "write unit tests for the file I just modified, following patterns in existing tests"' turns a multi-step interaction into a single keystroke. These aliases are also the seeds of your L4 automation scripts.

Getting Started

  1. Install Claude Code globally - npm install -g @anthropic-ai/claude-code or follow the official installation instructions. Set your ANTHROPIC_API_KEY environment variable.
  2. Run claude in your project root - Claude Code will read your CLAUDE.md and establish project context. Do this at the start of every development session, and never start an agent from your home folder or Downloads, where it will read whatever instruction files happen to be there.
  3. Start with well-defined tasks - "Write unit tests for src/utils/parser.ts following the patterns in src/utils/formatter.test.ts" is a good first CLI agent task. Bounded, verifiable, and low-risk.
  4. Build a personal task library - Keep a text file of agent prompts that worked well. Over time, this becomes a reusable library of task templates. Share it with your team as part of your L3 standardization.
  5. Integrate with your Makefile or task runner - Add agent invocations to your development workflow: make test-generate could run Claude Code to generate tests for recently modified files. This is the first step toward automation.
  6. Establish team conventions for agent usage - At L3, document which task types are suitable for CLI agents, what context to include in prompts, and how to review agent output. These conventions go in your team's CLAUDE.md or engineering handbook.
  7. Name roles, resolve models in one place - Search your scripts, CI jobs, Makefile targets and prompt templates for hardcoded model IDs and replace each with a role name (for example planner, worker, reviewer) that is looked up in a single shared file or environment configuration. Give that file an owner, and note next to each entry the vendor's announced retirement date if there is one.
  8. Put retirements in the calendar - Follow the deprecation notices of the vendors and resellers you use (GitHub announced the December 14 Copilot retirements a month ahead). For each role, run your standard task set on the replacement model before the date, compare cost per task and correction rate, and switch on your own schedule.
TIP

Use claude --print to get agent output as plain text that you can pipe to other tools or save to files. This is the composability feature that makes CLI agents genuinely different from IDE plugins.

Common Pitfalls

Treating CLI agents as a faster chat interface. The CLI isn't just a different UI for asking questions. It's a different paradigm: give a task, review a result. Developers who use Claude Code like a chat panel (asking questions, getting answers, asking follow-ups) get IDE-plugin-level value from a tool built for much more. Shift to task-oriented prompts with acceptance criteria.

Skipping the project context initialization. Always run your CLI agent from the project root, where it can read CLAUDE.md. Running from a subdirectory or a different working directory produces generic output that ignores your project conventions. Make cd project-root && claude a habit before anything else.

Not integrating with version control. CLI agents should always run on a clean branch or with a recent commit as a checkpoint. Agents running in the terminal can make changes as fast as you can approve them, and without version control checkpoints, mistakes are hard to isolate. git add -p after an agent run is good practice at L3.

Hardcoding a model ID into automation. A script that pins one model works until the vendor retires it, and then every job that uses it fails or silently falls back to something you did not test. Copilot retired three models in November and retires six in December. Keep model IDs out of scripts and prompts; reference a role and resolve it in one file.

Saving approvals that contain secrets. Apiiro reported in early November that Claude Code's "Yes, and don't ask again" stored the full approved command, passwords included, in .claude/settings.local.json, and found roughly 1,100 public GitHub copies with real secrets in them (published counts differ). Claude Code 2.1.323 now keeps an approval that looks like it holds a secret for the session only. Upgrade, check that settings.local.json is not tracked by git, and rotate anything that was saved there.

Installing the agent from whichever marketplace your editor points at. Your primary agent holds more privilege than any other tool on the machine. The October Cursor marketplace trojan carried the official extension's name and version numbers; only the channel was wrong. Install from the vendor's own distribution, pin the version team-wide, and if an affected version was installed, treat the machine as compromised rather than uninstalling and moving on.

Neglecting the measurement opportunity. CLI agents are instrumentable in ways IDE plugins are not. At L3, you should be logging agent invocations: task type, duration, number of iterations, human corrections required. This data drives the optimization that characterizes L3 and sets up L4. If you're not measuring, you're still at L2 behavior.

How Different Roles See It

BobHEAD OF ENGINEERING

Bob's team is using Copilot well (L2), but adoption of Claude Code has been slower. Developers say the CLI interface feels unfamiliar and they prefer the IDE plugins they're used to. Bob isn't sure whether to push adoption or let it happen organically.

What Bob should do: The resistance to CLI agents is workflow resistance, not tool resistance. Bob should run a structured "CLI agent sprint": for two weeks, every developer commits to using Claude Code for at least one substantial task per day, tracked in a shared log. After two weeks, review: what tasks did people use it for? What worked? What didn't? The sprint creates the shared experiential vocabulary that drives adoption better than any top-down mandate. Bob should also ensure CLAUDE.md is mature before pushing CLI agent adoption - an agent with good context produces better results, which creates better first impressions.

SarahPRODUCTIVITY LEAD

Sarah can now see a cleaner measurement story at L3. CLI agents produce logs, and logs produce metrics. She wants to establish the measurement infrastructure before the team scales their agent usage.

What Sarah should do: Instrument Claude Code usage with the built-in logging and token tracking. Track: (1) tasks attempted per developer per week, (2) average iterations per task (lower is better context quality), (3) human correction rate (how often does the developer have to fix agent output before it's usable). These three metrics, tracked over time, tell the story of AI maturity progression: as CLAUDE.md improves, iterations per task decreases. As developers get better at task specification, correction rate decreases. Sarah should set quarterly targets for each metric and report progress to stakeholders as "AI workflow efficiency" rather than "AI adoption rate" - the former is a productivity story, the latter is a vanity metric.

VictorSTAFF ENGINEER - AI CHAMPION

Victor has been using Claude Code as his primary development tool for months. He's written shell scripts that invoke it automatically on common task patterns and has integrated it into his personal Makefile. His iteration speed on new features is 3-4x what it was before.

What Victor should do: Victor should formalize his shell script library as team infrastructure. A shared repository of claude invocation scripts - generate-tests.sh, refactor-module.sh, implement-from-spec.sh - gives the whole team the productivity gains Victor has achieved individually. Victor should also propose adding a standard "AI task log" to the team's workflow: a simple shared doc where developers record the CLI agent tasks they ran that week and their quality assessment. This lightweight process creates the measurement data Sarah needs and surfaces the best practices that Bob should scale.

How This Guide Changed

What each edition changed in this guide, newest first.

  1. V1.9December 2026LATEST

    The lineup changed again (Fable 5.2, GPT-6.2 Astra and Sol, MAI Code 2, three Gemini 4 models), but the material change is on the other side of the ledger: Copilot retired three models on November 16 and retires six more on December 14. The guide now treats a model as leased for about a quarter, so workflows name a role and the model ID is resolved in one place, with retirements in the calendar. It also corrects the old statement that the Codex CLI was no longer developed.

  2. V1.8November 2026

    The lineup moved again (GPT-6.1 Sol as the Codex workhorse, Haiku 5.5 and GPT-6.1 Terra filling the cheap tier, Kimi K3.1 Pro and Mistral Large 4 as open weights, Antigravity replacing Gemini CLI and Jules for Google), but that is routine by now. What made this a material change is the trojanized Claude Code extension in Cursor's marketplace: the tool you run as primary is the most privileged process on the machine, so the guide now treats its install channel and pinned version as part of the L3 standard.

  3. V1.7October 2026

    Replaced the "current" lineup again: Opus 5.5 at $4/$20 and Sonnet 5.5 at $2/$10 on the Claude side, GPT-6 Sol as the Codex default and GPT-6 Luna as the new $0.10/$0.50 price floor, with DeepSeek V4.1 Flash, MiMo-V2.6, GLM-5.3 and Kimi K3 as cheap workers. The more durable change is the unit of comparison: vendors now pitch cost per task, and Gemini 3.8 Flash getting pricier per task at an unchanged token price is the reason the guide now tells you to re-cost on that unit.

  4. V1.6September 2026

    The model layer under the harness re-priced itself faster than anyone can re-negotiate a contract. Sonnet 5's introductory pricing became permanent on August 10, GPT-5.6 Sol dropped to $4/$20 on August 21, Grok 4.6 landed at $2/$6 with a 500K context, Meta entered with Muse Code, and DeepSeek V4 Pro shipped with a price increase that ended its run as the default cheap worker. The lesson recorded here is not any one number but the cadence: a routing table is a config with an owner and an expiry date, not a procurement decision. The month also produced the sharper version of the sovereignty argument this guide has been making since June - DeepSeek open-sourced its own harness under MIT, with the agent loop itself as a swappable plugin, which makes "can you change models without rewriting the harness" a question you can now actually answer.

  5. V1.5August 2026

    Closed the sovereignty story from June: Fable 5 was restored on July 1 after the export controls lifted June 30. The three-week outage is what proved the point, so the advice to keep a self-hostable model wired into the same workflow stayed, now backed by a resolved incident rather than an open one.

  6. V1.4July 2026

    Established that the same CLI architecture runs on self-hostable open-weight models, making a locally-run agent a credible primary path rather than a fallback. GLM-5.2 beat GPT-5.5 on SWE-bench Pro at roughly one-sixth the cost, Kimi K2.7-Code shipped with day-one vLLM and SGLang support, and DeepSeek V4 led open-weight SWE-bench, all plugging into the same loop through llama.cpp, vLLM or Ollama. Anthropic launching Fable 5 and Mythos 5 on June 9 and disabling them worldwide on June 12 made the case concrete.

  7. V1.1April 2026

    Updated the tool landscape. Claude Code gained Computer Use and Auto Mode, extending CLI agents beyond code into full-environment automation; OpenAI's original Codex CLI stopped being actively developed as investment shifted to Codex inside ChatGPT as a cloud-hosted agent; and Gemini Code Assist Agent Mode reached GA on JetBrains IDEs, blurring the CLI and IDE boundary.

  8. V1.0March 2026

    The guide shipped to make an architectural argument that was still contrarian at the time: a CLI agent is infrastructure, an IDE plugin is a convenience feature. Teams were evaluating AI tools by suggestion quality, and the point here was that scriptability - invocable from a Makefile, a git hook, a CI job - is what turns assistance into something you can later automate. The L3 claim underneath it was the workflow inversion: developers stop writing code and start describing tasks and reviewing results.

Where does your team actually sit on this?

This guide describes one level of one area. Run the assessment to place your team across all 16 areas, see which gates you have passed, and get a report you can take to your stakeholders.

Start the assessment