# Log AI Compressor Forensics

> Evidence-backed local log triage with line ranges and SHA-256 citations. 3-minute 3.3.0 repro; expect VERIFIED 4/4. 14-dataset holdout macro average PA 90.45 / GA 95.20; offline non-LLM global #1 candidate on macro average, not per-dataset #1.

Log AI Compressor Forensics is a free AI agent skill on Agensi by hu-chenyu, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [hu-chenyu](https://www.agensi.io/creators/hu-chenyu)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0
- Last updated: 2026-12-03
- Security: scan passed (2026-11-22); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/log-ai-compressor-forensics
- Tags: testing, logs, observability, debugging, root-cause, cli

## About this skill

Manual log analysis is slow, prone to oversight, and lacks an audit trail. When production breaks, you need more than a summary. You need proof. This skill turns overwhelming log files into compact, verifiable evidence packs.

### 3.3.0 results

14-dataset holdout macro average: **PA 90.45 / GA 95.20**. Five fixed splits: 91.75 / 95.09. Dataset×split bootstrap 95% CI lower bound: 90.30 / 94.04.

Five-arm 14-dataset macro average (Content): this tool 90.45 / 95.20; Tipping 74.16 / 76.83; Brain 69.24 / 85.68; Spell 31.92 / 68.57; IPLoM 31.90 / 83.62; Logram 28.46 / 32.81; Drain3 60.55 / 81.06.

Boundary: 3.3.0 is an offline non-LLM global #1 candidate on 14-dataset macro average, not a per-dataset #1. Three datasets lose one or both metrics: HealthApp to Tipping 92.74 / 98.03; OpenStack to Brain 97.99 / 100.00; Spark to Brain 94.12 / 95.90.

Gate: **2,481 collected / 2,478 passed / 3 skipped / 0 failed**; 93.90% coverage; ruff clean; BGL 2k three runs 0.068 / 0.070 / 0.072 s. There is still no third-party full reproduction.

### Reproduce in 3 minutes

Open the public Issue and run the exact commands there. Success and failure both count; no positive review is required.

[Open #IKWWD3 reproduction entry](https://gitee.com/hu-chenyu-dev/log-ai-compressor/issues/IKWWD3?utm_source=agensi&utm_medium=listing&utm_campaign=330&utm_content=about_skill)

Install:

~~~bash
python -m pip install "log-ai-compressor==3.3.0"
~~~

### What it does
- **Evidence-backed triage** transforms raw text logs into structured reports where every finding is linked to specific line ranges.
- **Integrity verification** uses SHA-256 digests to re-read source files and confirm that reported evidence has not been tampered with or rotated.
- **Root cause isolation** identifies causal chains, distinguishing between symptoms, impacts, and actual triggers.
- **Verifiable comparisons** analyzes up to five log files simultaneously to track incident patterns or verify fixes across deployments.
- **PII protection** automatically redacts emails, phone numbers, IDs, and keys before presenting findings to ensure data privacy.

### How it works
1. **Analyze** the target log file using the run command to generate a machine-readable JSON report with identified error clusters.
2. **Verify** the report integrity against the source file to produce a verdict of VERIFIED, TAMPERED, or UNVERIFIABLE.
3. **Extract** specific evidence blocks for high-priority findings to view the exact lines and digests without loading the entire log.
4. **Compare** multiple logs to map trace IDs or message templates across different time ranges or environments.

### Frameworks & tools
The skill interfaces with the log-ai-compressor CLI (Python-based). It supports local text logs, JSON Lines, logfmt, and piped input from tools like kubectl.

### Why this beats prompting it yourself
Standard prompts often hallucinate line numbers or mistake correlation for causation. This skill enforces a hard link between conclusions and file digests, ensuring that every claim can be audited and re-read from the source disk.

### Use cases
- Triage noisy production logs to separate recurring background noise from critical P0 failures.
- Verify if a log report is still trustworthy after a file has been modified or rotated.
- Perform a "before and after" analysis to prove a code fix successfully eliminated a specific error trace.
- Generate redacted evidence packs for sharing with external teams without exposing sensitive user data.

### Known limitations
Supports text-based logs only, not binary formats or metrics. Comparisons are limited to 5 files maximum. Trace matching in comparisons requires structured log formats like JSON Lines or logfmt.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Log AI Compressor Forensics skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does the 'integrity verification' feature actually prove the logs haven't changed?

The skill generates a SHA-256 digest for every identified evidence block; you can run the built-in verification command to re-scan the source file and ensure the log hasn't been rotated or tampered with since the analysis.

### Which AI agents or environments are compatible with this forensic skill?

This skill is designed for any AI agent with filesystem access and supports the `log-ai-compressor` CLI, making it compatible with local development environments and CI/CD pipelines.

### Does my log data need to be in a specific format for the multi-file comparison to work?

While the skill handles standard text logs, complex trace matching across multiple files works best with structured formats like JSON Lines or logfmt.

### What exactly is included in the purchase of this skill?

The skill includes the specialized agent instructions, the `log-ai-compressor` Python-based CLI tool, and a set of pre-configured commands for automated triage and redaction.

### Can I use this skill to share evidence with external teams without leaking sensitive user data?

Yes, the skill features a built-in PII protection layer that automatically redacts sensitive data like emails, keys, and IDs before any findings are presented or stored in the report.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
