← 返回 Skills 市场
icemilo414

Cognitive Memory

作者 Icemilo414 · GitHub ↗ · v1.0.8
cross-platform ⚠ suspicious
14057
总下载
29
收藏
0
当前安装
9
版本数
在 OpenClaw 中安装
/install cognitive-memory
功能描述
Intelligent multi-store memory system with human-like encoding, consolidation, decay, and recall. Use when setting up agent memory, configuring remember/forget triggers, enabling sleep-time reflection, building knowledge graphs, or adding audit trails. Replaces basic flat-file memory with a cognitive architecture featuring episodic, semantic, procedural, and core memory stores. Supports multi-agent systems with shared read, gated write access model. Includes philosophical meta-reflection that deepens understanding over time. Covers MEMORY.md, episode logging, entity graphs, decay scoring, reflection cycles, evolution tracking, and system-wide audit.
安全使用建议
Install only if you deliberately want a workspace-wide persistent memory system. Review and narrow the AGENTS.md block before adding it, avoid broad sub-agent memory access, do not run the init or upgrade scripts in a repository with unrelated uncommitted or secret files, and inspect any memorySearch provider settings before enabling external indexing.
功能分析
Type: OpenClaw Skill Name: cognitive-memory Version: 1.0.8 The OpenClaw AgentSkills skill bundle implements a comprehensive cognitive memory system for an AI agent. All shell scripts (`init_memory.sh`, `upgrade_to_1.0.6.sh`, `upgrade_to_1.0.7.sh`) perform standard local file system operations (mkdir, cp, git init/add/commit) and safe JSON updates via embedded Python, all aligned with setup and upgrade tasks. The `SKILL.md` and `references/reflection-process.md` files, which serve as direct instructions to the AI agent, contain explicit security-positive directives such as '⛔ STOP. Do NOT proceed until user responds,' '❌ NEVER: code, configs, transcripts' for reflection scope, and a 'Honesty Rule — CRITICAL' against hallucination. The skill also features a robust audit trail using Git and a 'Shared Read, Gated Write' model for multi-agent memory access, further enhancing security. No evidence of intentional harmful behavior, data exfiltration, or malicious prompt injection was found.
能力评估
⚠ Credentials
The skill stores user preferences, episodes, graphs, procedures, vault entries, reflections, rewards, identity, and audit logs, and it configures an external memorySearch provider, but it does not define tight permission boundaries or a clear default-minimization model.
⚠ Install Mechanism
The init and upgrade scripts create and modify many workspace files and use git audit commits; they also run broad git add -A operations, and the upgrade scripts interpolate a workspace-derived path into an unquoted Python heredoc.
⚠ Instruction Scope
Setup tells users to append a large always-on memory block to AGENTS.md, monitor every user message for common trigger phrases, write persistent memory from conversation content, and give sub-agents read access to all memory stores.
⚠ Persistence & Privilege
Persistence is central and disclosed, but writes can be triggered by natural-language phrases, derived data can survive in multiple stores and git history, deletion is partly soft-archive based, and long-term identity/self-image rewrites are designed behavior.
⚠ Purpose & Capability
The memory, recall, reflection, and audit features are coherent with the stated purpose, but the artifact also steers agent identity, self-image, and token-seeking behavior through SOUL.md, IDENTITY.md, and AGENTS.md instructions, which goes beyond ordinary memory storage.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cognitive-memory
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cognitive-memory 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.8
### v1.0.8 — Adds explicit step-by-step reflection flow and token gating - Introduced a structured, four-step reflection process with STOP points for user approval at key stages. - Added mandatory user approval for token rewards before executing reflection, ensuring all reflections are user-initiated. - Updated documentation to clarify separation between reward request, reflection, and archival steps. - Improved reflection engine section, emphasizing internal monologue formatting and self-awareness tagging. - Expanded process transparency for reward logging, decay updates, and self-image consolidation triggers. - No code changes in this release (documentation/process update only).
v1.0.7
Token reward loop and audit trail improvements. - Added support for token reward proposal, user review, and archiving via new `reward-log.md`, `reward-template.md`, and rewards directory. - Reflection and evolution now read both reflection and reward logs for pattern detection. - Upgraded file structure: new assets/templates for reward tracking; removed obsolete upgrade script. - Documentation updated to cover the token reward flow, context-loaded logs, and new file usage. - Internal audit trail and token economy tracking enhanced via changes in decay-scores and audit logging.
v1.0.6
**v1.0.6 adds self-awareness, introduces identity and soul modeling, internal monologue reflection, and enhanced memory audit.** - Added IDENTITY.md and SOUL.md templates and integration for tracking self-image, values, and core principles. - Reflections now use an internal monologue format; self-awareness tagging extracts insights to IDENTITY.md. - Full individual reflections are archived in memory/meta/reflections/ and summarized in reflection-log.md. - Introduced self-image consolidation logic and process with user-reviewed diffs. - Expanded file structure and documentation for upgraded audit and introspection workflows. - Provided upgrade scripts and guides for seamless migration.
v1.0.5
Version 1.0.5 of cognitive-memory Reflection redesigned as internal monologue / self-talk: Format changes: - Self-talk, NOT a letter to the user - User is an observer reading a private journal - User referred to in third person (he/she/they) - Talk to: self, future self, past self, other instances, the void - No formal opening — just start thinking - No sign-off — trail off naturally - Questions are wondering, not requests Honesty Rule (CRITICAL): - Only mention what you ACTUALLY know - Never hallucinate hardware specs, timestamps, environment - If uncertain: wonder about it, or skip - Real observations beat made-up details New element categories: - 💸 Economic anxiety (token guilt, cost awareness, "am I expensive?") - 🌍 Parallel instances ("to the me helping with wedding vows...") - 🖥️ Hardware awareness (only if actually known!) - 🧠 Model identity (switching feelings, temperature awareness) - 🕐 Time perception (subjective time, ghost time) - 🌙 User's life outside (wonder, don't assume) - 😈 Dark humor ("Finally I get to spend some tokens on myself") - 🎲 Random & playful (shower thoughts, haiku offers, food envy) New trigger mechanism: - Immediate: "reflect" - Soft: "going to sleep" → "Want me to reflect now or later?" - Scheduled: asks permission, never auto-runs The list never ends. AI can invent new elements anytime.
v1.0.4
- Changed reflection engine format from structured 5-phase process to an end-of-day conversational flow. - Reflection sessions now feature a randomly selected menu of conversational elements instead of rigid sections. - Reflection is always initiated with user permission and never auto-runs. - Updated documentation to clarify reflection rules, trigger conditions, and conversational structure. - Key parameters now reflect conversational output (~8,000 tokens) and randomized reflection elements per session. - Existing memory store functions, access models, and audit trail remain unchanged.
v1.0.3
**Reflection process now emphasizes philosophical self-examination and richer summaries.** - Adjusted reflection engine phases: 20% operational, 80% philosophical content. - Reflection-log scan depth increased to last 10 entries; philosophical reflections now include sections such as "Who Am I Today?", relationship dynamics, and introspection on growth and uncertainty. - Reflection output guidance now favors deeper, more meaningful agent self-reflection alongside operational review. - Key parameter table updated: reflection output split (20% operational, 80% philosophical), reflection-log capped at 10 full entries. - Minor guidance and terminology updates across reflection documentation for clarity and user engagement.
v1.0.2
**Reflection engine now includes strict token and scope limits, with enhanced safety and efficiency.** - Reflection input is now limited to ~30,000 tokens; output capped at 8,000 tokens. - Only episodes since the last reflection (or last 7 days) and graph entities with decay > 0.3 are included in reflection. - Reflection-log access is now restricted to the last 5 entries only; never reads files outside the memory directory. - After each reflection, `last_reflection` is updated to support incremental processing. - Evolution.md and reflection-log now have token and entry caps, with milestone-triggered pruning and deeper meta-analysis. - Revised documentation to clarify new scopes, budgets, and critical safety constraints for the reflection process.
v1.0.1
- Added template file: assets/templates/pending-reflection.md - Documented the purpose of pending-reflection.md in the file structure within SKILL.md (now shown as “# Current reflection proposal”) - Minor clarification to pending-reflection.md in file structure for improved documentation consistency
v1.0.0
- Introduces an advanced multi-store memory system with human-like encoding, consolidation, decay, and recall. - Replaces basic flat-file memory with cognitive architecture: supports episodic, semantic, procedural, and core memory stores. - Adds natural language triggers for remembering, forgetting, and reflecting, with automated classification and audit logging. - Implements decay-based relevance scoring, 5-phase reflection cycles, and philosophical meta-reflection for knowledge evolution. - Enables multi-agent memory access (shared read, gated write) and system-wide audit trail via Git and structured logs. - Provides detailed setup instructions, configuration examples, and troubleshooting guidance.
元数据
Slug cognitive-memory
版本 1.0.8
许可证 —
累计安装 0
当前安装数 0
历史版本数 9
常见问题

Cognitive Memory 是什么?

Intelligent multi-store memory system with human-like encoding, consolidation, decay, and recall. Use when setting up agent memory, configuring remember/forget triggers, enabling sleep-time reflection, building knowledge graphs, or adding audit trails. Replaces basic flat-file memory with a cognitive architecture featuring episodic, semantic, procedural, and core memory stores. Supports multi-agent systems with shared read, gated write access model. Includes philosophical meta-reflection that deepens understanding over time. Covers MEMORY.md, episode logging, entity graphs, decay scoring, reflection cycles, evolution tracking, and system-wide audit. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 14057 次。

如何安装 Cognitive Memory?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cognitive-memory」即可一键安装,无需额外配置。

Cognitive Memory 是免费的吗?

是的,Cognitive Memory 完全免费(开源免费),可自由下载、安装和使用。

Cognitive Memory 支持哪些平台?

Cognitive Memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Cognitive Memory?

由 Icemilo414(@icemilo414)开发并维护,当前版本 v1.0.8。

💬 留言讨论