协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
mem-machine【开发与工程】Use MemMachine to build, configure, troubleshoot, and integrate persistent memory for AI agents through the Python SDK, REST API, CLI, MCP server, TypeScript client, self-hosted server, and framework integrations.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task names MemMachine, memmachine-client,
memmachine-server, memmachine_common, @memmachine/client, mem-cli,
memmachine-server, persistent agent memory, episodic memory, semantic/profile
memory, MemMachine MCP, or a self-hosted MemMachine API server.
MemMachine is a client-server memory layer for AI agents. The server stores and retrieves memories; application code usually talks to it through the Python SDK, TypeScript REST client, CLI, REST API, or MCP tools.
python scripts/check_memmachine_install.py --summary
MemMachineClient, Project, Memory, Config, mem-cli, memmachine,
project context, add/search/list/delete memory, semantic categories/tags,
filters, formatted output, and LangGraph tool helpers.memmachine-server, YAML configuration, Docker Compose/Helm deployment,
storage backends, provider resources, REST endpoint families, MCP stdio/HTTP,
event/declarative long-term memory, semantic memory, and retrieval-agent
behavior.@memmachine/client, Node/TypeScript install/build/test, MemMachineClient,
MemMachineProject, MemMachineMemory, Axios/API errors, and TS examples.Install only the surface needed for the task:
python -m pip install memmachine-client # application/client code
python -m pip install memmachine-server # self-hosted server workflows
npm install @memmachine/client # TypeScript applications
memmachine-client, memmachine-common,
memmachine-server, and meta package memmachine.@memmachine/client.http://localhost:8080 only when a local server is actually running.from memmachine_client import MemMachineClient
client = MemMachineClient(base_url="http://localhost:8080", api_key=None)
project = client.get_or_create_project(org_id="my-org", project_id="my-project")
memory = project.memory(metadata={"user_id": "alice", "agent_id": "assistant"})
memory.add("Alice prefers aisle seats.", metadata={"category": "travel"})
result = memory.search("What seating does Alice prefer?", limit=5)
client.close()
For CLI usage, put global client flags before the subcommand and project context on the project or memory command:
mem-cli --base-url "http://localhost:8080" memory search \
"What seating does Alice prefer?" \
--org-id "my-org" --project-id "my-project" --limit 5
Prefer read-only checks first: imports, --help, health checks, config parsing,
and mocked/unit-level command construction. Only start Docker services, call LLM
providers, upload memories, or run integration benchmarks after the user has
provided the required credentials, service endpoints, and permission for side
effects.