session-cleanup — how to use session-cleanup how to use session-cleanup, session-cleanup setup guide, session-cleanup vs manual archiving, what is session-cleanup, session-cleanup install, automated session archiving, low-signal session management, session-cleanup alternative, session-cleanup tutorial

v1.0.0
GitHub

About this Skill

Ideal for Dialogue Agents requiring efficient conversation history management and session optimization. session-cleanup is a skill that automates the archiving of old, low-signal sessions based on user-message count and age, while preserving sessions with meaningful content or metadata.

Features

Runs cleanup script in dry-run mode to review low-signal session candidates
Archives sessions with `--apply` command based on user-defined cutoff and threshold
Treats sessions as low-signal if all heuristics are met, including user-message count and age
Preserves sessions with meaningful content or metadata
Allows for customizable cutoff dates and user-message thresholds

# Core Topics

innoisotechnology innoisotechnology
[0]
[0]
Updated: 3/9/2026

Quality Score

Top 5%
51
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add innoisotechnology/session-harbor/session-cleanup

Agent Capability Analysis

The session-cleanup MCP Server by innoisotechnology is an open-source Community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use session-cleanup, session-cleanup setup guide, session-cleanup vs manual archiving.

Ideal Agent Persona

Ideal for Dialogue Agents requiring efficient conversation history management and session optimization.

Core Value

Empowers agents to identify and archive low-signal sessions based on user-message count and age, utilizing heuristics and metadata to preserve meaningful content, and supporting dry-run mode for review and explicit archiving with the --apply flag.

Capabilities Granted for session-cleanup MCP Server

Automating session cleanup based on customizable thresholds
Archiving low-activity conversations with minimal metadata
Preserving sessions with significant user engagement or relevant content

! Prerequisites & Limits

  • Requires configuration of cutoff dates or days ago thresholds
  • Dependent on accurate user-message count and session metadata
Project
SKILL.md
1.6 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Session Cleanup

Overview

Use this skill to identify and archive old, low-signal sessions based on user-message count and age, while keeping any session with meaningful content or metadata.

Workflow

  1. Decide the cutoff (days ago or explicit date) and user-message threshold.
  2. Run the cleanup script in dry-run mode to review candidates.
  3. Re-run with --apply to archive sessions that are still low-signal.

Heuristics

Treat a session as low-signal if ALL are true:

  • user_message_count <= max_user_messages (after removing boilerplate)
  • Session is older than the cutoff date
  • No name, tags, or notes
  • No meaningful user/assistant text (beyond boilerplate)

Boilerplate includes: AGENTS.md instructions, environment context blocks, empty strings, and single "." messages.

Quick Start

Dry-run for sessions older than 1 day with at most 1 user message:

bash
1python3 /Users/innoiso/.codex/skills/session-cleanup/scripts/cleanup_sessions.py --min-age-days 1 --max-user-messages 1

Apply archiving with the same filters:

bash
1python3 /Users/innoiso/.codex/skills/session-cleanup/scripts/cleanup_sessions.py --min-age-days 1 --max-user-messages 1 --apply

Target an explicit cutoff date (UTC):

bash
1python3 /Users/innoiso/.codex/skills/session-cleanup/scripts/cleanup_sessions.py --cutoff-date 2026-01-24 --max-user-messages 2

Output

The script prints:

  • total candidates
  • kept vs archived
  • sample IDs for review (in dry-run)

Resources

scripts/

  • cleanup_sessions.py: paginate sessions, count user messages, detect boilerplate, and archive eligible sessions.

Related Skills

Looking for an alternative to session-cleanup or building a Community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

testing

Logo of lobehub
lobehub

Testing is a process for verifying AI agent functionality using commands like bunx vitest run and optimizing workflows with targeted test runs.

73.3k
0
Communication

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication