Files
nexus/wiki/concepts/BOOTSTRAP.md.md

36 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "BOOTSTRAP.md"
type: concept
tags: [OpenClaw, Agent, Setup]
sources: [万字讲透openclaw-workspace深度解析-2026-03-21]
last_updated: 2026-03-21
---
## Definition
**BOOTSTRAP.md** 是 OpenClaw workspace 中最特殊的一个文件——它的使命是把一个全新的 workspace 引导到"可正常使用"的状态。这是一份"第一次上岗前的引导词"Agent 读到它后知道自己不是立刻开工,而是先把自己安顿好。
## 引导流程
1. 和用户聊几句,搞清楚 Agent 应该叫什么名字、是什么性格、用什么 emoji
2. 把结果写入 `IDENTITY.md`
3. 记录用户的基本信息到 `USER.md`
4. 一起打开 `SOUL.md`,把真正的性格和边界写进去
5. 可选引导用户接入渠道——WhatsApp、Telegram 等
## 一次性特性
官方模板的最后一句话非常有意思:
> *"Delete this file. You don't need a bootstrap script anymore — you're you now."*
BOOTSTRAP.md 本质上是一次性引导Agent 在完成初始化后必须把它删掉。
## Related Concepts
- [[IDENTITY.md]] — 初始化时写入身份元数据的目标文件
- [[SOUL.md]] — 初始化时写入性格设定的目标文件
- [[USER.md]] — 初始化时写入用户画像的目标文件
- [[OpenClaw]] — BOOTSTRAP.md 所属的框架