When a coding agent produces a small patch quickly, the result can look efficient. But token count is only one part of the cost. The harder question is how much of the surrounding system the agent must understand, change, and validate before the change is trustworthy.
Token efficiency is not system efficiency
A programming language with compact syntax may reduce the number of input and output tokens. That can matter for latency and model cost. It does not automatically make the language a better environment for agentic software work.
Production code lives inside a larger contract: libraries, build tools, compiler behavior, formatters, tests, deployment configuration, team conventions, and interfaces owned by other components. An agent that writes fewer tokens but crosses those boundaries incorrectly has not removed work. It has moved the work into debugging, review, rollback, and incident analysis.
Measure the complete coding loop
A useful comparison should measure the whole toolchain rather than the generated text alone. For each task, record how much repository context the agent needed, how many attempts it made, how quickly the first failure was detected, and how long it took to reach a verified change.
Also measure the failures that escape the immediate loop. A patch that compiles but breaks an integration contract is more expensive than a verbose patch that fails early with a clear diagnostic. Static checks, type systems, compiler errors, traces, and targeted tests are not friction around the agent. They are part of the agent’s operating environment and recovery mechanism.
A practical language experiment
Take ten representative tasks from the same repository or product area. Run comparable tasks in two languages or toolchains, using the same validation standard. Track:
- context required per task;
- time to the first useful change;
- number of repair attempts;
- test, compile, and integration failures;
- time from first edit to verified result;
- defects discovered after the agent’s loop finished.
The important comparison is not “which language uses fewer tokens?” It is “which environment helps the agent make fewer boundary mistakes and recover from them faster?” A language with stronger static checks may look verbose while preventing an entire class of errors. A compact language may be excellent for exploration but less forgiving when configuration, generated code, and deployment behavior interact.
Make productivity observable
Before switching languages for coding agents, write down the assumption behind the change, the signal that would disprove it, and the person responsible for acting on that signal. This keeps a promising benchmark from becoming a slogan.
This also changes how teams should review agent performance: the relevant unit is a completed, verified task, not a stream of impressive-looking edits. The most efficient language for an agent may be the one the surrounding system can check best. That is a property of the compiler, formatter, repository structure, test harness, deployment pipeline, and feedback loop together. Optimize the system that turns generated code into a verified change—not only the number that is easiest to count.
Topics / hashtags: #Programming #CodingAgents #SoftwareEngineering #AI #DeveloperTools
Originally posted on LinkedIn: read the Hebrew LinkedIn post.
