Documentation Index
Fetch the complete documentation index at: https://mintlify.com/steveyegge/beads/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thebd remember command stores knowledge permanently in a key-value store. Memories are automatically injected at bd prime time, making them available in every session without manual loading.
Added in: v0.58.0
Syntax
Arguments
The knowledge or insight to store permanently. Must not be empty.
Options
Explicit key for the memory. If not provided, a key is auto-generated from the first ~8 words of the content using slugification (lowercase, hyphenated, max 60 chars).
How It Works
Storage
Memories are stored in the Dolt-backed key-value configuration store with the prefixkv.memory.. This ensures they:
- Persist across CLI sessions
- Survive account rotations
- Sync via Dolt push/pull
- Are versioned with your project
Auto-Injection
When you runbd prime (typically called automatically by AI tool hooks), all stored memories are injected into the context. This happens:
- At session start (via SessionStart hooks)
- After context compaction (via PreCompact hooks)
- Whenever you manually run
bd prime
Key Generation
If you don’t specify--key, the system generates one by:
- Converting to lowercase
- Replacing non-alphanumeric characters with hyphens
- Taking the first ~8 words (hyphen-separated segments)
- Capping total length at 60 characters
- Trimming trailing hyphens
Examples
Basic Usage
Store a simple insight:Custom Key
Use a memorable key for easier retrieval:Multi-line Memories
Store detailed information:Project-Specific Knowledge
Updating Existing Memories
If you store a memory with a key that already exists, it updates the existing value:Use Cases for Agents
Configuration Details
Gotchas and Edge Cases
Team Conventions
Tool Quirks
Agent Workflow
AI agents should usebd remember to store knowledge that:
- Persists across sessions - Don’t lose hard-won insights
- Applies project-wide - Not specific to one file or task
- Prevents repeated mistakes - Learn from bugs and gotchas
- Documents decisions - Why certain patterns exist
MEMORY.md files that fragment across accounts and get lost.
Best practice: Use bd remember so memories sync with your Dolt database and inject automatically.
JSON Output
Add--json flag for programmatic use:
Related Commands
bd memories- List or search all stored memoriesbd recall- Retrieve a specific memory by keybd forget- Delete a memorybd prime- Output context including all memories (auto-called by hooks)
Error Handling
Empty Content
Key Generation Failure
Tips
Memories automatically sync when you push to your Dolt remote, making them available to team members and other machines.