sophie-optimizer

Community

Automates context health for OpenClaw.

AuthorTimmy6942025
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Sophie Optimizer automates health management of the OpenClaw main session by monitoring token usage, archiving context snapshots, and performing a hard reset of session storage to maintain performance.

Core Features & Use Cases

  • Token monitoring: Tracks token usage, generates concise summaries, and archives when thresholds are reached.
  • Context archiving & memory update: Writes JSON snapshots to archives/ and updates MEMORY.md with the latest state for quick recall.
  • Use Case: In long-running autonomous tasks, Sophie Optimizer keeps memory lean and responsive by archiving context and resetting storage without user intervention.

Quick Start

Run the optimizer from its directory to take an initial snapshot: python3 optimizer.py --summary "Initial context snapshot" --tokens 0 --session-id main To perform an immediate reset after archiving, run: ./reset.sh

Dependency Matrix

Required Modules

openclawsystemd

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: sophie-optimizer
Download link: https://github.com/Timmy6942025/bob-workspace/archive/main.zip#sophie-optimizer

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.