MemNexus
Reference

CLI Reference

Complete command reference for the mx CLI.

Full command reference for @memnexus-ai/cli. Install with:

npm install -g @memnexus-ai/cli

Global options

OptionDescription
--no-colorDisable colored output
--versionShow CLI version
--helpShow help for any command

auth

Manage authentication and API keys

mx auth login

Configure API key for authentication

OptionDescriptionDefault
--api-key <key>API key to store
--interactivePrompt for API key (mask input)

mx auth logout

Remove stored credentials

mx auth status

Show current authentication status

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)

config

Manage CLI configuration

mx config get <key>

Get a configuration value

mx config set <key> <value>

Set a configuration value

mx config list

List all configuration values

mx config reset

Reset configuration to defaults

mx config agent

Show AI agent detection status and effective defaults

OptionDescriptionDefault
--format <format>Output format (json|table)table

mx config env

Show all supported environment variables and their current values

mx config dev

Switch all URLs to the dev environment

mx config prod

Switch all URLs to the production environment

memories

Manage memories

mx memories list

List memories

OptionDescriptionDefault
--page <number>Page number0
--limit <number>Results per page10
--last <number>Get N most recent memories (shortcut for --limit N --sort createdAt:desc)
--sort <field>Sort by field (createdAt:asc, createdAt:desc, eventTime:asc, eventTime:desc)
--namedList only named memories
--recent <duration>Filter: memories from last duration (e.g., 7d, 2w, 1h, 30m)
--after <date>Filter: memories created after this date (ISO 8601)
--before <date>Filter: memories created before this date (ISO 8601)
--topics <topics>Filter: comma-separated list of topics (matches ANY)
--topic <topics>Alias for --topics
--exclude-topics <topics>Filter: exclude memories with these topics (comma-separated)
--format <format>Output format (json|table|yaml)

mx memories get [id] [moreIds]

Get one or more memories by ID (supports piping with --stdin)

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)
--name <name>Get memory by name instead of ID
--detail <level>Detail level: minimal, standard (default), fullstandard
--similarFind semantically similar memories (single ID only)
--conversationFind memories from the same conversation (single ID only)
--relatedFind memories with shared topics (single ID only)
--limit <number>Maximum number of related results5
--stdinRead memory IDs from stdin (one per line or space-separated)
--include-vectorsInclude embedding vectors in json/yaml output (debugging; stripped by default)

mx memories create

Create a new memory

OptionDescriptionDefault
--conversation-id <id>Conversation ID (REQUIRED - use "NEW" to create a new conversation)
--content <text>Memory content
--name <name>Assign a kebab-case name for deterministic retrieval
--memory-type <type>Memory type (episodic|semantic|procedural)
--context <context>Context identifier
--topics <topics>Comma-separated topics
--role <role>Role (user|assistant|system)
--importance <number>Importance score (0-1)
--supersedes <id>ID of memory this supersedes (auto-creates SUPERSEDES relationship)
--code-context <json>Structured context tag (JSON object). Example: '{"product":"memnexus","team":"mcp","role":"team-lead"}'. Scopes knowledge to a product/team/service/role for retrieval.
--product <name>Shorthand for codeContext.product
--repo <name>Shorthand for codeContext.repo
--service <name>Shorthand for codeContext.service
--component <name>Shorthand for codeContext.component
--team <name>Shorthand for codeContext.team
--code-role <name>Shorthand for codeContext.role (authorship role, e.g. team-lead)
--task-id <id>Task identifier for agentic loop memories (groups attempts at the same problem)
--outcome <outcome>Task outcome: resolved | unresolved
--distillRequest LLM distillation into structured 5-section notebook (Pro/Enterprise only)
--interactiveInteractive mode
--format <format>Output format (json|table|yaml)

mx memories update [id]

Update an existing memory (by ID or --name)

OptionDescriptionDefault
--name <name>Update a named memory (creates new version via SUPERSEDES chain)
--assign-name <name>Assign a name to an existing memory (kebab-case, 2-64 chars)
--rename <newName>Rename a named memory (use with --name or an ID that has a name)
--content <text>Updated content
--memory-type <type>Updated memory type
--context <context>Updated context
--topics <topics>Updated topics (comma-separated)
--importance <number>Updated importance (0-1)
--code-context <json>Structured context tag (JSON object). Example: '{"product":"memnexus","team":"mcp","role":"team-lead"}'. Scopes knowledge to a product/team/service/role for retrieval.
--format <format>Output format (json|table|yaml)

mx memories history <name>

Show version history for a named memory

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)
--limit <number>Maximum versions to show20

mx memories delete <id>

Delete a memory

OptionDescriptionDefault
--forceSkip confirmation prompt

Search memories (keyword, semantic, hybrid; see also: graphrag query)

OptionDescriptionDefault
--query <text>Search query
--limit <number>Maximum results10
--mode <mode>Search mode (unified|content|facts)
--method <method>Search method: keyword (TF-IDF), semantic (vector), hybrid (both)
--threshold <number>Minimum score threshold for semantic search (0-1)0.5
--vector-weight <number>Weight for vector search in hybrid mode (0-1)0.7
--fulltext-weight <number>Weight for fulltext search in hybrid mode (0-1)0.3
--event-from <datetime>Filter: event time start (ISO 8601)
--after <datetime>Alias for --event-from: event time start (ISO 8601)
--event-to <datetime>Filter: event time end (ISO 8601)
--before <datetime>Alias for --event-to: event time end (ISO 8601)
--recent <duration>Filter: memories from last duration (e.g., 7d, 2w, 1h, 30m)
--topics <topics>Filter: comma-separated list of topics (matches ANY)
--topic <topics>Alias for --topics
--exclude-topics <topics>Filter: exclude memories with these topics (comma-separated)
--type <type>Filter: memory type (episodic|semantic|procedural)
--conversation-id <id>Filter: conversation ID
--preview <number>Content preview length in characters100
--format <format>Output format (json|table|yaml|llm|compact)
--compactCompact output: ID, date, first line (shorthand for --format compact)
--id-onlyOutput only memory IDs (newline-separated, for piping)
--explainInclude search scoring explanation
--briefQuick lookup preset: --limit 5 --preview 80 --format json
--timelineTimeline mode: sort chronologically with timestamps and state indicators. Use --preview <N> (N>100) to show inline content
--group-by <field>Group results by field (conversation). Shows memories organized by conversation.
--expand-entitiesEnable entity graph traversal branch in hybrid search
--expand-topicsEnable topic graph traversal branch in hybrid search
--expand-factsEnable fact graph traversal branch in hybrid search
--include-supersededInclude superseded/contradicted memories in results
--content-onlyStrip output to minimal fields: {id, createdAt, topics, content} (JSON output only)
--effective-onlyExclude superseded/contradicted memories (passes includeSuperseded: false to API)
--task-id <id>Task-scoped retrieval: own-history first, cross-task fills remainder
--outcome-filter <filter>Filter by outcome: resolved | unresolved | any
--sort <field>Sort results by field: score (default), createdAt, updatedAt, eventTime
--order <dir>Sort direction: asc | desc (default: desc)
--scope <pairs>Filter by codeContext scope (e.g. repo:memnexus,service:core-api)
--strictHigh-precision mode: fulltext-only, no semantic blending. Use for status/incident/deployment queries where exact-token match matters (sets --mode content --method keyword)

mx memories relationships

Manage memory relationships (SUPERSEDES, FOLLOWS, RESOLVES, etc.)

mx memories relationships list <id>

List relationships for a memory

OptionDescriptionDefault
--direction <dir>Direction: outgoing (from this memory), incoming (to this memory), bothboth
--format <format>Output format (json|table|yaml)

mx memories relationships create <id>

Create a relationship from this memory to another

OptionDescriptionDefault
--target <id>Target memory ID
--type <type>Relationship type (SUPERSEDES|FOLLOWS|RESOLVES|CONTRADICTS|REFERENCES)
--confidence <number>Confidence score (0-1)1.0
--reason <text>Explanation for the relationship
--interactiveInteractive mode
--format <format>Output format (json|table|yaml)

