Incident sheet · Enterprise AI
- System
- Enterprise AI
- Filed
- Read
- 4 min · 761 words
- Severity
- Routine
CLI beats MCP by up to 32x on token use in agent benchmarks
Scalekit tested 75 identical GitHub tasks and found CLI calls used 4x to 32x fewer tokens than MCP, as coding agents turn the Linux command line into their preferred interface.

Event log
- Scalekit benchmarked 75 identical GitHub tasks and found CLI calls used 4x to 32x fewer tokens than MCP calls.
- Microsoft ships an actual Linux kernel inside Windows via Windows Subsystem for Linux.
- Unix piping traces to Bell Labs design principles from Doug McIlroy in the 1960s-1970s.
- Claude Code sessions reproduce in milliseconds command-line work a human would need 20 minutes and four man pages to match.
Coding agents running the Linux command line consumed 4x to 32x fewer tokens than equivalent Model Context Protocol calls in benchmark testing published by Scalekit. The comparison covered 75 benchmark runs on identical GitHub tasks. The result lands at the center of an active enterprise question: whether tool integrations for AI agents should ride on MCP or on the plain CLI.
What did the benchmark actually measure?
Scalekit ran the same GitHub tasks through both an MCP implementation and direct command-line invocations, 75 times over. The CLI won every comparison on token consumption, by a factor of between 4 and 32. The reason is structural. An MCP exchange carries protocol overhead — session setup, tool descriptions, structured responses — while a CLI call is a terse shell command plus its output. For agents operating at scale, the token delta translates directly into inference cost and latency.
There is still debate in the field about which approach suits a given application, and MCP retains advantages in standardization and access control. But on cost per task, the numbers favor the older technology.
Why do agents prefer the command line?
The command line's weaknesses for humans are its strengths for machines. Linux offers an arcane syntax with no graphical interface, and its full command repertoire is documented in exhaustive man pages. Human developers struggle to recall cryptic parameters; large language models trained on decades of that documentation do not.
One practitioner's Claude Code sessions now consist largely of powerful but nearly impossible-to-parse command-line calls — work that would take a human 20 minutes and four man pages to reproduce, executed by the agent in milliseconds. Agents also generate throwaway Python scripts that would cost a working developer significant time to produce. Analyzing screenshots of GUI applications doing the same work is, by comparison, inefficient. Windowing systems suit humans and burden coding agents.
How deep are the roots?
The architecture that agents exploit predates them by half a century. Linux descends from Unix, developed at Bell Labs in the 1960s and 1970s. Bell Labs scientist Doug McIlroy set the design principle: "expect the output of every program to become the input to another, as yet unknown, program." Piping — passing the output of one command as the input of another — is the mechanism that makes chains of small tools composable.
The Bell Labs team built the system to be expandable and usable by an unknown future consumer. A coding agent fits that description about as precisely as the original designers could have imagined.
Fifty years of man pages, Stack Overflow answers and online shell scripts also supplied one other ingredient: abundant training data. That corpus is what turned LLMs into command-line experts, and there is little reason for agents not to use those tools.
What does Microsoft's position signal?
The market's largest vendor has already moved. Microsoft ships Linux itself inside Windows — Windows Subsystem for Linux runs an actual Linux kernel, not an emulation layer. For a company that once crushed the DOS holdouts with the Windows graphical shell, that is a reversal with implications for any shop standardizing agent tooling.
The reversal is not total. The long-running joke that each year would be "the year of the Linux desktop" remains a joke, and Linux has not broken through as a desktop operating system. What is having the renaissance is its command line, as the primary interface between AI coding agents and the systems they operate.
Who was right, and about what?
The DOS-era diehards who insisted they could do everything from the command line and their batch files were right about the tools. They were wrong about who would be using them.
Most of that cohort went one of two routes: they adopted Windows, or they moved to Linux — the hardcores who took the "cold, dead hands" position on their shells. Today the CLI devotees among humans are few. The vindication arrives anyway, because the world's most prolific command-line users are now programs, and they are few and far between only in headcount, not in output.
For CIOs, the practical read is threefold. First, token economics now favor CLI-based agent tooling by up to an order of magnitude over MCP on comparable tasks. Second, Linux command-line competence is a first-class skill for anyone configuring agent environments. Third, the composable-piping architecture McIlroy specified at Bell Labs 50 years ago is the substrate the new automation layer runs on — and it is not being replaced by anything with a window.
via infoworld.com/feed/ (Source)
More from Rebecca Stone
Show full bio
Senior reporter covering money, funding and market shifts around enterprise information technology and the leaders who run at CIO Monitor.
271 articles
The newsroom digest
One email a day with the stories that matter. No noise.
Cross-references
- 150,000 AI Agents Per Fortune 500 Firm — and MCP/A2A Won't Manage Them
- Tokenomics Foundation Wants to Make AI Bills Explainable
- Agents Build Software; Kubernetes Runs It, KubeCon Data Shows
- EY weighs MCP against enterprise data platforms for AI readiness
- Microsoft launches MAI Code 2 models to cut reliance on OpenAI