alive-cleanup

alive-cleanup is a skill for Claude Code, Codex from alivecontext/alive. It costs 20 tokens per session (715 once invoked), scanned A, original, MIT.

A maintenance workflow for an Alive workspace, checking for unfinished sessions, old drafts, inactive workspaces, and empty tasks. It reports issues for review instead of automatically deciding what to remove.

In plain words
What is it for?
Use it to inspect unsaved sessions, stale bundles, inactive workspaces, and empty tasks, then choose whether to review, archive, update, or delete them.
Why use it?
It helps reveal work that may have been abandoned, unsaved, or left in an outdated state. It also distinguishes potentially recoverable session transcripts from disposable drafts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect unsaved sessions, stale bundles, inactive workspaces, and empty tasks, then choose whether to review, archive, update, or delete them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alivecontext/alive/alive-cleanup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alivecontext/alive --skill alive-cleanup
Clone the repo
git clone --depth 1 https://github.com/alivecontext/alive

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for alive-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/alivecontext/alive/alive-cleanup/github.svg)](https://agentmods.dev/skills/alivecontext/alive/alive-cleanup)
Your own site
<a href="https://agentmods.dev/skills/alivecontext/alive/alive-cleanup"><img src="https://agentmods.dev/badge/skills/alivecontext/alive/alive-cleanup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for alive-cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivecontext/alive/alive-cleanup"><img src="https://agentmods.dev/badge/skills/alivecontext/alive/alive-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 715 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.00715
Opus 5.5 $0.00008 $0.00286
Sonnet 5.5 $0.00004 $0.00143
Haiku 4.5 $0.00002 $0.00072

Measured 3mo ago against content hash 0ff68be12e44, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

alive-cleanup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

hermes/hermes-skills/alive-cleanup/SKILL.md · 107 lines

What it actually says

System Cleanup

Scan across all walnuts for entropy. Surface issues one at a time.

Checks

1. Unsaved Sessions

grep -l "saves: 0" "$ALIVE_WORLD_ROOT/.alive/_squirrels/"*.yaml 2>/dev/null

For each: check transcript file size before dismissing. saves: 0 + stash: [] does NOT mean empty -- the stash is only written at save.

[N] unsaved sessions found.
  [id] -- [date] -- [walnut] -- transcript: [size]

Review transcripts for lost work?
  1. Yes, check them all
  2. Show me the list first
  3. Clear and move on

2. Stale Bundles

Find bundles in draft status unchanged for 30+ days:

find "$ALIVE_WORLD_ROOT" -name "context.manifest.yaml" -mtime +30 2>/dev/null

For each stale bundle:

"[bundle-name]" has been in draft for [N] days.
  1. Advance it (prototype/published)
  2. Archive it (set status: done)
  3. Kill it (delete -- drafts are disposable)
  4. Leave it

3. Stale Walnuts

Walnuts past 2x their rhythm with no recent sessions:

[walnut] -- waiting -- [N] days past weekly rhythm
  1. Load it (check what's there)
  2. Archive it (move to 01_Archive)
  3. Update rhythm (maybe it's monthly now)
  4. Leave it

4. Empty Tasks

Walnuts with stale or empty task files:

find "$ALIVE_WORLD_ROOT" -name "tasks.json" -exec python3 -c "
import json, sys
data = json.load(open(sys.argv[1]))
tasks = data.get('tasks', [])
active = [t for t in tasks if t.get('status') not in ('done', 'archived')]
if active:
    print(f'{sys.argv[1]}: {len(active)} open tasks')
" {} \;

5. Legacy Structure Detection

Look for v1/v2 patterns that should be migrated:

  • _core/ directories (v1)
  • _kernel/_generated/ directories (v2)
  • now.md files (v1)
  • tasks.md files (v1)
Found [N] walnuts with legacy structure.
  1. Migrate now
  2. Show me which ones
  3. Skip

One at a Time

Surface issues one at a time. Don't overwhelm. Fix one, then ask if they want to continue.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 107 lines · 20 tokens per session scan A 0ff68be12e44

Subscribe to this mod's changes

alive-cleanup is a skill published in the GitHub repository alivecontext/alive (132 stars, last pushed 17d ago), licensed MIT. It adds 20 tokens to every session and 715 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

alive-cleanup compared with skills from other repositories

alive-cleanup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
alive-cleanupalivecontext/aliveSkill13217d agoMITA20Claude Code, Codex
fresh-startegorfedorov/claude-context-optimizerSkill1584d agoMITA60Claude Code
token-checkegorfedorov/claude-context-optimizerSkill1584d agoMITA66Claude Code
resuming-from-handoffse4thvin/context-handoffSkill16mo agoMITA59Claude Code
crittomasz-tomczyk/critSkill1.4kyesterdayMITA55Claude Code, Codex
crit-storytomasz-tomczyk/critSkill1.4kyesterdayMITA47Claude Code, Codex
slackclishaharia-lab/slackcliSkill304yesterdayMITA48Claude Code