Make any AI agent better at learning from mistakes, improving continuously, and passing knowledge forward.
This framework gives AI agents the ability to:
bash
# 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' });
text
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)
ModuleSizePurposeheartflow-engine.js69KBMain entry, 37 exportsdecision-verifier.js14KB5-dim scoring + self-verifymeaningful-memory.js33KB3-tier memory + forgettingself-healing.js5KBQ-learning from failuresguardian-system.js22KBHuman progress protectiondecision-execution-loop.js12KBDecision→Execute→Result→Learnenvironment-sensor.js11KBSensor registry + fusiontree-of-thoughts.js9KBMulti-branch reasoningself-reflection-memory.js15KBPost-hoc analysis → lessons
PaperVenueContributionReflexionNeurIPS 2023RL from verbal reinforcementSelf-VerificationarXiv 2312.09210Inverse consistency checksCRITICICML 2023Self-correction via tool useConstitutional AIAnthropicSelf-critique loopsGenerative AgentsStanford 2022Memory stream simulationSelf-RewardarXiv 2403.00564Self-scoring upgrade selectionPlan-and-SolveACL 2023Two-stage reasoning
1.0.0 — 2026-05-07
self-improving-agentbash
# For AI agents
clawhub install self-improving-agent
# Or clone directly
git clone https://github.com/yun520-1/self-improving-agent.git