nap

Compress agent history logs and prune stale state files in .squad/ directories.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/Quintenps/contactswap-agents --skill nap-quintenps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nap
Source: https://github.com/Quintenps/contactswap-agents/tree/main/.copilot/skills/nap
Command: npx skills add https://github.com/Quintenps/contactswap-agents --skill nap-quintenps

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses context window bloat by cleaning up agent history and managing the size of the .squad/ directory, ensuring agents remain performant and cost-effective.

Core Features & Use Cases

  • History Compression: Shrinks verbose agent logs to reclaim context budget.
  • State Pruning: Removes stale decisions and orphaned inbox files to maintain a clean workspace.
  • Use Case: Before initiating a complex multi-agent task, run this skill to ensure the context window is clear of legacy data, preventing token overflow and irrelevant information retrieval.

Quick Start

Run the nap skill to compress agent histories and prune stale files from the current squad directory.

Frequently Asked Questions about nap

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

FAQPage Schema
How do I optimize agent context and clean up stale state files?

To optimize agent context, you can compress agent history logs and prune stale state files within the .squad/ directory. This reduces the memory footprint and manages the context window during high-intensity sessions.

What causes context window bloat during multi-agent tasks?

Context window bloat is caused by verbose agent history logs and orphaned state files accumulating in the .squad/ directory. Pruning these stale decisions and compressing logs reclaims the context budget to prevent token overflow.

How do I prune orphaned inbox files and truncate agent logs?

You can prune orphaned inbox files and truncate agent logs by running a recursive directory cleanup on the local project state. This operates directly on the file system to remove stale data and shrink verbose histories.

When should I clean up the .squad/ directory before running agents?

You should clean up the .squad/ directory before initiating a complex multi-agent task. Clearing legacy data from the context window prevents irrelevant information retrieval and ensures agents remain performant and cost-effective.

Does context cleanup require direct file system access?

Yes, context cleanup requires file system access to perform recursive directory cleanup and log truncation. It operates on local project state to manage the memory footprint within the .squad/ directory.

What is the best way to prevent token overflow in high-intensity agent sessions?

The best way to prevent token overflow is to compress agent histories and prune stale files from the current squad directory. This state pruning maintains a clean workspace and optimizes context window usage for ongoing operations.