Skip to main content

Control plane for durable AI workers on infrastructure you control

Project description

Workers continuing their jobs inside isolated Rooms in the Dorf village

Dorf

Durable AI workers on infrastructure you control.

Dorf makes your coding agent a durable worker—Codex today, more harnesses over time. Give it a job, walk away, and come back to the same work.

Each Worker gets a full development environment for its native tools and workflows. The Room keeps that work isolated from the rest of your infrastructure.

Run a coding Job

Install Dorf and run the one-time guided setup:

uv tool install dorf
dorf setup

See Getting started for current prerequisites and setup details.

Then create a Worker and give it one complete goal:

dorf worker spawn python-developer

dorf job assign build-retry-queue \
  --to python-developer \
  --goal "Build a small Python retry queue with tests, run them, and publish the results as evidence."

dorf job wait build-retry-queue

Close the terminal while the Job runs, then return from another shell:

dorf job inspect build-retry-queue
dorf job message build-retry-queue "Add a test for exponential backoff and publish the new results."
dorf job wait build-retry-queue

Workers do Jobs in Rooms

Resource Meaning
Worker Durable identity around an agent harness
Job Pinned goal with its own conversation and retained evidence
Room Isolated environment supplied by a Room provider

An Assignment records the exact Worker, Job, and Room binding for lifecycle and recovery. Most human-facing commands need only the Worker or Job name.

Workers wrap the harnesses developers already use; they are not a replacement agent framework. The control plane is harness- and sandbox-provider agnostic by design. Codex and local Incus VMs are the only supported adapters today; other harnesses and local or cloud VM providers can fit the same boundaries once validated.

Why Dorf

  • Leave without losing the thread. Worker and Job identity survive the client that started them.
  • Return to the situation, not a transcript. Inspect state, timeline, and evidence without asking the Worker to recap.
  • Let the harness do its best work. Give it a complete development environment and contain that environment with a clear isolation boundary.
  • Build workflows above the runtime. Dorf owns durable execution; applications own policy, acceptance, and presentation.

Alpha status

Dorf is alpha software. See Setup support for current adapters, host requirements, and limitations.

Coding-to-PR showcase

Coding-to-PR is the first application built on Dorf, not the runtime's identity. It takes a coding task from an isolated workspace through checks, review, follow-up, and a PR proposal.

dorf start "Fix the checkout timeout and add a regression test"
# Or leave an issue running unattended:
dorf afk 42
dorf job inspect JOB
dorf job inspect JOB --json  # structured outcome pulse for agents
dorf verify JOB
dorf publish JOB

New coding Jobs use the Provider Connection selected by dorf setup. Pass --provider-connection NAME only to intentionally override that host-local default.

The official dorf-codex image is the coding workstation: repository preparation and checks come from the cloned repository's contract, while GitHub access remains a separately scoped host-side integration. See the North Star for how it fits the broader runtime.

Build on Dorf

Build workflow-specific applications with the experimental Python SDK. It exposes the same Worker, Room, Job, and Assignment controls used by the CLI; coding-to-PR is the first example.

from dorf import Dorf


def run_coding_workflow(task: str) -> str | None:
    with Dorf.open(provider_connection="personal-chatgpt") as dorf:
        dorf.spawn_worker("developer")
        dorf.assign_job(
            "implementation",
            worker_name="developer",
            goal=(
                f"{task}\n\n"
                "Acceptance:\n"
                "- Run the repository checks.\n"
                "- Publish the results as evidence."
            ),
        )
        result = dorf.wait_for_job_input("implementation")
        if result.outcome != "done":
            raise RuntimeError(result.detail or result.outcome)
        return result.response

The SDK is experimental and does not yet carry a third-party compatibility promise. See the Runtime Surface for the current responsibility boundary.

Learn more

Dorf is licensed under the Apache License 2.0.

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

dorf-0.1.2.tar.gz (143.6 kB view details)

Uploaded Source

Built Distribution

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

dorf-0.1.2-py3-none-any.whl (164.3 kB view details)

Uploaded Python 3

File details

Details for the file dorf-0.1.2.tar.gz.

File metadata

  • Download URL: dorf-0.1.2.tar.gz
  • Upload date:
  • Size: 143.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dorf-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e084c70691820de1112524d6eeaf18aa6b5f837d9fa2e0d5c0ad8facbb22711d
MD5 ec65d4bdd82ed2ab9af902706964a471
BLAKE2b-256 0c113563c6c0f585054e03b6b60191b63686c727e062676f496d7e61643d300f

See more details on using hashes here.

Provenance

The following attestation bundles were made for dorf-0.1.2.tar.gz:

Publisher: publish-python.yml on aphronio/dorf

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

File details

Details for the file dorf-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: dorf-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 164.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dorf-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 78b452b8e9be33794c502bc6bf02d6b7250c105c2d2f9f4cdefe18d1748235dc
MD5 e3183a01a6e5432023e079cfdb49201d
BLAKE2b-256 2755188178e84ed720dc3c222d57a444108c8f4f2fd66841fedc55ab591ca324

See more details on using hashes here.

Provenance

The following attestation bundles were made for dorf-0.1.2-py3-none-any.whl:

Publisher: publish-python.yml on aphronio/dorf

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