executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
python-sdk-and-cliUse the MemMachine Python SDK and CLI for project context, memory add/search/list/delete, semantic profile operations, filters, formatting, config API wrappers, and LangGraph tool helpers.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a task names memmachine_client, MemMachineClient,
Project, Memory, Config, mem-cli, memmachine, Python memory add or
search, semantic categories/tags/features, metadata filters, agent_mode, or
LangGraph memory tools.
mem-cli and
memmachine command shapes, environment variables, JSON flags, and safe
examples.from memmachine_client import MemMachineClient
client = MemMachineClient(base_url="http://localhost:8080", api_key=None)
try:
project = client.get_or_create_project(org_id="my-org", project_id="my-project")
memory = project.memory(
metadata={"user_id": "alice", "agent_id": "assistant", "session_id": "demo"}
)
memory.add("Alice prefers aisle seats.", metadata={"category": "travel"})
results = memory.search("What seating does Alice prefer?", limit=5)
finally:
client.close()
Use explicit org_id, project_id, and memory metadata instead of relying on
ambient defaults. Keep API keys in environment variables or secret stores.
mem-cli --base-url "http://localhost:8080" memory add \
"Alice prefers aisle seats." \
--org-id "my-org" --project-id "my-project" \
--metadata user_id=alice --metadata agent_id=assistant \
--metadata category=travel
mem-cli --base-url "http://localhost:8080" memory search \
"What seating does Alice prefer?" \
--org-id "my-org" --project-id "my-project" --limit 5
Global flags such as --base-url and --api-key come before the subcommand.
Project context flags belong on projects or memory subcommands.
filter="metadata.category = 'travel'" for
boolean logic. Use filter_dict only for simple legacy equality filters.MemoryType supports episodic and semantic.
Adding to both may be useful, but verify the server configuration supports
both before assuming results appear in both surfaces.agent_mode=True asks the server retrieval agent to do richer
query handling. It needs server-side LLM/reranker resources; use ordinary
search first for simple lookups.MemMachineTools or helper factories when an agent
runtime expects callable add/search tools. Ensure framework dependencies are
installed separately.@memmachine/client belongs in
typescript-rest-client.