nap

Compress agent histories and archive stale decisions in session state files.

3.1k|475|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/bradygaster/squad --skill nap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nap
Source: https://github.com/bradygaster/squad/tree/main/.squad-templates/skills/nap
Command: npx skills add https://github.com/bradygaster/squad --skill nap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the growing memory footprint of AI agent sessions by reclaiming context window budget.

Core Features & Use Cases

  • Context Compression: Reduces the size of agent histories.
  • State Pruning: Cleans up old logs and archives stale decisions.
  • Use Case: Before initiating a large-scale code refactoring task that will involve many agents, use this Skill to ensure the team has maximum available context.

Quick Start

Run the nap skill to clean up the current agent session's context.

Frequently Asked Questions about nap

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

FAQPage Schema
How do I compress agent context and reclaim context window budget in long-running sessions?

To compress agent context, reduce the size of agent histories, prune old logs, and archive stale decisions to reclaim context window budget for active tasks.

When do I need to prune agent state during a software engineering project?

Prune agent state before initiating large-scale code refactoring tasks to ensure the team has maximum available context window budget for the new operations.

What is state pruning and how does it manage AI agent memory usage?

State pruning cleans up old logs and archives stale decisions within session state files to manage memory usage, improving performance by reducing the memory footprint of long-running AI agent sessions.

Does context compression require parsing session state files in the .squad directory?

Yes, context compression requires the ability to parse and manipulate session state files located within the .squad/ directory to successfully reclaim the context window budget.