Coldstart & End Session Scripts: Better Agent Memory for OpenClaw
An OpenClaw user, Competitive_Swan_755, shared their setup for helping agents handle session transitions and recurring problems. The approach borrows from Hermes and involves two key components: coldstart and end-session scripts, plus a /SOP directory.
Key Details
- Coldstart script: Written before a session begins, it gives the agent context about what to expect, likely including project state, goals, and any relevant background.
- End-session script: Written before the session ends, it captures what was accomplished, what remains, and any important notes for the next session.
- /SOP directory: A standard operating procedure folder. The agent can reference this to quickly solve common or odd problems, avoiding the need to figure out the same solution repeatedly.
The idea is simple: enforce a discipline of documenting state and solutions so that each session starts with a clear picture and ends with a memorable summary. This practice is particularly useful for developers who run multiple agents or long-running projects where context loss is a frequent pain point.
Why This Matters
OpenClaw agents (and similar AI coding assistants) often operate without persistent memory. Coldstart scripts give them the necessary runway; end-session scripts ensure a clean handoff. The /SOP directory acts as a lightweight knowledge base, reducing repetitive problem-solving and improving consistency across sessions.
If you are hitting context limits or find your agent re-deriving solutions, this pattern is worth adopting. It is a low-cost, high-impact practice.
This tip comes from a community post—check the full discussion for details and any follow-up commentary.
📖 Read the full source: r/openclaw
👀 See Also

Diagnosing Degraded Claude Performance: Root Causes and Fixes
A practical breakdown of why Claude coding results degrade over time and actionable fixes, including context management and prompt hygiene.

11 Deep Claude Tips from an 18-Month Daily User
A senior developer shares 11 non-obvious Claude tips after 18 months of daily use, including Projects, Custom Styles, Memory, Sonnet 4.6 vs Opus 4.7, Haiku 4.5 for batch work, Claude Code subagents, and Artifacts calling the API.

OpenClaw: If Your Task Can't Survive a Restart, It's Still a Chat Session
A Reddit post argues that OpenClaw tasks relying on conversation history for state are not resumable. Store task identity, step, and approval state outside the transcript.

TLS Interception by Antivirus Breaks Claude Desktop’s Connection; Workaround with AV Exclusions
Antivirus TLS inspection on bridge.claudeusercontent.com causes Cowork (Claude desktop companion) to fail with 'Claude in Chrome is not connected'. Fix: add *.claudeusercontent.com and *.anthropic.com to AV HTTPS exclusions. Node.js --use-system-ca would prevent this.