用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/duclm1x1/Dive-Ai --skill chaos-memory命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Persistent memory system for AI agents following Model Context Protocol (MCP). Use for storing long-term memories across sessions, semantic search of past knowledge, building knowledge graphs, auto-injecting context, deduplicating memories, syncing to cloud storage. Essential for agents that need to remember decisions, solutions, preferences, and learned patterns over time.
Persistent memory system for AI agents following Model Context Protocol (MCP). Use for storing long-term memories across sessions, semantic search of past knowledge, building knowledge graphs, auto-injecting context, deduplicating memories, syncing to cloud storage. Essential for agents that need to remember decisions, solutions, preferences, and learned patterns over time.
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.
正在显示 SKILL.md
基于 SOC 职业分类
| name | chaos-memory |
| description | Hybrid search memory system for AI agents. Manual search and storage - auto-capture is opt-in only. |
| homepage | https://github.com/hargabyte/Chaos-mind |
| metadata | {"openclaw":{"emoji":"🧠","install":[{"id":"chaos-install","kind":"shell","command":"bash install.sh","label":"Install CHAOS Memory"}]}} |
Context-aware Hierarchical Autonomous Observation System
Hybrid search memory for AI agents with 4 retrieval signals:
First time? Run this to see the complete reference:
chaos-cli --help
Quick workflow:
chaos-cli search "keywords" --mode index --limit 10chaos-cli store "important fact" --category decision --priority 0.9chaos-cli list 10Token savings: Use --mode index for 90% token savings (~75 tokens/result)
More help: Run chaos help-agents for the AI-optimized reference guide.
After installation, use chaos-cli:
# Search memories
chaos-cli search "pricing decisions" --limit 5
# Store a memory
chaos-cli store "Enterprise tier: $99/month" --category decision
# List recent
chaos-cli list 10
Quick search (summary mode):
chaos-cli search "architecture patterns" --mode summary --limit 5
Fast scan (index mode, 90% token savings):
chaos-cli search "team decisions" --mode index --limit 10
Full detail:
chaos-cli search "model selection" --mode full --limit 3
Modes:
| Mode | Tokens/Result | Use Case |
|---|---|---|
| index | ~75 | Quick scan, many results |
| summary | ~250 | Balanced (default) |
| full | ~750 | Deep dive |
# Decision
chaos-cli store "Qwen3-1.7B is default model" --category decision --priority 0.9
# Core fact
chaos-cli store "Database runs on port 3307" --category core --priority 0.7
# Research finding
chaos-cli store "43x speedup with think=false" --category research --priority 0.8
Categories: decision, core, semantic, research
Priority: 0.0-1.0 (higher = more important)
chaos-cli get <memory-id>
chaos-cli list # Default 10
chaos-cli list 20 # Show 20
⚠️ DISABLED BY DEFAULT for privacy.
To enable auto-capture:
nano ~/.chaos/config/consolidator.yamlauto_capture.enabled: trueauto_capture.sourcesollama pull qwen3:1.7bchaos-consolidator --auto-capture --onceWhat it extracts: Decisions, facts, insights
What it skips: Greetings, filler, acknowledgments
Where it runs: 100% local (your machine, no external APIs)
Speed: 2.6s per message (~42s per 16-message session)
Privacy: Only processes files you explicitly configure. See SECURITY.md for details.
CHAOS Memory integrates with other tools for deeper intelligence:
What it does: Anchors memories to specific code locations and files
Why use it: Memories become context-aware - "this decision affects Auth.tsx lines 45-67"
How it works:
cx is available at startupmemory → code locationInstall Cortex:
# Cortex is a separate tool
# Install from: https://github.com/hargabyte/cortex
Example:
# Without Cortex
chaos-cli search "auth flow"
→ "Changed auth to use JWT tokens"
# With Cortex
chaos-cli search "auth flow"
→ "Changed auth to use JWT tokens"
→ 📍 Auth.tsx:45-67, middleware/auth.js:12
What it does: Links memories to tasks and issues
Why use it: Track which memories led to which tasks, decisions to implementations
How it works:
beads or beads-rust is availablememory ↔ taskInstall Beads:
# Beads is a separate task management tool
# Install from: https://github.com/hargabyte/beads
Example:
# Store memory with task reference
chaos-cli store "Need to refactor auth" --category decision --task AUTH-123
# Search shows related tasks
chaos-cli search "auth refactor"
→ "Need to refactor auth"
→ 📋 Task: AUTH-123 (In Progress)
When all three tools work together:
chaos-cli search "performance optimization"
→ Memory: "Added Redis caching layer"
→ 📍 Code: cache/redis.js:34-89
→ 📋 Task: PERF-042 (Completed)
→ 🔗 Related: 3 other memories, 2 code files, 1 PR
Status Detection:
[OPT] Cortex Engine: FOUND)[OPT] Beads Task Manager: FOUND)chaos-mcpDefault config location: ~/.chaos/config/consolidator.yaml
# Auto-capture is DISABLED by default
auto_capture:
enabled: false # Change to true after configuring paths
sources: [] # Add your session paths here
# Example (uncomment after reviewing):
# sources:
# - ~/.openclaw-*/agents/*/sessions/*.jsonl
qwen:
model: qwen3:1.7b # Locked default
chaos:
mode: mcp
mcp:
env:
CHAOS_DB_PATH: "~/.chaos/db"
| Variable | Default | Description |
|---|---|---|
CHAOS_HOME | ~/.chaos | Installation directory |
CHAOS_DB_PORT | 3307 | Database port |
CHAOS_MODEL | qwen3:1.7b | Extraction model |
The install script handles dependencies automatically.
Command not found:
export PATH="$HOME/.chaos/bin:$PATH"
Database error:
cd ~/.chaos/db && dolt sql-server --port 3307 &
No results:
chaos-cli list # Check if memories exist
Data Storage: All memories stored locally on your machine (~/.chaos/db)
Auto-Capture (Opt-In):
~/.chaos/config.yamlauto_capture.sourcesPermissions:
~/.chaos/db)Control:
# View what auto-capture will process (dry-run)
chaos-consolidator --auto-capture --once --dry-run
# Disable auto-capture
# Edit ~/.chaos/config.yaml:
# auto_capture:
# enabled: false
# Or simply don't configure session paths
Transparency:
install.sh)dolt sql)Version 1.0.0 | Created by HSA Team