Skip to content

REPL

The HEBBS REPL provides an interactive session for exploring and managing memories. It maintains a persistent connection and supports tab completion, history, and session management.

Terminal window
hebbs-cli repl

With a custom server address:

Terminal window
hebbs-cli repl --address my-hebbs-server:50051

You’ll see a prompt like:

HEBBS v0.1.0 — connected to localhost:50051
Type .help for available commands.
hebbs>

All standard CLI commands are available without the hebbs-cli prefix:

hebbs> remember --entity demo --content "First memory in the REPL"
Stored: mem_abc123
hebbs> recall --entity demo --query "what's stored?"
1. [0.943] First memory in the REPL

Press Tab to autocomplete:

  • Command namesrec<Tab> expands to recall or shows recall, remember
  • Flag names--ent<Tab> expands to --entity
  • Strategy values--strategy sim<Tab> expands to similarity
  • Entity names — previously used entity names are remembered for the session

Dot-commands are REPL-specific meta-commands:

CommandDescription
.helpShow all available commands and dot-commands
.statusShow connection status and server health
.clearClear the terminal screen
.entity <name>Set the default entity (avoids repeating --entity on every command)
.format <fmt>Switch output format (human, json, raw)
.historyShow command history
.timeToggle latency display for each command
.quit or .exitExit the REPL

Set a default entity to avoid repeating it on every command:

hebbs> .entity customer-42
Default entity set to: customer-42
hebbs> remember --content "This goes to customer-42 automatically"
Stored: mem_def456
hebbs> recall --query "contact preferences"
1. [0.891] Prefers email over phone

Command history persists across REPL sessions in ~/.config/hebbs/history. Navigate with up/down arrow keys.

For long content, use a backslash to continue on the next line:

hebbs> remember --entity demo --content "This is a very long memory \
that spans multiple lines for readability"
ShortcutAction
/ Navigate command history
TabAutocomplete
Ctrl+CCancel current input
Ctrl+DExit the REPL
Ctrl+LClear screen
Ctrl+RReverse search history