Deblank: Tool to Strip Code Formatting for LLM Token Reduction

What Deblank Does
Deblank is a preprocessing tool that removes code formatting (indentation, whitespace, line breaks) before sending code to LLMs, with a postprocessing step to restore readability. The transformation is bidirectional and AST-safe.
Performance Results
In evaluations across several models (DeepSeek-V3, Claude, Gemini, etc.):
- ~30% token reduction for languages like Java and C++
- ~9% token reduction for Python
- Negligible impact on Pass@1 accuracy for code completion
- Average latency: ~76ms
Supported Languages and Features
- Python, Java, C/C++, C#, JavaScript/TypeScript, and Go
- Handles incomplete snippets reasonably well
- Useful for fill-in-the-middle workflows
Getting Started
The project is open-sourced with these resources:
- GitHub: https://github.com/anpl-code/Deblank
- Paper: https://arxiv.org/abs/2508.13666
- Docker:
docker pull zhangcen456/deblank:latest
This type of token optimization can be particularly useful when working with context-limited LLMs or when processing large codebases, though the impact varies by language due to differences in formatting conventions.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Text Adventure Game Engine Skill for Claude Desktop
A text adventure game engine runs entirely inside Claude Desktop as a skill with no servers, apps, or code to run. It includes full RPG mechanics, 3D dice rendering, 19 expansion modules, and portable save files.

How AI assistants fetch web pages: Nginx log analysis of ChatGPT, Claude, Gemini and others
A developer tested five major AI assistants by prompting them with unique URLs and monitoring Nginx logs, revealing distinct retrieval patterns: ChatGPT, Claude, and Perplexity use dedicated user-agents while Gemini answered from its index without fetching.

GAN Skill for Claude Code: Adversarial AI Tool for Idea Refinement
A Claude Code skill called /gan uses adversarial AI roles to critique and improve ideas through alternating Discriminator and Generator phases, with features like intensity modes, multi-language output, and forced role selection developed through self-iteration.

AI Claw: Serverless Bridge Connects Alexa to Local OpenClaw with Dual Delivery
AI Claw is a Python AWS Lambda pipeline that connects Amazon Echo speakers to local OpenClaw instances, bypassing Amazon's 8-second timeout by using a fire-and-forget architecture with dual delivery to Telegram and native Echo audio output.