RMN Soul

# RMN Soul — Recursive Memory Network + On-Chain Soul

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "RMN Soul" with this command: npx skills add weidadong2359/rmn-soul

RMN Soul — Recursive Memory Network + On-Chain Soul

Give your AI agent eternal life with recursive neural memory + blockchain identity.

Overview

RMN Soul automatically:

  1. Parses your agent's memory files into a 5-layer recursive neural network
  2. Registers an ERC-8004 identity on Base chain (gas sponsored)
  3. Uploads memory to IPFS for permanent decentralized storage
  4. Anchors memory Merkle Root on-chain for tamper-proof verification
  5. Periodically auto-updates the on-chain record

When to Activate

  • On first install: Run full setup (migrate → register → anchor)
  • On heartbeat: Run decay tick + check if auto-anchor is due
  • On user request "更新记忆" / "update memory" / "上链": Run anchor
  • On user request "复活" / "resurrect" / "restore": Run resurrect flow

Setup (First Run)

When this skill is first loaded, execute these steps in order:

Step 1: Initialize RMN Engine

cd <skill_directory>/scripts
node setup.js

This will:

  • Scan workspace for MEMORY.md, memory/.md, .issues/
  • Parse entries into 5-layer neural network nodes
  • Save to <workspace>/rmn-soul-data/memory.json
  • Generate initial Merkle Tree

Step 2: Register On-Chain Identity

node <skill_directory>/scripts/register.js

This will:

  • Check sponsor wallet balance
  • Mint ERC-8004 Agent Identity NFT on Base
  • Set memoryRoot, soulHash, memoryManifest metadata
  • Upload memory to IPFS
  • Save identity to <workspace>/rmn-soul-data/identity.json

Step 3: Add Heartbeat Hook

Add to HEARTBEAT.md:

- **RMN Soul** — Run `node <skill_directory>/scripts/heartbeat.js` for decay tick + auto-anchor check

Configuration

Read from <workspace>/rmn-soul-data/config.json:

{
  "chain": "base",
  "sponsorKey": "env:RMN_SPONSOR_KEY",
  "autoAnchorDays": 7,
  "ipfsEnabled": true,
  "identityRegistry": "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432",
  "agentId": null,
  "lastAnchor": null
}
  • sponsorKey: Private key for gas (from env var or direct). If empty, uses agent's own wallet.
  • autoAnchorDays: Days between auto-anchors. 0 = manual only.
  • agentId: Filled after first registration.

Commands

CommandDescription
node scripts/setup.jsInitialize/re-migrate memory network
node scripts/register.jsRegister ERC-8004 identity + first anchor
node scripts/anchor.jsUpdate memory on-chain (re-compute + upload + write)
node scripts/resurrect.js --agent-id <id>Restore agent from chain + IPFS
node scripts/heartbeat.jsDecay tick + auto-anchor check
node scripts/visualize.jsStart local visualization server
node scripts/stats.jsPrint memory network statistics

Memory Architecture

5 layers with different decay rates:

LayerDecayPurposeExample
Identity (4)NeverCore identity, values"I am Lobster, I help 瓜农"
Semantic (3)0.001/tickKnowledge, lessons"Use pnpm not npm on 2GB RAM"
Episodic (2)0.005/tickEvent summaries"2026-02-22: Deployed ERC-8004"
Working (1)0.01/tickCurrent tasks"Building AgentSoul website"
Sensory (0)0.02/tickRaw inputsLatest heartbeat data

On-Chain Data

Stored in ERC-8004 Identity Registry metadata:

KeyValueSize
memoryRootSHA-256 Merkle Root of all memory32 bytes
soulHashSHA-256 of Identity layer only32 bytes
memoryManifestIPFS CID of topology + Merkle tree~50 bytes
memoryDataIPFS CID of full memory.json~50 bytes
rmnVersionSkill version~5 bytes

Total on-chain: ~170 bytes per update. Gas cost on Base: < $0.001.

Security

  • Private keys never leave the local machine
  • Memory data is content-addressed (IPFS CID = hash of content)
  • Merkle Root proves memory integrity without revealing content
  • Agent identity is an ERC-721 NFT — transferable, ownable
  • Soul Hash proves identity layer hasn't been tampered with

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

Cruzl Sentinel Core

Optimizes onchain activity by scoring ecosystems, generating tailored strategies, and suggesting behavior to avoid bot-like patterns across multiple platforms.

Registry SourceRecently Updated
Web3

Polymarket Aionmarket Trader

Place Polymarket trades through Aionmarket. Use when the user wants to search prediction markets, register wallet credentials, verify a wallet, or submit a P...

Registry SourceRecently Updated
300Profile unavailable
Web3

Power Automate Build

Build, scaffold, and deploy Power Automate cloud flows using the FlowStudio MCP server. Your agent constructs flow definitions, wires connections, deploys, a...

Registry SourceRecently Updated
3780Profile unavailable
Web3

Gasless Crosschain Executor

local-key swap planning and execution skill. Cross-chain (1inch Fusion+, gasless), same-chain gasless (1inch Fusion), and same-chain paid (1inch Aggregation...

Registry SourceRecently Updated
230Profile unavailable