Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Laconic

Maximum meaning, minimum tokens.

Laconic compresses markdown documents for LLM workflows by applying lossless syntactic transformations. It strips decorative noise — badge images, padded tables, HTML wrappers, redundant whitespace — that costs tokens but carries no semantic value.

Named after the Spartans of Laconia, famous for expressing maximum meaning with minimum words. When Philip II of Macedon threatened “If I invade Laconia, I will raze Sparta,” the Spartans replied: “If.”

What It Does

Laconic removes structure that LLMs don’t need to understand your document:

BeforeAfterWhy
[![Build](https://img.shields.io/...)](...)(removed)Badges are visual, not semantic
| Col1 | Col2 | with separator rowsCol1,Col2CSV is more token-efficient
<div style="padding: 20px">content</div>contentDecorative HTML wrappers
Three blank linesOne blank lineWhitespace normalization
Repeated inline URLsReference-style linksURL deduplication

What It Never Touches

  • Prose text
  • Code blocks (contents preserved exactly)
  • Headings (structure preserved)
  • Lists
  • Anything that carries meaning

Three Ways to Use It

  1. CLIlaconic compress README.md
  2. Rust librarylaconic_core::compress(&text, &config)
  3. MCP server — Agents call compress_markdown as a tool

Pick the one that fits your workflow. The next pages walk through each.