Schedules
A schedule starts a new agent on a cron cadence: at this time, run this prompt, in this repository, with these agent settings.
A heartbeat sends a recurring prompt into one existing agent so it can reassess and continue the same conversation.
Both use the same cron engine. The CLI accepts presets such as 5m or 1h and compiles them to cron.
| Schedule | Heartbeat | |
|---|---|---|
| Each run | A new agent | The same agent |
| Manage | App, chat, CLI, MCP: inspect, pause, resume, run once, update, delete | MCP create and delete; CLI create, delete, and update the cron period |
What it's for
- Daily triage of issues, pull requests, and failing checks.
- Maintenance sweeps: dependency refreshes, docs audits, stale branch cleanup.
- Build babysitting: one agent checks CI or a release build until it passes (a heartbeat fits).
Create one
- In the app: open the Schedules view and set the agent, cron cadence, repository, and prompt.
- From chat: ask the agent to set it up.
- From the CLI:
zekoder schedule create. The group also hasls,inspect,update,pause,resume,run-once,logs, anddelete. - Over MCP: agents create and manage schedules themselves.
Keep run workspaces
Each run creates a workspace. Archive on finish is on by default: when the run ends, Zekoder archives the workspace and its agent. With worktree isolation, the worktree is removed after its last active workspace is archived.
To keep runs, open the schedule in the Schedules view, turn off Archive on finish, and save. Runs stay active until you archive them. A run that fails before creating an agent is still cleaned up. Only the app changes this option; the CLI and MCP tools don't expose it. Heartbeats don't have it.