Cognitive Compaction State Manager

v0.1.0

Actively monitors token utilization and executes memory compaction routines before context bloat causes failures.

1· 120·1 current·1 all-time
byThe Mooorish@elmoorish
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
The skill claims to manage token/memory compaction and includes two Python scripts that: (a) flush per-day memory logs from ~/.openclaw/workspace/memory into an archive, and (b) write compaction settings to ~/.openclaw/openclaw.json. Requiring python and touching ~/.openclaw is coherent with this purpose.
Instruction Scope
SKILL.md instructs the agent to produce a semantic summary and to run the local flush_state.py script (using a path under OPENCLAW_SKILL_DIR or default ~/.openclaw/skills/...). The scripts only read/write files under ~/.openclaw and do not access other system paths, external endpoints, or extra environment variables.
Install Mechanism
There is no formal install spec, but SKILL.md contains an 'install' line: "uv pip install pydantic". The listed dependency (pydantic) is not used by the included scripts and the "uv pip" prefix is nonstandard — this is likely unnecessary or a typo and should be clarified, but it does not itself introduce network calls in the skill files.
Credentials
The skill declares no required environment variables or credentials. The scripts use ${OPENCLAW_SKILL_DIR:-...} as an optional path expansion but do not require secrets or unrelated service tokens.
Persistence & Privilege
The skill is not always-enabled and does not request persistent elevated platform privileges. It does modify the user's OpenClaw config (~/.openclaw/openclaw.json) when configure_openclaw.py is run, which is consistent with its purpose.
Assessment
This skill appears to do what it says: archive local memory logs and (optionally) update ~/.openclaw/openclaw.json to enable compaction. Before installing or running it: (1) review and back up your ~/.openclaw directory if you care about existing logs or config (the scripts can move/rename files and create backups), (2) note the odd install line in SKILL.md ("uv pip install pydantic") — pydantic isn't used by the scripts and the command looks nonstandard, so ask the author or remove it, and (3) run the included scripts manually in a safe environment first to confirm behavior and permissions. If you want stricter assurance, request the author to remove the unused dependency line and document when configure_openclaw.py should be invoked (it is not auto-run by SKILL.md).

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

latestvk9793gd0f78wm1kjteqrte2p6583dem6

License

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

Runtime requirements

Binspython

Comments