my ai agent started drifting so i fixed its memory
28 April 2026
My AI Agent Started Drifting, So I Fixed Its Memory
My AI agent started drifting — and the problem was not the model.
It was the memory files controlling how it behaved.
In this video, I show how I use agent markdown as maintainable operating memory: not just documentation, but the behaviour layer that defines an agent’s role, workflows, boundaries, tools, routing, and what it should do when things get confusing.
Story Wells is the practical example. After a real working session exposed loose instructions, I used the conversation itself as an audit log, brought ChatGPT into the review process, gave the audit back to Story Wells, used Codex to edit the local markdown files, then synced the improved rules back into OpenClaw as baseline memory.
The core idea:
AI agents are not just models.
They are models plus tools, workflows, boundaries, and memory files you can inspect, debug, version, and improve.
Watch the next video here: youtube.com/watch?v=tnc5IR7t8R0&t=31s
My website: alexkerss.com
Follow me on X: Alex Kerss - x.com/jungleskellam
Question for the comments:
Are you using markdown files, system prompts, or another structure to control how your AI agents behave?
TIMECODES
00:00 - My AI agent started drifting 00:05 - The memory files controlling behaviour 00:08 - Markdown files are not documentation 00:13 - Markdown as operating memory 00:15 - Roles, workflows, boundaries, tools, and routing 00:23 - Story Wells exposes the real problem 00:34 - Using the conversation as an audit log 00:37 - ChatGPT finds drift, confusion, and loose process 00:45 - Story Wells audits its own rules 00:53 - Turning the audit into implementation instructions 01:03 - Codex edits the local markdown files 01:09 - Patching the behaviour layer like source code 01:14 - Syncing improved rules back into OpenClaw 01:22 - Why memory files have to be maintained 01:29 - The agent is not just the model 01:32 - Model plus tools, workflows, boundaries, and memory
#AIAgents #OpenClaw #ClawChat #AIAutomation #AgentWorkflows
In or near Bath?
I meet people one to one for a free chat about AI, for your business or your own life.