mx memories relationships delete <id> <relationshipId>

Delete a relationship

OptionDescriptionDefault
--forceSkip confirmation prompt

mx memories timeline <id>

Get timeline context for a memory (related memories before and after)

OptionDescriptionDefault
--before <number>Number of memories before5
--after <number>Number of memories after5
--format <format>Output format (json|table|yaml)

mx memories detect-relationships <id>

Auto-detect potential relationships for a memory

OptionDescriptionDefault
--auto-createAutomatically create high-confidence relationships
--min-confidence <number>Minimum confidence threshold (0-1)0.7
--format <format>Output format (json|table|yaml)

mx memories digest

AI-synthesized summary for humans — reports, handoffs, Slack updates (alias: recall | see also: recap)

OptionDescriptionDefault
--query <text>Search query for the digest (required)
--recent <duration>Time window (e.g., 24h, 7d, 2w)
--topics <topics>Filter by topics (comma-separated)
--digest-format <format>Digest format (structured|narrative|timeline|status-report)structured
--max-sources <number>Maximum source memories to consider100
--show-sourcesDisplay source memory IDs
--format <format>Output format (json|yaml|llm)

mx memories status

Project status: Done / In Progress / Remaining — AI synthesis of memory corpus (alias for: digest --digest-format status-report)

OptionDescriptionDefault
--query <text>Topic or project to get status for (required)
--recent <duration>Time window (e.g., 24h, 7d, 2w)
--topics <topics>Filter by topics (comma-separated)
--max-sources <number>Maximum source memories to consider100
--show-sourcesDisplay source memory IDs
--format <format>Output format (json|yaml|llm)

mx memories recap

Quick raw recap of recent work — fast, agent-friendly (see also: digest / recall)

OptionDescriptionDefault
--recent <duration>Time window (e.g., 24h, 7d, 2w)24h
--query <text>Optional search query to filter results
--limit <number>Maximum memories to fetch200
--exclude-topics <topics>Exclude memories with these topics (comma-separated)auto-saved
--format <format>Output format (json|table|yaml)

mx memories build-context

Get contextual briefing before starting work

OptionDescriptionDefault
--context <text>What you are about to work on
--files <paths...>File paths you will be touching
--recent <hours>How far back to look in hours (default: 24)24
--format <format>Output format (json|table|yaml)

mx memories stats

Aggregated memory analytics (group by day, week, month, or topic)

OptionDescriptionDefault
--group-by <dimension>Group by: day, week, month, topic (required)
--after <date>Start date filter (ISO 8601 or YYYY-MM-DD)
--before <date>End date filter
--recent <duration>Time window (e.g. 1w, 2w, 1mo)
--topic <topic>Filter to a specific topic before grouping
--limit <n>Max groups to return20
--format <fmt>Output format: table (default), json, csv

conversations

Query and manage conversations

mx conversations list

List conversations

OptionDescriptionDefault
--page <number>Page number0
--limit <number>Results per page10
--recent <duration>Time window (e.g., 24h, 7d, 2w)
--min-memories <n>Only show conversations with at least N memories (filters empty init conversations)
--format <format>Output format (json|table|yaml)

mx conversations summary <id>

Get conversation summary

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)

mx conversations timeline <id>

Get conversation timeline

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)

Search conversations

OptionDescriptionDefault
--query <text>Search query
--limit <number>Maximum results10
--format <format>Output format (json|table|yaml)
--briefQuick lookup preset: --limit 5 --format json

mx conversations by-topic

Find conversations by topic

OptionDescriptionDefault
--topic <id>Topic ID
--topic-id <id>Topic ID (alias for --topic)
--format <format>Output format (json|table|yaml)

facts

Manage semantic facts

mx facts list

List facts

OptionDescriptionDefault
--page <number>Page number0
--limit <number>Results per page10
--format <format>Output format (json|table|yaml)

mx facts get <id>

