Universal self-evolution layer for AI agents โ brings Hermes-style skills, memory, and self-improvement to any agent
Project description
trae-evolve ๐งฌ
Universal self-evolution layer for AI agents โ brings Hermes-style skills, memory, and self-improvement to Trae IDE and beyond.
Your AI agent learns from experience. After completing complex tasks, it automatically saves reusable workflows as skills and remembers facts about your project. Next time, it loads that knowledge and gets better.
Quick Start
1. Install
pip install trae-evolve
2. Initialize your project
cd your-project
trae-evolve init
trae-evolve trae-sync
3. Restart Trae IDE
That's it. Your AI agent now automatically evolves.
How It Works
Agent completes a complex task
โ
Automatically calls MCP tools โ skill_manage(action='create', ...)
โ
Knowledge saved to .evolve/skills/ โ synced to .trae/skills/
โ
Next session โ Agent reads skills โ reuses proven workflows
โ
Curator tracks usage โ stale after 30 days โ archived after 90 days
MCP Tools (Agent calls these automatically)
| Tool | What it does | When Agent calls it |
|---|---|---|
skill_manage |
Create/patch/delete skills | After complex tasks |
memory |
Add/update/remove memory | After learning new facts |
skill_view |
Read a skill's full content | Before starting tasks |
skills_list |
List all available skills | Before starting tasks |
Commands
Skills (procedural knowledge โ "how to do X")
trae-evolve skills list # List all skills
trae-evolve skills view <name> # View a skill
trae-evolve skills create <name> -d "..." -c "..." # Create
trae-evolve skills patch <name> -o "old" -n "new" # Patch
trae-evolve skills delete <name> -y # Delete
Memory (declarative knowledge โ facts)
trae-evolve memory read # Read all
trae-evolve memory read memory # Agent notes only
trae-evolve memory read user # User profile only
trae-evolve memory add memory "..." # Add agent note
trae-evolve memory add user "..." # Add user preference
trae-evolve memory replace memory "old" "new" # Replace
trae-evolve memory remove memory "..." # Remove
Trae Integration
trae-evolve trae-sync # Generate .trae/ files (rules + skills + mcp.json)
trae-evolve inject # Generate AGENTS.md / CLAUDE.md / .cursorrules
Lifecycle Management
trae-evolve curator status # Show skill lifecycle status
trae-evolve curator run # Run maintenance cycle
trae-evolve curator pin <name> # Prevent skill from being archived
trae-evolve status # Overall status
Directory Structure
Global (shared across projects)
~/.evolve/
โโโ skills/ โ Global skills
โโโ memories/
โ โโโ MEMORY.md โ Agent notes (2200 char limit)
โ โโโ USER.md โ User profile (1375 char limit)
โโโ .archive/ โ Archived skills
Per-project (created by trae-evolve init)
your-project/
โโโ .evolve/
โ โโโ skills/ โ Project-specific skills
โ โโโ memories/ โ Project-specific memory
โโโ .trae/ โ Created by `trae-evolve trae-sync`
โโโ mcp.json โ MCP Server config
โโโ rules/
โ โโโ evolve-project-rules.md โ Always-apply rules
โโโ skills/ โ Synced Trae-native skills
SKILL.md Format
---
name: deploy-to-prod
description: How to safely deploy to production
version: 1.0.0
category: devops
tags: [deployment, production]
---
# Deploy to Production
## Steps
1. Run tests: `pytest -x`
2. Build: `make build`
3. Deploy: `./deploy.sh`
## Pitfalls
- Never deploy on Fridays
- Check DB migrations first
Memory Format
Entries separated by ยง:
Uses Edge browser
ยง
NVIDIA GPU + CUDA
ยง
Project uses FastAPI + PostgreSQL
Trae IDE Integration
trae-evolve trae-sync generates:
.trae/mcp.jsonโ Connects Trae to evolve MCP Server.trae/rules/evolve-project-rules.mdโ Always-apply rules with skill index + memory.trae/skills/โ Skills in Trae-native format
After restart, Trae's AI agent gets 4 new MCP tools and reads the rules. It will:
- Automatically save skills after complex tasks
- Automatically remember user preferences
- Load existing skills before starting work
Agent Compatibility
| Agent | Integration | Command |
|---|---|---|
| Trae IDE | MCP + Rules + Skills (native) | trae-evolve trae-sync |
| Claude Code | CLAUDE.md | trae-evolve inject |
| Codex | AGENTS.md | trae-evolve inject |
| OpenCode | AGENTS.md | trae-evolve inject |
| Cursor | .cursorrules | trae-evolve inject |
Requirements
- Python 3.9+
- pyyaml (installed automatically)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trae_evolve-0.2.0.tar.gz.
File metadata
- Download URL: trae_evolve-0.2.0.tar.gz
- Upload date:
- Size: 32.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
478eb3d95b7230a6c1e1d1ff632b78c6e7207be93bd06f5551ebf7c14bc27f5f
|
|
| MD5 |
086f2e8d3c0e688337aba149944ad379
|
|
| BLAKE2b-256 |
f99025df3048369d45ed32e801f5829ee7a235276d19c7d9070bc12efc08b8fd
|
File details
Details for the file trae_evolve-0.2.0-py3-none-any.whl.
File metadata
- Download URL: trae_evolve-0.2.0-py3-none-any.whl
- Upload date:
- Size: 31.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81c364e6e267fbf8650067d360c07f9da1b4ac8ba980bdf8fa928d5cd381a829
|
|
| MD5 |
a937d8a8b36f0020b3b22d12b8c568cd
|
|
| BLAKE2b-256 |
ea4be6203039d068e6a37467c9979a3ca97375342c975855344ba9bb0987eedc
|