← Back to Skills Marketplace
plgonzalezrx8

Smart Context Manager

by Pedro Gonzalez · GitHub ↗ · v1.0.3
cross-platform ⚠ suspicious
6324
Downloads
5
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install context-manager
Description
AI-powered context management for OpenClaw sessions
Usage Guidance
Install only if you are comfortable with a local script reading OpenClaw session history, saving plaintext summaries/backups, and in --replace mode deleting live session files. Avoid using --replace on Slack, cron, group, or sensitive sessions unless the destination behavior is fixed or manually verified, and review generated summaries for secrets before reuse.
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
⚠ Credentials
OpenClaw CLI access and session files are relevant to context management, but broad selected-session access plus fixed main-session injection, plaintext archival under `memory/compressed/`, and no enforced file permissions or retention controls are overbroad for sensitive conversation data.
ℹ Install Mechanism
No remote payload retrieval, dependency installation script, service registration, or tool hijacking was found; the package contains a user-invoked executable shell script and config file. The shell script has CRLF line endings and failed `bash -n` in this environment, which is a reliability issue rather than a security control.
⚠ Instruction Scope
SKILL.md does disclose backup, JSONL deletion, injection, output files, and labels --replace as destructive, but the script help and comments understate the reset/delete behavior, there is no confirmation prompt before deletion, and summaries are reinjected as continuation context without a clear untrusted-data boundary or redaction rule.
⚠ Persistence & Privilege
The skill does not install cron jobs or system persistence, but it deliberately creates durable summaries, transcripts, continuation files, and full JSONL backups, updates config state, and can delete primary session state during --replace.
⚠ Purpose & Capability
The stated purpose is coherent with listing sessions, summarizing context, and reducing session history, but the implementation accepts arbitrary session keys, reads OpenClaw session JSONL files, stores summaries/transcripts/backups, deletes the selected live JSONL in --replace mode, and then injects the summary with a fixed `openclaw agent --to main` destination rather than clearly recreating the selected session.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install context-manager
  3. After installation, invoke the skill by name or use /context-manager
  4. 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
Slug context-manager
Version 1.0.3
License —
All-time Installs 0
Active Installs 0
Total Versions 3
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 6324 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.

💬 Comments