leavemagic-cyber

Agent Aftercare — AI skill for Claude Code

AI community

Reclaim disk space left by AI coding agents without deleting your work.

How to install Agent Aftercare

This entry records only its repository, not the path inside it, so there is no exact command to give. Open leavemagic-cyber/agent-aftercare and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Aftercare does

Reclaim disk space left by AI coding agents without deleting your work.

Alternatives in AI

  • BrowserSkill — Let AI agents use your real, logged-in browser without interrupting your work 9.1k ★
  • OpenSpace — "OpenSpace: The Skill Management Layer for AI Agents" -- https://open-space.cloud/ 7.5k ★
  • J Space Cognition Suite V3.7 — J-Space Cognition Suite V3.7 - AI cognitive-enhancement Skills based on Anthropic's J-space global workspace r 3k ★

README

Agent Aftercare

**Your AI made the mess. Make it clean it up — without deleting your work.**

[![CI](https://github.com/leavemagic-cyber/agent-aftercare/actions/workflows/ci.yml/badge.svg)](https://github.com/leavemagic-cyber/agent-aftercare/actions/workflows/ci.yml) [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [繁體中文](README.zh-TW.md)

AI coding agents are excellent at creating things and terrible at taking out the trash. Old sessions, duplicated subagent histories, and abandoned worktrees quietly grow until you need disk space *right now*.

You could hunt through hidden folders yourself. You could also delete the wrong thing. Agent Aftercare gives you the lazy, cowardly, sensible option:

  1. see only known agent residue;
  2. refuse anything recent or tied to a detected provider process;
  3. compress and deduplicate what you choose;
  4. restore the exact bytes if you regret it.

[!IMPORTANT] Agent Aftercare is alpha software. Version 0.1 quarantines old **session logs**. It detects known worktree roots but deliberately blocks worktree removal until Git metadata can be restored safely.

The 15-second demo

$ python -m scripts.demo
scan: 4 found | 3 review | 1 blocked
  claude review   2340000 bytes
  codex  review   2340000 bytes
  gemini review    875000 bytes
  codex  blocked       12 bytes
quarantine: 5555000 original bytes -> 9494 new stored bytes
dedupe: 1 reused object
restore: exact_bytes=True

This is the real output of [`scripts/demo.py`](scripts/demo.py), using disposable fake sessions. It does not invent a 200 GB success story.

Why this exists

This is not a theoretical cleanup problem: