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
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.


