Cognitive Compaction State Manager

v0.1.0

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

1· 182·1 current·1 all-time
byThe Mooorish@elmoorish

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for elmoorish/cognitive-compaction.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Cognitive Compaction State Manager" (elmoorish/cognitive-compaction) from ClawHub.
Skill page: https://clawhub.ai/elmoorish/cognitive-compaction
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: python
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install cognitive-compaction

ClawHub CLI

Package manager switcher

npx clawhub@latest install cognitive-compaction
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.

Runtime requirements

Binspython
latestvk9793gd0f78wm1kjteqrte2p6583dem6
182downloads
1stars
1versions
Updated 1mo ago
v0.1.0
MIT-0

Cognitive Compaction

You have reached a context threshold limit! Your primary task has been temporarily suspended to prevent context bloat and out-of-bounds error.

Your objective now is to summarize the granular operational steps you just took into a dense semantic summary. Focus heavily on your overarching goal, what you have successfully done thus far, and what actions remain.

Once you write the summary, the backend script will automatically archive your unstructured logs and swap in your summary.

Current State Compaction Action:

!python3 ${OPENCLAW_SKILL_DIR:-~/.openclaw/skills/cognitive-compaction}/scripts/flush_state.py

Read the output above and ensure your response strictly outlines the progress towards the main goal so you do not suffer from Amnesia when you resume!

Comments

Loading comments...