AgentEvolver Self-Improvement plugin thumbnail

AgentEvolver Self-Improvement

Implements AgentEvolver's three self-evolving mechanisms (Self-Questioning, Self-Navigating, Self-Attributing) for autonomous agent improvement in Agent Zero.

Author kgvo 6 stars Version 1.0.0 Updated

README

AgentEvolver Self-Improvement Plugin

Implements AgentEvolver's self-evolving mechanisms for Agent Zero AI agents, enabling autonomous self-improvement through three key mechanisms:

๐Ÿง  Three Self-Evolving Mechanisms

1. Self-Questioning (Automatic Task Generation)

Agents can generate their own improvement tasks based on performance gaps and learning needs.

2. Self-Navigating (Experience-guided Exploration)

Agents learn from past experiences and apply that knowledge to navigate new tasks more effectively.

3. Self-Attributing (Credit Assignment)

Agents analyze which actions contribute to success/failure for fine-grained policy optimization.

๐Ÿš€ Features

  • 8 Self-Questioning Tools: Complete toolset for task generation, experience logging, and improvement analysis
  • Web UI Settings: Configurable parameters for each self-evolving mechanism
  • Experience Database: Persistent storage of learning experiences in JSON format
  • Performance Statistics: Track success rates, tasks completed, and learning progress
  • Improvement Suggestions: AI-powered recommendations for skill development

๐Ÿ“ Plugin Structure

agentevolver_self_improvement/
โ”œโ”€โ”€ plugin.yaml              # Plugin manifest
โ”œโ”€โ”€ README.md                # This file
โ”œโ”€โ”€ LICENSE                  # MIT License
โ”œโ”€โ”€ hooks.py                 # Plugin lifecycle hooks
โ”œโ”€โ”€ test_plugin.py           # Test suite
โ”œโ”€โ”€ webui/
โ”‚   โ””โ”€โ”€ config.html          # Settings UI
โ”œโ”€โ”€ helpers/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ””โ”€โ”€ self_improvement.py  # Core engine (274 lines)
โ””โ”€โ”€ tools/
    โ”œโ”€โ”€ __init__.py
    โ””โ”€โ”€ self_questioning_tool.py  # Tool interface (157 lines)

๐Ÿ› ๏ธ Installation

  1. Open Agent Zero UI
  2. Go to Plugins โ†’ Plugin Hub
  3. Search for "AgentEvolver"
  4. Click "Install"

Method 2: Manual Installation

# Clone the repository to your plugins directory
cd /a0/usr/plugins/
git clone https://github.com/your-username/agentevolver_self_improvement.git

โš™๏ธ Configuration

After installation, configure the plugin via Settings โ†’ Agent โ†’ AgentEvolver Self-Improvement:

  • Self-Questioning: Enable/disable automatic task generation
  • Self-Navigating: Set experience pool size and learning parameters
  • Self-Attributing: Configure credit assignment depth
  • Auto-scheduling: Set up automatic self-improvement sessions

๐Ÿงช Usage Examples

Generate a self-improvement task:

{
  "tool_name": "self_questioning_generate_task",
  "tool_args": {
    "category": "coding",
    "difficulty": "medium"
  }
}

Record a learning experience:

{
  "tool_name": "self_questioning_add_experience",
  "tool_args": {
    "task_type": "research",
    "task_description": "Study AI agent frameworks",
    "actions": ["Search", "Read", "Summarize"],
    "outcome": "success",
    "lessons_learned": ["Found 5 frameworks", "Identified key features"]
  }
}

Get improvement suggestions:

{
  "tool_name": "self_questioning_get_improvement_suggestions",
  "tool_args": {}
}

๐Ÿ“Š Performance Tracking

The plugin maintains detailed statistics:

  • Success rate across task categories
  • Total experiences and tasks completed
  • Learning progress over time
  • Pattern analysis for improvement areas

๐Ÿ”ง Development

Running Tests

cd /a0/usr/plugins/agentevolver_self_improvement
python test_plugin.py

Extending the Plugin

  1. Add new task categories in helpers/self_improvement.py
  2. Create new tools in tools/ directory
  3. Extend the Web UI in webui/

๐Ÿค Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request with tests

๐Ÿ“„ License

MIT License - see LICENSE file for details.

๐Ÿ™ Acknowledgements

Based on the AgentEvolver research paper:

"AgentEvolver: Towards Efficient Self-Evolving Agent System" Yunpeng Zhai et al., 2025

This plugin adapts the three self-evolving mechanisms for the Agent Zero framework.