← 返回
AI智能 中文

self-evalutaed-agent

Automatically detects errors, researches solutions, executes improvements, and measures impact while remembering effective procedures for continuous self-imp...
自动检测错误、研究解决方案、执行改进并衡量影响,同时记忆有效流程以实现持续自我改进。
mopga
AI智能 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 564
下载
💾 32
安装
1
版本
#latest

概述

Self-Improving Agent

Description

Self-improving agent system that learns from its own errors. Automatically detects issues, researches solutions, and implements improvements.

Based on production-ready patterns: Reflection, PEV (Plan-Execute-Verify), and Meta-Controller architectures.

Features

  • Auto-Trigger: Automatically runs when new errors are detected
  • Topic Selection: Analyzes error patterns and selects high-priority topics
  • Impact Measurement: Records before/after metrics to measure improvement effectiveness
  • Procedural Memory: Remembers working commands/scripts between sessions

What It Does

  1. Error Detection: Monitors cron jobs, circuit breakers, and error logs
  2. Topic Selection: Chooses research topics based on error impact
  3. Research: Generates research files with improvement recommendations
  4. Backlog: Creates high-impact tasks in backlog
  5. Execution: Backlog Agent PM executes tasks sorted by impact
  6. Measurement: Records before/after to measure effectiveness
  7. Learning: Remembers what worked for future reference

Architecture

Errors → Auto-Trigger → Topic Selector → Research → Backlog → Agent PM
                                              ↓                    ↓
                                      Impact Measurement ← Procedural Memory

Usage

Run Full Cycle

python3 skills/self-improving-agent/scripts/self_improvement_cycle.py

Check Errors Only

python3 skills/self-improving-agent/scripts/topic_selector.py

Record Impact

python3 skills/self-improving-agent/scripts/impact_measurement.py \
  --record \
  --task "Fix cron timeout" \
  --before '{"error_count": 5}' \
  --after '{"error_count": 0}'

Search Procedural Memory

python3 skills/self-improving-agent/scripts/procedural_memory.py --search "backup"

Cron Integration

Add to your cron jobs:

{
  "name": "Self-Improvement",
  "schedule": "0 10 * * *",
  "command": "python3 skills/self-improving-agent/scripts/self_improvement_cycle.py"
}

Requirements

  • Python 3.10+
  • OpenClaw workspace at /root/.openclaw/workspace
  • Write access to memory/ directory

Files

  • scripts/auto_trigger.py - Auto-triggers on new errors
  • scripts/impact_measurement.py - Measures improvement impact
  • scripts/procedural_memory.py - Stores working procedures
  • scripts/self_improvement_cycle.py - Main orchestrator
  • scripts/topic_selector.py - Selects topics by priority

Created By

  • Based on production patterns: Reflection, PEV, Meta-Controller
  • Tested in production environment
  • Ready for ClawHub publication

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 20:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,248
ai-intelligence

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 418 📥 115,264
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 713 📥 243,958