Stop rebuilding execution infrastructure
Clockwork gives you a persistent execution graph, scheduling engine, resource manager, human collaboration system, and constraint optimizer — so you can focus on your product.
Core Platform Capabilities
Persistent Execution Graph
Execution exists as a persistent graph — not in memory. Pause, resume, inspect state, and recover after crashes across any number of sessions.
- Survives crashes and restarts
- Inspect state at any point
- Dynamic graph mutation at runtime
- Full execution history
const workflow = await clockwork.instances.create({
template: 'customer-onboarding',
})
// Resumable across any session
const state = await workflow.getState()Scheduling & Orchestration
Clockwork schedules work — not just tracks it. Dependencies, critical paths, deadlines, and parallel execution are managed automatically.
- Automatic critical path detection
- Deadline-aware scheduling
- Parallel work coordination
- Automatic replanning on change
workflow.onResourceUnavailable('doctor', () => {
workflow.reschedule()
// All dependents move automatically
})Constraint Optimization
Execution satisfies business constraints — budgets, deadlines, capacity limits, and custom rules — and continuously re-optimizes as constraints change.
- Capacity and budget constraints
- Priority-based optimization
- Instant re-planning on change
- Feasibility detection
sprint.addConstraint({
capacity: 40,
deadline: 'Friday 5:00 PM',
})
await sprint.optimize()This Sprint
Multi-Resource Coordination
Coordinate humans, AI agents, APIs, and shared resources from one execution graph. Automatic reassignment when resources change.
- Humans, AI, and services unified
- Automatic conflict detection
- Dynamic reassignment
- Real-time resource tracking
workflow.assign(task, resource)
workflow.on('severity_change', async () => {
await workflow.reassign({ priority: 'critical' })
})👤 Support Engineer
🤖 AI Triage
⚡ PagerDuty
Human-in-the-Loop
Humans participate directly inside execution. Approvals, reviews, and decisions are first-class execution events — not webhook hacks.
- Native approval steps
- Execution pauses automatically
- Resumes on human decision
- Artifact-based reviews
await workflow.requestApproval({
reviewer: editor.email,
artifact: 'blog-post-draft.md',
deadline: addHours(new Date(), 24),
})See it in action
Five primitives. Every feature you've had to build from scratch.
Each demo below shows a common SaaS feature built on top of one platform capability. The SDK panel, execution graph, and application UI stay synchronized.
Persistent Execution
Get started
The execution graph is the source of truth.
Scheduling, optimization, human collaboration, and resource coordination are built into the platform. Everything else is your product.