On this page · 8 sections
What the source measured
| What was measuredmetric | Correct deployments out of five runs |
|---|---|
| Without the changebaseline | Individual arguments: 5/5 for every model |
| With the changetreatment | --json payload: 5/5 for Claude Sonnet 5, Claude Sonnet 4.6 and GPT-5.3-Codex; 3/5 for MAI-Code-1-Flash; 2/5 for Claude Haiku 4.5 |
| Which way it moveddirection | Down |
| How bigsize | Down to 2/5 for the smallest model |
| How many casessample | Five runs per model per input mode; five models |
| What was measuredmetric | Cost per task (GitHub Models pricing) |
|---|---|
| Without the changebaseline | Arguments: GPT-5.3-Codex $0.05; MAI-Code-1-Flash $0.01; Claude Sonnet 4.6 $0.05; Claude Haiku 4.5 $0.03; Claude Sonnet 5 $0.08 |
| With the changetreatment | JSON: $0.54 (11x); $0.08 (10x); $0.47 (9x); $0.23 (8x); $0.32 (4x) |
| Which way it moveddirection | Up |
| How bigsize | 4x to 11x |
| How many casessample | As above |
| What was measuredmetric | Arguments-to-JSON cost gap by shell, Claude Sonnet 4.6 |
|---|---|
| Without the changebaseline | Bash on macOS: 1.5x |
| With the changetreatment | PowerShell on Windows: 9x |
| Which way it moveddirection | Up |
| How bigsize | 1.5x on Bash, 9x on PowerShell |
| How many casessample | One model, two shells |
Who and what was tested
- Models: Claude Haiku 4.5, Claude Sonnet 4.6, Claude Sonnet 5, GPT-5.3-Codex, MAI-Code-1-Flash.
- Harness: GitHub Copilot Chat.
- Operating system: Windows (PowerShell) for the main experiment; macOS (Bash) for the Sonnet 4.6 shell comparison.
Does anyone have a stake?
Microsoft authors evaluating with Microsoft tools (GitHub Copilot Chat, VS Code) and, where noted, Microsoft products. Microsoft reports the results itself. The CLI (podctl) is synthetic and was built for the test; MAI-Code-1-Flash is a Microsoft model.
Source
Don't rewrite your CLI for agents. Waldek Mastykarz. Microsoft for Developers, 7 July 2026.
The full primary source was fetched on 2026-10-08 and every number in this record was found in it.
Limits of this finding
- Vendor-run evaluation, not peer reviewed; no raw data or harness was found published with the post.
- Five runs per condition; Microsoft scopes each result to the agent profile it measured.
- One synthetic CLI and one deployment scenario with 30+ values.
What this means if you build tools
Keep named arguments when you make a CLI agent-friendly; a JSON payload adds failure modes such as shell quoting. If you add --json, keep the arguments too and measure both on the shells your users run.
Related checks
There is a direct route, not only clicks
The step has a typed route, such as an API call, a tool, a command or a declared form, not only clicks.
Rubric check · supporting
Inputs have a checkable format
Inputs have a machine-checkable contract that matches the live service.
Rubric check · core
Cite this record
Cite the original source for any number, and keep the evidence type and the models tested next to the figure. To point at this record, cite it as: AX evidence register, “A JSON input mode for a CLI raised agent cost 4x to 11x”, https://agentexperience.tech/evidence/ev-0028/. The record is also in /evidence.json.
