Urgent.News

What's breaking now, across thousands of outlets.

AI

Microsoft’s New Tool Can Cut AI Coding Costs by Up to 31%

Researchers from Microsoft and the University of California, Berkeley, have introduced a free tool called TokenEconomizer that can reduce the … Read More The post Microsoft’s New Tool Can Cut AI Coding Costs by Up to 31% appeared first on ProPakistani .

Microsoft’s New Tool Can Cut AI Coding Costs by Up to 31%

Microsoft and researchers from the University of California, Berkeley have unveiled a new tool called TokenEconomizer that could slash the expenses associated with AI coding assistants by up to 31%. This free tool works seamlessly with widely used AI coding assistants like Claude Code, OpenAI Codex, GitHub Copilot CLI, and Pi. In trials involving 277 coding tasks, TokenEconomizer managed to trim costs by an average of 18.4% to 30.9% while preserving or even enhancing results in most instances.

The tool's mechanics revolve around minimizing the number of tokens—units of data that AI coding assistants use to interpret instructions, scan code, and finish tasks. These tokens come at a price when using paid AI services. However, TokenEconomizer discovered that these assistants often squander tokens by duplicating work, employing superfluous tools, and repeatedly attempting unsuccessful solutions.

For instance, an AI assistant might endlessly search for the same file or instructions, a scenario TokenEconomizer aims to curb.

TokenEconomizer tackles this inefficiency through three key strategies. Firstly, it retains crucial project details, such as the commands indispensable for testing code, preventing the AI assistant from re-examining the same information. Secondly, it eliminates tools that the AI assistant doesn't need for a particular task, thereby cutting down the amount of data the AI must process.

Lastly, it identifies when the AI assistant keeps making the same errors and nudges it towards a different approach or halts wasteful resource consumption.

The researchers validated TokenEconomizer's efficacy by evaluating it on 277 software development tasks across different AI models. The results indicated that TokenEconomizer consistently lowered costs. Across the tested setups, Claude Code paired with Sonnet 5 achieved the highest savings at 30.9%, followed by Codex combined with GPT-5.6 Sol, which saved 26.1%.

Moreover, the tool's impact on work quality was assessed. While a few scenarios saw a modest dip in success rates—such as Claude Code working with Opus 4.8 going from 74% to 73%—the majority of instances saw minimal or no decline, suggesting that developers could economize on AI usage without significantly compromising performance, though results may vary.

Interestingly, TokenEconomizer becomes more advantageous as developers continue working on the same project. Initially, projects might incur slightly higher costs due to the tool's learning phase. However, by the sixth task, all six tested projects became more cost-effective. The tool's efficiency further amplifies with time, with some tasks initially costing more due to the tool's learning process. Yet, by the sixth task, all six projects exhibited reduced costs.

When compared to other AI cost-reduction tools like RTK, Serena, and Aider RepoMap, TokenEconomizer stands out. While these competitors showed mixed results with some increasing costs in certain cases, TokenEconomizer demonstrated a consistent cost reduction across all 30 tested project and model combinations. This superior performance stems from TokenEconomizer's ability to adapt its approach based on lessons learned from each project, rather than applying a uniform method across the board.

TokenEconomizer is compatible with Claude Code, OpenAI Codex, GitHub Copilot CLI, and Pi, requiring Python 3.10 or newer. It functions on standard computers without needing a specialized graphics card and doesn't necessitate a separate API key, though developers will still need paid access to their chosen AI coding assistants. The tool stores project-specific data locally on the user’s computer, and it is released under an open-source license, enabling developers to use and adapt it as needed.

For developers frequently working on large projects utilizing AI coding assistants, TokenEconomizer could prove invaluable. Although the tests highlighted cost savings ranging from 18.4% to 30.9%, the actual savings will vary depending on the specific AI assistant and project type.

Written by urgent.news from ProPakistani's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at propakistani.pk →

More in AI

More from Saturday 31 October →