Skip to content

[建议 / Feature] 增加「定时任务 / 自动化调度」能力(Scheduled Tasks) #27

Closed

Description

@wqz168

功能建议

类型: 功能建议
优先级: P1(重要)

期望功能

增加「定时/周期性自动执行 Agent 任务」的能力,类似 Claude Desktop 的 Scheduled Tasks 或 Codex CI 的自动化流水线,让 ZCode 从「手动交互工具」升级为「可无人值守自主工作流引擎」。

为什么重要

目前主流 AI 编程工具(Claude Desktop、Codex、Cursor 等)均已支持或规划此功能。这是 AI 编程工具从「辅助工具」迈向「自主工作流」的关键能力缺口。没有定时/自动化调度,用户必须每次手动触发 Agent 任务,无法真正实现无人值守。

使用场景

  1. 定时代码审查 — 每天凌晨自动跑 lint、type-check、单元测试,生成报告等待上班查看
  2. 周期性依赖更新 — 每周自动检查 npm/pip/gradle 等依赖升级,生成变更 PR 草稿
  3. 定时日报/周报生成 — 自动汇总 git log、issue 状态、代码变更统计,生成报告
  4. 无人值守批处理 — 设定时间自动执行一系列 Agent 任务(如批量重构、批量生成文档、批量代码迁移)
  5. 定时健康检查 — 定期检查项目构建状态、依赖安全漏洞、代码质量指标

参考竞品实现

竞品 功能 说明
Claude Desktop Scheduled Tasks 图形界面设定时间、频率、Agent 任务,支持 cron 表达式
Codex CI CI 集成 与 GitHub Actions 等结合,按 cron / PR 触发自动执行
Cursor 自动化规则 可设定项目级自动化规则和定时检查

建议实现方式(可组合)

  • 方案 A:图形客户端内增加定时任务面板

    • 支持设定 cron 表达式或直观的「每天/每周/自定义」频率
    • 可选择已有 Skill / 任务模板作为执行内容
    • 任务执行结果通过通知 / 面板内展示
  • 方案 B:支持 headless / CLI 非交互模式

    • 提供类似 zcode run --task <skill> --headless 的命令
    • 用户自行用系统 launchd(macOS)/ cron(Linux)定时调用
    • 对现有架构侵入最小
  • 方案 C:与 CI 系统集成

    • 提供 GitHub Action / GitLab CI 模板
    • 支持 webhook 触发
    • 适合团队协作场景

环境信息

  • ZCode 版本: 3.0.1
  • 操作系统: macOS (darwin 25.5.0 arm64)
  • 模型: GLM-5-Turbo

感谢团队开发 ZCode,体验很好,期待这个功能的加入!

Activity

  1. github-actions commented on Jun 20, 2026

    @github-actions

    👋 感谢你的反馈,我们已经收到。

    • 维护者会在 3 个工作日内 给出首次响应。
    • 状态保持为 status: 待评估,你可以随时补充信息。
    • 信息不全时我们会打上 needs: 更多信息 标签并 @ 你。

    👋 Thanks — we've received your issue.

    • A maintainer will respond within 3 business days.
    • Status stays at status: 待评估 (Triage); feel free to add context.
    • If we need more details, we'll add needs: 更多信息 and ping you.
  2. wqz168 commented on Jun 20, 2026

    @wqz168
    Author

    另外补充一个建议:

    Claude Desktop里的Projects界面,里面可以设置多个项目方便管理,每个项目里可以设置单独对应的Intructions和Scheduled,Context可以设置问价目录,可以Add a link设定多个既定的网址。

    这对于长期深度研究但是又必须包含每日定时任务的项目来说,是非常有用的。同时也可以多个项目一起维护。

    这一类场景对于非程序员来说,图形界面管理多个项目,非常好用。

    以上,

    感谢智谱ZCode团队。

  3. panda920 commented on Aug 17, 2026

    @panda920
    Collaborator

    你好,感谢反馈 —— 这个能力已经做了,并且已经上线。

    上线版本:v3.4.0

    已新增定时任务(自动化):可按计划自动执行、支持自定义重复规则与截止时间、可设置模型/模式/思考强度,支持立即运行与查看历史。v3.7.1 起还支持自定义分钟间隔。

    当前最新版本是 v3.7.7,建议升级后验证。如果升级后仍然存在,欢迎直接在本 issue 回复,附上版本号和日志,我们会继续跟进。

    这条反馈回复得太晚了,抱歉。我们正在把仓库里积压的 issue 逐条过一遍,后续会保持更新。


    Hi, and thanks for the report — this has been built and shipped.

    Shipped in: v3.4.0

    Scheduled tasks (Automations) shipped: run on a schedule, custom recurrence and deadlines, per-task model / mode / thinking level, run-now and run history. Custom minute intervals were added in v3.7.1.

    The latest release is v3.7.7; please upgrade and verify. If it still happens after upgrading, reply here with your version and logs and we'll pick it up again.

    Sorry this reply took so long. We're working through the backlog issue by issue and will keep it updated from here on.

  4. panda920 commented on Aug 18, 2026

    @panda920
    Collaborator

    按「已上线」口径关闭。如升级到最新版后仍能复现,请直接回帖,我们会重新打开。

    Closing as shipped. If it still reproduces on the latest version, just reply here and we'll reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: P2status: 已上线

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions