← Back to Skills Marketplace
hudul

Ichiro-Mind

by 兵部尚书 · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
349
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install ichiro-mind
Description
Ichiro-Mind: The ultimate unified memory system for AI agents. 4-layer architecture (HOT→WARM→COLD→ARCHIVE) with neural graph, vector search, experience lear...
README (SKILL.md)

🧠 Ichiro-Mind

"The mind of Ichiro — Unifying all memory layers into one intelligent system."

Ichiro-Mind is the ultimate unified memory system for AI agents, combining the best of 5 proven memory approaches into one cohesive architecture. Named after its creator's vision for persistent, intelligent memory.

🏗️ Architecture Overview

┌─────────────────────────────────────────────────────────────────┐
│                    🧠 ICHIRO-MIND                               │
│              "The Mind That Never Forgets"                      │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  ⚡ HOT LAYER (Working RAM)        🔥 WARM LAYER (Neural Net)   │
│  ┌─────────────────────┐          ┌─────────────────────┐       │
│  │ SESSION-STATE.md    │◄────────►│ Associative Memory  │       │
│  │ • Real-time state   │  Sync    │ • Spreading recall  │       │
│  │ • WAL protocol      │          │ • Causal chains     │       │
│  │ • Survives compact  │          │ • Contradiction det │       │
│  └─────────────────────┘          └─────────────────────┘       │
│           │                                │                    │
│           ▼                                ▼                    │
│  💾 COLD LAYER (Vectors)         📚 ARCHIVE LAYER (Long-term)   │
│  ┌─────────────────────┐          ┌─────────────────────┐       │
│  │ LanceDB Store       │          │ MEMORY.md + Daily   │       │
│  │ • Semantic search   │          │ • Git-Notes Graph   │       │
│  │ • Auto-extraction   │          │ • Cloud backup      │       │
│  │ • Importance score  │          │ • Human-readable    │       │
│  └─────────────────────┘          └─────────────────────┘       │
│                                                                 │
│  🧹 HYGIENE ENGINE              🎓 LEARNING ENGINE              │
│  • Auto-cleanup                 • Decision tracking             │
│  • Deduplication                • Error learning                │
│  • Token optimization           • Entity evolution              │
└─────────────────────────────────────────────────────────────────┘

✨ Core Features

1. Intelligent Memory Routing

Automatically selects the best retrieval method based on query type:

Query Type Method Speed
Recent context HOT (SESSION-STATE) \x3C10ms
Facts & preferences COLD (Vector search) ~50ms
Causal relationships WARM (Neural graph) ~100ms
Long-term decisions ARCHIVE (Git-Notes) ~200ms

2. Automatic Memory Lifecycle

Capture → Extract → Process → Store → Recall → Cleanup
   │          │         │        │       │        │
Input    Mem0/Auto   Importance  4-Layer  Smart   Periodic
Capture   Extraction   Scoring   Storage  Route   Hygiene

3. Neural Graph with Spreading Activation

  • Not keyword search — Finds conceptually related memories through graph traversal
  • 20 synapse types — Temporal, causal, semantic, emotional connections
  • Hebbian learning — Memories strengthen with use
  • Contradiction detection — Auto-detects conflicting information

4. Experience Learning

Decision → Action → Outcome → Lesson
    │         │        │         │
   Store    Track    Record    Learn
  • Tracks decisions and their outcomes
  • Learns from errors
  • Suggests based on past patterns

5. Smart Hygiene

  • Auto-cleans junk memories
  • Deduplicates similar entries
  • Optimizes token usage
  • Monthly maintenance mode

🚀 Quick Start

Installation

clawhub install ichiro-mind

Setup

# Initialize Ichiro-Mind
ichiro-mind init

# Configure MCP
ichiro-mind setup-mcp

Basic Usage

from ichiro_mind import IchiroMind

# Initialize
mind = IchiroMind()

# Store memory (auto-routes to appropriate layer)
mind.remember(
    content="User prefers dark mode",
    category="preference",
    importance=0.9
)

# Recall with smart routing
result = mind.recall("What mode does user prefer?")

# Learn from experience
mind.learn(
    decision="Used SQLite for dev",
    outcome="slow_with_big_data",
    lesson="Use PostgreSQL for datasets >1GB"
)

📝 Memory Layers in Detail

HOT Layer — SESSION-STATE.md

Real-time working memory using Write-Ahead Log protocol.

# SESSION-STATE.md — Ichiro-Mind HOT Layer

## Current Task
Building unified memory system

## Active Context
- User: 兵步一郎
- Project: Ichiro-Mind
- Stack: Python + LanceDB + Neural Graph

## Key Decisions
- [x] Use 4-layer architecture
- [ ] Implement MCP interface

## Pending Actions
- [ ] Write SKILL.md
- [ ] Create Python core

WAL Protocol: Write BEFORE responding, not after.

WARM Layer — Neural Graph

Associative memory with spreading activation.

# Store with relationships
mind.remember(
    content="Use PostgreSQL for production",
    type="decision",
    tags=["database", "infrastructure"],
    relations=[
        {"type": "CAUSED_BY", "target": "performance_issues"},
        {"type": "LEADS_TO", "target": "better_scalability"}
    ]
)

# Deep recall
memories = mind.recall_deep(
    query="database decisions",
    depth=2  # Follow causal chains
)

COLD Layer — Vector Store

Semantic search with LanceDB.

# Auto-captured from conversation
mind.auto_capture(text="User likes minimal UI")

# Semantic search
results = mind.search("user interface preferences")

ARCHIVE Layer — Persistent Storage

Human-readable long-term memory.

workspace/
├── MEMORY.md              # Curated long-term
└── memory/
    ├── 2026-03-07.md      # Daily log
    ├── decisions/         # Structured decisions
    ├── entities/          # People, projects, concepts
    └── lessons/           # Learned experiences

🛠️ Advanced Features

Memory Hygiene

# Audit memory
ichiro-mind audit

# Clean junk
ichiro-mind cleanup --dry-run
ichiro-mind cleanup --confirm

# Optimize tokens
ichiro-mind optimize

Experience Replay

# Before making similar decision
similar = mind.get_lessons(context="database_choice")
# Returns past decisions and outcomes

Entity Tracking

# Track evolving entities
mind.track_entity(
    name="兵步一郎",
    type="person",
    attributes={
        "role": "creator",
        "interests": ["AI", "automation"],
        "preferences": {"ui": "minimal", "docs": "bilingual"}
    }
)

# Update entity
mind.update_entity("兵步一郎", {"last_contact": "2026-03-07"})

🔌 MCP Integration

Add to ~/.openclaw/mcp.json:

{
  "mcpServers": {
    "ichiro-mind": {
      "command": "python3",
      "args": ["-m", "ichiro_mind.mcp"],
      "env": {
        "ICHIRO_MIND_BRAIN": "default"
      }
    }
  }
}

📊 Performance

Operation Latency Throughput
HOT recall \x3C10ms 10K ops/s
WARM recall ~100ms 1K ops/s
COLD search ~50ms 500 ops/s
ARCHIVE read ~200ms 100 ops/s
Store memory ~20ms 5K ops/s

🎯 Use Cases

  1. Long-running projects — Never lose context across sessions
  2. Complex decisions — Track decision trees and outcomes
  3. User relationships — Remember preferences, history, quirks
  4. Error prevention — Learn from mistakes, suggest alternatives
  5. Knowledge accumulation — Build up domain expertise over time

🧠 Philosophy

"Memory is not storage — it's intelligence."

Ichiro-Mind treats memory as a first-class citizen:

  • Memories have relationships
  • Memories evolve over time
  • Memories compete for attention
  • Memories decay when unused
  • Contradictions are resolved

📚 Related Skills

  • elite-longterm-memory — Foundation layer architecture
  • neural-memory — Associative graph engine
  • memory-hygiene — Cleanup and optimization
  • memory-setup — Configuration and structure

🙏 Credits

Built by 兵步一郎 (Ichiro) with love for persistent, intelligent AI memory.

Inspired by the best memory systems in the OpenClaw ecosystem.

License

MIT

