Now in Public Beta

Durable Execution Engine for Agentic Workflows

A lightweight, multi-tenant framework for long-running AI agents. Contd.ai gives your workflows epistemic savepoints, hybrid recovery, and built-in cost tracking — so they survive failures and finish what they start.

workflow_state.json
Without Contd
step_47: executing...
⚠ API timeout
⚠ Context: 127k tokens
⚠ $14.20 in tokens wasted
// state + reasoning lost
// restart from step_1
With Contd
savepoint_46: persisted ✓
reasoning_ledger: synced ✓
step_47: executing...
⚠ API timeout
↻ hybrid recovery from savepoint_46
step_47: complete ✓
cost: $0.03 (retry only)
The Problem

AI agents are fragile by design

Today's agent frameworks treat everything as a conversation. But real work isn't a chat — it's a series of discrete steps that need to survive failures, track costs, scale across sessions, and preserve reasoning over time.

Context Rot

As context windows fill with logs, retries, and history, reasoning quality degrades. Your agent gets dumber the longer it runs.

State Amnesia

One timeout, one rate limit, one server restart — and hours of agent work vanishes. No checkpoint means starting over.

Goal Drift

Without explicit state, agents lose track of constraints and objectives. They wander off-task or repeat work they've already done.

The Solution

Separate state from inference

Contd.ai introduces a durable persistence layer between your agent and the LLM. Epistemic savepoints preserve both execution and reasoning state. Hybrid recovery combines snapshots with event replay for instant restoration. Your agent can crash, restart, and resume exactly where it left off.

1

Decompose

Goals become task graphs. Each step is atomic, typed, and idempotent — with built-in deduplication and retry logic.

2

Execute

Each step runs with scoped context. A reasoning ledger tracks logic state so the LLM stays fresh and focused.

3

Savepoint

After each step, an epistemic savepoint captures execution state, reasoning context, and validated outputs.

4

Recover

Hybrid recovery loads the last snapshot and replays events to restore full state. No re-reading logs. No lost progress.

Everything you need for production agents

A layered architecture — SDK, core engine, API, and pluggable persistence — wrapped with enterprise features.

Epistemic Savepoints

Preserve both execution state and reasoning logic at every step. Agents resume with full context of what they knew and why — not just where they stopped.

Hybrid Recovery

Fast restoration combining snapshots with event replay. Recover from crashes, timeouts, and rate limits in milliseconds — not minutes.

LLM Cost Tracking

Integrated token counting and expense management per workflow, step, and tenant. Know exactly what each agent run costs before it finishes.

Idempotent Execution

Built-in automatic retries and step deduplication. Every step is safe to re-execute — no duplicate side effects, no wasted compute.

Multi-Tenant by Design

Organization-level data isolation and execution scoping from day one. SSO, role-based access, and team management built in.

Pluggable Persistence

Store state in PostgreSQL, S3, or bring your own backend. The persistence layer is fully pluggable — deploy on our cloud or yours.

Simple Integration

Three lines to make any workflow durable

Use @workflow and @step decorators to make any agent resumable. We handle savepoints, serialization, and hybrid recovery automatically.

  • Works with any LLM provider
  • Python, TypeScript, and Go SDKs (Java coming soon)
  • Pluggable storage: PostgreSQL, S3, or custom
  • Built-in LLM cost tracking per step
workflow.py
from contd import workflow, step

@workflow(name="data-pipeline")
async def process_data(items: list):
    results = []

    for i, item in enumerate(items):
        @step(f"process-{i}")
        async def run():
            return await llm.process(item)

        results.append(await run())

    return results

# Crashes at item 47? Hybrid recovery
# restores from savepoint — not item 1.
# Cost: only the retry tokens.

Stop building fragile demos.Ship agents that finish.

Join teams using Contd.ai to build durable, cost-aware AI workflows that survive the real world.