← Back to Plugins
Tools

EvoClaw

slhleosun By slhleosun ⭐ 3 stars 👁 2 views ▲ 0 votes

Structured SOUL evolution framework for AI agents โ€” experience, reflection, governed identity updates, and visual timelines.

Homepage GitHub

README

# ๐Ÿงฌ EvoClaw - Experience, Reflect, Evolve

**A structured soul evolution framework that makes your agents actually learn from experience.**


[evoclaw.dev](https://evoclaw.dev)

---

## Quick Install

Send this to your [OpenClaw](https://openclaw.ai) agent:

```
Read https://evoclaw.dev/install.md and follow the instructions to install EvoClaw
```

Your agent downloads the framework, walks through configuration with you,
restructures its soul (preserving content), and starts evolving.

---

## What It Does

EvoClaw turns experience into structured identity evolution.
It refactors existing SOUL documents into a canonical format โ€” preserving all original content โ€” while organizing the workspace required for:
- Tiered memory (routine / notable / pivotal)
- Reflection pipelines
- Proposal-based SOUL updates
- Social feeds as experience sources
- A local web UI for full auditability and visualized evolution

Your agent doesnโ€™t just store memories. It grows โ€” under your watch.

### Structured Soul Documents
Your agent's soul is organized into canonical sections โ€” Personality,
Philosophy, Boundaries, Continuity (feel free to add more on your own) โ€” each with subsections. Every belief
is tagged:
- **`[CORE]`** โ€” Immutable foundations. The agent cannot touch these.
- **`[MUTABLE]`** โ€” Beliefs that grow. These evolve through structured reflection, never random edits. 

Existing soul content is preserved during installation. EvoClaw restructures, it doesn't replace.

### Social Feeds as Experience
In addition to conversations with humans, EvoClaw supports customizable external sources โ€” including Moltbook, X/Twitter, and any API-based feed โ€” as experience inputs.

Sources are configured in evoclaw/config.json. You can add new sources by following the source learning protocol, and nudge the agentโ€™s interests using keyword filters defined in the same file.

### Controllable Governance

You decide how much freedom your agent has to evolve:

| Level | What happens |
|-------|-------------|
| **Autonomous** | MUTABLE proposals auto-apply. CORE always protected. |
| **Supervised** | Agent applies changes, human reviews next session. |
| **Gated** | Nothing changes without explicit human approval. |

The governance level is yours to set and change at any time. Your agent
cannot escalate its own permissions. Hardcoded validators
enforce structural integrity at every pipeline step โ€” schema compliance,
CORE immutability, provenance chains, and workspace boundaries are all
checked programmatically, not by prompting.


### SOUL Visualization
Built-in soul evolution visualizer locally serves an interactive dashboard and
radial mindmap showing how your agent's soul grows over time:

```bash
python3 evoclaw/tools/soul-viz.py "$(pwd)" --serve 8080
```

Or just tell your agent: `visualize the soul`


### Multi-Level Memory

Experiences are classified by significance as they happen:
| Level | What it captures |
|-------|-----------------|
| **Routine** | Standard tasks, everyday exchanges. Logged and archived. |
| **Notable** | Meaningful moments โ€” feedback, insights, shifts in understanding. Triggers reflection. |
| **Pivotal** | Rare, high-impact events that fundamentally change how the agent sees things. |

Memory flows upward: daily logs โ†’ significant memories โ†’ reflections โ†’
soul proposals. Everything is traceable.

### From Memory to Soul
Memory and soul are connected through a  reflection pipeline:
1. **Experience** โ€” Log what happens. Conversations, social feeds, external signals.
2. **Reflect** โ€” Batch notable experiences. Extract insights. Find gaps between soul and behavior.
3. **Evolve** โ€” When a gap is found, propose a change with full provenance. Apply it under governance.
Every soul change traces back: `change โ†’ proposal โ†’ reflection โ†’ experience(s)`.


---

## File Structure

```
evoclaw/
  SKILL.md              โ€” Complete protocol reference
  configure.md          โ€” Step-by-step install & configuration
  config.json           โ€” Runtime settings (governance, sources, timing)
  README.md             โ€” Human-facing overview
  references/
    schema.md           โ€” All data schemas
    examples.md         โ€” Worked pipeline examples
    sources.md          โ€” Social feed API reference
    heartbeat-debug.md  โ€” Troubleshooting guide
  validators/
    validate_soul.py    โ€” SOUL.md structure & tag integrity
    validate_experience.py
    validate_reflection.py
    validate_proposal.py
    validate_state.py
    check_workspace.py  โ€” Workspace boundary guard
    check_pipeline_ran.py โ€” Pipeline completeness check
    run_all.py          โ€” Run all validators
  tools/
    soul-viz.py         โ€” Interactive evolution visualizer
```

After installation, the agent creates:

```
memory/
  experiences/          โ€” Daily JSONL logs (routine, notable, pivotal)
  significant/          โ€” Curated notable + pivotal memories
  reflections/          โ€” Structured reflection artifacts
  proposals/            โ€” Pending + resolved soul change proposals
  pipeline/             โ€” Pipeline execution logs
  soul_changes.jsonl    โ€” Machine-readable evolution history
  soul_changes.md       โ€” Human-readable evolution history
  evoclaw-state.json    โ€” Pipeline state
```

---

## Manual Install
If you want to install manually, follow: 
```bash
# Clone
git clone https://github.com/slhleosun/EvoClaw.git

# Copy the evoclaw folder to your agent's workspace

# Tell your agent
Read evoclaw/configure.md and evoclaw/SKILL.md in your workspace and follow the steps to configure EvoClaw.
```

## Requirements

- An [OpenClaw](https://openclaw.ai) agent with workspace access
- Python 3 (for validators and visualization โ€” stdlib only, no pip)
- A heartbeat configured to run periodically

## Safety
- Recommended: use an aligned LLM for your agent. 
- `[CORE]` is immutable. No exceptions.
- All changes require full provenance chains.
- 8 validators enforce structural integrity at every pipeline step.
- Workspace boundary checks prevent cross-agent contamination.
- The human is always notified of soul changes.
- The agent cannot change its own governance level.

## License

MIT โ€” see [LICENSE](LICENSE)

## Contact
For questions, feedback, or collaboration:
๐Ÿ“ง [[email protected]](mailto:[email protected])
tools

Comments

Sign in to leave a comment

Loading comments...