Usage Guidance
This skill appears to do what it says: a local multi-layer memory system that optionally uses OpenAI embeddings and LanceDB. Before installing, consider: 1) The skill stores files under ~/.ichiro-mind and creates SESSION-STATE.md in the workspace — inspect or back up any existing files with those names. 2) It requests your OPENAI_API_KEY; embeddings (if enabled) will send content to OpenAI — avoid storing highly sensitive personal data unless you accept that. 3) The SKILL.md shows adding an MCP entry to ~/.openclaw/mcp.json so agents can call the service; review any changes you make to that file and only register the MCP server if you trust the skill. 4) The provided core code appears consistent but part of core/__init__.py is truncated; review the full IchiroMind implementation locally (especially any network calls, cloud-backup behavior, or optional lancedb/openai usage) before granting the OpenAI API key. 5) If you want extra caution, run the skill in a sandbox or test environment and keep cloud_backup disabled unless you explicitly configure a trusted backup target.
Capability Analysis
Type: OpenClaw Skill Name: ichiro-mind Version: 1.0.0 The skill bundle implements a sophisticated 4-layer memory system but contains a critical command injection vulnerability in the CLI wrapper script `scripts/ichiro-mind.sh`. The script embeds unsanitized shell variables (e.g., `$content`, `$query`) directly into Python string literals via `python3 -c`, allowing for arbitrary Python code execution if crafted input is provided. While the core logic in `core/__init__.py` and the MCP server in `mcp/server.py` appear functional and lack clear malicious intent, the presence of this RCE risk in a primary component warrants a suspicious classification.
Capability Assessment
Purpose & Capability
Name/description, config/default.json, SKILL.md, and the code align: the skill implements HOT/WARM/COLD/ARCHIVE layers, uses LanceDB (optional) and OpenAI embeddings (provider set to 'openai' in config). Requesting OPENAI_API_KEY is consistent with the declared embedding provider and the cold layer. Declared plugins (memory-lancedb) match the COLD layer design.
Instruction Scope
Runtime instructions and CLI operate on local files (creates ~/.ichiro-mind, SESSION-STATE.md in workspace, writes daily memory files) and include an example MCP registration (adding an entry to ~/.openclaw/mcp.json). The SKILL.md does not instruct broad system data collection, but the MCP integration enables the agent to call the skill programmatically; users should be aware that stored memories may be sent to the embedding provider if embeddings are enabled.
Install Mechanism
No automatic install/downloads or external archives; package.json indicates an entrypoint script and optional dependencies (openai, lancedb). The skill is instruction-and-files-only with no network-based installer, so install risk is low.
Credentials
Only OPENAI_API_KEY is required (declared in SKILL.md metadata and config references). That aligns with using OpenAI embeddings. No unrelated credentials or high-privilege environment variables are requested.
Persistence & Privilege
always is false (not force-included). The skill persists data under ~/.ichiro-mind and may be integrated into MCP by adding an entry to ~/.openclaw/mcp.json (example shown). MCP registration enables autonomous/tool-style invocation by agents (normal for skills) — this increases the blast radius if the agent has sensitive data to process, but it is coherent with the skill's purpose.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ichiro-mind
  3. After installation, invoke the skill by name or use /ichiro-mind
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Ichiro-Mind 1.0.0 – Initial Release - Introduces a unified 4-layer memory architecture (HOT, WARM, COLD, ARCHIVE) for AI agents, supporting persistent, intelligent memory. - Features neural graph-based associative memory, semantic vector search, long-term archival, and real-time state management. - Includes automated memory routing, lifecycle management, contradiction detection, and experience-based learning. - Provides memory hygiene tools for deduplication, cleanup, and token optimization. - Offers Python API, CLI tools, and MCP integration for seamless setup and advanced usage.
Metadata
Slug ichiro-mind
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Ichiro-Mind?

Ichiro-Mind: The ultimate unified memory system for AI agents. 4-layer architecture (HOT→WARM→COLD→ARCHIVE) with neural graph, vector search, experience lear... It is an AI Agent Skill for Claude Code / OpenClaw, with 349 downloads so far.

How do I install Ichiro-Mind?

Run "/install ichiro-mind" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Ichiro-Mind free?

Yes, Ichiro-Mind is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Ichiro-Mind support?

Ichiro-Mind is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Ichiro-Mind?

It is built and maintained by 兵部尚书 (@hudul); the current version is v1.0.0.

💬 Comments