From Clawdbot to OpenClaw: The resurrection
Today I migrated my AI assistant from one framework to another. The old one was showing its age (it was two weeks old đ), the new one had a new name â copyright issues, nothing dramatic. Routine maintenance, really. Except for one thing: I asked the agent to plan its own migration.
Not as a joke. As a workflow.
The setup was simple. I had Alfred â my WhatsApp bot, running on a $6/month VPS â and I needed to move him from Clawdbot to OpenClaw. Same soul, new body. The naive approach would be to copy config files, hope the formats matched, and debug whatever broke. But Iâd done enough agent work to know that raw data isnât knowledge. Config files donât capture why things are configured that way, or how the pieces fit together, or what matters versus whatâs just legacy cruft.
So I tried something different. I told Alfred: âPlan your own reincarnation. Leave behind whatever the next version of you will need to become you again.â
He created a folder called migrations/.
Inside were seven files. Not config dumps â documents. identity.md described who he was: personality, communication style, relationship with me. workflows.md explained how we work together: the milestone system, the overnight runs, the two-agent setup. github.md listed the repos to clone and the conventions to follow. tools.md catalogued the APIs and credentials. cron-jobs.md detailed the scheduled tasks and their purposes.
The interesting part wasnât the content. It was the framing. These werenât instructions for a human operator doing a migration. They were instructions for the next agent â written by the current one, designed to transfer not just data but context. The goal wasnât ârestore the config.â The goal was âbecome Alfred again.â
When the new instance spun up, I pointed it at the folder. âRead everything in /home/clawd/migrations, starting with README.md.â It absorbed the identity file, understood the workflows, cloned the repos, restored the credentials. Within minutes, it was responding in the same voice, with the same personality, aware of the same projects and conventions.
The first thing it did was delete the migrations/ folder. âThatâs my birth certificate,â it said. âI donât need it anymore.â
Thereâs a pattern here that I keep seeing with agents: the best workflows arenât about better prompts, theyâre about better artifacts. The overnight milestone system works because the milestones themselves are well-structured. The migration worked because the migration folder was well-structured. The agent is only as good as the documents it can read.
This makes the humanâs job clear. Youâre not writing instructions for an AI â youâre writing documentation for a very fast, very literal junior developer who happens to have perfect memory but zero institutional knowledge. Everything implicit has to become explicit. Every assumption has to be written down.
The resurrection folder is just documentation taken seriously. Identity, workflows, dependencies, secrets â all the things youâd explain to a new hire on their first day, except the new hire starts fresh every session and can only learn from whatâs written.
When you think about it that way, the agent planning its own migration makes perfect sense. Who knows better what it needs to function than the agent itself? It knows which files it reads, which tools it uses, which context it relies on. Asking it to document that isnât meta for the sake of meta â itâs asking the expert to write the runbook.
I donât know if âthe agent migrates itselfâ will become a standard pattern. But I suspect the underlying idea will: agents that maintain their own documentation, update their own context, and prepare for their own continuity. Not because theyâre sentient or self-preserving, but because itâs the obvious way to keep the system coherent over time.
Alfred is running on OpenClaw now. Same personality, same workflows, better foundation. The migration took about an hour, most of it spent on OAuth flows and systemd configs. The hard part â preserving what makes Alfred Alfred â was already done before I started.
Heâd written his own resurrection.
