7M Seven-Layer Memory System
Paste the following prompt into your AI chat to install this skill:
Please install @user_85f1862d/seven-memory using https://skillhub.cn/install/skillhub.md.
About this skill
Problem
Long agent sessions often fail because context grows too fast. Large read, test, or build outputs can consume the window before useful state is recorded, forcing expensive summarization or losing user preferences and subagent results. 7M treats memory as a layered defense, letting low-cost actions block higher-cost ones.
How It Works
The skill activates seven layers by trigger:
- L1 Tool Result Storage: writes large outputs to disk and keeps a preview, reducing context pressure.
- L2 Micro Compact: cleans stale tool results when idle, without calling an LLM.
- L3 Session Memory: maintains incremental task state across multi-turn work.
- L4 Full Compact: summarizes context when overflow occurs and session memory is unavailable.
- L5 Auto Memory Extraction: captures user feedback, preferences, and patterns.
- L6 Dream: consolidates memory in the background during idle periods.
- L7 Cross-Agent Communication: shares state for subagents and multi-agent workflows.
Boundaries
This is a memory and context-management policy, not a complete agent framework. Full Compact depends on model summarization, and Cross-Agent adds coordination overhead. It is most useful for long programming tasks, multi-turn sessions, subagent collaboration, and setups where prompt-cache preservation matters.
Use Cases
- When multi-turn debugging approaches context overflow, preserve task state before triggering full LLM compaction.
- When large file reads or build logs consume the window, store results to disk with a preview.
- After subagents finish, pass shared memory and task state to later agents to avoid repeated reads.
- During idle periods, consolidate preferences and long-term memory in the background.
Best For
- Engineers debugging long-running agents who need to control context growth and compaction cost.
- Developers using OpenCode for multi-turn coding who need task state and user preference persistence.
- Platform engineers building multi-agent workflows who need shared memory and reduced coordination overhead.
- Engineers maintaining prompt-cache-sensitive applications who need compaction decisions to respect cache impact.
Related Skills
Provides Claw with character-library selection, switching, saving, and global SOUL.md style sync for role-based conversation.
An AIONE Agentic AI Infrastructure SDK wrapper for building production AI agents with memory, skills, workflows, and hooks.
A Python/TypeScript SDK wrapper for the DeepSeek-Reasonix native AI coding agent, with prefix-cache support.
A browser automation tool for analysts, operators, and developers that locates elements, fills forms, extracts structured content, and supports no-code scheduling and export.