For an overview of cognitive memory architecture and how agents use it, see the Cognitive Memory core concepts guide.
Quick Start
Datasets
Datasets are containers for organizing memories with different access scopes. Each memory must be stored in a dataset.Dataset Scopes
user: Private to your user accountorg: Shared across your entire organizationrole: Accessible to specific roles (requires--allowed-roles)
Create Dataset
List Datasets
Get Dataset Details
Get Dataset Data
View all data entries in a dataset:Purge Dataset Data
Clear all data from a dataset while preserving the dataset container, permissions, and metadata:Purge vs Delete: Use
purge to clear data while keeping the dataset structure. Use delete to remove the entire dataset including permissions and metadata.Delete Dataset
Upload Files to Dataset
Upload local files or entire directories to a dataset:--title- Title for the uploaded content--tags- Comma-separated tags for categorization--metadata-json- Additional metadata as JSON string--output- Output format (json, yaml)
- Skips hidden files (starting with
.) - Skips binary files (executables, images, archives)
- Recursively processes directories
- Adds file metadata (filename, path, size)
Code Ingestion
Ingest code repositories for semantic code search and analysis:- Included:
**/*.py,**/*.js,**/*.ts,**/*.tsx,**/*.jsx,**/*.go,**/*.java,**/*.rs,**/*.c,**/*.cpp,**/*.h - Excluded:
**/__pycache__/**,**/node_modules/**,**/dist/**,**/build/**,**/.git/**,**/venv/**,**/target/**
- Language detection by file extension
- Dependency extraction (imports, requires)
- Export detection (functions, classes)
- Lines of code calculation
- File deduplication via SHA256 hash
--patterns- File patterns to include (comma-separated)--exclude-patterns- Patterns to exclude (comma-separated)--batch-size- Files per batch (1-100, default: 50)--output- Output format (json, yaml)
Check Code Ingestion Status
Track the progress of code ingestion jobs:Memory Operations
Store Memory
Store contextual knowledge with semantic embeddings for later retrieval.--title(required) - Descriptive title for the memory--content- Direct content input (or use--content-file)--content-file- Read content from a file--dataset-id(required) - Target dataset identifier--tags- Comma-separated tags for categorization--metadata-json- Additional structured metadata as JSON--output- Output format (text,json,yaml)
Recall Memories
Search stored memories using natural language queries with semantic understanding.GRAPH_COMPLETION(default) - Standard semantic search with graph contextTEMPORAL- Time-aware search emphasizing recent informationFEEDBACK- Search incorporating user feedback and interactionsRAG_COMPLETION- Retrieval-augmented generation for comprehensive answersCHUNKS- Search at the chunk level for precise results
- Use natural language descriptions
- Be specific: “production database failover” vs “database”
- Combine with tags for precision
- Adjust
--min-scoreto filter by relevance (0.0-1.0) - Use
--top-kto limit results (default: 10) - Choose appropriate search type based on your needs
List Memories
View all stored memories:Check Job Status
Some memory operations are asynchronous. Check their status:Output Formats
All memory commands support multiple output formats for different use cases:Best Practices
Dataset Organization
Scope Strategy:- Use
orgscope for shared team knowledge (runbooks, documentation) - Use
userscope for personal notes and drafts - Use
rolescope for sensitive information (credentials, SRE procedures)
Memory Storage
Craft Effective Titles:Semantic Search
Query Clarity:- Start broad:
"deployment" - Add specificity:
"kubernetes deployment" - Add filters:
--tags production - Adjust threshold:
--min-score 0.7
Use Cases
Runbook Storage
Store operational procedures and incident response playbooks:Configuration Management
Centralize configuration documentation:Knowledge Sharing
Build a team knowledge base:Onboarding Documentation
Create searchable onboarding materials:Integration with Agents
Cognitive memory enhances agent capabilities by providing contextual knowledge. Agents can automatically access organization-wide datasets to recall relevant information when executing tasks and store learnings for future use.Learn more about how agents use cognitive memory in the Agent Integration guide.
Command Reference
memory store
Store new contextual memory with semantic embeddings.
Syntax:
--title- Memory title (descriptive and searchable)--dataset-id- Target dataset identifier--contentOR--content-file- Memory content
--tags- Comma-separated tags for categorization--metadata-json- Additional structured metadata as JSON--output- Output format:text,json,yaml
memory recall
Search memories using semantic understanding.
Syntax:
query- Natural language search query (positional or--queryflag)
--tags- Filter results by tags (comma-separated)--top-k- Number of results to return (default: 10)--min-score- Minimum similarity score: 0.0-1.0 (default: 0.0)--search-type- Search type:GRAPH_COMPLETION,TEMPORAL,FEEDBACK,RAG_COMPLETION,CHUNKS--output- Output format:text,json,yaml
memory list
List all stored memories.
Syntax:
--output- Output format:text,json,yaml,table
memory status
Check the status of an asynchronous memory processing job.
Syntax:
job-id- Job identifier (returned from async operations)
--output- Output format:text,json,yaml
memory dataset create
Create a new dataset for organizing memories.
Syntax:
--name- Dataset name (descriptive and unique)--scope- Access scope:user,org, orrole
--description- Dataset description--allowed-roles- Comma-separated roles (required if scope isrole)--output- Output format:text,json,yaml
memory dataset list
List all accessible datasets.
Syntax:
--output- Output format:text,json,yaml,table
memory dataset get
Get detailed information about a specific dataset.
Syntax:
dataset-id- Dataset identifier
--output- Output format:text,json,yaml
memory dataset delete
Delete a dataset and all its associated memories.
Syntax:
dataset-id- Dataset identifier
memory dataset purge
Clear all data from a dataset while preserving the dataset container.
Syntax:
dataset-id- Dataset identifier
--output- Output format:text,json
memory dataset get-data
Retrieve all data entries from a dataset.
Syntax:
dataset-id- Dataset identifier
--output- Output format:text,json,yaml
memory dataset upload
Upload local files or directories to a dataset.
Syntax:
dataset-id- Dataset identifierfile-or-dir- Path to file or directory to upload
--title- Title for the uploaded content--tags- Comma-separated tags for categorization--metadata-json- Additional metadata as JSON string--output- Output format:text,json,yaml
memory dataset code ingest
Ingest code repository into a dataset for semantic code search.
Syntax:
dataset-id- Dataset identifierpath- Path to code repository or directory
--patterns- File patterns to include (comma-separated glob patterns)--exclude-patterns- File patterns to exclude (comma-separated glob patterns)--batch-size- Files per batch, 1-100 (default: 50)--output- Output format:text,json,yaml
memory dataset code status
Check the status of a code ingestion job.
Syntax:
dataset-id- Dataset identifierjob-id- Job identifier (returned from ingest command)
--output- Output format:text,json,yaml
Next Steps
Context Graph
Explore the organizational knowledge graph and graph queries
Intelligent Search
AI-powered natural language search for the context graph
Core Resources
Manage agents, teams, and projects
On-Demand Execution
Execute tasks with agents using stored context