cli-v0.2.12

mem0ai/mem0cli-v0.2.12Aug 24, 2026by kartik-mem0

AI Summary

Adds new subcommands and flags to the Python CLI to support programmatic version checking and agent-specific memory extraction instructions.

Key Highlights

  • New 'mem0 version' subcommand allows scripts to read the CLI version programmatically.
  • New '--agent-custom-instructions' flag enables setting distinct extraction instructions for agent-scoped memories.
  • CLI documentation for 'search --filter' now includes concrete JSON examples and shapes.

New Features

  • CLI 'version' subcommand
  • CLI '--agent-custom-instructions' flag
  • Enhanced CLI documentation

Full Release Notes

**New Features:**
- **`version`:** New `mem0 version` subcommand, alongside the existing `--version` flag, so scripts and agent harnesses can read the CLI version as a regular subcommand instead of a root-level flag (Python and Node [#6907](https://github.com/mem0ai/mem0/pull/6907))
- **`add`:** New `--agent-custom-instructions` flag, threaded through to `agent_custom_instructions` on the `/v3/memories/add/` payload: a second extraction instruction set that applies only to agent-scoped memories, matching the SDKs' `agentCustomInstructions` / `agent_custom_instructions` support (Python and Node [#6910](https://github.com/mem0ai/mem0/pull/6910))

**Documentation:**
- **`search --filter`:** The `--filter` help text and `docs/platform/cli.mdx` now spell out the JSON shape (`{"AND": [...]}` / `{"OR": [...]}`) with a concrete example instead of just calling it "an advanced filter expression," and a matching example command was added to both the CLI help text and the docs page (Python and Node [#6907](https://github.com/mem0ai/mem0/pull/6907))