Skip to content

v0.4.0 - Hot Reload ♻️

Choose a tag to compare

@idoubi idoubi released this 17 Mar 09:23
· 676 commits to dev since this release

🔥 Hot Reload Support

修改配置文件后无需重启,立即生效!

支持热加载的内容

改什么 效果
fastclaw.json 的 provider (apiKey/apiBase) LLM 立即切换
fastclaw.json 的 agent model/temperature 下次对话生效
fastclaw.json 的 cron jobs 调度器立即更新
fastclaw.json 的 teams/bindings 路由立即更新
Agent workspace 的 SOUL.md 性格立即更新
Agent workspace 的 AGENTS.md / TOOLS.md / USER.md 等 上下文立即更新

需要重启的内容

  • 新增 agent(新的 agent entry)
  • 新增 channel(新的 Telegram bot)

技术细节

  • 使用 fsnotify 跨平台文件监听
  • 500ms 防抖(编辑器保存时可能触发多次写入)
  • 自动监听配置目录 + 所有 agent workspace 目录

Install / Update

curl -fsSL https://raw.githubusercontent.com/fastclaw-ai/fastclaw/dev/install.sh | bash