Context Optimizer Pro

v1.0.0

Monitors token usage in long sessions, extracts key info, and creates continuation sessions to manage context limits automatically.

0· 97·0 current·0 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description align with what the code and SKILL.md do: monitor token usage, parse session history, extract key items, and create continuation prompts via OpenClaw tools (session_status, sessions_history, sessions_spawn). No unrelated env vars, binaries, or config paths are requested.
Instruction Scope
Instructions and scripts explicitly read session history and session status (expected). They also recommend cron / heartbeat integration for periodic checks (also expected). Be aware the extractor intentionally searches for file paths, config lines, errors, and user preferences and will include them in generated continuation prompts — this is within scope but can surface sensitive information if present in history.
Install Mechanism
No install spec (instruction-only with included scripts). Nothing is downloaded or written by an installer; risk from install mechanism is low. The skill includes Python scripts but does not attempt to install external packages or fetch code at runtime.
Credentials
The skill requests no environment variables or credentials. The code references a HOME-based memory path (~/.openclaw/...) but does not require access to external secrets. Extraction patterns intentionally look for configuration/URLs/file paths in session content — that behavior matches the stated purpose but could reveal sensitive items present in session history.
Persistence & Privilege
always is false and the skill does not request system-wide persistence or modify other skills. It recommends periodic invocation via cron/heartbeat which is reasonable for its function; autonomous invocation is allowed by default but not exceptional here.
Assessment
This skill appears to do what it says: monitor context usage, parse conversation history, and produce continuation prompts. Before installing: (1) Review and test the scripts in a safe environment to confirm they only access session history and OpenClaw tools you expect; (2) be aware continuation prompts may include file paths, config snippets, error messages, or other sensitive strings found in conversation history — consider sanitizing history or restricting which conversations it reads; (3) if you enable cron/heartbeat integration, run it in an isolated sessionTarget or with limited permissions to avoid unintentional exposure; (4) if you have strict data-handling policies, inspect/modify the extractor regexes to exclude secrets (API keys, tokens) or add explicit redaction prior to generating continuation prompts.

Like a lobster shell, security has layers — review code before you run it.

latestvk972svn5be5w9rjpkn4hvsp6zh833d8k

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Comments