← Back to Skills Marketplace
Smart Context Manager
by
Pedro Gonzalez
· GitHub ↗
· v1.0.3
5552
Downloads
5
Stars
42
Active Installs
3
Versions
Install in OpenClaw
/install context-manager
Description
AI-powered context management for OpenClaw sessions
Usage Guidance
Install only if you want a tool that can access and alter local OpenClaw session history. Prefer read-only summarize first, inspect the generated summary for secrets or stale instructions, and use --replace only with an explicit session key after confirming you are comfortable with local backups and summaries being stored.
Capability Analysis
Type: OpenClaw Skill
Name: context-manager
Version: 1.0.3
This OpenClaw skill is designed for AI-powered context management, including summarizing and compressing agent sessions. While it performs high-risk actions like reading and deleting agent session files (`~/.openclaw/agents/{agent}/sessions/{sessionId}.jsonl`) and interacting directly with the `openclaw agent` CLI, these actions are clearly documented in `SKILL.md` and `compress.sh` as necessary for its stated purpose. The skill includes safeguards such as backing up session files before deletion and explicitly instructing the AI agent 'Do NOT use any tools, just write the summary' in its summarization prompt, mitigating prompt injection risks. There is no evidence of data exfiltration, unauthorized remote control, persistence mechanisms, or obfuscation.
Capability Assessment
Purpose & Capability
The capabilities fit the stated purpose: listing sessions, summarizing session history, saving summaries/backups, and optionally resetting a session with compressed context.
Instruction Scope
The destructive --replace path deletes the selected session JSONL and injects a generated summary without an interactive confirmation, and missing session arguments can fall back to the most recently updated session.
Install Mechanism
There is no automatic installer or hidden install-time execution in the artifacts; runtime requirements such as jq, openclaw, and gateway access are documented.
Credentials
The script uses local OpenClaw authority and reads session files under the user's OpenClaw state directory, which is proportionate to the feature but high impact because those sessions may contain sensitive work history.
Persistence & Privilege
The skill writes AI summaries, full session backups, transcripts, and continuation files under memory/compressed, and the replacement flow deletes live session state before recreating context through openclaw agent.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install context-manager - After installation, invoke the skill by name or use
/context-manager - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.3
- Removed planning documents: IMPLEMENTATION_PLAN.md and PLAN.md.
- No changes to functionality or user interface.
- No impact on users—internal documentation cleanup only.
v1.0.1
- Initial release of the Context Manager skill for OpenClaw sessions.
- Adds AI-powered context summarization and compression to manage session size.
- Includes session listing, usage status, and threshold-based context compaction commands.
- Full backup and restoration process with output stored in memory/compressed/.
- All documentation and commands updated for OpenClaw platform.
v1.0.0-b
- Initial release of context-manager skill for Clawdbot/Moltbot.
- Adds AI-powered session summarization and compression with backup and restore.
- Includes CLI commands to list, check, summarize, and compress session context.
- Backs up original session data before destructive actions.
- Summarization uses the agent itself for accurate and context-aware results.
Metadata
Frequently Asked Questions
What is Smart Context Manager?
AI-powered context management for OpenClaw sessions. It is an AI Agent Skill for Claude Code / OpenClaw, with 5552 downloads so far.
How do I install Smart Context Manager?
Run "/install context-manager" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Smart Context Manager free?
Yes, Smart Context Manager is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Smart Context Manager support?
Smart Context Manager is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Smart Context Manager?
It is built and maintained by Pedro Gonzalez (@plgonzalezrx8); the current version is v1.0.3.
More Skills