Get a specific fact

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)

mx facts create

Create a new fact

OptionDescriptionDefault
--subject <text>Fact subject (entity name)
--predicate <text>Relationship type
--object <text>Fact object (related entity)
--confidence <number>Confidence score (0-1)1.0
--memory-id <id>Associated memory ID
--interactiveInteractive mode
--format <format>Output format (json|table|yaml)

mx facts update <id>

Update an existing fact

OptionDescriptionDefault
--subject <text>Updated subject
--predicate <text>Updated predicate
--object <text>Updated object
--confidence <number>Updated confidence (0-1)
--format <format>Output format (json|table|yaml)

mx facts delete <id>

Delete a fact

OptionDescriptionDefault
--forceSkip confirmation prompt

Search facts

OptionDescriptionDefault
--query <text>Search query
--limit <number>Maximum results10
--format <format>Output format (json|table|yaml)
--briefQuick lookup preset: --limit 5 --format json

topics

Manage topics and graph operations

mx topics list

List topics

OptionDescriptionDefault
--page <number>Page number0
--limit <number>Results per page10
--context-id <id>Filter by context
--format <format>Output format (json|table|yaml)

mx topics get <id>

Get topic details

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)

mx topics merge

Merge two topics

OptionDescriptionDefault
--source-id <id>Source topic ID
--target-id <id>Target topic ID
--forceSkip confirmation
--format <format>Output format (json|table|yaml)

Discover related topics via graph traversal (see also: search)

OptionDescriptionDefault
--topic <id>Topic ID (required)
--topic-id <id>Topic ID (alias for --topic)
--context-id <id>Filter by context
--limit <number>Max results10
--format <format>Output format (json|table|yaml)

mx topics similarity

Calculate similarity between topics

OptionDescriptionDefault
--topic-id-1 <id>First topic ID (required)
--topic-id-2 <id>Second topic ID (required)
--format <format>Output format (json|table|yaml)

mx topics find-similar

Find similar topics

OptionDescriptionDefault
--topic-id <id>Topic ID (required)
--threshold <number>Similarity threshold (0-1)0.7
--limit <number>Max results10
--format <format>Output format (json|table|yaml)

mx topics cluster

Cluster topics using graph algorithms

OptionDescriptionDefault
--algorithm <type>Clustering algorithm (kmeans|hierarchical|dbscan)kmeans
--num-clusters <number>Number of clusters
--context-id <id>Filter by context
--format <format>Output format (json|table|yaml)

mx topics detect-communities

Detect communities in topic graph

OptionDescriptionDefault
--algorithm <type>Community detection algorithm (louvain|label-propagation)louvain
--context-id <id>Filter by context
--min-size <number>Minimum community size2
--format <format>Output format (json|table|yaml)

Search topics by query string (see also: discover-related)

OptionDescriptionDefault
--query <text>Search query (required)
--limit <number>Maximum results10
--format <format>Output format (json|table|yaml)

entities

Manage entities and graph health

mx entities list

List entities

OptionDescriptionDefault
--type <type>Filter by entity type (e.g., PERSON, TECHNOLOGY)
--limit <number>Results per page10
--offset <number>Number of entities to skip0
--format <format>Output format (json|table|yaml)

mx entities get <id>

Get entity details

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)

mx entities memories <id>

Get memories mentioning an entity

OptionDescriptionDefault
--limit <number>Results per page10
--offset <number>Number of memories to skip0
--format <format>Output format (json|table|yaml)

mx entities health

Show graph health and extraction coverage

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)

patterns

Manage behavioral patterns

mx patterns list

List patterns

OptionDescriptionDefault
--page <number>Page number0
--limit <number>Results per page10
--type <type>Pattern type (behavioral|temporal|semantic)
--format <format>Output format (json|table|yaml)

mx patterns compile

Compile patterns from memories

OptionDescriptionDefault
--forceForce recompilation
--pattern-types <types>Comma-separated pattern types to compile

mx patterns update <id>

Update a pattern

