Long-term memory and a knowledge graph for your AI apps. Store, search, link and explore memories that persist across conversations, workflows and AI tools.
Penfield gives your Dify agents and workflows long-term memory. It stores what your AI learns as memories, links them into a knowledge graph, and finds them again with hybrid search (keywords, meaning and graph links together). The same memory is shared with every other AI app connected to your Penfield account, such as Claude, ChatGPT, Cursor or Codex.
The plugin offers the same 17 tools as Penfield's MCP server, under the same names, so an agent works the same way in Dify as in Claude, ChatGPT or Cursor.
Every tool returns its result twice: as a JSON object in , for workflows, and as the same JSON in . Workflows should read . An agent reads the result in the same form Penfield's MCP server returns. Dify 1.20 leaves out a JSON that repeats the text, so an agent sees each result once there; Dify 1.7.0 shows it twice. When a call fails, for example because a tag breaks Penfield's rules, the key lacks a permission or Penfield cannot be reached, the tool still completes: the text starts with and the JSON is , so a workflow can branch on and an agent can read what went wrong. Successful results never contain .
Checkpoints use the same format as Penfield's MCP server: a checkpoint saved in Dify restores in Claude or any other Penfield client, and the other way round.
Agent memory. Give an Agent app the Awaken, Recall and Store memory tools and add an instruction such as: "At the start of a conversation, call Awaken. Before answering, use Recall to check what you already know about the user's question. When the user shares a decision, preference or correction, use Store memory to save it." The agent then remembers across conversations, and across other AI apps connected to the same Penfield account.
Workflow knowledge capture. In a Workflow, pass the output of an LLM node into a Store memory node with tags such as . A later Workflow can use Recall with the same tags to pull those notes back.
Building the graph. After storing a new memory, call Recall to find related memories and Connect memories to link them, for example when a new decision replaces an old one. Explore graph then returns the whole chain from any point.
Handoffs between sessions. At the end of a long task, have the agent call Save context with a name such as and a description of what was done and what comes next. A later conversation, a different Dify app, or Claude can call Restore context with that name and continue.
Your API key is stored by Dify as an encrypted credential. On each call the plugin exchanges it at for a short-lived access token, keeps that token in memory only, and refreshes it before it expires. The API key is never logged or returned in tool output.
See PRIVACY.md and Penfield's privacy policy at https://www.penfield.app/privacy.
MIT. See LICENSE.
Some outbound calls build their address at runtime, so the list may be incomplete.
Last checked 11/23/2026 03:05 AM · version 0.1.0