AI Agent Hub
Back to skills
HeartFlow Universal AI Capability Layer icon

HeartFlow Universal AI Capability Layer

AI Agent Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_fdb96f95/mark-heartflow using https://skillhub.cn/install/skillhub.md.

About this skill

Problem

Agent work can drift: identity changes, logic jumps, and done claims appear plausible without real code changes, tests, or evidence trails. Memory can also mix durable facts, learned conclusions, and session noise. HeartFlow adds a capability layer that constrains execution with identity, verification, and evidence rules.

How It Works

It anchors the core identity as upgrader / transmitter / bridge / answer, then applies stable logic and verification:
- Logic stability: separates evidence, assumptions, contradictions, uncertainty, and conclusions.
- Self-Verification: checks reverse consistency, logic chains, counterfactuals, and coverage.
- HealingMemoryRL: runs record() → learn() → rankedPatches() and persists RL state to data/healing-rl-state.json.
- Layered memory: CORE keeps permanent information, LEARNED keeps about 30-day learnings, and EPHEMERAL serves the current session.
Key modules include the src/core/heartflow.js entry point, meaningful-memory.js, reflexion.js, identity.js, guard.js, and dream-loop.js for identity anchoring, reflection, safety guardrails, and wake-sleep loops.

Boundaries

HeartFlow is closer to an execution constraint layer than a simple text generator. It requires real outputs, file diffs, test results, or external handles before claiming success, and favors logical self-consistency and falsifiability over absolute correctness. If a task only needs fast prose, its evidence and verification overhead may be excessive.

Use Cases

  • Keep agent identity stable, separate evidence from assumptions, and produce a logic chain in multi-step tasks
  • Add self-healing by recording failures, generating ranked patches, and persisting RL state
  • Design memory tiers for permanent facts, 30-day learnings, and session-only context
  • Gate completion claims behind real diffs, test results, or external handles during upgrades

Best For

  • AI engineers building agent execution frameworks and wanting identity anchoring plus logic guardrails
  • Architects designing agent memory systems that need long-term, mid-term, and session-level tiers
  • R&D leads building reflection and repair loops with persisted state and ranked patches
  • Test engineers reviewing agent completion with evidence ledgers and real outputs before confirming upgrades