Skip to content

slhleosun/EvoClaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧬 EvoClaw - Experience, Reflect, Evolve

A soul & memory management framework that enables structured evolution for OpenClaw agents. Make your agents actually learn from experience!

evoclaw.dev


Quick Install

Send this to your OpenClaw 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:

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:

# 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 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

Contact

For questions, feedback, or collaboration: 📧 slhleosun@uchicago.edu

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages