BotBeat
...
← Back

> ▌

AnthropicAnthropic
OPEN SOURCEAnthropic2026-03-05

Developer Launches Trueline MCP Plugin, Cutting Claude's Output Token Usage by 44%

Key Takeaways

  • ▸Trueline reduces Claude Code's output token usage by 44% during file editing operations by eliminating redundant text echoing
  • ▸The plugin uses hash-verified line-range references instead of string matching, requiring the model to only output new content
  • ▸Hash verification prevents stale edits from being applied when files have been modified by other tools or editors
Source:
Hacker Newshttps://github.com/rjkaes/trueline-mcp↗

Summary

Developer rjkaes has released Trueline, an open-source Model Context Protocol (MCP) plugin that dramatically reduces token consumption in Claude Code's file editing operations. The plugin addresses a fundamental inefficiency in Claude's built-in Edit tool, which relies on string matching and requires the model to echo back existing file content before making changes. This approach forces Claude to spend expensive output tokens repeating text that already exists in the file, creating pure overhead—especially problematic when editing large code blocks or performing multiple edits in a single session.

Trueline replaces string matching with a hash-verified line-range system. Instead of echoing the original text, Claude simply references which lines to replace using checksums and provides only the new content. For a typical 15-line edit, this reduces token usage from approximately 470 output tokens to 263—a 44% reduction. The hash verification also provides a safety mechanism: if the file has been modified by another tool or the developer since Claude last read it, the checksum validation will catch the discrepancy and prevent stale edits from being silently applied.

The plugin is available through Claude's MCP marketplace and can be installed with two simple commands. The developer credits inspiration from Can Boluk's "The Harness Problem" and Seth Livingston's vscode-hashline-edit-tool. For developers working extensively with Claude Code, the token savings can translate to meaningful cost reductions, particularly during intensive coding sessions involving dozens of edits.

  • A typical 15-line edit drops from ~470 output tokens to ~263 tokens, creating substantial cost savings over extended coding sessions
  • The open-source plugin is available through Claude's MCP marketplace and can be installed with two commands

Editorial Opinion

This is exactly the kind of practical optimization the AI coding space needs. While the industry obsesses over model capabilities and benchmark scores, developers in the trenches are discovering that token economics matter enormously in real-world usage. Trueline's 44% reduction in output tokens isn't just a technical curiosity—it's a meaningful cost saving that compounds across every coding session. The hash verification bonus is equally valuable, adding a layer of safety that prevents the silent corruption that can occur when multiple tools interact with the same codebase.

Large Language Models (LLMs)AI AgentsMLOps & InfrastructureProduct LaunchOpen Source

More from Anthropic

AnthropicAnthropic
RESEARCH

Anthropic Study Reveals AI Agent Memory Retrieval Accuracy at Just 9%, Exposing Infrastructure Challenges

2026-07-04
AnthropicAnthropic
POLICY & REGULATION

Anthropic Receives Cease and Desist Over Claude Desktop Privacy Violations

2026-07-04
AnthropicAnthropic
RESEARCH

Research: How URLs in Prompts Can Influence LLM Outputs Toward Training Data

2026-07-03

Comments

Suggested

MicrosoftMicrosoft
RESEARCH

Microsoft's Leaked 'Aion' Project Reveals Vision for Copilot-First Operating System

2026-07-04
Google / AlphabetGoogle / Alphabet
RESEARCH

Stanford Researchers Use Multi-Agent AI and Reinforcement Learning to Improve HIP Kernel Generation for AMD GPUs

2026-07-04
LLM Agent EcosystemLLM Agent Ecosystem
RESEARCH

Researchers Expose Critical Payload-Less Attack on LLM Agent Supply Chains

2026-07-04
← Back to news
© 2026 BotBeat
AboutPrivacy PolicyTerms of ServiceContact Us