Clockwork: Schedule AI Coding Agents on Your Calendar for Unattended, Automated Execution

Clockwork lets you schedule AI coding agents on a calendar for automated, unattended execution.
Clockwork is a developer tool that schedules AI coding agents via a calendar interface for unattended, periodic execution. Key features include git worktree sandbox isolation, risk-aware human approval pauses, and transparent API cost reporting. It supports BYOK and existing subscriptions, runs locally on Mac, and is ideal for routine code maintenance, dependency updates, and tasks that complement CI/CD pipelines.
A New Paradigm in AI Coding Automation: From On-Demand to Scheduled Execution
AI coding agents are evolving from "on-demand invocation" to "scheduled automatic execution." An AI coding agent refers to an AI system capable of autonomously understanding programming tasks, generating code, executing modifications, and performing verification. Unlike traditional code completion tools (such as early GitHub Copilot), coding agents possess multi-step reasoning, tool invocation, and environment interaction capabilities, enabling them to complete the entire workflow from understanding requirements to committing code. Since 2024, with the emergence of products like Claude Code, Devin, and OpenAI Codex, coding agents have moved from proof-of-concept to practical engineering applications.
Clockwork is a tool built specifically for developers, with a core concept that's refreshingly direct: put AI coding agents on your calendar and let them "show up for work" on schedule — unattended.
The idea may seem simple, but it hits a real pain point in the current AI coding toolchain. Most AI coding assistants rely on developers to trigger them manually, yet many engineering tasks (routine code reviews, automated refactoring, dependency update checks) are inherently periodic and well-suited for asynchronous, automated execution. Clockwork exists precisely to fill this gap.