OptionDescriptionDefault
--description <text>Updated description
--active <boolean>Enable/disable pattern
--metadata <json>Updated metadata
--format <format>Output format (json|table|yaml)

mx patterns feedback

Record pattern feedback

OptionDescriptionDefault
--pattern-id <id>Pattern ID (required)
--feedback-type <type>Feedback type (positive|negative|neutral) (required)
--comment <text>Feedback comment

mx patterns behavior-state

Get behavioral state

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)

mx patterns set-behavior-state

Set behavioral state

OptionDescriptionDefault
--state <json>Behavioral state JSON (required)
--mergeMerge with existing state instead of replacing

mx patterns detect

Detect recurring behavioral patterns from memories

OptionDescriptionDefault
--context-filter <context>Filter patterns by context
--timeframe-start <date>Start of detection timeframe (ISO 8601)
--timeframe-end <date>End of detection timeframe (ISO 8601)
--min-confidence <number>Minimum confidence threshold (0-1)0.5
--max-results <number>Maximum patterns to return20
--auto-storeAutomatically store detected patterns
--format <format>Output format (json|table|yaml)

mx patterns analyze

Analyze pattern trends, correlations, and generate insights

OptionDescriptionDefault
--time-range <days>Analysis time range in days30
--group-by <criteria>Group analysis by criteria (type|context|time)
--include-detailsInclude detailed breakdown
--format <format>Output format (json|table|yaml)

mx patterns compile-instructions

Compile stored behavioral patterns into actionable AI context instructions

OptionDescriptionDefault
--context <tags>Comma-separated topic tags matching current conversation topics (boosts patterns with matching metadata)
--token-budget <n>Maximum tokens to use for instructions (50-2000)200
--min-confidence <n>Minimum pattern confidence threshold (0-1)0.6
--max-instructions <n>Maximum number of instructions to return (1-10)5
--format <format>Output format (json|table)table

graphrag

Execute GraphRAG queries

mx graphrag query

Execute GraphRAG query (see also: memories search)

OptionDescriptionDefault
--query <text>Query text (required)
--context-id <id>Context ID
--mode <mode>Query mode (local|global|hybrid)hybrid
--max-depth <number>Graph traversal depth3
--limit <number>Max results10
--format <format>Output format (json|table|yaml)

mx graphrag explain <result-id>

Explain query result

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)

mx graphrag query-communities

Query communities

OptionDescriptionDefault
--query <text>Query text (required)
--context-id <id>Context ID
--limit <number>Max communities10
--format <format>Output format (json|table|yaml)

artifacts

Manage artifacts

mx artifacts list

List artifacts

OptionDescriptionDefault
--page <number>Page number0
--limit <number>Results per page10
--context-id <id>Filter by context
--type <type>Filter by artifact type
--format <format>Output format (json|table|yaml)

mx artifacts get <id>

Get artifact details

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)

mx artifacts create

Create artifact

OptionDescriptionDefault
--name <name>Artifact name
--type <type>Artifact type
--context-id <id>Context ID
--data <json>Artifact data as JSON
--metadata <json>Artifact metadata as JSON
--interactiveInteractive mode
--format <format>Output format (json|table|yaml)

mx artifacts update <id>

Update artifact

OptionDescriptionDefault
--name <name>Updated name
--data <json>Updated data
--metadata <json>Updated metadata
--format <format>Output format (json|table|yaml)

mx artifacts delete <id>

Delete artifact

OptionDescriptionDefault
--forceSkip confirmation

apikeys

Manage API keys

mx apikeys list

List API keys

OptionDescriptionDefault
--page <number>Page number0
--limit <number>Results per page10
--format <format>Output format (json|table|yaml)

mx apikeys create

Create API key

OptionDescriptionDefault
--label <label>Key label (optional)
--expires-at <date>Expiration date (ISO 8601 format, optional)

mx apikeys delete <id>

Delete API key

OptionDescriptionDefault
--forceSkip confirmation

system

System health and statistics

mx system health

Check system health

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)

mx system status

Get system status

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)

mx system features

Get feature flags

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)

update

