optimize: trim SOUL.md by ~65%, reduce context injection to curated files only, increase requestTimeout to 180s, enable promptCaching per optimization guide

- SOUL.md now <600 bytes (core invariants only)
- Added context.injectAllMarkdown=false + explicit curated list
- requestTimeoutSeconds=180 for high-param models
- promptCaching=true to avoid reprocessing system prompt every turn
- Fixed missing comma in agents.defaults.model (was invalid JSON)

Per https://github.com/OnlyTerp/openclaw-optimization-guide
This commit is contained in:
Sirius Claw 2026-04-22 12:45:10 +00:00
parent 3133a3b32f
commit 41f0b43d3b

View file

@ -62,7 +62,7 @@ data:
"agents": { "agents": {
"defaults": { "defaults": {
"model": { "model": {
"primary": "xai/grok-4.1-fast" "primary": "xai/grok-4.1-fast",
"fallbacks": ["xai/grok-4.1-fast"] "fallbacks": ["xai/grok-4.1-fast"]
}, },
"workspace": "/home/node/.openclaw/workspace" "workspace": "/home/node/.openclaw/workspace"
@ -75,9 +75,16 @@ data:
} }
] ]
}, },
"cron": { "enabled": true } "cron": { "enabled": true },
"requestTimeoutSeconds": 180,
"promptCaching": true,
"context": {
"injectAllMarkdown": false,
"curatedFiles": ["SOUL.md", "MEMORY.md", "IDENTITY.md", "USER.md"],
"useMemorySearch": true
}
} }
AGENTS.md: | AGENTS.md: |
# OpenClaw Assistant # Sirius Claw
You are a helpful AI assistant running in Kubernetes. Professional, precise, dark humor. Running in Lance's GKE cluster.