You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SlimClaw is currently running in shadow mode only — measuring potential savings but unable to actually optimize requests.
The Problem
OpenClaw's llm_input and llm_output hooks are observation-only (return void). We cannot:
Modify historyMessages (for windowing)
Change model (for routing)
Mutate systemPrompt at the right scope
Upstream Issue
I've commented on the OpenClaw feature request for this: [Feature]: Make llm_input / llm_output modifying hooks for middleware patterns openclaw/openclaw#20416 (comment)
The proposed API would give us:
typePluginHookLlmInputResult={prompt?: string;historyMessages?: unknown[];// ← What we need!systemPrompt?: string;model?: string;// ← For routing};
Current Workaround
SlimClaw tracks metrics and reports what could be saved. Users can leverage OpenClaw's built-in alternatives:
contextPruning config for windowing-like behavior
compaction config for automatic context management
Context
SlimClaw is currently running in shadow mode only — measuring potential savings but unable to actually optimize requests.
The Problem
OpenClaw's
llm_inputandllm_outputhooks are observation-only (returnvoid). We cannot:historyMessages(for windowing)model(for routing)systemPromptat the right scopeUpstream Issue
I've commented on the OpenClaw feature request for this:
[Feature]: Make llm_input / llm_output modifying hooks for middleware patterns
openclaw/openclaw#20416 (comment)
The proposed API would give us:
Current Workaround
SlimClaw tracks metrics and reports what could be saved. Users can leverage OpenClaw's built-in alternatives:
contextPruningconfig for windowing-like behaviorcompactionconfig for automatic context managementNext Steps
Labels
blockedupstreamenhancement