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).

mrwogu f361591 1.2 KB Updated

File contents

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.

mrwogu/logstrip/tree/main/plugins/logstrip/codex/.codex/skills/logstrip commit f361591460

Frequently asked questions

npx skillmds@latest add mrwogu/logstrip-2