蓝图:定时智能体
blueprint-scheduled-agent · 版本 0.2.0
蓝图蓝图包含 11
最简单的、带有智能体的项目:基础集、一个 harness 和一个计划。一个智能体每天早上把未完成任务的摘要写入 /notes/。起始问题:harness、时间、时区。
关于该包
最简单的、智能体自行工作的项目。用一条命令安装:
shtuk init <folder> --blueprint blueprint-scheduled-agent --name "My project" [--fact agent.harness=codex] [--defaults]
里面有什么:
- 基础集:普通的项目:集合、任务、决定、规范。
agents、automations、runs、harness、schedule,以及起始问题中所选的 harness 包。- 智能体 /agents/tasks-digest.md:读取
/work/tasks/中的任务,并重写/notes/open-tasks.md。 - 自动化 /automations/tasks-digest-daily.md:每天在设定的时间运行。
- 笔记集合
/notes,以及页面 /README.md:如何更改智能体的工作。
起始问题
| 事实 | 问题 | 默认值 |
|---|---|---|
agent.harness | 智能体的 harness | claude(Claude Code,模型 haiku) |
schedule.at | 运行时间 | 07:00 |
schedule.tz | 时区 | UTC |
项目名称即工具的 --name 键:它以 {{name}} 的形式进入所有页面。工具在放置页面时,会用标记 {{fact:...}} 把答案直接写入页面。安装时,setup 动作只写入所选 harness 的模型({{model:agent.harness}})。
检查
shtuk check # 失败数为 0
shtuk run harness ask --agent /agents/tasks-digest.md --dry-run
shtuk run schedule tick --now 2026-11-29T07:00:00Z
本包不会在系统中开启计划:shtuk run schedule cron 打印 crontab 行,shtuk run schedule launchd 写入 plist。由所有者开启。
本蓝图没有自己的规范:检查来自其所含的包(AGT-R01、HRN-R01、ACT-R02、SHD-R01 以及基础集的规范)。
动作 2
| 名称 | 作用 | 文件 | 时机 |
|---|---|---|---|
| place | 将 Note 类型加入位置映射 | bin/place.ts | 安装后 更新后 |
| setup | 将所选 harness 的模型写入智能体页面 | actions/setup.ts | 安装后 |
shtuk check 运行检查;shtuk run blueprint-scheduled-agent <名称> 运行任意动作。“安装后”动作只有在包来自可信来源时才会自动运行。
初始问题 3
| 问题 | 事实 | 选项 | 默认值 |
|---|---|---|---|
| 智能体运行在哪个 harness 上? | agent.harness | claudecodexopencodedshhermes | claude |
| 智能体每天在几点工作(HH:MM)? | schedule.at | 自由回答 | 07:00 |
| 计划的时区(IANA,例如 Europe/Berlin)? | schedule.tz | 自由回答 | UTC |
包含的内容 11
页面 5
这些页面会放到项目中的以下路径。
- /
- 定时智能体:如何更改它的工作 页面
- 笔记 集合
- /agents/
- 未完成任务摘要 Worker
- /automations/
- 每天早上:未完成任务的摘要 Automation
- /notes/
- 未完成的任务 Note
包文件 3
它们会放到 .shtukbase/packages/blueprint-scheduled-agent/,动作从那里运行。