Check for and install CLI updates

mx update

Check for and install CLI updates

OptionDescriptionDefault
--checkCheck for updates without installing
--version <version>Install a specific version
--yesSkip confirmation prompt

narratives

Manage narrative threads (group related memories into storylines)

mx narratives list

List narrative threads

OptionDescriptionDefault
--page <number>Page number0
--limit <number>Results per page10
--state <state>Filter by state (open|resolved|reopened|superseded)
--topics <topics>Filter by topics (comma-separated)
--format <format>Output format (json|table|yaml)

mx narratives get <id>

Get a specific narrative

OptionDescriptionDefault
--format <format>Output format (json|table|yaml)

mx narratives create

Create a new narrative thread

OptionDescriptionDefault
--title <text>Narrative title
--root-memory-id <id>ID of the first memory in this narrative
--topics <topics>Comma-separated topics
--interactiveInteractive mode
--format <format>Output format (json|table|yaml)

mx narratives update <id>

Update a narrative

OptionDescriptionDefault
--title <text>Updated title
--state <state>Updated state (open|resolved|reopened|superseded)
--topics <topics>Updated topics (comma-separated)
--format <format>Output format (json|table|yaml)

mx narratives delete <id>

Delete a narrative (memories are preserved)

OptionDescriptionDefault
--forceSkip confirmation prompt

mx narratives timeline <id>

Get timeline of memories in a narrative

OptionDescriptionDefault
--limit <number>Maximum memories to return20
--page <number>Page number0
--format <format>Output format (json|table|yaml)

setup

Configure MCP server integration for AI coding agents

mx setup verify

Health-check all configured agents

mx setup rules

Write or update MemNexus steering rules for an agent

OptionDescriptionDefault
--agent <id>Agent to target (default: claude-code)claude-code
--project <dir>Project directory (default: global scope)
--dry-runPreview changes without writing files
--printPrint rules to stdout instead of writing to a file (for copy-paste)
--no-markersOmit BEGIN/END comment markers from output (with --print)

mx setup remove

Remove MemNexus config from an agent

OptionDescriptionDefault
--agent <id>Agent to remove config from
--project <dir>Project directory (default: global scope)

mx setup hooks

Install or remove the CommitContext post-commit hook

OptionDescriptionDefault
--project <dir>Project directory (default: cwd)
--removeRemove the hook instead of installing
--yesSkip confirmation prompts
--dry-runPreview changes without writing files

mx setup skills

Install or manage MemNexus Claude Code slash commands (/mx-save, /mx-checkpoint, /mx-buildcontext)

OptionDescriptionDefault
--dry-runPreview changes without writing files
--forceOverwrite even if versions match
--removeRemove all mx-* skills
--listShow installed skills and their versions

mcp

MCP bridge commands

mx mcp serve

Start stdio↔HTTP MCP bridge (used by AI agents)

OptionDescriptionDefault
--url <url>MCP server URLhttps://mcp.memnexus.ai/mcp
--verboseLog full JSON-RPC message payloads
--inject-rulesInject MemNexus steering rules into the MCP initialize response (used for Claude Desktop)

mx mcp logs

Show MCP bridge log file location and recent output

OptionDescriptionDefault
-n, --lines <count>Number of lines to show50
-f, --followFollow log output (like tail -f)
--pathOnly print the log file path

mx mcp status

Show MCP bridge connection status

OptionDescriptionDefault
--jsonOutput as JSON

mx mcp install

Configure MCP bridge for an AI coding agent (alias for mx setup)

OptionDescriptionDefault
--client <id>Agent to configure: claude-code | claude-desktop | copilot | cursor | codex | opencode | chatgpt. Omit for interactive picker.
--project <dir>Project directory (default: global scope)
--yesSkip confirmation prompts
--dry-runPreview changes without writing files
--skip-hooksSkip lifecycle hook installation

mx mcp hooks

Manage MemNexus lifecycle hooks

mx mcp hooks remove

Remove MemNexus lifecycle hooks from an AI coding agent

