Linux command
yourmemory 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Run the
yourmemory
Print the executable path
yourmemory-path
Install
pip install yourmemory
Identify the agent
YOURMEMORY_USER=[agent_name] yourmemory
说明
yourmemory is a Model Context Protocol (MCP) server that gives AI coding agents long-term memory with biological decay modeled after the Ebbinghaus forgetting curve. Memories that are recalled often gain strength; memories that are not decay over time, mimicking human retention. The server exposes three tools to MCP clients: recall_memory(query) > Hybrid retrieval combining vector similarity, BM25 keyword scoring, and graph expansion, ranked by similarity and strength. store_memory(content, importance, category?, visibility?) > Persists a new memory with an importance score (0-1). Categories include strategy, fact, assumption, and failure. Visibility may be private or shared. update_memory(id, new_content, importance) > Re-embeds and replaces an existing memory entry. It plugs into any MCP-aware client (Claude Code, Cursor, Cline, Windsurf, Continue, Zed) and supports multiple agents sharing one instance with namespace isolation.
参数
- yourmemory
- Start the stdio Model Context Protocol server. Reads JSON-RPC requests on stdin and writes responses on stdout; intended to be launched by an MCP-compatible client.
- yourmemory-path
- Print the absolute path to the yourmemory executable along with a JSON config snippet ready to paste into an MCP client configuration.
- YOURMEMORY_USER (environment)
- Identifies the agent owning the memory namespace. Multiple agents on the same instance get isolated private memories plus shared context.
FAQ
What is the yourmemory command used for?
yourmemory is a Model Context Protocol (MCP) server that gives AI coding agents long-term memory with biological decay modeled after the Ebbinghaus forgetting curve. Memories that are recalled often gain strength; memories that are not decay over time, mimicking human retention. The server exposes three tools to MCP clients: recall_memory(query) > Hybrid retrieval combining vector similarity, BM25 keyword scoring, and graph expansion, ranked by similarity and strength. store_memory(content, importance, category?, visibility?) > Persists a new memory with an importance score (0-1). Categories include strategy, fact, assumption, and failure. Visibility may be private or shared. update_memory(id, new_content, importance) > Re-embeds and replaces an existing memory entry. It plugs into any MCP-aware client (Claude Code, Cursor, Cline, Windsurf, Continue, Zed) and supports multiple agents sharing one instance with namespace isolation.
How do I run a basic yourmemory example?
Run `yourmemory` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does yourmemory do in yourmemory?
Start the stdio Model Context Protocol server. Reads JSON-RPC requests on stdin and writes responses on stdout; intended to be launched by an MCP-compatible client.