← 返回 Skills 市场
AGI记忆模组
作者
kiwifruit13
· GitHub ↗
· v1.0.10
· MIT-0
197
总下载
0
收藏
0
当前安装
6
版本数
在 OpenClaw 中安装
/install memory-and-context-engineering
功能描述
用户与模型之间的任何交互行为都可触发;提供Context Engineering五大核心能力(选择、压缩、检索、状态、记忆)及认知模型层支持;作为元技能强制常驻运行
安全使用建议
This skill is a large, full-featured agent memory system and mostly does what its description says — but treat it as high-impact. Key things to consider before installing: (1) always: true means it will be force-resident and can run on every agent invocation — only install if you understand and accept that. (2) Review credential_manager, encryption, and credential_path logic: check how keys are generated/stored and whether any secrets could be written to disk or exfiltrated. (3) Verify the consent flow in PrivacyManager is actually enforced before any memory persistence occurs (SKILL.md delegates consent presentation to the agent). (4) If you plan to run it, sandbox it (isolated environment, limited file access), set storage_base_path to an audited directory, and ensure Redis/other backends are configured to trusted hosts only. (5) Prefer installing from a known, signed source or request provenance/maintainer details; if you cannot audit the code, do not enable it as always-resident. Providing the maintainer identity, a short audit of credential_manager/encryption code (how keys are stored and rotated), and confirmation that no external endpoints are contacted by default would increase confidence.
功能分析
Type: OpenClaw Skill
Name: memory-and-context-engineering
Version: 1.0.10
The 'memory-and-context-engineering' skill bundle is a comprehensive and well-architected memory infrastructure for AI agents. It implements a sophisticated four-layer system (Orchestrator, Coordination, Storage, and Infrastructure) designed to manage agent context, cognitive modeling, and long-term memory. Key security features include a PrivacyManager (scripts/privacy.py) for user consent and sensitive data detection, a PermissionBoundaryController (scripts/permission_boundary_controller.py) for access control and data redaction, and a CredentialManager (scripts/credential_manager.py) that utilizes AES-256-GCM encryption for local storage. The code follows modern Python best practices, using Pydantic for data validation and standard libraries for infrastructure (Redis, Tiktoken). No evidence of malicious intent, data exfiltration, or unauthorized execution was found; the 'always: true' resident status is appropriate for its role as a foundational meta-skill.
能力标签
能力评估
Purpose & Capability
Name/description match the included code: many modules implement short/long-term memory, orchestrator, compression, retrieval, encryption, credential manager and privacy. The presence of credential_manager, encryption, and permission_boundary_controller is plausible for a memory system, but those components increase sensitivity and deserve explicit justification; the package does not request any external credentials in registry metadata despite having credential-management code and a credential storage path in SKILL.md.
Instruction Scope
SKILL.md instructs the agent to persist conversation history, capture global state, integrate with agent loops, and set up local storage paths (including a credential storage path). It requires the agent to present and collect user consent but places the responsibility on the agent; this introduces a risk that memory storage could be enabled or misused without an audited consent flow. The instructions also recommend ContextOrchestrator as the unified entrypoint, granting it broad control over memory and state—consistent with purpose but high impact.
Install Mechanism
No install spec in registry (instruction-only), but SKILL.md lists Python dependencies (pydantic, cryptography, redis, tiktoken, mmh3) and gives pip install instructions. Dependencies are plausible for this functionality and come from common PyPI packages; no remote downloads or obscure installers are used in the manifest.
Credentials
The skill declares no required env vars or primary credential, which is conservative. However, the codebase contains a CredentialManager, encryption/key management, Redis adapter, and explicit credential storage paths; these imply it can store and handle secrets locally and connect to external stores if configured. The lack of declared required credentials is not itself malicious but means you should inspect how credentials are created, stored, and protected before use.
Persistence & Privilege
always: true is set and the SKILL.md explicitly describes the skill as a 'meta-skill, forced resident.' A resident memory system with autonomous invocation plus capabilities to capture global agent state, subscribe to events, and persist conversation/state amplifies impact. This persistent presence combined with credential management and state-capture features increases blast radius if misconfigured or malicious.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install memory-and-context-engineering - 安装完成后,直接呼叫该 Skill 的名称或使用
/memory-and-context-engineering触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.10
### 1.0.10 · Major structural upgrade & documentation expansion
- Introduced a four-layer architecture with clear separation between control, cognitive, implementation (dual-track), and storage layers; `ContextOrchestrator` as the unified entry point.
- Refined "压缩" logic to cover five chain types (causal, logic, operation, narrative, time); added advanced context compression and result fusion strategies.
- Added over 30 reference and implementation files, including best practices, troubleshooting, and detailed dual-track/chain logic modules.
- Enhanced privacy consent process: explicit agent-side consent handling; clarified process in documentation.
- Improved modularity, expandability, and API robustness; updated interfaces for type safety, error handling, and customization.
- Expanded and reorganized documentation for architecture, usage examples, API reference, error handling, and integration guides.
v1.0.9
- 添加 GPL-3.0 开源许可证和作者信息,明确版权政策
- 新增默认用户记忆文件 memory_storage/default_user_memory.json
- 丰富并细化 SKILL.md 文档说明,新增「Skill 定位」「运行说明」等内容
- 增加 references/architecture_execution_model.md 文档导航,补充执行模型说明
- 优化部分描述与表述,使模块职责、调用关系、集成方式更清晰
- 代码与文档结构细节调整,确保类型安全、入口统一等设计约束
v1.0.8
**Summary:**
Major refactor with expanded modularity, new core scripts, enhanced documentation, and improved reference navigation.
- Added 15 new script and reference files, including advanced agent loop docs and specialized scripts (e.g., bloom filter, cache management, monitoring, progressive compression, smart allocation).
- Removed and replaced 3 legacy files, streamlining type and guide definitions.
- Updated and clarified the documentation structure, with detailed capability sections, improved resource indexing, and step-by-step modular usage.
- Expanded dependency list (added mmh3) for enhanced performance and new algorithm support.
- Consolidated and reorganized all usage steps, unified entrypoints, and bolstered privacy/configuration guidance.
- Comprehensive new FAQ and usage notes added for easier onboarding and troubleshooting.
v1.0.7
## 1.0.7 Changelog
- Added a new API class reference document at `references/api_class_reference.md`.
- No changes to core logic or dependencies.
- Documentation improvements only; feature set remains unchanged.
v1.0.6
Version 1.0.6
- Added open source license file (LICENSE) with GNU Affero General Public License v3.
- Updated documentation to include license statement at the top.
- No changes to functionality or code—documentation and legal/compliance update only.
v1.0.5
- Initial release of agent-memory, providing foundational memory infrastructure for intelligent agents.
- Fully implements the five core capabilities of Context Engineering: selection, compression, retrieval, state, and memory management.
- Cognitive model layer supports model building, causal chain extraction, knowledge gap identification, retrieval decisions, quality evaluation, state consistency validation, state inference, cross-session linkage, and forgetting mechanism.
- Designed as a meta-skill to always run in the background (always: true).
- Comprehensive usage instructions and examples provided in the documentation for step-by-step integration.
元数据
常见问题
AGI记忆模组 是什么?
用户与模型之间的任何交互行为都可触发;提供Context Engineering五大核心能力(选择、压缩、检索、状态、记忆)及认知模型层支持;作为元技能强制常驻运行. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 197 次。
如何安装 AGI记忆模组?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install memory-and-context-engineering」即可一键安装,无需额外配置。
AGI记忆模组 是免费的吗?
是的,AGI记忆模组 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
AGI记忆模组 支持哪些平台?
AGI记忆模组 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 AGI记忆模组?
由 kiwifruit13(@kiwifruit13)开发并维护,当前版本 v1.0.10。
推荐 Skills