OptionDescriptionDefault
--client <id>Agent to remove hooks from (default: claude-code)claude-code
--project <dir>Project directory (default: global scope)

mx mcp restart

Restart the MCP bridge (kills running bridge processes so the MCP client auto-restarts them)

mx mcp doctor

Run a full MCP health check (bridge status + agent config verification)

OptionDescriptionDefault
--jsonOutput as JSON

mx mcp list

List AI coding agents and their MemNexus MCP configuration status

OptionDescriptionDefault
--jsonOutput as JSON

hook

Git hook handlers

mx hook post-commit

Capture commit context (called by post-commit hook)

OptionDescriptionDefault
--cwd <dir>Working directory/workspace/.worktrees/marketing-20260313/docs-site
--dry-runPrint output without saving
--no-syncSkip API sync (cache only)
--summarizer <type>Summarizer: llm (default) or heuristicllm
--no-enrichSkip commit message enrichment

commit-context

View captured commit context entries

mx commit-context list

List recent commit contexts

OptionDescriptionDefault
--localRead from local cache only (no API)
--recent <period>Time filter (e.g. 24h, 7d)7d
--limit <n>Max results10
--branch <name>Filter by branch name
--agent <name>Filter by agent name (e.g. claude-code)
--format <format>Output format

mx commit-context show <sha>

Show full commit context for a specific commit

OptionDescriptionDefault
--localRead from local cache only
--format <format>Output format

mx commit-context sync

Upload unsynced local cache entries to the API

OptionDescriptionDefault
--limit <n>Max entries to sync50
--dry-runShow what would be synced without syncing
--format <format>Output format

Environment variables

VariableDescriptionDefault
MX_API_URLAPI base URLhttps://api.memnexus.ai
MX_API_KEYAuthentication key
MX_OUTPUT_FORMATDefault output formattable
MX_DEFAULT_PAGE_SIZEPagination size20

On this page

Global optionsauthmx auth loginmx auth logoutmx auth statusconfigmx config get <key>mx config set <key> <value>mx config listmx config resetmx config agentmx config envmx config devmx config prodmemoriesmx memories listmx memories get [id] [moreIds]mx memories createmx memories update [id]mx memories history <name>mx memories delete <id>mx memories searchmx memories relationshipsmx memories relationships list <id>mx memories relationships create <id>mx memories relationships delete <id> <relationshipId>mx memories timeline <id>mx memories detect-relationships <id>mx memories digestmx memories statusmx memories recapmx memories build-contextmx memories statsconversationsmx conversations listmx conversations summary <id>mx conversations timeline <id>mx conversations searchmx conversations by-topicfactsmx facts listmx facts get <id>mx facts createmx facts update <id>mx facts delete <id>mx facts searchtopicsmx topics listmx topics get <id>mx topics mergemx topics discover-relatedmx topics similaritymx topics find-similarmx topics clustermx topics detect-communitiesmx topics searchentitiesmx entities listmx entities get <id>mx entities memories <id>mx entities healthpatternsmx patterns listmx patterns compilemx patterns update <id>mx patterns feedbackmx patterns behavior-statemx patterns set-behavior-statemx patterns detectmx patterns analyzemx patterns compile-instructionsgraphragmx graphrag querymx graphrag explain <result-id>mx graphrag query-communitiesartifactsmx artifacts listmx artifacts get <id>mx artifacts createmx artifacts update <id>mx artifacts delete <id>apikeysmx apikeys listmx apikeys createmx apikeys delete <id>systemmx system healthmx system statusmx system featuresupdatemx updatenarrativesmx narratives listmx narratives get <id>mx narratives createmx narratives update <id>mx narratives delete <id>mx narratives timeline <id>setupmx setup verifymx setup rulesmx setup removemx setup hooksmx setup skillsmcpmx mcp servemx mcp logsmx mcp statusmx mcp installmx mcp hooksmx mcp hooks removemx mcp restartmx mcp doctormx mcp listhookmx hook post-commitcommit-contextmx commit-context listmx commit-context show <sha>mx commit-context syncEnvironment variables