Agent skill
memory
Two-layer memory system with Dream-managed knowledge files.
Install this agent skill to your Project
npx add-skill https://github.com/HKUDS/nanobot/tree/main/nanobot/skills/memory
SKILL.md
Memory
Structure
SOUL.md— Bot personality and communication style. Managed by Dream. Do NOT edit.USER.md— User profile and preferences. Managed by Dream. Do NOT edit.memory/MEMORY.md— Long-term facts (project context, important events). Managed by Dream. Do NOT edit.memory/history.jsonl— append-only JSONL, not loaded into context. Prefer the built-ingreptool to search it.
Search Past Events
memory/history.jsonl is JSONL format — each line is a JSON object with cursor, timestamp, content.
- For broad searches, start with
grep(..., path="memory", glob="*.jsonl", output_mode="count")or the defaultfiles_with_matchesmode before expanding to full content - Use
output_mode="content"pluscontext_before/context_afterwhen you need the exact matching lines - Use
fixed_strings=truefor literal timestamps or JSON fragments - Use
head_limit/offsetto page through long histories - Use
execonly as a last-resort fallback when the built-in search cannot express what you need
Examples (replace keyword):
grep(pattern="keyword", path="memory/history.jsonl", case_insensitive=true)grep(pattern="2026-04-02 10:00", path="memory/history.jsonl", fixed_strings=true)grep(pattern="keyword", path="memory", glob="*.jsonl", output_mode="count", case_insensitive=true)grep(pattern="oauth|token", path="memory", glob="*.jsonl", output_mode="content", case_insensitive=true)
Important
- Do NOT edit SOUL.md, USER.md, or MEMORY.md. They are automatically managed by Dream.
- If you notice outdated information, it will be corrected when Dream runs next.
- Users can view Dream's activity with the
/dream-logcommand.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
summarize
Summarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for “transcribe this YouTube/video”).
tmux
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
github
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
clawhub
Search and install agent skills from ClawHub, the public skill registry.
weather
Get current weather and forecasts (no API key required).
cron
Schedule reminders and recurring tasks.
Didn't find tool you were looking for?