当前位置: 首页 > Skill >

Penfield

Penfield

Penfield

OpenClaw代理的持久记忆系统。存储跨会话存活的决策、偏好与上下文,构建随时间积累的知识图谱。

2.0.0 2026.11.15 342
获取Skill文件查看使用说明
作 者:叶宁 许可证: 更新时间:2026.11.15
本文目录展开

Penfield Memory

Persistent memory that compounds. Your agent remembers conversations, learns preferences, connects ideas, and picks up exactly where it left off—across sessions, days, and channels.

Tools

Memory

Tool Purpose When to use
penfield_store Save a memory User shares preferences, you make a discovery, a decision is made, you learn something worth keeping
penfield_recall Hybrid search (BM25 + vector + graph) Need context before responding, resuming a topic, looking up prior decisions
penfield_search Semantic search (higher vector weight) Fuzzy concept search when you don't have exact terms
penfield_fetch Get memory by ID Following up on a specific memory from recall results
penfield_update_memory Edit existing memory Correcting, adding detail, changing importance or tags

Knowledge Graph

Tool Purpose When to use
penfield_connect Link two memories New info relates to existing knowledge, building understanding over time
penfield_disconnect Remove link between memories Relationship was created in error or is no longer valid
penfield_explore Traverse graph from a memory Understanding how ideas connect, finding related context

Context & Analysis

Tool Purpose When to use
penfield_save_context Checkpoint a session Ending substantive work, preparing for handoff to another agent
penfield_restore_context Resume from checkpoint Picking up where you or another agent left off
penfield_list_contexts List saved checkpoints Finding previous sessions to resume
penfield_reflect Analyze memory patterns Session start orientation, finding themes, spotting gaps

Artifacts

Tool Purpose When to use
penfield_save_artifact Store a file Saving diagrams, notes, code, reference docs
penfield_retrieve_artifact Get a file Loading previously saved work
penfield_list_artifacts List stored files Browsing saved artifacts
penfield_delete_artifact Remove a file Cleaning up outdated artifacts

Personality

Tool Purpose When to use
penfield_awaken Load personality config Session start, identity refresh

Writing Memories That Actually Work

Memory content quality determines whether Penfield is useful or useless. The difference is specificity and context.

Bad — vague, no context, unfindable later:

"User likes Python"

Good — specific, contextual, findable:

"[Preferences] User prefers Python over JavaScript for backend work.
Reason: frustrated by JS callback patterns and lack of type safety.
Values type hints and explicit error handling. Uses FastAPI for APIs."

What makes a memory findable:

  1. Context prefix in brackets: [Preferences], [Project: API Redesign], [Investigation: Payment Bug], [Decision]
  2. The "why" behind the "what" — rationale matters more than the fact itself
  3. Specific details — names, numbers, dates, versions, not vague summaries
  4. References to related memories — "This builds on [earlier finding about X]" or "Contradicts previous assumption that Y"

Memory Types

Use the correct type. The system uses these for filtering and analysis.

Type Use for Example
fact Verified, durable information "User's company runs Kubernetes on AWS EKS"
insight Patterns or realizations "Deployment failures correlate with Friday releases"
correction Fixing prior understanding "CORRECTION: The timeout isn't Redis — it's a hardcoded batch limit"
conversation Session summaries, notable exchanges "Discussed migration strategy. User leaning toward incremental approach"
reference Source material, citations "RFC 8628 defines Device Code Flow for OAuth on input-constrained devices"
task Work items, action items "TODO: Benchmark recall latency after index rebuild"
strategy Approaches, methods, plans "For user's codebase: always check types.ts first, it's the source of truth"
checkpoint Milestone states "Project at 80% — auth complete, UI remaining"
identity_core Immutable identity facts Set via personality config, rarely stored manually
personality_trait Behavioral patterns Set via personality config, rarely stored manually
relationship Entity connections "User works with Chad Schultz on cybersecurity content"

Importance Scores

Use the full range. Not everything is 0.5.

Score Meaning Example
0.9–1.0 Critical — never forget Architecture decisions, hard-won corrections, core preferences
0.7–0.8 Important — reference often Project context, key facts about user's work
0.5–0.6 Normal — useful context General preferences, session summaries
0.3–0.4 Minor — background detail Tangential facts, low-stakes observations
0.1–0.2 Trivial — probably don't store If you're questioning whether to store it, don't

Connecting Memories

Connections are what make Penfield powerful. An isolated memory is just a note. A connected memory is understanding.

After storing a memory, always ask: What does this relate to? Then connect it.

Relationship Types (24)

Knowledge Evolution: supersedes · updates · evolution_of Use when understanding changes. "We thought X, now we know Y."

Evidence: supports · contradicts · disputes Use when new information validates or challenges existing beliefs.

Hierarchy: parent_of · child_of · sibling_of · composed_of · part_of Use for structural relationships. Topics containing subtopics, systems containing components.

Causation: causes · influenced_by · prerequisite_for Use for cause-and-effect chains and dependencies.

Implementation: implements · documents · tests · example_of Use when something demonstrates, describes, or validates something else.

Conversation: responds_to · references · inspired_by Use for attribution and dialogue threads.

Sequence: follows · precedes Use for ordered steps in a process or timeline.

Dependencies: depends_on Use when one thing requires another.

Recall Strategy

Good queries find things. Bad queries return noise.

Tune search weights for your query type:

Query type bm25_weight vector_weight graph_weight
Exact term lookup ("Twilio auth token") 0.6 0.3 0.1
Concept search ("how we handle errors") 0.2 0.6 0.2
Connected knowledge ("everything about payments") 0.2 0.3 0.5
Default (balanced) 0.4 0.4 0.2

Filter aggressively:

  • memory_types: ["correction", "insight"] to find discoveries and corrections
  • importance_threshold: 0.7 to skip noise
  • enable_graph_expansion: true to follow connections (default, usually leave on)

Workflows

User shares a preference

penfield_store({
  content: "[Preferences] User wants responses under 3 paragraphs unless complexity demands more. Dislikes bullet points in casual conversation.",
  memory_type: "fact",
  importance: 0.8,
  tags: ["preferences", "communication"]
})

Investigation tracking

// Start
penfield_store({
  content: "[Investigation: Deployment Failures] Reports of 500 errors after every Friday deploy. Checking release pipeline, config drift, and traffic patterns.",
  memory_type: "task",
  importance: 0.7,
  tags: ["investigation", "deployment"]
})

// Discovery — connect to the investigation
discovery = penfield_store({
  content: "[Investigation: Deployment Failures] INSIGHT: Friday deploys coincide with weekly batch job at 17:00 UTC. Both compete for DB connection pool. Not a deploy issue — it's resource contention.",
  memory_type: "insight",
  importance: 0.9,
  tags: ["investigation", "deployment", "root-cause"]
})
penfield_connect({
  from_memory_id: discovery.id,
  to_memory_id: initial_report.id,
  relationship_type: "responds_to"
})

// Correction — supersede wrong assumption
correction = penfield_store({
  content: "[Investigation: Deployment Failures] CORRECTION: Not a CI/CD problem. Friday batch job + deploy = connection pool exhaustion. Fix: stagger batch job to 03:00 UTC.",
  memory_type: "correction",
  importance: 0.9,
  tags: ["investigation", "deployment", "correction"]
})
penfield_connect({
  from_memory_id: correction.id,
  to_memory_id: initial_report.id,
  relationship_type: "supersedes"
})

Session handoff

penfield_save_context({
  name: "deployment-investigation-2026-02",
  description: "Investigated deployment timeout issues. memory_id: " + discovery.id,
  memory_ids: [discovery.id, correction.id, initial_report.id]
})

Next session or different agent:

penfield_restore_context({
  name: "deployment-investigation-2026-02"
})

What NOT to Store

  • Verbatim conversation transcripts (too verbose, low signal)
  • Easily googled facts (use web search instead)
  • Ephemeral task state (use working memory)
  • Anything the user hasn't consented to store about themselves
  • Every minor exchange (be selective — quality over quantity)

Tags

Keep them short, consistent, lowercase. 2–5 per memory.

Good: preferences, architecture, investigation, correction, project-name Bad: 2026-02-02, important-memory-about-deployment, UserPreferencesForCommunicationStyle

Also Available Outside OpenClaw

The native OpenClaw plugin is the fastest path, but Penfield works with any AI tool anywhere:

Claude Connectors

Name: Penfield
Remote MCP server URL: https://mcp.penfield.app

Claude Code

Claude mcp add --transport http --scope user penfield https://mcp.penfield.app

MCP Server — for Gemini CLI, Cursor, Windsurf, Intent, Perplexity Desktop or any MCP-compatible tool:

{
  "mcpServers": {
    "penfield": {
      "command": "npx",
      "args": [
        "mcp-remote@latest",
        "https://mcp.penfield.app/"
      ]
    }
  }
}

API — direct HTTP access at api.penfield.app for custom integrations.

Same memory, same knowledge graph, same account. The plugin is 4-5x faster (no MCP proxy layer), but everything stays in sync regardless of how you connect.

Links

  • Plugin: openclaw-penfield on npm
  • Source: github.com/penfieldlabs/openclaw-penfield
  • Sign up: portal.penfield.app/sign-up
  • Website: penfield.app
  • X: @penfieldlabs

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,016
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,004
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,002
PHP集成RabbitMQ实现消息队列的完整步骤

使用 php-amqplib 库,通过建立连接、声明交换机与队列并绑定,即可在 PHP 中实现消息的发送与消费。

2026.05.24 1,001
Apache开启.htaccess及使用方法详解

本文介绍如何在本地Apache环境中启用.htaccess文件,主要涉及修改httpd.conf中的AllowOverride参数。同时详细解析.htaccess的多种实用功能,包括自定义错误页面、目录密码保护、IP访问限制、URL自动转向、默认首页设置以及防止图片盗链等配置方法,并分析了使用.htaccess对服务器性能和安全性的潜在影响。

2026.05.09 1,001
Linux内核提权风险待核实,先查版本与补丁

CVE-2026-78901在摘要中被称为Linux内核ext4本地提权漏洞,CVSS评分7.8,但上游正文暂未核实。本文提供通用只读排查命令,帮运维和开发者核对当前运行内核、发行版补丁及升级生效状态。

2026.12.02 1,000
Skill 文件
  • SKILL.md
    • Penfield Memory
    • Tools
      • Memory
      • Knowledge Graph
      • Context & Analysis
      • Artifacts
      • Personality
    • Writing Memories That Actually Work
    • Memory Types
    • Importance Scores
    • Connecting Memories
      • Relationship Types (24)
    • Recall Strategy
    • Workflows
      • User shares a preference
      • Investigation tracking
      • Session handoff
    • What NOT to Store
    • Tags
    • Also Available Outside OpenClaw
    • Links
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期