Install
openclaw skills install context-assemblerDynamic context preprocessor for OpenClaw agents. Selects relevant memory, collapses timelines, detects forbidden patterns, and injects task-specific context before agent reasoning. Reduces context noise by up to 89% while improving output quality. Use when you want smarter, more focused agent behavior without changing any prompts.
openclaw skills install context-assemblerNot a tool for agents — a preprocessor for their context window.
OpenClaw injects ~3700 tokens of static bootstrap context into every session, regardless of the task. Context Assembler reduces that to ~400 tokens of task-relevant information, achieving 89% context compression without quality loss.
Task arrives → Classify → Semantic Projection → Timeline Collapse → Forbidden Patterns → Pack → Agent reasons
Karpathy's "Context Engineering > Prompt Engineering" principle applied to OpenClaw. The quality bottleneck isn't how you write prompts — it's what the agent sees in its context window before reasoning.
python3 scripts/assembler.py --task "check NAS disk health" --max-tokens 1500
In your OpenClaw cron job, run assembler first:
# The agent's first action: get optimized context
python3 skills/context-assembler/scripts/assembler.py \
--task "daily evolution check" \
--max-tokens 1800
Tell your agent: "optimize my context" — it will call assembler and use the output.
Edit genome.yml to customize:
The genome.yml is the "mutable kernel" — you tune it, the assembler engine stays fixed.
pip install pyyaml)MEMORY.md, memory/*.md)skills/context-assembler/
├── SKILL.md # This file
├── genome.yml # ★ Mutable kernel (tune this)
├── scripts/
│ └── assembler.py # Fixed engine (~510 lines)
├── index/ # Future: pre-built search indices
└── feedback/ # Selection → outcome log