feat(migrate): add picoclaw migrate command for OpenClaw workspace migration#33
Merged
yinwm merged 2 commits intosipeed:mainfrom Feb 12, 2026
Conversation
…gration Add a new `picoclaw migrate` CLI command that detects an existing OpenClaw installation and migrates workspace files and configuration to PicoClaw. Workspace markdown files (SOUL.md, AGENTS.md, USER.md, TOOLS.md, HEARTBEAT.md, memory/, skills/) are copied 1:1. Config keys are mapped from OpenClaw's camelCase JSON format to PicoClaw's snake_case format with provider and channel field mapping. Supports --dry-run, --refresh, --config-only, --workspace-only, --force flags. Existing PicoClaw files are never silently overwritten; backups are created. Closes sipeed#27 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…or-openclaw-workspace-migration
emadomedher
pushed a commit
to emadomedher/picoclaw
that referenced
this pull request
Feb 17, 2026
…w-migrate-command-for-openclaw-workspace-migration feat(migrate): add picoclaw migrate command for OpenClaw workspace migration Adds migrate command to migrate workspace and config from OpenClaw to PicoClaw. - Migrates workspace files (SOUL.md, AGENTS.md, USER.md, TOOLS.md, HEARTBEAT.md, memory/, skills/) - Converts config from camelCase (OpenClaw) to snake_case (PicoClaw) format - Supports --dry-run, --refresh, --config-only, --workspace-only, --force flags - Safety: backups (.bak), confirmation prompts, no silent overwrites Closes sipeed#27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
picoclaw migrateCLI command that detects and migrates OpenClaw workspace files and configuration to PicoClaw--dry-run,--refresh,--config-only,--workspace-only,--forceflags.bakbackups are created before overwritesOPENCLAW_HOME/PICOCLAW_HOMEenvironment variable overridesNew Files
pkg/migrate/config.go— OpenClaw config parsing, camelCase-to-snake_case conversion, config field mappingpkg/migrate/workspace.go— Workspace file migration planning (files + directories)pkg/migrate/migrate.go— Core orchestration: Run, Plan, Execute, Confirm, PrintSummarypkg/migrate/migrate_test.go— 15 table-driven tests covering config conversion, workspace planning, full migration, dry-run, edge casesTest plan
go build ./...compiles cleanlygo test ./...— all 15 new tests pass, no regressions in existing tests~/.openclaw/structure, runpicoclaw migrate --dry-runpicoclaw migrate --forceand verify files copied correctlyCloses #27
🤖 Generated with Claude Code