← Back to Skills Marketplace
Tiered Context Manager
by
Scorpioxyb
· GitHub ↗
· v1.0.0
· MIT-0
83
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install tiered-context-manager
Description
多Agent协作的智能会话上下文管理系统。当需要管理AI agent的长会话压缩、多层记忆分层、跨Agent知识共享时激活。支持L1/L2/L3分层压缩、实时监控、统计分析。用于OpenClaw agent的上下文管理优化。
Usage Guidance
This package implements what it claims (tiered compression and cross-agent sharing) but contains several red flags you should consider before installing or running it:
- Hard-coded absolute paths: many scripts use Windows-specific paths (e.g. E:\\zhuazhua\\...) to read/write sessions, inbox, shared memory, stats and reports. If your environment has such paths mounted those files will be read/written; if not the scripts may fail. Ask the author or replace these with configurable paths before use.
- Unfiltered extraction & publishing: cross_agent_context extracts 'preferences', 'technical', 'commands', 'paths' from session content and appends them to a shared knowledge file. That can leak secrets, config values, or file paths from sessions to other agents. Do not run against sessions that may contain secrets until you audit and restrict extraction rules and output destinations.
- File modification & cleanup: memory_tiering can rewrite file frontmatter, move files to an archive, or delete expired ephemeral files. Back up any workspace before running or run in an isolated sandbox.
- Loading OpenClaw runtime by path: index.js uses require.resolve and then requires a specific dist filename (compact.runtime-C0J2-J-T.js). This is brittle and unusual; verify what that file is and prefer documented APIs instead of importing a specific build artifact.
- Run in a sandbox first: execute the scripts in a controlled environment with non-sensitive data and override default directories to a temporary location. Search the codebase for all occurrences of absolute paths and for any file-deleting operations. If you intend to use it in production, require the author to make paths configurable and to add filtering/whitelisting of extracted content, and provide documentation about what is written to disk.
What would increase confidence: a version that exposes configurable directories (no hard-coded absolute paths), documents and limits what is extracted/published, and uses documented OpenClaw APIs rather than requiring specific dist filenames. If the author provides a config/default.json that clearly maps default storage to a safe sandboxed directory, and demonstrates tests showing no sensitive data is published, the assessment could move toward benign.
Capability Analysis
Type: OpenClaw Skill
Name: tiered-context-manager
Version: 1.0.0
The tiered-context-manager bundle is a sophisticated system for managing AI session history through multi-level compression (L1/L2/L3) and memory tiering. While the code makes extensive use of local file system operations (reading/writing sessions and memory files) and includes hardcoded Windows-specific paths (e.g., 'E:\zhuazhua\...'), these behaviors are consistent with its stated purpose of optimizing OpenClaw agent context. There is no evidence of data exfiltration, network communication, or malicious prompt injection; the 'L3' compression logic uses the agent's own capabilities to summarize its history locally. The dynamic module loading in index.js appears to be a deep integration with the host application's internal runtime rather than an obfuscation technique.
Capability Assessment
Purpose & Capability
Name/description (tiered context compression, cross-agent sharing) align with the included code: modules implement L1/L2/L3 compression, memory tiers, cross-agent publishing, stats and monitoring. However the code assumes and manipulates local workspace/shared directories (many hard-coded absolute Windows paths like "E:\\zhuazhua\\..."), which is not declared in SKILL.md or the skill metadata. Those filesystem assumptions are not intrinsic to the stated high-level purpose and create a risk surface that a user would not expect from the description alone.
Instruction Scope
SKILL.md shows running node scripts and calling engine.compact(sessionFile). The scripts actually read arbitrary session files, extract potentially sensitive technical/config information, append/publish that extracted data into shared knowledge files, and can overwrite/migrate/cleanup memory files. The runtime instructions do not warn about these side effects or the default directories used, nor do they limit or filter extracted content — so the agent could read and publish secrets or local config data.
Install Mechanism
There is no install spec (instruction-only), which is lower-risk in terms of fetching remote code. However the package includes many executable scripts that will be run locally. No external downloads are performed, but the code will attempt to require a specific OpenClaw dist file using a hard-coded filename — that behavior can fail or load unexpected runtime code if the environment contains that path/file.
Credentials
The skill declares no env vars or credentials, yet the code aggressively reads and writes to local filesystem locations (workspace, shared memory, inbox, reports) and can move/delete files (cleanup/migrate). It also extracts technical items (paths, commands, config) from sessions and writes them to shared knowledge files, which is disproportionate and can lead to exfiltration of sensitive content despite no credentials being requested.
Persistence & Privilege
The skill is not marked always:true and uses the standard plugin register flow (index.js calls api.registerContextEngine). That is expected for a context engine. Still, index.js resolves a specific file inside the installed openclaw package (a particular dist filename), which is unusual and worth reviewing because it loads implementation code by path rather than a documented API. The skill does not explicitly alter other skills' configurations, but its filesystem operations may affect agent state and stored session files.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install tiered-context-manager - After installation, invoke the skill by name or use
/tiered-context-manager - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of tiered-context-manager, an intelligent multi-agent conversation context management system.
- Supports tiered context compression (L1, L2, L3) for long conversations.
- Implements memory tiering: Persistent, Normal, and Ephemeral memory layers.
- Enables cross-agent knowledge sharing, inbox task queue, and conflict avoidance.
- Provides real-time monitoring, statistical analysis, and reporting tools.
- Modular design with configurable thresholds and multiple entry points for compression and management.
Metadata
Frequently Asked Questions
What is Tiered Context Manager?
多Agent协作的智能会话上下文管理系统。当需要管理AI agent的长会话压缩、多层记忆分层、跨Agent知识共享时激活。支持L1/L2/L3分层压缩、实时监控、统计分析。用于OpenClaw agent的上下文管理优化。 It is an AI Agent Skill for Claude Code / OpenClaw, with 83 downloads so far.
How do I install Tiered Context Manager?
Run "/install tiered-context-manager" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Tiered Context Manager free?
Yes, Tiered Context Manager is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Tiered Context Manager support?
Tiered Context Manager is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Tiered Context Manager?
It is built and maintained by Scorpioxyb (@scorpioxyb); the current version is v1.0.0.
More Skills