v2026.5.22
What's New
Workspace .md Content Rewriting During Migration
The OpenClaw → KaijiBot migration system now rewrites workspace .md file content instead of copying them byte-for-byte. This ensures migrated agents receive KaijiBot-appropriate instructions in their system prompt context.
New: brand-rewrite.ts — Shared rewriting engine:
- 11 pattern replacements (brand names, config paths, avatar references)
- Section-level structural rewriting for AGENTS.md (preserves user customizations)
- Full replacement for TOOLS.md and BOOTSTRAP.md
- Auto-seeding of KAIJIBOT-GUIDE.md when absent
- MEMORY.md brand-swap after merge
Three rewriting strategies:
| File | Strategy |
|---|---|
| AGENTS.md | Section replacement — known OpenClaw sections → KaijiBot template sections, user sections preserved |
| TOOLS.md | Full replacement with KaijiBot template |
| BOOTSTRAP.md | Full replacement with KaijiBot template |
| KAIJIBOT-GUIDE.md | Auto-created if absent |
| MEMORY.md | Brand swap only (after merge) |
| All other .md | Brand name/path replacement |
Also: Skill migration now actually replaces brand names in SKILL.md files (previously only detected and added a review banner).
Tests: 42 new unit tests + 3 integration tests (128/128 migrator tests pass).