Craft Agent × Nowledge Mem
Connect Craft Agent to your shared memory with a Craft source, a guide file, and nmem-backed session import.
For your agent
Paste this into Craft Agent after setup:
Read the Nowledge Mem guide in the nowledge-mem source, check whether Mem is reachable, and tell me what context you can see.Craft Agent can use Nowledge Mem through Craft's workspace source system. The source gives Craft the Mem MCP tools. The guide teaches Craft when to read Working Memory, search prior decisions, and save durable knowledge.
For recorded conversations, use the CLI importer. Craft stores sessions locally as session.jsonl; nmem reads those files on the Craft machine and uploads normalized threads to your local or remote Mem server.
Before You Start
- Nowledge Mem is running locally, or you have a reachable remote Mem server
- Craft Agent is installed
nmemworks on the same machine as Craft Agent
nmem statusSetup
Generate the Craft source and guide:
nmem config mcp show --host craft-agentIn the Craft workspace you want to connect:
- Create
sources/nowledge-mem/. - Save the generated
sourceConfigJSON assources/nowledge-mem/config.json. - Save the generated guide markdown as
sources/nowledge-mem/guide.md. - Restart or reload Craft Agent.
For remote Mem, configure the shared nmem client first, then regenerate:
nmem config client set url https://your-server
nmem config client set api-key your-key
nmem config mcp show --host craft-agentVerify
Ask Craft:
Is Nowledge Mem connected? Read my Working Memory or Context Bundle and summarize the current focus.Success means Craft can call the Mem tools from the nowledge-mem source and can see your current context.
Import Craft Sessions
Use this when you want the real Craft transcript saved in Mem:
nmem t sync --from craft-agent --all-projects --limit 20Then import:
nmem t sync --from craft-agent --all-projects --applyThe importer scans Craft workspaces under your Craft config directory. It uses each session's workspace header when available and writes stable craft-agent-* thread IDs, so reruns append with deduplication instead of creating duplicate threads.
Useful filters:
nmem t sync --from craft-agent --session-dir ~/.craft-agent/workspaces --limit 20
nmem t sync --from craft-agent --space work --applyIf you keep Craft config somewhere else, set CRAFT_CONFIG_DIR or pass --session-dir.
What Is Automatic
Craft can use memory tools whenever the source and guide are available, but Craft does not need a Nowledge npm package today. The workspace source handles MCP access; nmem t sync --from craft-agent handles transcript import.
If Craft adds a stable lifecycle hook later, Nowledge Mem can add live capture on top of the same source name. Until then, treat real session capture as explicit CLI import.
Related
- Connectors overview
- Threads
- Craft Agent repo: craft-ai-agents/craft-agents-oss