memory

memory is a skill for Claude Code, Codex from HKUDS/nanobot. It costs 12 tokens per session (100 once invoked), scanned A, original, MIT.

A skill for searching past conversations and reading profile and memory files managed by Dream. It covers both long-term notes and an append-only history log.

In plain words
What is it for?
Finding relevant past events, checking saved user or project information, and using conversation history during a task.
Why use it?
It helps recover earlier decisions, events, and user preferences instead of relying only on the current conversation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Finding relevant past events, checking saved user or project information, and using conversation history during a task.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hkuds/nanobot/memory
About the project

nanobot is a small, self-hosted personal AI agent framework written in Python, providing an agent runtime that can operate through a WebUI, terminal, or chat applications. Users use it to connect language models with tools, memory, MCP integrations, scheduled automation, and multi-agent workflows. The catalogue add-ons provide skills and instructions for working with nanobot.

HKUDS/nanobot · 49,152 stars · on GitHub · nanobot.wiki

Install

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.

Any agent
npx skills add HKUDS/nanobot --skill memory
Clone the repo
git clone --depth 1 https://github.com/HKUDS/nanobot

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/hkuds/nanobot/memory/github.svg)](https://agentmods.dev/skills/hkuds/nanobot/memory)
Your own site
<a href="https://agentmods.dev/skills/hkuds/nanobot/memory"><img src="https://agentmods.dev/badge/skills/hkuds/nanobot/memory/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.

agentmods 80×15 button for memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/hkuds/nanobot/memory"><img src="https://agentmods.dev/badge/skills/hkuds/nanobot/memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 100 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.00100
Opus 5.5 $0.00005 $0.00040
Sonnet 5.5 $0.00002 $0.00020
Haiku 4.5 $0.00001 $0.00010

Measured 20d ago against content hash 19c562a9a8aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 20d 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.

nanobot/skills/memory/SKILL.md · 15 lines

What it actually says

Memory

Search Past Events

Search the exact History log path from the system prompt using an available text-search tool. This path belongs to the agent workspace, which can differ from the current project.

The append-only JSONL log stores cursor, timestamp, and content per entry. Retrieve entries on demand by topic or date, and inspect neighboring entries when context matters.

Changes

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.

  1. 20d ago Changed · -6 lines 19c562a9a8aa
  2. 1mo ago Changed · -18 lines · -2 tokens per session 15a3157baa2e
  3. 1mo ago First seen · 39 lines · 14 tokens per session scan A 0946a34d4519

Subscribe to this mod's changes

memory is a skill published in the GitHub repository HKUDS/nanobot (49,152 stars, last pushed yesterday), licensed MIT. It adds 12 tokens to every session and 100 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.

Related

Other skills, from other repositories

agenticx-memory-architect

Guide for setting up and using the AgenticX memory system including Mem0 integration, long-term memory, context management, and memory-enhanced agents. Use when the user wants to add memory to agents, persist conversation history, build memory-aware workflows, or integrate with Mem0 for long-term recall.

DemonDamon/AgenticX · 67 tokens

company-agent-infrastructure

Use when designing or building internal/company AI agents that need shared context across company systems, durable organizational memory across sessions or agents, user-scoped permissions, approvals, audit, or governed actions. Also use when deciding whether ordinary MCP tools, RAG, or local agent memory are enough…

lobu-ai/lobu · 70 tokens

lobu

Use Lobu MCP for shared, permission-aware company context, durable organizational memory, and governed actions. Trigger when the user asks what the organization knows, needs context from connected company systems, wants to preserve a durable fact or decision, or needs to discover and use Lobu SDK capabilities.

lobu-ai/lobu · 60 tokens

swarmvault

Use when working with a SwarmVault knowledge vault (raw/, wiki/, swarmvault.schema.md). Establishes schema-first conventions and prefers graph queries over broad search.

swarmclawai/swarmclaw · 37 tokens

swarmclaw

AI agent runtime and multi-agent orchestration platform. Teaches agents how to use SwarmClaw's 6 primitive tools, persistent memory, dreaming, delegation, connectors, credentials, and the skill system. Use when an agent is running on SwarmClaw and needs to understand the platform's capabilities.

swarmclawai/swarmclaw · 67 tokens

citedy-content-writer

From topic to published blog post in one conversation — generate SEO- and GEO-optimized articles with AI illustrations and voice-over in 55 languages, create social media adaptations for 9 platforms, set up automated content sessions, and manage product knowledge base. End-to-end blog autopilot. Powered by Citedy.

citedy/adclaw · 70 tokens