# Logstrip

> Compress noisy CI, build, runtime, scanner, and test logs before Codex analyzes them. Use when the user asks to inspect, trim, reduce, summarize, or prepare logs for diagnosis, or when the user pastes log-like output (timestamps, log levels, stack traces, CI markers).

- Skill: `mrwogu/logstrip-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mrwogu/logstrip-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mrwogu/logstrip-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Research & Search
- Author: mrwogu (https://skillmd.com/u/mrwogu)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mrwogu/logstrip-2

---


# LogStrip Log Compression

LogStrip removes repeated low-signal lines, masks common identifiers, collapses internal stack frames, and reports token savings so Codex spends context on diagnostics instead of noise.

## Procedure

1. Identify the raw input log and desired output path. If no output path is supplied, use `<input>.logstrip.log`.
2. Verify `logstrip` is installed. If not, instruct the user to run `npm i -g logstrip`.
3. Run `logstrip <input> -o <output> --stats`, adding `--aggressiveness <level>` only when requested.
4. Diagnose from the compressed output file.
5. Report the output path, savings percentage, input/output token estimates, dropped lines, duplicate lines, and hidden internal stack lines.

## Guardrails

- Do not print full raw logs unless the user explicitly requests excerpts.
- Do not install packages automatically.
- Do not use `--json` unless an output path is present.
- Keep stats separate from compressed content when piping.

