nap

Compress agent histories and prune logs to reclaim context window budget.

2|1|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/PlagueHO/plagueho.learn --skill nap-plagueho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nap
Source: https://github.com/PlagueHO/plagueho.learn/tree/main/.squad/templates/skills/nap
Command: npx skills add https://github.com/PlagueHO/plagueho.learn --skill nap-plagueho

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reclaims context window budget by compressing agent histories, pruning old logs, archiving stale decisions, and cleaning orphaned inbox files.

Core Features & Use Cases

  • Compress histories to reduce memory footprint and improve responsiveness.
  • Prune old logs to free disk space and maintain data hygiene.
  • Archive stale decisions to keep context relevant, and clean orphaned inbox files.
  • Use before heavy fan-out or after long-running sessions to maintain performance and resource availability.

Quick Start

Run the nap command to compress histories, prune logs, and archive stale inbox files.

Frequently Asked Questions about nap

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

FAQPage Schema
How do I prune agent histories to reclaim context window budget?

You can prune agent histories to reclaim context window budget by compressing old logs, archiving stale decisions, and cleaning orphaned inbox files. This maintains performance and resource availability during heavy agent fan-out.

When do I need to compress agent histories and clean up logs?

You need to compress agent histories when many agents spawn, history.md exceeds 15KB, or .squad/ total size surpasses 1MB. Running cleanup before heavy fan-out or after long-running sessions maintains responsiveness.

What is the best way to archive stale decisions and clean orphaned inbox files?

The best way to archive stale decisions and clean orphaned inbox files is to run a dedicated context-management command. This compresses histories and prunes logs to free disk space and maintain data hygiene via safe fallbacks.

Can I invoke log pruning and inbox cleanup from both CLI and REPL?

Yes, you can invoke log pruning and inbox cleanup from both CLI and REPL. The context management process supports both invocation methods to perform archiving and inbox cleanup with safe fallbacks.

Why does agent history compression use safe fallbacks during context management?

Agent history compression uses safe fallbacks during context management to prevent data loss while pruning logs and archiving stale decisions. This ensures data hygiene when reclaiming the context window budget after long-running sessions.