Clockwork: Core Features in Detail
Calendar-Driven AI Task Scheduling
Clockwork's most distinctive design is using a "real calendar" to manage AI coding tasks. Developers can schedule coding agent work just like booking a meeting — supporting both one-off tasks and recurring tasks (such as a weekly code health check). This interaction model reduces cognitive overhead: you don't need to write cron expressions, you don't need to maintain scheduling scripts — the calendar itself serves as the visual interface for your task queue.
It's worth noting that traditional task scheduling tools impose a non-trivial cognitive burden on developers. Cron is the classic tool for scheduled task execution in Unix/Linux systems, using a five-field expression (minute, hour, day, month, day of week) to define execution frequency. While powerful, cron expression syntax is far from intuitive for non-operations staff, and it lacks a visual management interface and execution status tracking. Modern scheduling systems (such as Apache Airflow and Temporal) offer richer dependency management and monitoring features, but come with correspondingly higher configuration complexity. Clockwork's use of a calendar interface to replace these traditional approaches is essentially a new trade-off between usability and functionality — for AI coding tasks that don't require complex dependency orchestration, the intuitiveness of a calendar is far more valuable than the flexibility of a scheduling system.
For engineering teams, this means AI agents can be incorporated into formal work rhythms rather than being triggered manually on an ad hoc basis.
Isolated Execution in Git Worktree Sandboxes
Tasks run in isolated git worktree sandboxes, a design decision that's critically important. Git worktree is a feature introduced in Git 2.5 (2015) that allows multiple working directories to be checked out simultaneously within the same repository, each corresponding to a different branch. Compared to traditional git clone or git stash, worktrees share the same .git directory and object database, making them extremely lightweight to create and destroy — ideal for scenarios requiring frequent switching between multiple branches.
In Clockwork's context, each agent task executes in an independent worktree, completely isolated from the main branch, preventing automated operations from contaminating production code. Worktrees provide a natural task isolation boundary — each agent operates in its own worktree, neither interfering with the main branch nor conflicting with other concurrent tasks. When a task fails, you simply delete the corresponding worktree to roll back. This is a fundamental engineering safety guarantee — the higher the degree of automation, the stricter the isolation requirements.
The entire execution process happens locally on your Mac, with no dependency on external cloud services for code processing. Teams with code privacy concerns will find this significantly more acceptable.
Risk Awareness and Human Approval Mechanism
Clockwork isn't a complete "black box" automation system. When an agent determines that an operation carries risk, it proactively pauses and requests human approval. This "conditional automation" design aligns with the mainstream consensus in current AI engineering practice: let high-certainty, low-risk operations execute freely, while preserving human decision points for ambiguous or high-impact operations.
This design has a mature theoretical foundation in the automation field. Similar to the automation level framework defined by SAE (Society of Automotive Engineers) for autonomous driving, multiple intermediate levels exist between full autonomy and full manual control. In AI coding, the industry is gradually forming a similar consensus: "Human-in-the-Loop" design is more reliable than full automation. GitHub Copilot's code suggestions require developer confirmation, Claude Code's high-risk operations require user authorization — both are manifestations of this paradigm. Clockwork's risk-pause approval mechanism essentially extends this human-AI collaboration from real-time interaction to asynchronous scheduling scenarios.
This design is more practical in real engineering environments than full automation. Full automation makes errors difficult to trace, while retaining approval checkpoints strikes a balance between automation efficiency and controllability.
Execution Reports with Transparent API Costs
After each task completes, Clockwork generates an execution report that includes actual API costs consumed. This detail deserves attention: the invocation costs of AI coding agents are often opaque, making it hard for developers to know exactly how much an automated task actually cost. Based on current mainstream model pricing, a single agent task involving substantial code context might consume thousands to tens of thousands of tokens, with costs ranging from a few cents to several dollars — and frequent periodic tasks can cause costs to accumulate rapidly. Clockwork treats cost as a first-class citizen in its reports, helping developers build a realistic sense of AI tool expenses and enabling teams to plan budgets accordingly.
Flexible AI Model Integration
Clockwork supports two usage modes: Bring Your Own Key (BYOK) or use an existing subscription. BYOK is a business model that has become popular in the AI tools space in recent years — users provide their own API keys obtained from AI service providers like OpenAI or Anthropic, while the tool itself charges only a software usage fee or is entirely free. The advantages of this model include: users have full visibility and control over API call costs, tool providers don't need to bear the high cost of inference, and it avoids user experience issues caused by API quota limits. The alternative is the "monthly subscription" model (like ChatGPT Plus), where users pay a fixed fee for a certain usage allowance.
This is friendly to users of different scales — individual developers can use their own API keys for precise cost control, while teams with existing enterprise AI subscriptions can reuse them without paying twice. Each mode has its appropriate use case, with BYOK being more suitable for power users with variable usage or cost sensitivity.
This design also reflects a product strategy: Clockwork positions itself as the scheduling and execution layer, not the model layer. It doesn't lock in to a specific AI provider but focuses squarely on "scheduling tasks well, running them reliably, and reporting clearly."
Use Cases and Product Positioning
Clockwork has been gaining attention on Product Hunt and is a new product with real momentum in the developer tools segment. Based on its feature set, it's best suited for the following scenarios:
- Routine code maintenance: Dependency update checks, tech debt cleanup, documentation sync
- Supplementing CI/CD workflows: AI-assisted tasks that don't belong in the pipeline but need periodic execution
- Async workflows for individual developers: Having agents complete low-risk routine work during sleep or offline hours
- Automation experiments for small teams: A low-barrier way to experience "agent-powered" engineering workflows
The relationship between CI/CD workflows and AI-assisted tasks is worth elaborating on. CI/CD (Continuous Integration/Continuous Deployment) is a core practice in modern software engineering, typically implemented with tools like Jenkins, GitHub Actions, and GitLab CI, automatically triggering build, test, and deployment processes upon code commits. However, not all engineering maintenance tasks are suitable for embedding in CI/CD pipelines: dependency update checks may require coordination across multiple repositories, tech debt cleanup requires global analysis and refactoring of the codebase, and documentation sync requires understanding the semantics of code changes. The common characteristics of these tasks are lower execution frequency (weekly or monthly), longer runtimes, and output that requires human review before merging into the main branch. Clockwork is positioned precisely for this category of periodic maintenance tasks that "CI/CD can't handle well but can't be ignored."
For large enterprise teams, the limitation of sandbox execution on a personal Mac may be a scaling bottleneck, but for individual developers and small teams, this is actually an advantage of being "lightweight and controllable."
Summary: AI Coding Tools Evolving from Assistants to Background Automation
Clockwork represents an important direction in the evolution of AI coding tools: the shift from interactive assistants to autonomously scheduled background workers. Rather than trying to reinvent the code editor, it focuses on three core questions — "when to run, where to run, and what to report" — and delivers a pragmatic set of answers.
Calendar scheduling, git worktree isolation, risk-pause approval, and transparent cost reporting — these four design elements combine to form an AI automation framework suitable for real engineering practice. For developers looking for automated solutions for periodic code maintenance, Clockwork offers a lightweight option well worth trying.
Related articles

Fairphone 6+ Deep Dive: The Ideals and Realities of a Repairable, Modular Smartphone
Deep dive into Fairphone 6+'s modular design, 8-year update promise, ethical supply chain practices, and the real challenges facing repairable sustainable smartphones.

Inline: The Multiplayer Chat Tool That Brings AI Agents Into Team Collaboration
Inline is an AI-native, thread-based team chat tool that lets AI agents collaborate alongside team members. We analyze its positioning and challenges in the Slack-dominated messaging space.

Corporate America's Collective Shift to Open-Source AI: The Triple Forces of Cost, Compliance, and Technical Autonomy
U.S. enterprises are accelerating open-source AI adoption, driven by cost control, data compliance, and technical autonomy. This article analyzes the motivations, challenges, and industry impact.