PkuClaw
开发者指南

配置文件参考

PkuClaw 启动期配置和 runtime 文件速查。

启动期配置

configs/config.example.toml
configs/config.toml  # 本地真实配置,默认不提交
Section作用
[app]app 名称、数据目录、runtime 配置目录、时区。
[feishu]飞书 app id、secret 环境变量名、事件模式。
[agent]默认 provider。
[codex]Codex CLI 路径、sandbox、model、timeout、并发数;示例默认 danger-full-access,仅用于可信本地 daemon。
[notify_queue]outbox queue 目录和扫描间隔。

Runtime 文件

configs/runtime/
  runtime.example.json
  runtime.json          # local, ignored
  events.json
  prompts.json
  skills.json
  skills/
文件作用
runtime.example.jsonagent/codex/loops/notifications 的可提交模板。
runtime.json本地热加载配置;Git 忽略,可能包含 channel 目标标识,可覆盖 Codex sandbox/timeout。
events.jsonrealtime quick action catalog 与 channel mapping。
prompts.jsonrealtime/loop prompt 模板。
skills.jsonskill catalog 元数据和依赖。
skills/**runtime skill markdown 正文。

数据目录

默认 data/ 保存运行态数据,例如:

data/
  pkuclaw.db
  notify_queue/
  agent_runs/

data/ 是本地运行产物,不应提交。

常用命令

# 检查 Python 语法
python -m compileall pkuclaw scripts

# 运行测试
python -m unittest discover

# 启动完整 daemon
uv run pkuclaw daemon

# 启动 realtime debug 入口
uv run pkuclaw realtime feishu

相关文档

  • 配置说明:启动期配置与 runtime 配置边界。
  • Runtime 设计:realtime、loop、quick action 和 outbox 模型。
  • Skill Catalog:runtime skill 的目录、依赖和加载规则。

On this page