Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/lanzelot1/claw-brain/sleepgit clone --depth 1 https://github.com/Lanzelot1/claw-brainWhat 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 | $0.00010 | $0.01242 |
| Opus 5 | $0.00005 | $0.00621 |
| Sonnet 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 2d 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.
- 2d 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 4mo ago), licensed MIT. It adds 10 tokens to every session and 1,242 once invoked, about $0.0001 per session on Opus 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
agentlas-cloud
Staff a task only from the signed-in owner's Agent Cloud agents.
agentlas-connect
Connect Agentlas agents or teams to Telegram.
agentlas-search
Search Agentlas Cloud and Hub agent candidates without invoking.
tma1-peer
List recent sessions on this project by agent — peers (Codex, OpenClaw, Copilot CLI) or your own.
speckit.opsmill.retrospect
Run a session retrospective that surfaces context-management gaps and routes them to approved follow-up actions.
skill-inbox
Unified entry point for managing skill suggestions and browsing all installed skills. Provides two views: suggestions (default) and all skills.