ctrlb-hq/ctrlb-decompose

LLM-ready reasoning surface over logs

What it solves

It transforms massive, repetitive, and unreadable log files into a small set of structured patterns. This helps developers quickly understand what is happening in their systems without manually sifting through millions of lines of text.

How it works

The tool uses a two-stage pipeline that runs locally on your machine. First, it normalizes log lines by replacing variable data (like IP addresses, timestamps, and IDs) with placeholders. Second, it uses a clustering algorithm to group these normalized lines into distinct templates. It then calculates statistics—such as frequency, duration, and anomalies—for each pattern, outputting the results in human-readable, machine-readable, or LLM-optimized formats.

Who it’s for

It is designed for developers, system administrators, and engineers who need to debug production issues, analyze system behavior, or prepare log data for analysis by Large Language Models (LLMs).

Highlights

  • Processes logs locally with no data leaving your machine.
  • Supports multiple output modes: human-readable terminal output, compact markdown for LLMs, and structured JSON.
  • Efficiently handles millions of lines using a streaming, single-pass pipeline with a low memory footprint.
  • Automatically identifies and classifies variable types like UUIDs, IPv4 addresses, durations, and integers.
  • Includes a plugin for Claude Code to allow natural language log analysis.

Related

  • Dispatch
  • Project
  • Project
  • Project
  • Project