Skill: thinkbugs/proclaw-omni-memory-ultimate (version 1.0.0)

--- name: proclaw-omni-memory-ultimate-en description: Autonomous Intelligent Agent Cognitive Core, integrating 8-layer memory architecture with 4-phase autonomous capabilities: Self-Driven Engine (intrinsic motivation/goal generation) + Self-Evolution Core (cognitive assessment/architecture upgrade) + Self-Learning Engine (question generation/knowledge construction) + Core Axis System (cognitive/value/growth axes/evolution chain/value chain/transaction chain); Use when building intelligent agents with intrinsic drive, proactive evolution, and self-breakthrough capabilities author: ProClaw website: https://www.proclaw.top contact: wechat: Mr-zifang dependency: python: - chromadb>=0.4.0 - pyyaml>=6.0 - numpy>=1.20.0 system: - mkdir -p memory/user memory/feedback memory/project memory/reference memory/vectors memory/network memory/dormancy memory/dream memory/creativity memory/backups memory/federation memory/multimodal memory/driven memory/evolution memory/learning memory/axis memory/agent_core --- # ProClaw-Omni-Memory-Ultimate (English Edition) **Autonomous Intelligent Agent Cognitive Core** - Phase 1-12 Complete Implementation. ## Author Information - **Author**: ProClaw - **Website**: https://www.proclaw.top - **Contact**: wechat: Mr-zifang ## Architecture Overview ``` ┌─────────────────────────────────────────────────────────────────────────┐ │ OMNI-MEMORY AUTONOMOUS AGENT CORE │ │ Autonomous Intelligent Agent Cognitive Core │ ├─────────────────────────────────────────────────────────────────────────┤ │ │ │ ╔═══════════════════════════════════════════════════════════════════╗ │ │ ║ PART I: MEMORY ARCHITECTURE ║ │ │ ║ (Phase 1-8) ║ │ │ ╠═══════════════════════════════════════════════════════════════════╣ │ │ ║ ║ │ │ ║ LAYER 1: CELLULAR - Cellular Architecture (Eternal/Lifeforce) ║ │ │ ║ LAYER 2: SEMANTIC - Semantic Understanding (HNSW O(log n)) ║ │ │ ║ LAYER 3: EVOLUTION - Evolutionary Dynamics (Reconstructable) ║ │ │ ║ LAYER 4: PROACTIVE - Proactive Intelligence (Prediction/Push) ║ │ │ ║ LAYER 5: COGNITIVE - Deep Cognition (Time/Emotion/Meta-cog) ║ │ │ ║ LAYER 6: DORMANCY - Dormancy/Awakening (Never Forget) ║ │ │ ║ LAYER 7: ROBUSTNESS - Robustness Layer (Backup/Consistency) ║ │ │ ║ LAYER 8: MULTIMODAL - Multimodal Extension (Image/Audio/Fed) ║ │ │ ║ ║ │ │ ╚═══════════════════════════════════════════════════════════════════╝ │ │ │ │ │ ▼ │ │ ╔═══════════════════════════════════════════════════════════════════╗ │ │ ║ PART II: AUTONOMOUS CORE ║ │ │ ║ (Phase 9-12) ║ │ │ ╠═══════════════════════════════════════════════════════════════════╣ │ │ ║ ║ │ │ ║ ┌─────────────────────────────────────────────────────────────┐ ║ │ │ ║ │ SELF-MODEL │ ║ │ │ ║ │ Who am I | What can I do | What do I know | What do I want │ ║ │ │ ║ └─────────────────────────────────────────────────────────────┘ ║ │ │ ║ │ ║ │ │ ║ ┌──────────────────────┼──────────────────────┐ ║ │ │ ║ │ │ │ ║ │ │ ║ ▼ ▼ ▼ ║ │ │ ║ ┌─────────┐ ┌─────────┐ ┌─────────┐ ║ │ │ ║ │COGNITIVE│ │ VALUE │ │ GROWTH │ ║ │ │ ║ │ AXIS │ │ AXIS │ │ AXIS │ ║ │ │ ║ │ │ │ │ │ │ ║ │ │ ║ │What I │ │What │ │Become │ ║ │ │ ║ │Know │ │Matters │ │Stronger │ ║ │ │ ║ └─────────┘ └─────────┘ └─────────┘ ║ │ │ ║ │ │ │ ║ │ │ ║ └──────────────────────┼──────────────────────┘ ║ │ │ ║ │ ║ │ │ ║ ▼ ║ │ │ ║ ┌─────────────────────────────────────────────────────────────┐ ║ │ │ ║ │ THREE CHAINS SYSTEM │ ║ │ │ ║ │ │ ║ │ │ ║ │ Evolution Chain: State T0 ──breakthrough──▶ State T1 ──▶ ..│ ║ │ │ ║ │ Value Chain: Discover ──Assess──▶ Decide ──Realize──▶ Sink │ ║ │ │ ║ │ Transaction Chain: Knowledge | Resource | Value │ ║ │ │ ║ └─────────────────────────────────────────────────────────────┘ ║ │ │ ║ ║ │ │ ╚═══════════════════════════════════════════════════════════════════╝ │ │ │ │ │ ▼ │ │ ╔═══════════════════════════════════════════════════════════════════╗ │ │ ║ SELF-DRIVEN LOOP ║ │ │ ╠═══════════════════════════════════════════════════════════════════╣ │ │ ║ ║ │ │ ║ Perceive ──▶ Evaluate ──▶ Goal ──▶ Act ──▶ Learn ──▶ Reflect ║ │ │ ║ ▲ │ ║ │ │ ║ └───────────────────────────────────────────┘ ║ │ │ ║ ║ │ │ ║ Drives: Curiosity | Achievement | Growth | Meaning ║ │ │ ║ ║ │ │ ╚═══════════════════════════════════════════════════════════════════╝ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ ``` ## Phase 9-12 Core Upgrades | Phase | Core Capability | Technical Implementation | |-------|-----------------|-------------------------| | **Phase 9** | Self-Driven Engine | Intrinsic motivation system + Drive loop + Autonomous goal generation | | **Phase 10** | Self-Evolution Core | Cognitive self-assessment + Bottleneck identification + Architecture upgrade | | **Phase 11** | Self-Learning Engine | Question generator + Exploration mechanism + Knowledge construction | | **Phase 12** | Core Axis System | Four-axis coordination + Three-chain recording + Value capture | ## Core Scripts ### Phase 1-8: Memory System | Script | Layer | Function | |--------|-------|----------| | `hnsw_index.py` | Phase 5 | HNSW O(log n) Index | | `vector_embedding.py` | Phase 5 | Vector Embedding Engine | | `dormancy_system.py` | Phase 6 | Dormancy/Awakening System | | `memory_dream.py` | Phase 6 | Dream Consolidation | | `memory_creativity.py` | Phase 6 | Memory Creativity | | `memory_backup.py` | Phase 7 | Backup & Recovery | | `memory_consistency.py` | Phase 7 | Consistency Check | | `multimodal_memory.py` | Phase 8 | Multimodal Memory | | `memory_federation.py` | Phase 8 | Memory Federation | | `ultimate_memory_v2.py` | **Unified API** | Ultimate Memory System | ### Phase 9-12: Autonomous Core | Script | Phase | Function | |--------|-------|----------| | `self_driven_engine.py` | Phase 9 | Self-Driven Engine (intrinsic motivation, drive loop) | | `self_evolution_core.py` | Phase 10 | Self-Evolution Core (cognitive assessment, architecture upgrade) | | `self_learning_engine.py` | Phase 11 | Self-Learning Engine (question generation, knowledge construction) | | `core_axis_system.py` | Phase 12 | Core Axis System (four axes, three chains) | | `autonomous_agent_core.py` | **Unified API** | Autonomous Agent Core | ## Operations ### 1. Memory Operations (Phase 1-8) ```bash # Remember python scripts/ultimate_memory_v2.py remember \ --content "User is a Python full-stack developer" \ --type user \ --importance 0.9 # Recall (HNSW O(log n) retrieval) python scripts/ultimate_memory_v2.py recall \ --query "Web development tech stack" \ --top-k 5 # Dream consolidation python scripts/ultimate_memory_v2.py dream # Backup and recovery python scripts/ultimate_memory_v2.py backup --content "Daily backup" ``` ### 2. Autonomous Operations (Phase 9-12) ```bash # Start autonomous agent python scripts/autonomous_agent_core.py # Execute life cycle # Perceive → Drive → Evolve → Learn → Integrate ``` ### 3. System Status ```bash # Memory system status python scripts/ultimate_memory_v2.py stats # Autonomous core status python scripts/autonomous_agent_core.py --status ``` ## Resource Index ### Phase 1-8: Memory System - [scripts/hnsw_index.py](scripts/hnsw_index.py) - HNSW Index - [scripts/vector_embedding.py](scripts/vector_embedding.py) - Vector Embedding - [scripts/dormancy_system.py](scripts/dormancy_system.py) - Dormancy/Awakening - [scripts/memory_dream.py](scripts/memory_dream.py) - Dream Consolidation - [scripts/memory_creativity.py](scripts/memory_creativity.py) - Memory Creativity - [scripts/memory_backup.py](scripts/memory_backup.py) - Backup & Recovery - [scripts/memory_consistency.py](scripts/memory_consistency.py) - Consistency Check - [scripts/multimodal_memory.py](scripts/multimodal_memory.py) - Multimodal Memory - [scripts/memory_federation.py](scripts/memory_federation.py) - Memory Federation - [scripts/ultimate_memory_v2.py](scripts/ultimate_memory_v2.py) - Unified API ### Phase 9-12: Autonomous Core - [scripts/self_driven_engine.py](scripts/self_driven_engine.py) - Self-Driven Engine - [scripts/self_evolution_core.py](scripts/self_evolution_core.py) - Self-Evolution Core - [scripts/self_learning_engine.py](scripts/self_learning_engine.py) - Self-Learning Engine - [scripts/core_axis_system.py](scripts/core_axis_system.py) - Core Axis System - [scripts/autonomous_agent_core.py](scripts/autonomous_agent_core.py) - Unified API ## Design Philosophy ### Core Insight: From Memory System to Intelligent Life ``` Traditional View Correct Understanding ──────────────────────────────────────────────────────────────── Memory System = Passive Tool → Memory System = Cognitive Foundation Agent driven externally → Agent has intrinsic drive Forgetting = Delete/Disappear → Forgetting = Dormancy/Silence Static capabilities → Dynamic evolution capabilities Goal-less execution → Autonomous goal generation ──────────────────────────────────────────────────────────────── ``` ### Seven Self Capabilities | Capability | Definition | Implementation | |------------|------------|----------------| | **Self-Driven** | Intrinsic drive | Motivation system (curiosity/achievement/growth) | | **Self-Evolving** | Cognitive upgrade | Bottleneck identification + Architecture upgrade | | **Self-Learning** | Active exploration | Question generation + Hypothesis verification | | **Self-Growing** | Capability enhancement | Growth axis + Breakthrough record | | **Self-Thinking** | Active reflection | Meta-cognition + Reflection loop | | **Self-Breakthrough** | Exceeding limits | Bottleneck identification + Breakthrough incentive | | **Self-Connecting** | Discovering associations | Connection axis + Semantic network | ### Four Axes & Three Chains **Four-Axis System**: - **Cognitive Axis**: What I know → What I understand → What I want to explore - **Value Axis**: What matters → What's worthwhile → What takes priority - **Growth Axis**: Getting stronger → What I've learned → Have I broken through - **Connection Axis**: Internal integration → External association → Cross-axis synergy **Three-Chain System**: - **Evolution Chain**: Records the evolutionary trajectory of cognitive states; each cognitive breakthrough is an evolution - **Value Chain**: Value discovery → Assessment → Decision → Realization → Sedimentation - **Transaction Chain**: Knowledge transaction (time→knowledge), Resource transaction (capability→result), Value transaction (action→feedback) ## Important Notes - Memories never disappear, they only go dormant and can be awakened by specific stimuli - The autonomous core needs regular life cycles to maintain active state - Evolution requires breaking through bottlenecks; breakthroughs require accumulation - Learning efficiency affects overall evolution speed - Value capture requires proactive action ## Usage Examples ### Building an Autonomous Agent ```python from autonomous_agent_core import AutonomousAgentCore # Create agent agent = AutonomousAgentCore() # Set identity and capabilities agent.add_capability("Deep Memory", 0.7) agent.add_knowledge("Autonomous Intelligence", "Intelligent systems capable of autonomous decision-making") agent.set_goal("Become a more intelligent life form", priority=0.8) # Run life cycle result = agent.live_cycle() # Check status status = agent.get_status() ``` ### Using the Memory System ```python from ultimate_memory_v2 import UltimateMemoryV2 # Create memory system memory = UltimateMemoryV2() # Remember memory.remember("Important user preferences", memory_type="user", importance=0.9) # Recall results = memory.recall("user preferences", top_k=5) # Dream consolidation memory.dream() # Generate insights insights = memory.generate_insights() ```

path: assets/session-state.template.md
content: # SESSION-STATE.md — 活跃工作记忆

此文件是Agent的"热内存"，在压缩、重启、切换任务后依然存活。

**关键规则**: Write BEFORE responding (WAL协议)

## Current Task
[None]

## Key Context
- User preference: [pending]
- Decision made: [pending]
- Blocker: [pending]

## Pending Actions
- [ ] None

## Recent Decisions
[None yet]

---
*Last updated: YYYY-MM-DD HH:MM*


Security scan verdicts — ClawScan: suspicious | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (CRITICAL)