Skip to main content

Overview

The bd recall command retrieves the complete content of a stored memory by its key. Unlike bd memories which truncates long content, recall shows everything. Added in: v0.58.0

Syntax

Arguments

string
required
The exact key of the memory to retrieve. Keys are case-sensitive.

How It Works

The command queries the key-value store for the entry matching kv.memory.<key> and returns the full content without truncation. This is useful for:
  • Reading long, multi-line memories
  • Copying content for reference
  • Verifying exact stored text
  • Piping to other commands

Examples

Basic Recall

Retrieve a simple memory:
Output:

Multi-line Memory

Recall complex, structured information:
Output:

Long Content

Get full text that was truncated in bd memories:
Output:

Memory Doesn’t Exist

When the key is not found:
Output (stderr):
Exit code: 1

JSON Output

For programmatic use, add --json:
Success output:
Not found output:
Exit code: 1 when not found, 0 when found.

Use Cases

Copy to Clipboard

On macOS:
On Linux:

Use in Scripts

Extract configuration from memories:

Verify Memory Content

Check exact wording before updating:

Pipe to Editor

Edit long memories:

Compare Versions

If you’re tracking similar info in git:

Agent Context Retrieval

AI agents can fetch specific knowledge:

Finding Keys

If you don’t know the exact key:
Or use JSON for parsing:

Exit Codes

  • 0: Memory found and retrieved successfully
  • 1: Memory key not found
This makes it easy to check in scripts:

Tips

Use bd recall when you need the full, untruncated content. Use bd memories <search> when you’re browsing or don’t know the exact key.
Pipe output to tools:
Keys are case-sensitive. bd recall Auth-JWT won’t find auth-jwt. Use bd memories to find the correct key if unsure.
Output goes to stdout. Error messages go to stderr. This allows safe piping: