smithery.ai

botmem

Persistent structured memory for LLM agents using botmem CLI.

First seen Apr 9, 2026

Installation

$ npx skills add https://smithery.ai

Summary

  • Persistent structured memory for LLM agents using botmem CLI.
  • Use when storing, retrieving, or managing agent memory — facts, knowledge graph relationships, conversation summaries, and context blocks.
  • Use for memory recall, ingestion of conversation content, knowledge graph queries, and exporting full context for prompt injection.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,188 B
  • docs SUMMARY.md 348 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

botmem — Persistent LLM Memory

CLI tool providing four memory types: blocks (working memory), archival (long-term facts), knowledge graph (entity relationships), and conversation summaries.

Prerequisites

  • botmem binary on PATH (go install github.com/stukennedy/botmem@latest)
  • Configured via botmem init (supports Claude Code CLI, Anthropic API, or Ollama)
  • Config at ~/.botmem/config.yaml, DB at ~/.botmem/botmem.db

Commands

Memory Blocks (working memory — always-on context)

botmem block set <label> <content>    # Set/update a block (human, persona, context)
botmem block get <label>              # Read a block
botmem block list [type]              # List blocks
botmem block delete <label>           # Delete a block

Archival Memory (long-term facts with FTS5 search)

botmem archive add <text> --tags tag1,tag2   # Store a fact
botmem archive search <query>                 # Full-text search
botmem archive list [--tag tag]               # List entries

Knowledge Graph (entity-relationship triplets)

botmem graph add <subject> <predicate> <object>   # Add relationship
botmem graph query <entity>                        # All relations for entity
botmem graph search <predicate>                    # Search by relationship type
botmem graph entities [type]                       # List entities

Conversation Summaries (hierarchical)

botmem summary add <text> [--level N]   # Add summary (level 0 = most detailed)
botmem summary list [--level N]         # List summaries

Context Export (full memory dump for prompt injection)

botmem context   # Returns JSON: { core_blocks, key_relations, ... }

Ingest (LLM-powered extraction from conversation text)

botmem ingest <text>       # Extract facts, triplets, block updates, summary
echo <text> | botmem ingest   # Pipe from stdin

Ingest requires a configured LLM provider. It automatically:

  • Updates memory blocks (human, persona, context)
  • Extracts tagged facts → archival
  • Extracts entity-relationship triplets → knowledge graph
  • Generates conversation summary

Integration Patterns

Session Start — Load Context

Run botmem context and include the JSON in system prompt for full memory recall.

After Important Conversations — Ingest

Summarise the conversation and pipe to botmem ingest to automatically extract and store structured memories.

Ad-hoc Recall — Query

Use botmem graph query <entity> or botmem archive search <term> for targeted recall.

Periodic Maintenance

Use botmem block set context <current situation> to keep working memory current.

Custom DB Path

All commands accept --db <path> to use a different database file. Useful for per-agent or per-project memory stores.