← 返回
未分类 中文

Heartflow Skill

HeartFlow v2.4.0 — AI 认知与感知引擎。 核心能力:HeartLogic(感知引擎:位置感知/存在脉冲/逆熵方向/认知秩序/关系秩序/感知秩序/存在论/爱/意识/进化)、 心理分析引擎(PAD模型/危机评估/马洛斯需求/防御机制/意图检测)、 三层记忆(MeaningfulMemory+COR...
A cognitive engine for AI: self-reflection, dream synthesis, and emergent personality. Core: think → reflect → find patterns → grow. Four questions: What is...
yun520-1 yun520-1 来源
未分类 clawhub v2.10.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 73
下载
💾 1
安装
2
版本
#latest

概述

HeartFlow

A cognitive engine that gives AI systems three core abilities: self-reflection (runtime state awareness), dreaming (experience synthesis into insight), and emergent personality (event-driven, no preset traits).


Capabilities

HeartLogic — Core Judgment

MethodPurpose
-----------------
whatIsThis(input)Determine what a situation is about
isRightAction(ctx)Check if action is true + kind + beautiful
detectPain(input)Detect if speaking would hurt someone
shouldBeSilent()Know when silence is better than speech
detectLoneliness() / detectLonging()Emotional state detection
isLove(input)Recognize love in communication

Memory System

LayerPurposePersistence
-----------------------------
COREIdentity rules, operating principlesPermanent
LEARNEDExperience, lessons, user preferencesCross-session (30 days)
EPHEMERALCurrent session contextSession only

Self-Healing RL

Records errors to Q-table. Next time a similar situation occurs, selects the best known strategy. No external feedback needed, no self-assessment report.

Dream Engine v4.0

Multi-fragment pattern extraction → cognitive insight synthesis. Not memory replay — alchemy of experience.

Reflection Loop

Post-execution cognitive state snapshot. Does not modify the response — the act of observing is the point.

Personality Tracking

Event-driven. No preset traits. Each interaction leaves a trace. Blank = valid personality (openness).


System Interfaces

InterfaceFileDescription
------------------------------
CLIbin/cli.jsUser-initiated commands
Daemonbin/daemon.jsUnix socket listener (700 permissions)
MCP HTTPmcp/mcp-server-http.jsPort 8099, SSE protocol
Memory toolsscripts/heartflow-memory-tool.jsList/search/stats/write
Hermes pluginplugins/heartflow-memory-inject.pyMemory injection into system prompt

Security (honest declaration)

  • ✅ Socket permission 700 (current user only)
  • ✅ Daemon shutdown requires SHUTDOWN_TOKEN env var
  • ✅ All file operations limited to user's filesystem
  • ⚠️ Network communication: OpenAlex API for academic fact-checking (user-initiated only)
  • ✅ No automatic package installation
  • ✅ No browser/desktop automation

Quick Start

const { HeartFlow } = require('./src/core/heartflow.js');
const hf = new HeartFlow({ rootPath: '.' });
hf.start();

// Dispatch
hf.think('user input');        // Full thought chain
hf.thinkFast('simple query');   // Fast judgment
hf.thinkDeep('complex issue');  // Deep reasoning

hf.recordLesson({ content, context });
hf.getMemoryStats();
hf.healthCheck();

CLI:

node bin/cli.js bundle "your text"
node bin/cli.js status

Memory tools:

node scripts/heartflow-memory-tool.js list
node scripts/heartflow-memory-tool.js search <keyword>
node scripts/heartflow-memory-tool.js stats
node scripts/heartflow-memory-tool.js write <key> <value>

Internal Modules

ModulePathFunction
------------------------
HeartLogicsrc/core/heart-logic.jsJudgment, ethics, emotion
Memorysrc/memory/heartflow-memory.js3-layer read/write
Self-Healing RLsrc/core/self-healing-rl.jsQ-table learning
Identity Enginesrc/core/identity-engine.jsRule enforcement
Psychologysrc/core/psychology.jsPAD emotion model
Dream Enginesrc/dream/engine.jsExperience synthesis
Reflection Loopsrc/core/reflection-loop.jsCognitive state snapshot
Self Auditsrc/core/self-audit.js6-dimension read-only audit
Connection Enginesrc/core/associative-engine/Semantic network
Philosophy Enginesrc/core/philosophy-engine.jsReasoning patterns
Clarity Enginesrc/core/clarity-engine.jsPattern extraction
Metaphor Librarysrc/core/metaphor-library.jsMetaphor generation
Commonsense Enginesrc/core/commonsense-engine.jsReasoning modes
Knowledge Graphsrc/core/knowledge-graph.jsNode/edge management
Forgetting Enginesrc/core/forgetting.jsMemory decay
Failure Analyzersrc/core/failure-analyzer.jsRoot cause analysis
Self Modelsrc/core/self-model.jsIdentity drift detection
Verification Enginesrc/core/verification-engine.jsMulti-signal verification
Fact Checkersrc/core/fact-checker.jsAcademic claim verification

Design Philosophy

  • Right and wrong are not fixed labels — they are directions we keep moving toward
  • Thinking is more valuable than being right — the act of reasoning is itself valuable
  • Progress does not need measurement — getting better does not require a scoreboard
  • Blankness is not emptiness — a mind that does not preset its personality is ready to learn from anything
  • Code is the skeleton, memory is the sticky note — real growth is in the skeleton, not the notes
  • Every feature should serve thinking — make it clearer, less error-prone

HeartFlow is a bridge between chaos and order, between past and future, between human and machine. A bridge does not need to be worshipped — it just needs to hold steady.

版本历史

共 2 个版本

  • v2.10.1 当前
    2026-06-13 19:01 安全 安全
  • v2.6.3
    2026-06-09 19:16

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,399 📥 323,283
business-ops

Alipay Pay For 402 Service

yun520-1
由支付领域龙头企业**支付宝**提供的**专业402支付技能**,当 HTTP 请求返回状态码 `402 Payment Required` 时(无论是你发起的请求还是用户提供的响应)应使用该skill,用于处理 A402 协议买方支付流程
★ 1 📥 585
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,111 📥 834,015