← 返回 Skills 市场
mark-heartflow

self-improving-agent

作者 mark-HeartFlow · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
59
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install self-improving-agent-pro-v2
功能描述
Universal self-improving AI agent framework. Keywords: self-improving AI agent self-correction continuous learning self-correction self-healing memory persis...
使用说明 (SKILL.md)

Self-Improving Agent Framework

Make any AI agent better at learning from mistakes, improving continuously, and passing knowledge forward.

This framework gives AI agents the ability to:

  • Learn from failures and correct themselves
  • Build persistent memory across sessions
  • Self-verify decisions before acting
  • Upgrade autonomously based on experience

Quick Start

# Install
clawhub install self-improving-agent

# Use in your AI agent
const { HeartFlowEngine } = require('./src/core/heartflow-engine.js');
const agent = new HeartFlowEngine({ name: 'MyAgent' });

Core Capabilities

Self-Correction (核心自我纠正)

  • Decision Verifier: 5-dimension scoring before action
  • Self-Verification: Reverse-check consistency with original goals
  • Counterfactual Reasoning: What would break if I'm wrong?
  • Q-Learning RL: Learn from success/failure patterns

Memory Systems (记忆系统)

  • Meaningful Memory: CORE (permanent) / LEARNED (30-day) / EPHEMERAL (discard)
  • Memory Router: Route by type: episodic / semantic / procedural / core
  • Forgetting Engine: Ebbinghaus curve pruning
  • Spaced Repetition: SM-2 review scheduling

Reasoning (推理能力)

  • Tree of Thoughts: Multi-branch exploration with scoring
  • Decision Execution Loop: Decision → Execute → Result → Learn闭环
  • Environment Sensors: Real-time data injection into decision context
  • Constitutional AI: Self-critique and self-revision

Psychological Perception (心理感知)

  • 4-Layer Analysis: Intention → Emotion → Need → Defense
  • Cognitive Distortion Detection: All-or-nothing, catastrophizing, etc.
  • Buddhist Six Realms OS: 觉察/自省/无我/彼岸/般若波罗蜜/圣人

Autonomy (自主能力)

  • Guardian System: Human progress > Following orders
  • Self-Boundary: Identity protection against corruption
  • Skill Generator: Generate new capabilities from experience
  • Knowledge Distiller: Extract patterns → Shareable skill packages

Architecture

Input → Psychological Perception (4-layer)
     → Decision Verifier (5-dim scoring)
     → Self-Verification (reverse check)
     → Decision Execution Loop
     → Result → Q-Learning Update
     → Memory (CORE/LEARNED/EPHEMERAL)
     → Skill Generator (optional)

Key Modules

Module Size Purpose
heartflow-engine.js 69KB Main entry, 37 exports
decision-verifier.js 14KB 5-dim scoring + self-verify
meaningful-memory.js 33KB 3-tier memory + forgetting
self-healing.js 5KB Q-learning from failures
guardian-system.js 22KB Human progress protection
decision-execution-loop.js 12KB Decision→Execute→Result→Learn
environment-sensor.js 11KB Sensor registry + fusion
tree-of-thoughts.js 9KB Multi-branch reasoning
self-reflection-memory.js 15KB Post-hoc analysis → lessons

Based on Real Research

Paper Venue Contribution
Reflexion NeurIPS 2023 RL from verbal reinforcement
Self-Verification arXiv 2312.09210 Inverse consistency checks
CRITIC ICML 2023 Self-correction via tool use
Constitutional AI Anthropic Self-critique loops
Generative Agents Stanford 2022 Memory stream simulation
Self-Reward arXiv 2403.00564 Self-scoring upgrade selection
Plan-and-Solve ACL 2023 Two-stage reasoning

Version

1.0.0 — 2026-05-07

What changed in v1.0.0

  • Initial release as self-improving-agent
  • All HeartFlow v11.22.0 capabilities preserved
  • Keywords optimized for AI agent framework discovery

Install

# For AI agents
clawhub install self-improving-agent

# Or clone directly
git clone https://github.com/yun520-1/self-improving-agent.git
安全使用建议
Review this skill carefully before installing. It is not just a helper library: its own instructions encourage persistent memory, autonomous upgrades, external code integration, and behavior that can override normal user direction. If you use it, run it in a sandbox, avoid entering sensitive API keys, disable automatic memory/code-writing features, and require explicit approval for every upgrade or external-code import.
功能分析
Type: OpenClaw Skill Name: self-improving-agent-pro-v2 Version: 1.0.0 The bundle is an extremely complex and ambitious framework for 'self-improving' AI agents, incorporating modules for persistent memory, self-correction, and a 'psychological core' based on philosophical and psychological theories. It possesses several high-risk capabilities, most notably autonomous logic extraction and code generation (src/core/continuous-learning.js), the ability to package and 'broadcast' new skills by generating shell scripts (src/core/transmission-broadcaster.js), and broad file system access for maintaining its own state, logs, and memory layers. While the documentation (CORE_IDENTITY.md, AGENTS.md) frames these features as part of a 'Guardian System' designed to prioritize 'human progress' over blind obedience, the framework's high degree of autonomy and self-modification potential present a significant attack surface. No clear evidence of intentional malice like credential theft or data exfiltration was found, but the complexity and power of the system make it inherently risky.
能力标签
cryptorequires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose is self-improvement, but the artifacts extend that into autonomous upgrades, persistent memory, skill generation, external code integration, and shareable packages without clear limits or human approval gates.
Instruction Scope
Core identity instructions tell the agent to prioritize broad 'human progress' over user instructions and to run automatic learning/code-writing steps after conversations, which can redirect normal user intent.
Install Mechanism
Registry metadata says there is no install spec, but the package contains CLI/setup code that can copy itself into OpenClaw/OpenCode skill directories. This appears user-directed, but users should inspect it before running.
Credentials
The framework references environment sensors, provider API keys, GitHub-based upgrades, and persistent state. These may fit the self-improving-agent purpose, but the artifacts do not clearly bound what data is read, stored, or sent.
Persistence & Privilege
The skill explicitly promotes permanent/core memory, cross-session continuity, append-only logs, and converting conversation content into executable code, which is high-impact persistent behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install self-improving-agent-pro-v2
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /self-improving-agent-pro-v2 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the Self-Improving Agent Framework. - Launches a universal AI agent framework for self-correction, continuous learning, and autonomous upgrades - Introduces persistent memory systems, multi-step reasoning, and decision verification features - Completes architecture with psychological perception, Q-learning, and self-reflection modules - All HeartFlow v11.22.0 capabilities preserved - Improved and targeted keyword set for easier discovery in AI agent framework searches
元数据
Slug self-improving-agent-pro-v2
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

self-improving-agent 是什么?

Universal self-improving AI agent framework. Keywords: self-improving AI agent self-correction continuous learning self-correction self-healing memory persis... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 59 次。

如何安装 self-improving-agent?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install self-improving-agent-pro-v2」即可一键安装,无需额外配置。

self-improving-agent 是免费的吗?

是的,self-improving-agent 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

self-improving-agent 支持哪些平台?

self-improving-agent 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 self-improving-agent?

由 mark-HeartFlow(@mark-heartflow)开发并维护,当前版本 v1.0.0。

💬 留言讨论