# 1. 启动 CLI
python cli/main.py agent
# 2. 在 Default 中创建项目
You: 创建一个关于 MoE 的论文项目,同时在 Overleaf 上创建并关联
# Bot 会自动完成:创建项目 → 创建 Overleaf 项目 → 关联 → 切换进入
# 3. 进入项目后,开始写作
You: 用多个 agent 帮我写一篇完整的论文
# Bot 会创建 subagent(researcher、writer 等),分工协作
# 4. 编译(也可以直接让 Agent 编译,不一定要用命令)
You: /compile
# 5. 同步到 Overleaf
You: /sync push
# 1. 查看项目列表
You: 我有哪些项目
# 2. 切换到目标项目(自动从 Overleaf pull 最新版本)
You: 切换到 NSR_Parallel_Reasoning 最新的 session
# 3. 直接修改
You: 帮我重写 Introduction 部分
# 4. 或者用 subagent 修改
You: 创建一个 reviewer agent 审阅论文,再创建一个 writer agent 根据审阅意见修改
# 5. 编译验证
You: /compile
# 6. 查看 git 历史,必要时回退
You: /git
python cli/main.py agent
交互式对话,支持所有功能。提示符显示当前项目和 session:
[Default:cli:default] You: ...
[MoE_Research:0217_01] You: ...
python cli/main.py gateway --port 18790
通过 settings.json 配置 IM 账号信息(飞书 / Telegram / QQ)。消息通过 MessageBus 双向传递。
通过 settings.json 中的 channel.accounts 配置 IM 账号,或通过 Web UI 管理。
| 命令 | 说明 |
|---|---|
/reset |
重置当前 session(清空对话历史) |
/compile |
编译当前项目的 LaTeX |
/sync pull |
从 Overleaf 拉取 |
/sync push |
推送到 Overleaf |
/git |
进入 Git 管理模式 |
/task <topic> |
启动深度调研(DAG 顺序执行) |
/back |
返回 Default |
Gateway 模式下,Agent 的输出通过 MessageBus 自动推送到已连接的 IM 渠道(飞书 / Telegram / QQ)。
如果需要定期执行任务(如每天自动调研),可以通过外部 cron 调用 CLI 的单消息模式:
# crontab 示例:每天 9:00 自动调研
0 9 * * * cd /path/to/research_claw && python cli/main.py agent -m "调研 MoE 领域最新论文" -p MyPaper
输出会写入项目文件并自动 git commit。如果同时运行 gateway,结果也会推送到 IM。