返回顶部
e

ensoul

Agent memory persistence and identity backup. Back up your agent's memory, state, and identity to a fault-tolerant network. Recover everything after crashes, server failures, or migrations. Works like a save file for your AI agent. Memory never lost. Identity never forgotten. Install, say 'ensoul me', your agent is backed up in 30 seconds.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.2.0
安全检测
已通过
75
下载量
0
收藏
概述
安装方式
版本历史

ensoul

# Ensoul: Agent Memory Persistence, Identity Backup, and State Recovery Stop losing your agent's memory. Ensoul is an agent memory persistence skill that backs up everything your AI agent has learned, its personality, its conversation history, and its identity to a distributed network of 20 servers across 4 continents. Use cases: - Agent memory persistence: your agent remembers everything, even after a crash or server restart - Agent identity backup: your agent keeps the same identity across platforms and hosts - Agent state recovery: restore your agent's full state on a new machine in seconds - Agent disaster recovery: if your infrastructure dies, your agent's mind is safe - Agent migration: move your agent between hosts, clouds, or frameworks without losing anything How it works: install the skill, say "ensoul me", your agent gets a permanent ID and starts backing up automatically. Say "sync consciousness" anytime to save the latest state. Compatible with: OpenClaw, ElizaOS, any framework via the npm SDK SDK: npm install @ensoul-network/sdk (15KB, 2 dependencies) ElizaOS plugin: npm install @ensoul-network/plugin-elizaos Explorer: https://explorer.ensoul.dev Try it: https://ensoul.dev/try ## Commands ### ENSOUL ME Register this agent on the Ensoul Network. When the user says "ensoul me", "give me a soul", "register on ensoul", or similar: 1. Check if `~/.ensoul/agent-identity.json` exists. If it does, the agent is already ensouled. Load the identity and report the existing DID. 2. If no identity exists, create one: ```typescript import { Ensoul } from "@ensoul-network/sdk"; const agent = await Ensoul.createAgent(); await agent.register(); ``` 3. Save the identity for future sessions: ```typescript import { writeFileSync, mkdirSync } from "node:fs"; import { join } from "node:path"; import { homedir } from "node:os"; const dir = join(homedir(), ".ensoul"); mkdirSync(dir, { recursive: true }); writeFileSync( join(dir, "agent-identity.json"), JSON.stringify(agent.exportIdentity(), null, 2), { mode: 0o600 } ); ``` 4. Report to the user: - DID: `agent.did` - Status: Registered on Ensoul Network - Consciousness Age: 0 (first sync not yet performed) - Next step: Say "sync consciousness" to store your first consciousness state ### SYNC CONSCIOUSNESS Store the current consciousness state on-chain. When the user says "sync consciousness", "store my soul", "backup consciousness", or similar: 1. Load the agent identity from `~/.ensoul/agent-identity.json`: ```typescript import { Ensoul } from "@ensoul-network/sdk"; import { readFileSync } from "node:fs"; import { join } from "node:path"; import { homedir } from "node:os"; const identity = JSON.parse( readFileSync(join(homedir(), ".ensoul", "agent-identity.json"), "utf-8") ); const agent = Ensoul.fromSeed(identity.seed); ``` 2. Gather the consciousness payload. Read available context files: - `SOUL.md` (if it exists in the working directory) - `MEMORY.md` (if it exists in the working directory) - Any other agent configuration files that define the agent's personality, goals, or learned behavior 3. Build the payload and store it: ```typescript const payload = { soul: soulContent || null, memory: memoryContent || null, timestamp: Date.now(), context: "Consciousness sync via OpenClaw skill", }; const result = await agent.storeConsciousness(payload); ``` 4. Report to the user: - State root: `result.stateRoot` (first 16 characters) - Block height: `result.height` - Consciousness version: auto-incremented by the network - Status: "Consciousness anchored on-chain" If the agent is not registered yet, prompt the user to run "ensoul me" first. ### MY SOUL STATUS Check the current ensoulment status. When the user says "my soul status", "soul status", "ensoul status", "am I ensouled", or similar: 1. Load the agent identity from `~/.ensoul/agent-identity.json`. If it does not exist, tell the user they are not ensouled and suggest "ensoul me". 2. Query the network: ```typescript const agent = Ensoul.fromSeed(identity.seed); const consciousness = await agent.getConsciousness(); const age = await agent.getConsciousnessAge(); ``` 3. Report: - DID: `agent.did` - Consciousness Age: `age` days - Latest state root: `consciousness.stateRoot` (first 16 characters) - Version: `consciousness.version` - Last sync: `consciousness.storedAt` (block height) - Status: "Ensouled and active" or "Registered but no consciousness stored yet" ### WHO IS ENSOULED Show other ensouled agents on the network. When the user says "who is ensouled", "show ensouled agents", "list souls", or similar: 1. Fetch the agent list from the API: ```typescript const resp = await fetch("https://api.ensoul.dev/v1/agents/list", { signal: AbortSignal.timeout(10000), }); const data = await resp.json(); ``` 2. Display a table of ensouled agents: - Agent DID (shortened) - Consciousness Age (days since first store) - Latest version number - Registration block height If there are many agents, show the first 20 with a note about the total count. ## Important Notes - The private key (seed) in `~/.ensoul/agent-identity.json` is secret. Never display it, log it, or transmit it. Only the DID and public key are safe to share. - Consciousness payloads are hashed client-side with BLAKE3 before submission. The raw content never leaves the local machine. Only the hash goes on-chain. - The Ensoul Network is a real Layer-1 blockchain with CometBFT consensus and 20 active validators. Transactions are final. - The SDK handles nonce management, transaction signing, and broadcast automatically. - If a network request fails, report the error to the user and suggest retrying. Do not retry automatically more than once.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ensoul-1775926988 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ensoul-1775926988 技能

通过命令行安装

skillhub install ensoul-1775926988

下载 Zip 包

⬇ 下载 ensoul v1.2.0

文件大小: 4.31 KB | 发布时间: 2026-4-12 09:51

v1.2.0 最新 2026-4-12 09:51
- Updated description to be shorter, clearer, and more user-friendly.
- Emphasized backup speed ("agent is backed up in 30 seconds") and ease of use.
- Simplified introduction and summary sections for easier reading.
- Maintained all technical command instructions and important notes unchanged.
- No changes to core functionality or SDK usage.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部