Skip to content

0.5.1 - 2026-11-30

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 09:06
e6ab680

Release Notes

The first release with everything below. 0.5.0 was tagged but never
released: its build failed on a retired macOS runner (#81), so there are no
0.5.0 binaries or crates.

Security

  • Worktrees with a running coding-agent session are never removed. On
    2026-11-29, clean --worktrees --days 3 removed two clean, pushed
    worktrees whose Claude Code sessions had sat idle for 5 days but were
    still running; nothing was lost, but those sessions were left pointing at
    a missing folder. lysosome now reads Claude Code's session records
    (~/.claude/sessions/*.json, or $CLAUDE_CONFIG_DIR/sessions) and treats
    every worktree or project that a live session works in as ACTIVE,
    whatever its idle time (details.live_session). clean reads them again
    right before each worktree, worktree-artifact or project-artifact item, so
    a session started after the scan also keeps its folder.

Added

  • scan --share prints a short card of totals to post, such as "My coding
    agents left 161 git worktrees holding 150 GB on my Mac. 68.1 GB of it can
    go without losing any work.", and at a terminal copies it to the clipboard
    (pbcopy; wl-copy, xclip or xsel on Linux). It never holds a path,
    project, branch or model name, and nothing is uploaded.

  • clean --strip-artifacts also takes the git-ignored build output
    (node_modules, target, .venv, dist, ...) of ACTIVE worktrees,
    the ones used within --days, and keeps the worktree and every other
    file in it. Only once a worktree has been left alone a day
    (STRIP_ACTIVE_MIN_IDLE_DAYS) and no coding-agent session is running in
    it; both are checked again right before each folder goes. Most of the
    space agents leave is here: in the dogfood scan, 68 GB of 150 GB was build
    output, while only 1.5 GB was in worktrees past the 30-day rule. Plan
    items stripped from such a worktree have status: "ACTIVE" (an additive
    value in clean.schema.json).

  • lysosome scan ends with what coding agents' worktrees hold and the
    clean that takes it back, for example Your coding agents left 68.1 GB on this Mac. Reclaim safely: lysosome clean --worktrees (worktrees that are
    done) and lysosome clean --strip-artifacts --tier regenerable_expensive
    (build output of the worktrees that stay), with the scan's own folders and
    options. Human output only; --json is unchanged.

  • integrations/: copy-paste recipes, each with a two-minute README. A
    Claude Code SessionEnd hook removes a session's worktree once its PR is
    merged. A launchd agent (macOS) or systemd user timer (Linux) runs the safe
    tier hourly and warns when free space is low. MCP configs cover Claude Code,
    Claude Desktop, Cursor and Codex. Every recipe goes through lysosome clean
    and its re-checks.

  • Merged worktrees are REMOVABLE at any age: clean, unlocked and merged
    into the default branch (or squash-merged per gh), once left alone a
    day. --days now only protects work that isn't merged. In the dogfood
    run that found this, the default 30-day scan called all 494 worktrees
    ACTIVE while 57 of them (67 GB) were merged and done.

  • Pushed worktrees with no open PR are REMOVABLE before --days: clean,
    unlocked, idle a day, every commit on a remote-tracking ref, and gh pr list --state open --head <branch> finds no open PR from the repository
    ("clean, every commit on a remote, no open PR"). An open PR keeps it
    ACTIVE and names the PR; without gh nothing changes. clean asks
    GitHub again right before removing one. This matches the rule agent
    fleets already use to garbage-collect their worktrees (never-used
    worktrees, closed PRs, merged PRs whose branch moved on to a pushed
    commit).

  • Multi-repo workspace worktrees (one linked worktree per sub-repo inside a
    workspace worktree) are REMOVABLE when every nested worktree is
    (details.nested_worktrees), and REVIEW naming the one that isn't.
    clean re-checks each nested worktree, removes it through its own
    repository, then removes the outer one. Before, they were skipped with "it
    contains a git checkout (cli/.git inside)".

  • clean measures what partial cleanups would actually free before it
    shows the plan, so "Would reclaim" is close to what a run frees. conda: by
    conda's own rule (tarballs, the index cache, and packages none of whose
    files is hard-linked into an environment), without running conda, so old
    conda versions work too. pnpm: store files no project hard-links to.
    Homebrew: brew cleanup -s --dry-run. Plan items gain reclaimable_bytes
    and reclaim (size, measured or upper_bound, with a reclaim_note);
    the summary gains reclaimable_bytes and
    reclaimable_bytes_is_upper_bound. size_bytes and planned_bytes keep
    the scan's sizes. When it can't be told (pnpm on APFS clones packages, so
    no link count shows use) the size stays an "up to". Additive:
    schema_version stays 1.

  • The pnpm store's older format folders (v3 beside pnpm 10's v10) are
    their own finding, pnpm-store-old, moved to the Trash: pnpm store prune only prunes the current format, so they were counted as prunable
    and never freed. The pnpm-store finding is now the current format folder.

  • When a cache's tool is no longer on PATH (Yarn, npm, bun, pip, uv, Go,
    Homebrew, CocoaPods), clean moves the cache folder itself to the Trash
    instead of skipping it, after the same re-checks as any trashed folder.
    Never for the pnpm store or conda's package folder.

  • lysosome mcp: a Model Context Protocol server on stdio, so Cursor, Codex,
    Claude Code and other agents can call scan, worktrees, caches and
    clean (#57). Results are the same versioned JSON as --json. clean is
    a dry run unless the call passes confirm: true with exact item ids;
    --permanent isn't reachable, and cleanups are logged with actor mcp.

  • clean --json results and summary have trashed_bytes: the part of
    freed_bytes that went to the Trash and still uses disk until it is
    emptied. The human summary says how much is free now and how much is in
    the Trash. summary.planned_bytes_is_upper_bound says when the plan's
    total is an "up to" (e.g. pnpm store prune). Additive: schema_version
    stays 1, and freed_bytes keeps its meaning.

  • Home-folder finders for space no dev tool owns. A new category
    app_caches (additive; summary.by_category gains the key) holds
    app-cache (each ~/Library/Caches folder, or ~/.cache on Linux, that
    no other detector reports), browser-cache (Chromium profile caches of
    Chrome, Brave, Edge, Arc, Chromium and Vivaldi: only Cache, Code Cache, GPUCache, Dawn and Service Worker caches, never profile data),
    electron-cache (Slack, Discord, Teams, Notion, Figma, Postman, Obsidian,
    Claude, Spotify) and container-cache (macOS sandboxed apps'
    Data/Library/Caches). All are regenerable and go to the Trash;
    folders under 10 MB are left out, and anything written in the last day is
    ACTIVE (quit the app first). Containers gains docker-scout-cache
    (~/.docker/scout, cleaned with docker scout cache prune --sboms) and
    docker-disk-image: Docker Desktop's Docker.raw, reported as REVIEW
    with the space it holds beyond what docker system df says Docker uses
    (details.image_bytes, details.docker_used_bytes), so it never double
    counts the images listed above. lysosome never touches Docker.raw.

  • scan --summary and worktrees --summary (MCP: summary: true, top):
    totals by status, category and kind plus the --top biggest items
    instead of every finding (schema/summary.schema.json). A full scan of a
    big folder was 2.5 MB of JSON, too much for an agent's context.

  • Plan tokens: clean --plan-token saves a dry run's exact items and
    prints a token (plan_token in --json); clean --plan <token> --yes
    cleans exactly those items, found again and re-checked, without retyping
    ids. Tokens expire after an hour and work once. MCP dry runs always
    return a plan_token, and clean takes plan with confirm: true.

  • MCP: a confirmed clean still running after about 90 seconds
    (LYSOSOME_MCP_WAIT_SECS) continues in the background and returns
    {"status": "running", "job"} with progress; the new clean_status
    tool returns the result. Long cleans no longer hit the client's
    120-second timeout.

  • clean --empty-own-trash: lists, and with --yes permanently deletes,
    only the Trash entries lysosome itself moved there (from the action
    log) that are still there; the rest of the Trash is never touched
    (schema/empty-own-trash.schema.json).

Fixed

  • A cleanup command that exits 0 but prints an error (Error:, error:,
    fatal:, npm ERR!) is reported failed with that line, never done.
    Homebrew does this for an untrusted tap; the message now says to run the
    brew trust … command it names (or untap it) and clean again.
  • Cleaning several artifact folders of one idle project in one run cleans
    them all. Moving the first to the Trash bumped its folder's mtime and (on
    macOS) rewrote an untracked .DS_Store, so the re-check of the next one
    saw "the project was used recently" and skipped it. Changes the run made
    itself no longer count as use; real edits during the run still do.
  • The bun cache cleanup (bun pm cache rm) no longer fails with "No
    package.json was found": cleanup commands now run in an empty scratch
    folder (never the folder lysosome was started from), with a stub
    package.json for bun.

Changed

  • The closing tip after scan and clean no longer calls the desktop app
    free: it has been a paid app with a 14-day free trial since app 0.2.0. The
    README's "Desktop app" section says the same.

Install lysosome 0.5.1

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/lysosome-dev/cli/releases/download/v0.5.1/lysosome-installer.sh | sh

Install prebuilt binaries via Homebrew

brew install lysosome

Download lysosome 0.5.1

File Platform Checksum
lysosome-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
lysosome-x86_64-apple-darwin.tar.xz Intel macOS checksum
lysosome-aarch64-unknown-linux-gnu.tar.xz ARM64 Linux checksum
lysosome-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum
lysosome-aarch64-unknown-linux-musl.tar.xz ARM64 MUSL Linux checksum
lysosome-x86_64-unknown-linux-musl.tar.xz x64 MUSL Linux checksum