The Skill Evolution Intelligence Engine for AI Agents. π
Everything Can Be a Skill β’ Skills Evolve Through Continuous Learning β’ Elevating AI Agent Cognition
Model(LLM) -> CPU β’ Agent -> OS β’ Skills -> Apps
Octopai is a revolutionary AI Agent Skills Exploration, Extension, and Evolution Intelligence Engine built on a powerful core principle: Everything Can Be a Skill β’ Skills Evolve Through Continuous Learning β’ Elevating AI Agent Cognition. Serving OpenClaw, Claude Code, Codex, Cursor, and other intelligent agent systems, EXO transforms any resource β web pages, documents, videos, code, datasets, and more β into structured, reusable Skill content. Through intelligent learning and continuous self-evolution, Skills grow and improve over time, significantly enhancing the cognitive capabilities of AI Agents.
At the heart of Octopai lies the belief that knowledge should not be static. Every Skill created with EXO can continuously learn from interactions, refine itself through reflection, and evolve to become more powerful, more comprehensive, and better suited to the evolving needs of AI Agents.
EXO's revolutionary philosophy is centered around our foundational mission and principles:
At its core, Octopai exists to elevate AI Agent cognition through three fundamental pillars:
- Explore the vast knowledge available on the internet and in various file formats
- Extend the capabilities of AI Agents through structured, reusable skills
- Evolve skills through intelligent reflection and optimization to match Agent needs
EXO's groundbreaking approach is built on two transformative principles:
- Everything Can Be a Skill: Any resource β web pages, PDFs, videos, code, datasets, articles β can be transformed into a structured, AI-ready Skill
- Skills Evolve Through Learning: Every Skill continuously learns from usage, feedback, and interactions, growing more powerful over time
Together, these principles and pillars form EXO's revolutionary ecosystem where everything becomes a Skill, and every Skill continuously evolves to expand AI Agent cognition.
Transform any internet resource into structured, AI-ready skills instantly:
- Web Pages: Convert URLs to structured Markdown with one command
- Automatic Crawling: Fetch and organize linked resources
- Skill-Ready Output: Directly usable by AI Agents like Claude Code, Cursor, etc.
Parse and transform any file format into skill-ready resources:
- Documents: PDF, DOC, DOCX
- Spreadsheets: Excel (XLSX, XLS), CSV
- Media: Images (JPG, PNG, GIF), Videos (MP4, AVI, MOV)
- Web: HTML, URLs with automatic crawling
- Text: Markdown, JSON, YAML, plain text
Advanced three-stage evolution pipeline for skill optimization:
- Executor: Run candidates and capture full execution traces
- Reflector: Analyze failures and identify improvement patterns
- Optimizer: Generate improved candidates based on insights
Features reflective mutation, system-aware merge, and Pareto-efficient search.
Store, organize, and evolve your skills in a centralized repository:
- Persistent Storage: Skills saved to disk with full history
- Version Control: Track skill evolution with complete version history
- Smart Search: Find relevant skills by keywords, tags, or categories
- Skill Merging: Combine complementary skills into more powerful ones
- Usage Analytics: Track skill usage and success rates
from exo import EXO, hub_create, hub_search, hub_list, hub_stats
# Create a skill in SkillHub
skill = hub_create(
name="Data Analyzer",
description="Analyze CSV data files",
prompt="Create a skill to analyze CSV data",
tags=["data", "csv", "analysis"],
category="data-processing"
)
# Search for skills
results = hub_search("csv analysis")
# List all skills
all_skills = hub_list(category="data-processing")
# Get statistics
stats = hub_stats()Use EXO in the way that works best for you:
- Python API: Import directly into your projects for seamless integration
- Command-Line: Quick operations and automation through the terminal
Simplified access to all functionality:
from exo import EXO, convert, create, evolve, parse
# Convert URL to skill
content = convert("https://example.com")
# Parse files as resources
resource = parse("document.pdf")
# Create skills with resources
skill = create("Analyze this data", resources=["data.csv", "ref.pdf"])
# Evolve skills
evolved = evolve("skill.py", "Improve performance")- Python 3.8 or higher
- OpenRouter API key (get one at openrouter.ai)
- Cloudflare API key (optional, for enhanced URL conversion)
git clone https://github.com/Yuan-ManX/EXO.git
cd EXOpip install -r requirements.txt
# or for development installation
pip install -e .Copy the example environment file and fill in your values:
cp .env.example .env
# Edit .env with your API keysYour .env file should look like:
# OpenRouter API Configuration (Required)
OPENROUTER_API_KEY=your_openrouter_api_key_here
# Cloudflare API Configuration (Optional)
CLOUDFLARE_API_KEY=your_cloudflare_api_key_here
CLOUDFLARE_ACCOUNT_ID=your_cloudflare_account_id_here
# Model Configuration (Optional)
EXO_MODEL=openai/gpt-5.4from exo import EXO
# Initialize EXO
exo = EXO()
# Convert URL to Markdown
content = exo.convert_url("https://example.com")
# Parse files as resources
resource = exo.parse_file("data/document.pdf")
print(resource.to_skill_resource())
# Create a skill with resources
skill = exo.create_skill(
"Create a data analysis skill",
resources=["data/sample.csv", "docs/reference.pdf"]
)
# Evolve a skill
evolved = exo.evolve_skill(
"skills/my_skill.py",
"Add better error handling and logging",
iterations=5
)# Convert URL to Markdown
exo convert https://example.com -o output.md --crawler
# Parse a file to skill resource
exo parse document.pdf -o resource.md
# Create a skill
exo create "A CSV analysis skill" -n csv-analyzer -o skill.py
# Evolve a skill
exo evolve skill.py "Optimize for large files" -i 5
# Crawl a website
exo crawl https://example.com -o ./downloadsComprehensive documentation is available in both English and Chinese:
Quick links:
exo/
βββ __init__.py # Package exports
βββ api.py # High-level API interface
βββ core/ # Core functionality modules
β βββ converter.py # URL to Markdown conversion
β βββ crawler.py # Web crawling and resource download
β βββ creator.py # Skill creation from descriptions
β βββ evolver.py # Skill evolution interface
β βββ evolution_engine.py # Advanced three-stage evolution engine
β βββ resource_parser.py # Multi-format file parser (PDF, DOC, Excel, etc.)
β βββ skill_hub.py # SkillHub - centralized skill management system
βββ cli/ # Command-line interface
β βββ main.py # Main command entry point
βββ utils/ # Utility functions
β βββ config.py # Configuration management
β βββ helpers.py # Helper functions
βββ tests/ # Comprehensive test suite
β βββ test_converter.py
β βββ test_creator.py
β βββ test_evolver.py
β βββ test_evolution_engine.py
β βββ test_resource_parser.py
β βββ test_skill_hub.py
βββ docs/ # Documentation (English & Chinese)
β βββ en/ # English documentation
β βββ zh/ # Chinese documentation
βββ examples/ # Usage examples
EXO's evolution engine uses a sophisticated three-stage pipeline:
ββββββββββββββ ββββββββββββββ ββββββββββββββ
β Executor β ββββΆ β Reflector β ββββΆ β Optimizer β
β β β β β β
β Run candi- β β Analyze β β Generate β
β dates, cap-β β traces to β β improved β
β ture tracesβ β diagnose β β candidates β
ββββββββββββββ ββββββββββββββ ββββββββββββββ
Key Concepts:
- Actionable Side Information (ASI): Diagnostic feedback that guides evolution
- Pareto Frontier: Maintains candidates that excel in different ways
- Reflective Mutation: Targeted improvements based on failure analysis
- System-Aware Merge: Combines complementary strengths from multiple candidates
This project is licensed under the MIT License - see the LICENSE file for details.
We welcome contributions! Please see our contribution guidelines (coming soon) for details on how to get started.
If you like this project, please β star the repo. Your support helps us grow!
- Issues: GitHub Issues
- Documentation: docs/
EXO - Empowering AI Agents to Explore, Extend, and Evolve their cognitive capabilities.