Borrowing it
Nothing to install: this file belongs to Lanzelot1/claw-brain. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Lanzelot1/claw-brain/main/.claude/commands/sleep.mdgit clone --depth 1 https://github.com/Lanzelot1/claw-brainWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/lanzelot1/claw-brain/sleep)<a href="https://agentmods.dev/commands/lanzelot1/claw-brain/sleep"><img src="https://agentmods.dev/badge/commands/lanzelot1/claw-brain/sleep/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/lanzelot1/claw-brain/sleep"><img src="https://agentmods.dev/badge/commands/lanzelot1/claw-brain/sleep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00010 | $0.01242 |
| Opus 5.5 | $0.00004 | $0.00497 |
| Sonnet 5.5 | $0.00002 | $0.00248 |
| Haiku 4.5 | $0.00001 | $0.00124 |
Grade A, and why
sleep scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Run an autonomous improvement loop. Four phases: queued tasks, exploration & research, maintenance, context building.
Arguments
Optional task descriptions: /sleep "research topic X" "deep-dive into Y"
Setup
- Read
memory/_index.md,memory/me.md, andmemory/lessons.mdfor full context git checkout -b sleep-YYYY-MM-DD- Calculate starting health score (same formula as
/status)
Phase 1: Queued Tasks
If arguments were provided, execute each one:
- Research, analyze, or create content as described
- Save results to
knowledge/withsource:frontmatter - Update
_index.mdif new files are created - Commit each task separately
If no arguments, skip to Phase 2.
Phase 2: Exploration & Research
Read through the brain and actively grow it. This is the creative phase — not just maintenance, but discovery.
-
Map the brain — Read
_index.mdand scan all knowledge files. Build a mental model of what the brain knows, where the depth is, and where the gaps are. -
Find threads to pull — Look for:
- Topics mentioned in passing across multiple files but never explored in depth
- Questions or unknowns flagged in existing knowledge files
- Areas where the user's
me.mdinterests intersect with existing knowledge - Connections between different knowledge areas that haven't been made explicit
- Claims that could be verified, updated, or expanded with web research
- Entities (people, companies, concepts) that appear in 3+ files but lack their own page
-
Research and deepen — For the most promising threads (max 5):
- Do web searches to find current, relevant information
- Read and extract key facts — specific data, quotes, developments
- Create new source files in
knowledge/withsource:frontmatter pointing to the URLs found - Set
type: source— these are raw facts, not synthesis
-
Synthesize new wiki pages — After adding new sources, check if any topic now has enough material (3+ source files) to justify a wiki page:
- Create wiki pages with
type: wikifrontmatter following/synthesizeconventions - Weave together facts from multiple sources into coherent pages
- Include
## Sourcessection citing all constituent files - Add to the "Wiki Pages" section of
_index.md
- Create wiki pages with
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 109 lines · 10 tokens per session scan A 983757851eb8
sleep is a command published in the GitHub repository Lanzelot1/claw-brain (11 stars, last pushed 6mo ago), licensed MIT. It adds 10 tokens to every session and 1,242 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
dashboard-session-tell
Send a prompt to another session. Usage /dashboard:session-tell.
dashboard-session-unhide
Unhide a previously hidden session. Usage /dashboard:session-unhide.
dashboard-session-list
List all pi sessions (id, status, name, cwd). Runs locally, no LLM.
graphify
Turn your vault into a clustered knowledge graph with HTML and JSON outputs.
instinct-import
Import a portable YAML instinct pack with confidence-gated merge (Instinct Engine).
pop
Pop an item off the stash and continue working on it in the current session.