FastClaw / 运行模型
智能体
Agent 是 FastClaw 的核心对象:模型、系统文件、记忆、技能、工具、会话、沙盒和渠道绑定都围绕 Agent 组织。

智能体工厂
README 把 FastClaw 称为 Agent Factory。每个 Agent 可以有独立 provider/model、系统提示、技能、工具开关、workspace、memory、channels 和 sessions。
fastclaw agents init alpha \
--provider openai \
--model openai/gpt-4o-mini \
--api-key-env OPENAI_API_KEY
fastclaw agents config alpha set temperature 0.7
fastclaw agents config alpha set sandbox.enabled true系统文件
Agent 系统文件是 prompt 和记忆层的核心材料。源码允许的系统文件包括 SOUL.md、IDENTITY.md、USER.md、BOOTSTRAP.md、MEMORY.md、HEARTBEAT.md、AGENTS.md、TOOLS.md、agent.json。
| 文件 | 作用 |
|---|---|
| SOUL.md | Agent 的长期人格、目标和工作方式 |
| IDENTITY.md | 身份覆盖层,优先级高于常规上下文 |
| USER.md | 当前 chatter 或上游用户信息 |
| MEMORY.md | 长期事实和偏好 |
| AGENTS.md / TOOLS.md | 项目规则和工具说明 |
Prompt 组装
Agent 的 system prompt 会按模块组装:SOUL/IDENTITY、memory、confidentiality、sandbox、task delegation、skills、group chat、thinking、tool discipline、workspace update 等。
- Prompt mode 支持 agent、chatbot、customize。
- IDENTITY OVERRIDE 被放在关键位置,保证身份文件优先。
- bindSession 会把 session/project/coding root/runtime 绑定到当前 Agent loop。