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/ramsbaby/openclaw-memorybox/skillnpx skills add Ramsbaby/openclaw-memorybox --skill skillgit clone --depth 1 https://github.com/Ramsbaby/openclaw-memoryboxWhat 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.00090 | $0.00612 |
| Opus 5 | $0.00045 | $0.00306 |
| Sonnet 5 | $0.00018 | $0.00122 |
| Haiku 4.5 | $0.00009 | $0.00061 |
Grade B, and why
memorybox scanned grade B with 1 finding 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo ln -sf "$(pwd)/bin/memorybox" /usr/local/bin/memorybox What it actually says
MemoryBox
Zero-dependency memory maintenance tool for OpenClaw agents.
What It Does
Prevents MEMORY.md bloat by organizing memory into 3 tiers:
- Tier 1: MEMORY.md (≤10KB, loaded every session)
- Tier 2: memory/domains/*.md (searched on-demand)
- Tier 3: memory/archive/ (old daily logs)
Works alongside Mem0, Supermemory, QMD, or standalone. Only touches file structure — never configs or plugins.
Install
git clone https://github.com/Ramsbaby/openclaw-memorybox.git
cd openclaw-memorybox && chmod +x bin/memorybox
sudo ln -sf "$(pwd)/bin/memorybox" /usr/local/bin/memorybox
Recommended Workflow
- Run
memorybox doctor ~/openclaw— full diagnostic (start here) - Run
memorybox split ~/openclaw— move flagged sections to domain files - Verify with
memorybox health ~/openclaw— target score above 80 - Run
memorybox archive ~/openclaw— archive daily logs older than 14 days - Run
memorybox dedupe ~/openclaw— remove duplicate content
Additional commands:
memorybox stale ~/openclaw # Detect outdated content
memorybox analyze ~/openclaw # Section-by-section size breakdown
memorybox suggest ~/openclaw # Improvement recommendations
memorybox report ~/openclaw # Before/after token savings
memorybox init ~/openclaw # Set up 3-tier directory structure
Teach Your Agent
Add to AGENTS.md:
## Memory Protocol
- **MEMORY.md** (≤10KB): Core facts only. Loaded everywhere — keep it lean.
- **memory/domains/*.md**: Detailed reference. Use `memory_search` to find.
- **memory/archive/**: Old logs. Rarely needed.
Results
Tested on production (7 Discord channels, 48 crons):
- MEMORY.md: 20KB → 3.5KB (-83%)
- Context pressure: 98% → 7%
- Setup time: 5 minutes
Links
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 · 66 lines · 90 tokens per session scan B 70592b7ae389
memorybox is a skill published in the GitHub repository Ramsbaby/openclaw-memorybox (10 stars, last pushed 1mo ago), licensed MIT. It adds 90 tokens to every session and 612 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
agent-context-kb
Manage and explain a repository's .agent-kb/ knowledge base (KB) for coding agents. Use when the user works with the KB — asks how the KB or its commands behave, sets up project memory, records durable knowledge, refreshes the KB runtime protocol, validates routes/links, compiles inbox notes into topics, trims stale…
peekaboo
Capture and automate macOS UI with the Peekaboo CLI.
imsg
Use imsg to read and send iMessage/SMS via macOS Messages.app.
voice-call
Start voice calls via the OpenClaw voice-call plugin.
obsidian-layout-adjustment
Workflow for working with the user on changing how Obsidian looks using CSS snippets. Use this whenever the user asks to restyle Obsidian, tune a vault's visual layout, adjust tabs, sidebars, note surfaces, properties, backlinks, graph panes, file explorer rows, icons, links, shadows, active states, or CSS snippets.…
oracle
Best practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).