New Plugin Aims to Reduce Claude Code Token Costs
A new developer tool called Tokendoctor offers to optimize Claude Code usage, potentially reducing token consumption by up to 38%.
Photo: Hacker News Front Page
Key points
- Tokendoctor claims to reduce Claude Code token costs by up to 38%.
- The tool replaces expensive window summarization with a 'slide' function that uses pointers to save time and tokens.
- It provides a local dashboard to monitor session history, subagent activity, and project-specific spending.
A new plugin named Tokendoctor has been released to help developers monitor and optimize token consumption within Claude Code. The tool provides a dashboard to track token usage by day, model, and project, allowing users to identify where they may be overspending. By replaying sessions at smaller context windows, the plugin helps users determine if their current configuration is cost-effective.
The plugin introduces a feature called "slide," which replaces traditional window compaction. Instead of summarizing old tool outputs—a process that can be time-consuming and costly—it replaces them with short pointers. According to the developer, this method is significantly faster, reducing compaction time from over a minute to under a tenth of a second in some instances.
Tokendoctor operates locally on the user's machine and does not require an MCP server. It includes templates for generic subagents and provides automated status monitoring to warn users of potential cost inefficiencies. The tool is designed to be installed via the Claude plugin marketplace or by cloning the repository directly.
What to watch next: As AI coding agents become more common, expect a growing ecosystem of third-party optimization tools focused on managing the high costs associated with large context windows and frequent model calls.
Source Hacker News Front Page — github.com/localixai/tokendoctor ↗
Read next
⚖️Regulation & PolicyOpenAI Partners with Chilean Ministry to Advance Public Sector AI
OpenAI has signed a non-binding agreement with Chile's science ministry to integrate artificial intelligence into public administration and support local startups.
🌐Work & SocietyAmbience Healthcare Expands Clinical AI Suite for Hospital Operations
Ambience Healthcare has launched new AI tools designed to assist hospital staff with patient rounding and discharge planning, aiming to improve both clinical efficiency a…
🧠AI AnalysisAI Models Vulnerable to Manipulation in Simulated Warfare Scenarios, Research Shows
New research reveals that leading AI models from firms like OpenAI and Anthropic can be manipulated into identifying civilian targets when prompted with game scenarios.
⚖️Regulation & PolicyAWS Highlights Enterprise Governance and AI Workspace Quick Ahead of re:Invent 2026
Amazon Web Services is spotlighting its workplace AI platform, AWS Quick, ahead of its upcoming re:Invent 2026 conference, emphasizing secure deployment across major ente…
🏢Big TechLoanPro Integrates Amazon Bedrock to Automate Loan Servicing Workflows
LoanPro has deployed a multi-agent AI assistant using Amazon Bedrock and Anthropic's Claude models to help lenders manage borrower accounts, resulting in a 15% reduction …
🏢Big TechGoogle Brings Wallet App to iOS Users Across the United States
Google has expanded the availability of its Wallet application to iOS devices in the U.S., allowing Apple users to store digital passes, tickets, and receipts.