compact

Archive old agent sessions and refresh Context.md with summaries.

7|Updated Dec 1, 2025
One-click install
npx skills add https://github.com/Nate-Vish/Auto-Mates --skill compact-nate-vish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compact
Source: https://github.com/Nate-Vish/Auto-Mates/tree/main/.claude/skills/compact
Command: npx skills add https://github.com/Nate-Vish/Auto-Mates --skill compact-nate-vish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reduces memory bloat by moving stale session data out of active memory, keeping recent context accessible.

Core Features & Use Cases

  • Archive old Memory_Logs and keep latest three verbatim.
  • Create a concise summary for archived sessions and organize it under Memory_Logs/Archive/[YYYY-MM]/sessions_summary.md.
  • Refresh Memory_Logs/Context.md with the latest project state, lessons, and team status.

Quick Start

Run /compact to archive old sessions and refresh Context.md.

Frequently Asked Questions about compact

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce agent memory bloat from old sessions in Context.md?

To reduce agent memory bloat, you can archive old sessions to move stale data out of active memory. This process summarizes older logs and refreshes Context.md to keep only recent context accessible.

What is the best way to archive old agent sessions and refresh context?

The best way to archive old agent sessions is to run an automated archival process that identifies Memory_Logs, generates concise summaries for older sessions, and updates Context.md with the latest project state.

How many recent sessions are kept verbatim when archiving agent memory?

When archiving agent memory, the latest three sessions are kept verbatim. Older sessions are archived with a generated summary to ensure recent context remains fully accessible while reducing bloat.

Can I refresh context and archive sessions for specific agents only?

Yes, you can refresh context and archive sessions for all agents or specific agents. The process selectively identifies Memory_Logs and applies archival steps to manage multiple agents across sessions.

Where are summarized archived agent sessions stored?

Summarized archived agent sessions are organized under Memory_Logs/Archive/[YYYY-MM]/sessions_summary.md. This structure keeps archived context separate from the active Context.md file.

What information is updated in Context.md after archiving sessions?

After archiving sessions, Context.md is refreshed with the latest project state, lessons, and team status. This ensures the active agent memory reflects current project realities without stale data.