Skip to content
OpenClaw 文档中心
Main Navigation
首页
入门指南
进阶指南
GitHub
Appearance
GitHub
Menu
Return to top
On this page
Table of Contents for current page
#
### Agent 生命周期
#
#
```
#
初始化 → 加载配置 → 加载 Skills → 加载 Workspace → 循环处理消息 → 清理
#
```
#
#
### System Prompt 构建
#
#
Agent 的 System Prompt 由多个部分组成:
#
#
```
#
1. 项目上下文 (Project Context)
#
├──
SOUL.md
- Agent 人格
#
├──
IDENTITY.md
- Agent 身份
#
├──
USER.md
- 用户信息
#
├──
AGENTS.md
- 工作区规则
#
├──
TOOLS.md
- 工具清单
#
├──
HEARTBEAT.md
- 心跳任务
#
├──
SKILL.md
files - Skills 指令
#
└── Memory files - 记忆文件
#
```
#
#
### 推理模式 (Reasoning)
#
#
OpenClaw 支持多种推理模式:
#
#
-
off
- 关闭推理(默认)
#
-
on
- 启用推理,在回复前显示思考过程
#
-
stream
- 流式推理,实时显示思考过程
#
#
```bash
#
# 启用推理
#
/reasoning on
#
#
# 流式推理
#
/reasoning stream
#
```
#
#
### 模型选择
#
#
```bash
#
# 查看当前模型
#
/model
#
#
# 切换模型
#
/model glmcode/glm-4
#
#
# 设置默认模型
#
/model default=glmcode/glm-5
#
```
#
#
---
#
#