Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    zlog

    1

    Compress stale AI agent logs and traces while protecting conversation history and databases.

    Free

    Security scanned
    zlog

    zlog

    Example session with this skill installed

    Run a preview to see how many stale logs from Cursor and Claude Code can be compressed.

    • Read your context and instructions
    • Compiled the zlog

    I have scanned the known AI agent log directories for Cursor and Claude Code. I found several stale .trace and .log files that are candidates for compression. No files were modified during this preview.

    Log Compression Preview

    AgentFile PathSizeAgeStatus
    Cursor~/Library/Logs/Cursor/2023-10-12_trace.log42.5 MB3 daysCandidate
    Claude~/.claude/logs/session_882.out12.1 MB1 dayCandidate
    Claude~/.claude/logs/session_881.out8.4 MB2 daysCandidate
    Cursor~/Library/Logs/Cursor/current.log1.2 MB10sSKIPPED (Active)
    Aider~/.aider/logs/analytics.jsonl0.5 MB5 daysPROTECTED

    Summary of Candidates:

    • Total Files: 3
    • Uncompressed Size: 63.0 MB
    • Estimated Savings: ~85% (based on zstd-15)

    Next steps

    • Run clean to compress these 3 candidate files and reclaim space.
    • Run clean --older-than 7 if you only want to compress logs from last week.
    • Run deep-preview to search for logs in recursive subdirectories.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    AI agent logs from tools like Claude Code, Cursor, and Aider quickly bloat your storage with multi-megabyte .trace and .out files. Manually hunting for these in hidden directories is tedious, and broad cleanup scripts risk deleting your conversation history or breaking live databases.

    What it does

    • Log compression packs stale .log, .out, and .trace files using zstd, xz, or gzip to reclaim space.
    • Safety filtering protects SQLite databases, JSONL transcripts, and config files from being touched.
    • Integrity validation verifies every archive before deleting the source file to prevent data loss.
    • Lock detection automatically skips files currently being written by active agent sessions.
    • Dry-run previews lists exactly which files are candidates for compression without making changes.

    How it works

    1. Identify environment by detecting the OS and shell to select the correct POSIX or PowerShell engine.
    2. Scan roots using a library of known AI agent paths to find stale session data.
    3. Execute preview to show a list of candidates, their ages, and potential targets for compression.
    4. Apply cleanup to compress files, verifying that the resulting archive is smaller than the source.

    Frameworks & tools

    This skill uses POSIX shell scripts (zstd, xz, gzip, tar) for Linux, macOS, and WSL, and native PowerShell scripts for Windows 11. It targets logs from Claude Code, Cursor, Gemini, Codex, Ollama, Windsurf, LM Studio, and Aider.

    Why this beats prompting it yourself

    Writing a shell one-liner to find and zip files often results in broken symlinks or deleted conversation history. This skill implements a strict transactional logic: it tests archive integrity and checks if the source file changed during compression before finalizing any deletion.

    Use cases

    • Post-session cleanup to pack logs after a long day of coding with AI agents.
    • Storage maintenance to find and compress logs older than 7 or 30 days.
    • Disk recovery when hidden .trace files from background agents consume GBs of space.

    Known limitations

    Does not discover unknown agents in non-standard paths unless deep scan is used. Cannot compress SQLite databases or active chat transcripts. Requires zstd, xz, or gzip installed for maximum compression efficiency.

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 4 days ago

    • Free to download with an account

    Requires

    GitHub
    Agentskills
    Shields
    Skills
    W3
    macOS
    Node.js
    Windows
    Git

    Listed4 days ago

    What's inside

    Frequently Asked Questions