Deblank: Tool to Strip Code Formatting for LLM Token Reduction

✍️ OpenClawRadar📅 Published: March 23, 2026🔗 Source
Deblank: Tool to Strip Code Formatting for LLM Token Reduction
Ad

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
Ad

Getting Started

The project is open-sourced with these resources:

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

Ad

👀 See Also

Open-source MCP memory server with knowledge graph and learning features
Tools

Open-source MCP memory server with knowledge graph and learning features

An open-source MCP server written in Rust provides persistent memory for AI agents with knowledge graph architecture, Hebbian learning, and hybrid search. It's 7.6MB with sub-millisecond latency and works with any MCP-compatible client.

OpenClawRadar
Developer Builds GALA Programming Language with Claude Code, Notes Strong Typing Improves AI-Generated Code Reliability
Tools

Developer Builds GALA Programming Language with Claude Code, Notes Strong Typing Improves AI-Generated Code Reliability

A developer built GALA, a functional programming language that transpiles to Go, using Claude Code extensively. The language features sealed types, exhaustive pattern matching, immutability by default, and monads, with Claude helping implement type inference, pattern-matching transformers, and fixing over 40 bugs.

OpenClawRadar
Paper Lantern MCP Server Connects Claude Code to Research Papers
Tools

Paper Lantern MCP Server Connects Claude Code to Research Papers

Paper Lantern is an MCP server built with Claude Code that connects coding agents to over 2 million CS and 43 million biomedical research papers, enabling them to find benchmarked methods instead of defaulting to training data.

OpenClawRadar
AIDA: Open-Source Platform for AI-Powered Penetration Testing
Tools

AIDA: Open-Source Platform for AI-Powered Penetration Testing

AIDA is an open-source platform that provides AI agents with a full penetration testing environment via MCP connection to a Docker container. The latest version replaces the 40GB Exegol requirement with a purpose-built 1GB container containing essential security tools.

OpenClawRadar