En

AGI记忆模组

A meta-skill for building comprehensive memory and context engineering capabilities for AI agents

开发流程 存储长期记忆分析AI会话追踪AI会话管理对话历史 通用 ★ 1.1k Updated 2026-08-02

Install & Use

Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:

Help me install this AI Skill: AGI记忆模组.
It is used for: A meta-skill for building comprehensive memory and context engineering capabilities for AI agents
Full Skill content: https://321skill.com/skills/agent-memory-context-3/raw/index.md
Read that page and install it.

The prompt includes a link to the full Skill content. You can also view the full content.

This Skill addresses the lack of persistent memory and context management capabilities in AI agents during long conversations, cross-session interactions, and complex tasks. In practical development, developers often face pain points such as models forgetting key information from previous discussions, inability to maintain consistent state across multiple interactions, and content loss due to exceeding Token budgets. This skill provides five core capabilities of Context Engineering—Selection, Compression, Retrieval, State, and Memory—and incorporates a built-in cognitive model layer. As a meta-skill, it runs persistently in the background, ensuring memory management is automatically triggered in every interaction.

Usage is straightforward: simply install this skill as a meta-skill into your AI agent, and all interactions with the model will automatically trigger it. You can then use natural language commands to store long-term memories, retrieve historical conversations, compress redundant context, track task progress, and correlate information across sessions. The system automatically performs noise filtering, chain structure extraction, result re-ranking, and conflict detection without manual intervention. Developers can also directly call the unified ContextOrchestrator entry point for fine-grained control.

It is particularly suitable for agent development teams building long-term memory systems, especially those already deploying AI customer service, personal assistants, code assistant agents, and other scenarios requiring continuous dialogue capabilities. Product managers and full-stack developers can also benefit from it for managing project context, tracking requirement changes, and synchronizing team progress. For applications that need to handle large volumes of historical sessions while maintaining state consistency—such as e-commerce after-sales automation, customer support, and educational tutoring—this skill serves as core infrastructure.

It is recommended to prioritize installing this skill during agent initialization and configure a Redis connection to optimize retrieval performance. Note that it primarily relies on a Python environment and requires installing dependencies such as pydantic, cryptography, redis, and tiktoken. Storage paths should be planned in advance to avoid memory overflow. As a meta-skill, it runs continuously in the background, monitoring Token consumption and retrieval efficiency; regularly check logs to adjust parameters.

Key Features

Unlike standard memory plugins (e.g., LangChain's ConversationBufferMemory), it provides integrated orchestration of five core capabilities, incorporates a built-in cognitive model layer and a dual-track architecture (semantic bucket refinement + chain extraction), and supports five chain types—causal, logical, operational, narrative, and temporal—going beyond simple storage and playback.

Limitations

Requires Python 3.8+ and libraries such as pydantic>=2.0.0 and redis>=4.5.0. Redis is optional but recommended; retrieval performance may degrade if Redis is not configured. As a mandatory persistent meta-skill, it consumes a portion of the Token budget and system resources.

FAQ

How do I install this skill?

Install via the ClawHub platform using the command: `clawhub install agi记忆模组-x-9`, then install Python dependencies: `pip install pydantic>=2.0.0 typing-extensions>=4.0.0 cryptography>=41.0.0 redis>=4.5.0 tiktoken>=0.5.0 mmh3>=3.0.0`.

Does this skill consume a lot of Tokens?

As a meta-skill, it runs continuously, but includes built-in Token budget management with configurable compression strategies and retrieval thresholds. By default, memory operations are triggered only when necessary. It is recommended to adjust the `max_tokens` parameter based on your specific use case.

Installation guide for AI assistants

If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:

Visit https://321skill.com/skills/agent-memory-context-3/raw/index.md to read the original Skill definition (Markdown format) for AGI记忆模组, and install it according to the instructions.