Skip to main content

Deterministic orchestrator for AI agent workflows

Project description

Godel

Deterministic orchestrator for AI agent workflows. Orchestration is plain Python; agents are leaves. Every non-deterministic event is logged to an append-only audit trail that doubles as a replay tape — giving you resume, rewind, and hot-patch for free.

CI PyPI Python 3.10+ Tests

The problem

Most agent frameworks bury orchestration inside the LLM. The agent decides what step comes next by re-reading a plan, occasionally getting it wrong. State survives by luck. When something crashes three agents deep, you start over.

The insight

Agent workflows have two parts: structural decisions (what to do next, when to branch, what state to track) and operational decisions (how to implement a fix, whether a review is valid). The first is deterministic and doesn't need an LLM. The second requires judgment and can't be reduced to code.

Godel draws the line. @workflow functions handle structure. Agents handle judgment. Because the orchestrator is deterministic Python, the runtime can event-source every call — and three primitives fall out:

  • Resume — a crashed run picks up from the last durable event. Expensive agent calls are not re-paid.
  • Rewind — invalidate any event and replay forward. Back up without discarding prior work.
  • Hot-patch — edit the workflow, then godel resume. New code takes effect on the uncached tail.

No other agent framework ships all three.

Install

pip install godel-py

Quick start

from godel import workflow, step, run

@step
def review(pr_number):
    return run(["claude", "-p", f"Review PR #{pr_number} for correctness bugs"])

@step
def apply_fixes(review_output):
    return run(["claude", "-p", f"Apply these fixes: {review_output}"])

@workflow
def pr_pipeline(pr_number):
    findings = review(pr_number)
    if "no issues" not in findings.lower():
        apply_fixes(findings)
godel run pr_pipeline.py -- --pr-number 42

Crash at any point. godel resume picks up where it left off — no re-running the review.

How it differs

Godel LangGraph / CrewAI Temporal / DBOS
Orchestration Plain Python Pre-declared graphs / roles Workflow/Activity split
Resume from crash Built-in (event log) Build it yourself Built-in
Rewind to any point Built-in Not a concept Not available
Hot-patch live run Built-in Redeploy Redeploy
Human-in-the-loop godel pause / godel repair Custom Custom
Agent-first primitives Session state, schema outputs Varies Not designed for agents

Architecture

@workflow function          # you write this — plain Python
  -> @step calls            # each step is an event boundary
    -> run() / agent()      # shells out to Claude, Copilot, or any CLI
      -> event log          # append-only, deterministic replay backbone
        -> resume / rewind / repair

Documentation

Development

pip install -e ".[dev]"
pytest                      # 1276 tests across 98 files

Python 3.10+. Conventional commits. CI runs on every push to main.

License

Business Source License 1.1 — see LICENSE. Use Godel freely as a library in your applications, including commercially. The only restriction is offering Godel itself as a competing hosted orchestration service. Each version converts to Apache 2.0 after three years.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

godel_py-3.16.6.tar.gz (508.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

godel_py-3.16.6-py3-none-any.whl (208.9 kB view details)

Uploaded Python 3

File details

Details for the file godel_py-3.16.6.tar.gz.

File metadata

  • Download URL: godel_py-3.16.6.tar.gz
  • Upload date:
  • Size: 508.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for godel_py-3.16.6.tar.gz
Algorithm Hash digest
SHA256 4c8babd8e9b79de4b124750531eab05d02211397f3ccdcd78b1487413e5f26fc
MD5 f3e8045dcc3413585a2247adeb9e61af
BLAKE2b-256 f09d795cc4815457eeef42ee23320cf227c62a5ad59075b648abf9388f42d1cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for godel_py-3.16.6.tar.gz:

Publisher: publish.yml on atscub/godel-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file godel_py-3.16.6-py3-none-any.whl.

File metadata

  • Download URL: godel_py-3.16.6-py3-none-any.whl
  • Upload date:
  • Size: 208.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for godel_py-3.16.6-py3-none-any.whl
Algorithm Hash digest
SHA256 99d02c9cf286d9707d576b942e8dd311ea75e36a506e2fa0d5c8668ce403c011
MD5 9b5f5a481c70243cb4f6af87d18917d5
BLAKE2b-256 6e97dc3dd5dfec9215aba8c386e48b1c5a9e8e345a7042ad98cb72b417d5d612

See more details on using hashes here.

Provenance

The following attestation bundles were made for godel_py-3.16.6-py3-none-any.whl:

Publisher: publish.yml on atscub/godel-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page