Skip to content

Commands Reference

FlagEnv VarDefaultDescription
--endpointHEBBS_ENDPOINT(from login)Server URL
--api-keyHEBBS_API_KEY(from login)API key for authentication
--workspaceHEBBS_WORKSPACE(from config)Workspace slug to route requests to
--formathumanOutput format: human, json, raw
--colorautoColor: always, never, auto
-v / -vvoffVerbose / trace logging

When --workspace is set, data-plane requests (recall, remember, forget, push, etc.) route to /v1/workspaces/<slug>/... instead of /v1/.... This lets an admin key target any workspace without switching keys.

Precedence: --workspace flag > HEBBS_WORKSPACE env var > saved default (from workspaces switch).


Connect to a HEBBS server. Saves endpoint and API key for subsequent commands.

Terminal window
hebbs login --endpoint http://your-server:8080 --api-key hb_live_sk_...
FlagRequiredDescription
--endpointYesServer URL
--api-keyNoAPI key (can also use HEBBS_API_KEY env var)

Check server health.

Terminal window
hebbs status

Upload files to the server for indexing.

Terminal window
hebbs push ./your-docs # upload a directory
hebbs push ./notes/meeting.md # upload a single file

Finds all .md, .txt, and .pdf files recursively (skips hidden files). Unchanged files are skipped on the server via checksum comparison.


Store a new memory.

Terminal window
hebbs remember "Customer prefers email over phone" \
--importance 0.8 \
--entity-id customer-42
FlagShortDefaultDescription
content (positional)Memory content text
--importance-i0.5Importance score (0.0 to 1.0)
--entity-id-eEntity scope
--context-cMetadata as JSON (e.g. '{"source":"email"}')
--edgeGraph edge (repeatable). Format: TARGET_ID:EDGE_TYPE[:CONFIDENCE]

Search for relevant memories.

Terminal window
hebbs recall "How does the customer prefer to be contacted?" \
--strategy similarity \
--top-k 5
FlagShortDefaultDescription
cue (positional)Natural language query
--strategy-ssimilaritysimilarity, temporal, causal, analogical
--top-k-k10Maximum results
--entity-id-eEntity scope (required for temporal)
--weights-w0.5:0.2:0.2:0.1Composite scoring: Relevance:Recency:Importance:Reinforcement
FlagStrategyDefaultDescription
--ef-searchsimilarity50HNSW candidate count
--time-rangetemporalunboundedBounds as START_US:END_US (microsecond timestamps)
--seedcausalautoStarting memory ID for graph traversal
--max-depthcausal5Maximum hops from seed
--edge-typescausalallEdge types to follow: caused_by, followed_by, related_to, revised_from, insight_from
--analogical-alphaanalogical0.50.0 = structural, 1.0 = embedding similarity

Every result has a composite score blending four signals:

SignalPositionWhat it measures
Relevance1stCosine similarity between query and memory
Recency2ndHow recently the memory was created
Importance3rdMemory’s importance value
Reinforcement4thHow often the memory has been recalled
Terminal window
hebbs recall "Acme meeting" --weights 1:0:0:0 # pure semantic
hebbs recall "Acme meeting" --weights 0.2:0.6:0.1:0.1 # recency-biased
hebbs recall "contract" --weights 0.3:0.1:0.5:0.1 # importance-biased

Retrieve a single memory by ID.

Terminal window
hebbs get 01KK3S0KXYE22EFF489YRTH559

Update an existing memory with lineage tracking.

Terminal window
hebbs revise 01KK3S0KXYE22EFF489YRTH559 \
--content "Customer now prefers Slack over email" \
--importance 0.9
FlagShortDescription
id (positional)Memory ID to revise
--content-CUpdated content
--importance-iUpdated importance
--entity-id-eUpdated entity ID

Remove memories matching criteria.

Terminal window
hebbs forget --entity-id customer-42 # all memories for an entity
hebbs forget --ids 01KK3S0KXYE22EFF489YRTH559 # specific memory
hebbs forget --staleness-us 2592000000000 # older than 30 days
hebbs forget --decay-floor 0.1 # low-value memories
FlagShortDescription
--ids-iSpecific memory IDs (repeatable)
--entity-id-eEntity scope
--staleness-usRemove memories older than N microseconds
--decay-floorRemove memories with decay score below this

At least one filter must be provided.

Pre-load context for an entity.

Terminal window
hebbs prime acme-corp --max-memories 20
FlagShortDescription
entity_id (positional)Entity ID to prime
--max-memories-mMaximum memories to return
--similarity-cueText cue for similarity-based selection

Trigger a reflection cycle: clustering, insight generation, validation.

Terminal window
hebbs reflect --entity-id customer-42
FlagShortDescription
--entity-id-eEntity scope (omit for global)

Retrieve consolidated insights from reflection.

Terminal window
hebbs insights --entity-id customer-42 --max-results 5 --min-confidence 0.7
FlagShortDescription
--entity-id-eFilter by entity
--min-confidence-cMinimum confidence threshold
--max-results-kMaximum results

List, create, or switch workspaces.

Terminal window
hebbs workspaces list
hebbs workspaces create --name "sales-team"
hebbs workspaces switch sales-team

workspaces switch saves the workspace slug to your CLI config (~/.config/hebbs/cli.toml). All subsequent commands will route to that workspace unless overridden with --workspace.

Use --workspace on any command to target a specific workspace without switching:

Terminal window
hebbs recall "latest deals" --workspace sales-team
hebbs push ./legal-docs --workspace enterprise-legal

Manage API keys.

Terminal window
hebbs keys list
hebbs keys create --label "ci-pipeline"
hebbs keys revoke <key-id>

Open a real-time subscription stream.

Terminal window
hebbs subscribe --entity-id customer-42 --confidence 0.7

Type text and press Enter to feed context. Press Ctrl+C to close.

Feed text to an active subscription (from a separate terminal).

Terminal window
hebbs feed 1 "Customer asked about dark mode preferences."