← 返回
未分类 中文

Agent Migration

Safely rename or migrate an OpenClaw agent by updating config and naming, migrating session content, fixing session metadata, restarting, verifying, and aski...
安全地重命名或迁移OpenClaw代理:更新配置和命名,迁移会话内容,修复会话元数据,重启,验证,以及...
kid0114 kid0114 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 396
下载
💾 0
安装
1
版本
#agent#latest#migration#openclaw#session#workspace

概述

Agent Migration

Use this skill when the user wants to rename or migrate an OpenClaw agent safely.

Scope

This skill handles:

  • agent id rename
  • workspace rename
  • config/path updates
  • prior session content migration
  • session display metadata updates
  • restart and verification
  • separate deletion confirmation for the old agent

Defaults and boundaries

  • Confirm old id, new id, new workspace, and whether model also changes.
  • Migrate prior session content by default unless the user explicitly says not to.
  • Do not skip migration just because a session does not look active.
  • Do not hard-edit active lock files or force-rewrite a live session shell.
  • Restart is required after migration.
  • Never delete the old agent without a separate user confirmation.

Files involved

  • config: ~/.openclaw/openclaw.json
  • agent dirs: ~/.openclaw/agents//...
  • workspace: /home/yln/claw-workspace/
  • session metadata such as sessions.json

Use the included files

  • references/checklist.md
  • references/cleanup.md
  • scripts/inspect_agent_migration.sh
  • scripts/copy_session_content.sh
  • scripts/verify_agent_migration.sh

Recommended commands

bash skills/agent-migration/scripts/inspect_agent_migration.sh <old-id> <new-id>
bash skills/agent-migration/scripts/copy_session_content.sh <old-id> <new-id>
bash skills/agent-migration/scripts/verify_agent_migration.sh <old-id> <new-id>

Guardrails

  • Keep config, workspace, and naming changes consistent.
  • Update session display-layer metadata as part of the migration.
  • Verify the new agent before offering deletion of the old one.
  • Use references/cleanup.md only after the user separately confirms deletion.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-03 09:02 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Skill Review

kid0114
对 OpenClaw 技能进行审查,关注令牌效率、脚本化程度和清晰的动作边界;先备份再改进。
★ 0 📥 490
ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,518 📥 573,403
ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,163 📥 934,646