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 skills/hkuds/nanobot/memorynpx skills add HKUDS/nanobot --skill memorygit clone --depth 1 https://github.com/HKUDS/nanobotWrote 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/skills/hkuds/nanobot/memory)<a href="https://agentmods.dev/skills/hkuds/nanobot/memory"><img src="https://agentmods.dev/badge/skills/hkuds/nanobot/memory.svg" alt="Measured on agentmods" 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 | $0.00014 | $0.00445 |
| Opus 5 | $0.00007 | $0.00222 |
| Sonnet 5 | $0.00003 | $0.00089 |
| Haiku 4.5 | $0.00001 | $0.00044 |
Grade A, and why
memory 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 4d 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.
What it actually says
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
Use the History log path shown in the system prompt. Always pass it to grep;
never substitute a different project-relative memory/history.jsonl, which may belong
to the selected project. Each JSONL line contains cursor, timestamp, and content.
- For broad searches, start with
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
Examples (replace <history-log-path> with the path from the system prompt):
grep(pattern="keyword", path="<history-log-path>", case_insensitive=true)grep(pattern="2026-04-02 10:00", path="<history-log-path>", fixed_strings=true)grep(pattern="keyword", path="<history-log-path>", output_mode="count", case_insensitive=true)grep(pattern="oauth|token", path="<history-log-path>", 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.
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.
- 4d ago First seen · 39 lines · 14 tokens per session scan A 0946a34d4519
memory is a skill published in the GitHub repository HKUDS/nanobot (47,620 stars, last pushed 2d ago), licensed MIT. It adds 14 tokens to every session and 445 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 skills, from other repositories
clip-hand-skill
Expert knowledge for AI video clipping — yt-dlp downloading, whisper transcription, SRT generation, and ffmpeg processing.
twitter-hand-skill
Expert knowledge for AI Twitter/X management — API v2 reference, content strategy, engagement playbook, safety, and performance tracking.
collector-hand-skill
Expert knowledge for AI intelligence collection — OSINT methodology, entity extraction, knowledge graphs, change detection, and sentiment analysis.
researcher-hand-skill
Expert knowledge for AI deep research — methodology, source evaluation, search optimization, cross-referencing, synthesis, and citation formats.
lead-hand-skill
Expert knowledge for AI lead generation — web research, enrichment, scoring, deduplication, and report generation.
browser-automation
Playwright-based browser automation patterns for autonomous web interaction.