Skip to content
Back to skills

255 Sleeptime Bcb0c8c4

ASecurity

Sleeptime agents run background processing to refine and organize memory between conversations.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
ai-agentstypescriptpythongo

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 255-sleeptime_bcb0c8c4 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 255 Sleeptime Bcb0c8c4?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 255 Sleeptime Bcb0c8c4
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-255-sleeptime-bcb0c8c4/badge)](https://www.skillsdirectory.com/skills/tools-only-255-sleeptime-bcb0c8c4)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Sleeptime Agents

Sleeptime agents run background processing to refine and organize memory between conversations.

## Enabling Sleeptime

```python
agent = client.agents.create(
    model="anthropic/claude-sonnet-4-5-20250929",
    embedding="openai/text-embedding-3-small",
    memory_blocks=[
        {"label": "persona", "value": "I am a helpful assistant."},
        {"label": "human", "value": "User information."}
    ],
    enable_sleeptime=True  # Creates a background sleeptime agent
)
```

```typescript
const agent = await client.agents.create({
  model: "anthropic/claude-sonnet-4-5-20250929",
  embedding: "openai/text-embedding-3-small",
  memory_blocks: [
    { label: "persona", value: "I am a helpful assistant." },
    { label: "human", value: "User information." }
  ],
  enable_sleeptime: true
});
```

## How It Works

1. **Main agent** handles real-time conversations
2. **Sleeptime agent** runs in background between conversations
3. Sleeptime agent reviews conversation history and refines memory blocks
4. Both agents share the same memory blocks

```
User conversation
       ↓
   Main Agent (real-time)
       ↓
   Memory blocks updated
       ↓
   [Time passes...]
       ↓
   Sleeptime Agent (background)
       ↓
   Memory blocks refined/organized
```

## Enabling on Existing Agent

```python
# Enable sleeptime on an existing agent
client.agents.update(
    agent_id=agent.id,
    enable_sleeptime=True
)
```

## When to Use Sleeptime

**Good for:**
- Personal assistants that learn over time
- Agents that need to consolidate information
- Long-running agents with many conversations
- Memory organization and deduplication

**Not needed for:**
- Stateless support bots
- Single-session interactions
- Agents where memory doesn't evolve

## Sleeptime Frequency

The sleeptime agent runs periodically based on conversation activity. You can configure frequency:

```python
client.agents.update(
    agent_id=agent.id,
    sleeptime_agent_frequency=5  # Run after every 5 conversations
)
```

## Monitoring Sleeptime

Check sleeptime agent activity in ADE:
1. Open your agent
2. Look for the sleeptime agent indicator
3. View memory block changes over time

## Example: Learning Assistant

```python
# Create an agent that learns and improves over time
agent = client.agents.create(
    model="anthropic/claude-sonnet-4-5-20250929",
    embedding="openai/text-embedding-3-small",
    memory_blocks=[
        {
            "label": "persona",
            "value": "I am a learning assistant. I remember what works and what doesn't."
        },
        {
            "label": "human",
            "value": "User preferences and learning style."
        },
        {
            "label": "lessons_learned",
            "value": "Insights from past interactions:"
        }
    ],
    enable_sleeptime=True
)

# After many conversations, the sleeptime agent will:
# - Consolidate repeated information
# - Organize the lessons_learned block
# - Update human block with patterns it notices
```

Files in this skill

  • README.md813 B
  • skill.md3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.