sleep

Periodically consolidates AI agent activity through session backfill, episode replay, index refresh, staleness sweeps, and brain sync via cron or manual invocation.

3|4|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/nicsuzor/academicOps --skill sleep-nicsuzor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sleep
Source: https://github.com/nicsuzor/academicOps/tree/main/aops-core/skills/sleep
Command: npx skills add https://github.com/nicsuzor/academicOps --skill sleep-nicsuzor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the need for periodic offline consolidation of AI agent activity, transforming raw data into structured, usable knowledge and ensuring the AI's "brain" remains organized and up-to-date.

Core Features & Use Cases

  • Session Backfill: Processes pending transcripts to generate insights.
  • Episode Replay: Identifies and promotes valuable agent interactions.
  • Index Refresh: Updates internal knowledge indices for efficient retrieval.
  • Staleness Sweep: Detects and flags orphaned documents or under-specified tasks.
  • Brain Sync: Commits and pushes all changes to the knowledge repository.
  • Use Case: Regularly run this skill to maintain the integrity and performance of the AI's knowledge base, preventing data rot and ensuring efficient operation.

Quick Start

Initiate the sleep cycle to consolidate the agent's memory and knowledge.

Frequently Asked Questions about sleep

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

FAQPage Schema
How do I consolidate AI agent memory to prevent knowledge staleness?

To consolidate AI agent memory and prevent staleness, run a periodic sleep cycle that transforms write-optimized storage into read-optimized knowledge using agent-driven tool execution, sweeping for orphaned documents and refreshing indices.

What is offline knowledge consolidation for AI agents?

Offline knowledge consolidation for AI agents is the process of transforming raw session transcripts into structured, usable knowledge through episode replay and session backfill, ensuring the agent's memory remains organized and up-to-date.

How do I run a staleness sweep to flag orphaned documents in my agent's knowledge base?

To run a staleness sweep and flag orphaned documents, trigger the sleep cycle via GitHub Actions cron or manual invocation, which detects under-specified tasks and commits changes to the knowledge repository.

Can I use GitHub Actions cron to automate AI memory consolidation?

Yes, you can use GitHub Actions cron to automate AI memory consolidation. The sleep cycle requires GitHub Actions cron or manual invocation to execute periodic offline consolidation of agent activity and knowledge index refreshes.

When do I need to refresh knowledge indices for efficient retrieval?

You need to refresh knowledge indices for efficient retrieval when your AI agent's write-optimized storage accumulates raw data, requiring a sleep cycle to update internal indices and prevent data rot.

What's the best way to backfill pending session transcripts for AI insights?

The best way to backfill pending session transcripts for AI insights is to initiate a sleep cycle, which processes pending transcripts through episode replay to promote valuable agent interactions and generate structured knowledge.