Introducing a new way to review your PRs.

Read the announcement

hatchet-dev / hatchet

🪓 An orchestration engine for background tasks, AI agents, and durable workflows

View on GitHub

31 documents · Updated Nov 23, 2026

docs / developer-products-and-integrations

Developer products and integrations

Hatchet's developer products connect application code to workflow coordination. Language SDKs define work, start and control runs, send events, host workers, and read durable streams. Runtime-specific clients extend this model to serverless endpoints, embedded engines, isolated sandboxes, and durable agent sessions. Integration adapters connect workflow actions and Hatchet notices to services outside Hatchet.

Client surface

The client surface gives an application one place to define work, invoke it, inspect its state, and operate the resources around it. Each client keeps the same main relationship: application code declares work, Hatchet coordinates it, and a worker or runtime executes it.

CapabilityProduct roleTypical runtime
Workflow definitionDescribe tasks, triggers, dependencies, and run rulesAny language SDK
Run controlStart, wait for, inspect, cancel, replay, or branch workApplication service
Worker executionReceive assigned tasks and report their stateLong-running process
Event and stream exchangeTrigger work and pass retained topic data between servicesServices, workers, and edge runtimes
Serverless executionServe task handlers without a worker processCloudflare Workers, Vercel, or Node HTTP
Sandbox executionUse isolated workspaces through Hatchet tasksTypeScript application
Durable agent sessionsKeep an interactive agent session owned by one task while exposing it through streamsTypeScript application
External integrationCall providers or deliver Hatchet noticesWorkflow and platform services

The client boundary also carries tenant identity, namespaces, authentication, and runtime limits. These settings define which Hatchet resources an application can reach. They do not change the meaning of a task or run.

References: sdks/…/client.ts• L275-306 sdks/…/client.ts• L86-142 sdks/…/hatchet.py• L69-144 sdks/…/sandbox.ts• L344-371 sdks/…/index.ts• L1-43

Application workflow lifecycle

An application moves through definition, invocation, execution, and observation. A workflow definition becomes a contract that Hatchet can schedule. An invocation creates a run or emits an event. A worker or serverless endpoint receives assigned task work and reports the result so Hatchet can advance the run.

The common path is:

sequenceDiagram
    participant App as Application
    participant SDK as Language SDK
    participant API as Hatchet service
    participant Runtime as Worker or serverless endpoint

    App->>SDK: Define workflow and task handlers
    SDK->>API: Register workflow contract
    App->>SDK: Trigger run or publish event
    SDK->>API: Create run
    API->>Runtime: Assign task
    Runtime->>SDK: Run handler
    SDK->>API: Report result and state
    SDK-->>App: Return result or run reference

An application can wait for a result or keep a run reference for later control. The same run model supports retries, cancellation, replay, restoration, and child work. Bulk invocation creates several runs while preserving the input-to-reference relationship so the caller can act on partial progress.

Workflow graphs also control how task results reach dependent tasks. A task that returns no value can still be a valid graph node. A condition that cannot find an optional output does not by itself make the graph fail. The graph can still decide whether to run, skip, or cancel a child.

References: sdks/…/trigger-request.ts• L17-45 sdks/…/client.ts• L243-363 sdks/…/workflow.py• L185-281 sdks/…/runs.py• L61-97

Runtime clients

Hatchet supports clients for Go, Python, Ruby, and TypeScript. They expose the same broad workflow model while matching the process and type system of each language. See Language SDKs for language-specific entry points and worker contracts.

TypeScript clients

The TypeScript SDK provides a Node client for workflow declarations, run control, workers, events, schedules, REST-backed resources, and streams. Its current package version is 1.47.4, and the Node client targets Node.js 22 or later. A compatibility facade keeps older workflow declarations on the current execution path while applications migrate to the v1 model.

The /core client is runtime-neutral. It accepts explicit configuration and uses fetch for engine and API calls, so an application can trigger work, wait for results, manage unary resources, write logs, and read durable topics from edge, browser-like, serverless, or Node runtimes. It can also use a caller-supplied transport. It does not start workers or consume worker assignment streams. The Node client remains the worker-capable surface.

The Node and core clients share the same trigger and event meaning. This keeps a run started from an edge function equivalent to one started from a Node service. Their transport and worker capabilities differ, but the Hatchet service contract remains the same.

References: sdks/…/client.ts• L86-190 sdks/…/trigger-request.ts• L17-45 sdks/…/rpc.ts• L23-68 sdks/…/CHANGELOG.md• L14-48

Python client

The Python SDK is the main application boundary for Python workflow code. The current package is 2.0.0a6 and requires Python 3.11 or newer before Python 4. Its Hatchet client groups workflow definitions, run control, events, schedules, streams, workers, logs, metrics, webhooks, tenant operations, and other feature clients under one tenant and namespace.

Python workflows can use typed inputs and outputs, event or cron triggers, task graphs, retries, concurrency, rate limits, idempotency, and batch work. Regular tasks run on a worker. Durable tasks use a durable context for waits, child work, event handling, and recovery across process or worker interruption. In the v2 API, durable tasks must be asynchronous and public options use stricter typed values.

The Python worker registers workflow contracts, receives task assignments, invokes the application handler, and reports task state. The task context gives handler code access to input, parent results, cancellation, logs, events, child runs, and task-side controls. The same client can start a local embedded Hatchet engine for development or embedded deployments.

References: sdks/…/pyproject.toml• L1-28 sdks/…/CHANGELOG.md• L8-32 sdks/…/hatchet.py• L69-144 sdks/…/task.py• L190-279 sdks/…/context.py• L182-244 sdks/…/worker.py• L150-203

Go and Ruby clients

The Go client supports workflow and standalone task definitions, worker execution, run control, feature clients, durable streams, and an embedded engine path. Its embedded example pairs the main Go SDK with a separate embedded backend package. The Ruby client gives Ruby workers the same workflow model with task conditions, durable and batch work, run invocation, task-side controls, and idempotency rules. These clients let an application use Hatchet without changing the service-level workflow model.

References: sdks/…/client.go• L102-147 sdks/…/client.go• L744-905 sdks/…/client.go• L1249-1373 sdks/…/go.mod• L1-8 sdks/…/task.rb• L103-155 sdks/…/context.rb• L92-212

Transport and access model

SDK clients use tenant access data to reach two related service paths. The engine path carries workflow, event, dispatcher, and worker calls. The API path carries resource operations such as listing runs, managing schedules, and reading tenant data.

The access model is:

  • Unary service calls: register workflows, trigger runs, push events, read results, and control task state.
  • HTTP API calls: list and inspect resources, manage schedules and webhooks, read operational data, and fetch large stream payloads.
  • Worker or invocation streams: register workers, receive task assignments, report lifecycle events, and consume run or durable streams. Worker assignment streams need a worker-capable client.
  • Tenant entitlements: expose optional products such as durable streams, sandbox execution, and serverless execution.

Workflow and event names are scoped by a namespace. Clients apply that namespace when they register definitions, trigger work, and look up resources. Authentication and tenant identity remain part of the platform boundary rather than part of an individual task.

REST-backed clients treat any 2xx response as successful and report non-2xx responses as client errors. Generated REST models keep the client view aligned with service resources such as stream limits and task event types.

SDK retry layers also honor a server-provided RetryInfo delay when a unary call is throttled. The delay replaces local backoff for that attempt, increases on repeated throttling up to a five-second cap, and adds limited jitter so clients do not retry together. The clients keep their normal retry rules for errors without an acceptable server delay.

References: sdks/…/types.ts• L31-88 sdks/…/client.ts• L150-230 sdks/…/config.py• L242-260 sdks/…/dispatcher.py• L68-106 sdks/…/tenacity_utils.py• L30-121 sdks/…/server_retry_delay.rb• L9-59 sdks/…/retrier.ts• L12-87

Worker execution context

Workers give task code a view of its current run. That view connects the handler to task input, upstream results, cancellation, logs, streams, time limits, retry state, worker labels, and workflow events. The runtime reports the task result or failure so Hatchet can apply workflow rules.

Durable task contexts add waits and recovery-aware operations. This keeps the application handler focused on business work while Hatchet stores the points needed to resume the run. Serverless task contexts provide the same task-facing idea through the invocation boundary, without exposing worker identity when no worker exists.

References: sdks/…/context.py• L182-324 sdks/…/dispatcher.py• L139-220 sdks/…/context.ts• L137-220 sdks/…/worker-internal.ts• L66-133

Durable stream clients

Durable streams provide topics that retain messages independently of a workflow run. A producer publishes messages in order. A consumer reads retained messages and can resume after a cursor. This gives application services a durable handoff for data that does not belong to one task run.

flowchart LR
    Producer[Application producer] -->|publish| Topic[Durable topic]
    Topic -->|retained messages and cursors| Consumer[Application consumer]
    Consumer -->|save cursor| Checkpoint[Application state]
    Checkpoint -->|resume after cursor| Consumer

Clients can read from the retained start, resume from a cursor, reset the reader position, inspect topic metadata, and isolate topics by namespace. Worker-capable clients can publish and consume topics. Fetch-based clients can use the same topic model when they have the API path needed to read large payloads. TypeScript clients batch publishes where supported and fall back to single publishes for older engines. Clients preserve per-topic publish order and resume subscriptions after temporary failures.

Task-run streams are separate from durable topics. A task-run stream reports output from one run. A durable topic retains data for multiple producers and consumers.

References: sdks/…/streams.ts• L103-149 sdks/…/streams.ts• L169-318 sdks/…/streams.py• L78-101 sdks/…/streams.py• L205-260 sdks/…/durable_streams_test.go• L48-155

Serverless endpoint contract

The @hatchet-dev/serverless package lets a TypeScript application serve Hatchet tasks from a request-driven runtime. It uses the same workflow declarations as the TypeScript SDK. The endpoint publishes the workflows and actions it serves, then accepts signed task deliveries from the Hatchet serverless operator.

The endpoint supports pure HTTP delivery for tasks that need no live Hatchet connection. Tasks that wait for child results, durable events, or streams use an invocation WebSocket when the runtime supports it. An optional core client lets task code trigger child work, write logs, control task state, or use unary resources.

RuntimeEndpoint surfaceDurable delivery
Cloudflare Workerscloudflare adapterWebSocketPair and ctx.waitUntil
Vercel and Next.jsvercel route handlersWebSocket upgrade with Fluid compute
Self-hosted NodecreateServer or nodeHandlerws WebSocket server

The endpoint verifies request signatures and freshness before it runs task code. It reports task output, retryable errors, permanent errors, and unsupported runtime features through the operator contract.

References: sdks/…/index.ts• L26-104 sdks/…/healthcheck.ts• L12-51 sdks/…/contract.ts• L7-37 sdks/…/README.md• L1-11

Serverless task declarations

Serverless declarations separate task code from the runtime adapter. A declaration can represent a regular task, durable task, workflow, or batch action. The endpoint uses the declaration set to decide which actions it can serve and which actions need the live invocation boundary.

Pure tasks do not need a Hatchet connection while they run. Durable tasks always need Hatchet because their waits and child work must be recorded. Worker-only settings do not define serverless routing.

References: sdks/…/declarations.ts• L33-43 sdks/…/declarations.ts• L159-235 sdks/…/registry.ts• L36-77

Serverless invocation boundary

The invocation boundary carries task input, parent results, retry data, and task state between the operator and the endpoint. A socket invocation can also carry child-run results, durable events, and stream messages. The endpoint closes open streams before it sends the final task outcome.

The boundary is signed and time-limited. Durable upgrades also identify the endpoint and prevent replay of a request for a different endpoint. Runtime and operator message limits still apply to each invocation.

References: sdks/…/invocation.ts• L1-15 sdks/…/invocation.ts• L175-319 sdks/…/signature.ts• L1-80 sdks/…/nonce-set.ts• L1-80

Sandbox client

The @hatchet-dev/sandbox package gives TypeScript applications isolated workspaces backed by a provider connected to the tenant. A sandbox has a shell and a file system. Each command or file operation is a Hatchet task and can produce a snapshot, so a durable task can resume the workspace after an interruption.

The package adds hatchet.sandbox when the application imports it. Applications can create, reconnect, list, and delete workspaces. They can run commands, inspect results, manage files, and create forks from snapshots. A non-zero command exit code is a result for the application to inspect. A command timeout returns exit code 124.

Workspace state stays with the provider rather than in the application process. Applications select a provider and optional machine resources through Hatchet. Small file data travels in the task call. Larger transfers use the provider's staging path while the public file API stays the same.

The package exposes provider choice, resource size, metadata, snapshots, and workspace lifetime through the TypeScript client. Its current package version is 0.1.6 and it requires the TypeScript SDK as a peer dependency. Sandbox operations remain inside the Hatchet run boundary, so workflow retries, durable replay, and task metadata apply to them.

References: sdks/…/README.md• L10-15 sdks/…/README.md• L61-75 sdks/…/sandbox.ts• L245-372 sdks/…/package.json• L1-62

Durable agent sessions

The @hatchet-dev/pi-durable package hosts durable pi-durable agent sessions as Hatchet tasks. It combines agent storage for conversations and tool progress with Hatchet ownership, retries, scheduling, streams, and sandboxes. This gives an application an interactive agent that can resume after a worker failure.

One session task owns one session at a time through a concurrency key based on the session ID. A session client sends input, fork, or abort messages to an inbox topic and wakes the task. The host reads those messages, updates the agent, and publishes a complete session view to a separate topic for web servers, command-line clients, or other tasks.

The session layer separates durable responsibilities. Agent storage checkpoints model requests and tool calls. Hatchet decides where the session runs and starts a new owner after failure. Sandbox environments keep agent file and shell work outside the worker while snapshots support forks and recovery.

The package can keep that agent storage in a Hatchet durable stream through openHatchetStorage. This option lets a replacement worker reopen the session from the stream instead of relying on a local disk. The stream is the durable record for commits, so a session can move between workers when all possible owners can reach the same Hatchet tenant.

Hatchet-backed storage has two limits that shape its use. Stream retention must cover the full session history, and the session must still have one active owner because the storage does not provide cross-process locking. If the history is incomplete or two owners write at once, the storage refuses recovery rather than risk using an invalid session state.

This diagram shows the session boundary between callers, Hatchet streams, the owning task, agent storage, and the sandbox provider.

flowchart LR
    Caller[Web server, CLI, or task] -->|input, fork, abort| Inbox[Session inbox topic]
    Caller -->|read views| View[Session view topic]
    Inbox --> Host[Hatchet session task]
    Host --> Storage[Agent session storage]
    Host --> Sandbox[Hatchet sandbox]
    Host -->|publish full state| View
    Host -->|retry, schedule, single owner| Hatchet[Hatchet service]

The inbox keeps request IDs so duplicate delivery is applied once. The view reports host state, conversations, live tool work, usage, sandbox state, and rejected messages. Storage on local worker disk limits failover to workers that can reach the same disk or volume. Hatchet-backed storage instead keeps commits in a durable stream, but its retention and ownership rules remain part of session recovery.

References: sdks/…/README.md• L3-18 sdks/…/README.md• L105-132 sdks/…/index.ts• L13-17 sdks/…/hatchet-storage.ts• L51-80 sdks/…/hatchet-storage.ts• L83-149 sdks/…/client.ts• L20-73 sdks/…/protocol.ts• L7-92 sdks/…/session-host.ts• L1-9 sdks/…/session-host.ts• L145-159 sdks/…/sandbox-env.ts• L1-29

External integration layer

The integration layer connects Hatchet actions and platform notices to external services. An outbound action lets a workflow call a provider. An inbound webhook verifies a provider request and turns it into Hatchet data. A notification provider delivers Hatchet-owned alerts without exposing provider details to workflow code.

DirectionPurposeExample
Outbound actionCall a provider from a workflowCreate a channel or send a message
Inbound webhookTurn a verified provider request into Hatchet dataValidate a signed request and map its payload
Platform noticeSend Hatchet alerts to people or support systemsSend invitation or failure email

Slack illustrates the outbound action path. Email providers illustrate the separate notification path. See External integrations and events for provider adapters, webhooks, and event translation.

References: pkg/…/integration.go• L9-57 pkg/…/slack.go• L12-108 pkg/…/email.go• L9-75 api/…/list_integrations.go• L9-26

Cross-product boundaries

Developer clients, workflow orchestration, workers, serverless endpoints, sandbox providers, durable agent sessions, streams, and external adapters solve different parts of one application path. The SDK is the application entry point. Hatchet owns workflow state and scheduling. Workers, serverless handlers, session tasks, and sandbox clients carry task work across the application boundary. Stream clients carry retained topic data. Integration adapters translate between Hatchet contracts and provider contracts.

Use the related pages to follow one concern without mixing its scope:

References: sdks/…/client.ts• L185-230 sdks/…/admin.ts• L76-135 sdks/…/context.ts• L137-184 sdks/…/registry.ts• L36-58 sdks/…/sandbox.ts• L344-371 sdks/…/session-host.ts• L145-159 pkg/…/integration.go• L32-57

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the TypeScript Node, core, legacy, serverless, sandbox, and pi-durable entry points aligned with their runtime promises. Do not expose worker-only behavior through the core client or pure serverless tasks.
  • Keep the Python v2 public exports, client feature surface, workflow declarations, worker registration, generated REST models, and documented package version aligned. Removed v1 paths must not remain in examples or public imports.
  • Keep workflow names, namespaces, trigger options, idempotency behavior, and run references aligned between the TypeScript, Python, Go, Ruby, sandbox, pi-durable, and serverless trigger paths.
  • Keep Python task conditions, parent-output handling, durable waits, event scopes, batch behavior, child-run identity, and the async-only durable task rule aligned with the engine contract.
  • Keep the REST feature clients, fetch client, Node client, generated data contracts, and OpenAPI source aligned. The two REST transports must expose the same feature meaning. Stream payload references must remain readable through the API path used by fetch-based clients.
  • Keep tenant entitlement models and update operations aligned across the SDK clients and API. Preserve the owner/admin rule for changing optional product access.
  • Keep the sandbox public exports, namespace, peer SDK range, provider selection, resource units, task names, and wire contract aligned. Drain in-flight durable sandbox work before changing a served sandbox task name.
  • Keep pi-durable session task names, namespace-prefixed topic names, message schemas, view schemas, concurrency keys, request deduplication, storage scope, and sandbox snapshots aligned. If Hatchet-backed storage is used, keep its topic namespace, retention assumptions, commit format, and one-owner rule aligned with the session task. Change the worker and session client together.
  • When durable stream publishing or subscription changes, keep per-topic order, cursor reset, reconnect behavior, payload-reference reads, size limits, and fallback for older engines aligned in every client.
  • Keep serverless declarations, healthcheck action lists, durable support, stream support, signing rules, endpoint identity, and runtime adapters aligned with operator assignment rules.
  • Keep generated protobuf, REST, and serverless contracts aligned with their shared source. Regenerate related outputs together.
  • When an SDK release changes, keep package metadata, exported version constants, changelogs, public entry points, and peer dependency ranges aligned.
  • Keep the server-throttling retry contract aligned across SDKs. Preserve the distinction between a server-provided retry delay and errors that must use normal retry policy.
  • When an integration action or webhook contract changes, update the provider adapter and the event or workflow path that consumes it.

Important failure modes

TriggerConsequenceGuard
The TypeScript core client has no API URL and calls a REST-backed feature or reads a referenced stream payloadThe operation fails at the client boundary or during payload retrievalSet apiUrl or use a token with a server URL claim
A fetch-only runtime selects the worker-capable client or asks the core client to register a workerThe runtime cannot load or use worker assignment supportUse the core client for fetch-based calls and durable topic reads. Use the Node client for workers
A serverless task needs child work, durable waits, or streams but arrives over plain HTTPThe task cannot complete its wait or stream operationKeep socket support enabled and do not mark the task as pure
A signed serverless request is stale, altered, replayed, or for another endpointThe endpoint rejects it before task code runsKeep the signing secret private and use endpoint identity with shared nonce storage when needed
A Python workflow is declared but not registered on the workerHatchet can store the workflow but no local handler receives its taskRegister the same workflow objects with the worker before startup
A Python durable task uses a synchronous handlerThe SDK rejects the task declarationUse an async handler for durable work
A Python worker starts while its process already owns a running event loopWorker startup fails instead of taking over the caller's loopStart the worker from a process context with a dedicated worker loop
A Python worker registers duplicate action namesWorker startup fails before task work beginsGive every task action a unique name after namespace and workflow composition
A server asks a client to wait more than five seconds or sends no usable RetryInfo detailThe call fails or follows the normal retry policy instead of waiting for throttling to clearKeep server retry details within the shared contract and handle the original error when the delay is absent or too long
A sandbox operation runs without the tenant sandbox capability or providerWorkspace creation cannot use the sandbox productEnable the tenant capability and connect a provider before invoking the package
A sandbox package is not imported before hatchet.sandbox is usedThe client has no sandbox namespaceImport @hatchet-dev/sandbox during application setup
A sandbox task name changes while durable tasks are in flightResumed work can fail with a non-determinism errorDrain in-flight durable tasks before changing the served name
A sandbox file path leaves the workspace or a provider transfer failsThe file operation returns a filesystem or transfer errorUse workspace-relative paths and handle staging errors before retrying
A core or fetch stream message is empty, too large, or a referenced payload has no fetch pathThe publish or subscription is rejectedSend non-empty inline messages within the client limit, or use a client with the upload and payload-read paths
A publish result is ambiguous and the client reuses its producer sequenceA retry can be treated as a duplicate with the wrong payloadTreat post-send failures as ambiguous and do not reuse the producer sequence
An engine does not support a durable-stream batch publish and the client has no fallbackStream publishing fails even though single-message publish is availableUse the SDK fallback path or upgrade the engine
A pi-durable session uses a task name or namespace different from its session clientMessages go to a different topic and the session appears idleShare the task name and namespace configuration between the task and client
A pi-durable session stores its state only on a worker that can failA retry on another worker cannot recover the conversation or unfinished tool workUse storage reachable by every possible owner, or constrain failover to the storage location
A pi-durable host has more than one active owner for a sessionConcurrent owners can apply messages or tool work twiceKeep the session-ID concurrency key and one-owner limit unchanged
Hatchet-backed session storage loses its oldest commits to stream retentionA replacement worker refuses to open the session because its history is incompleteSet retention for the expected session lifetime or use storage that preserves the full history
Two workers append to the same Hatchet-backed session storageRecovery detects out-of-order commits and refuses to open the storagePreserve one active owner per session and keep the session concurrency rule
A durable session inbox loses its committed cursor or reuses no request IDMessages can be missed or applied more than once after recoveryCommit the cursor with host state and keep request IDs on every client message
Generated REST, protobuf, or serverless contracts drift from their sourceClients, endpoints, operators, and services disagree about fields or operationsRegenerate all related outputs from the same source contracts
A Go client requests embedded mode without its embedded backendClient creation fails before workflows or workers startInclude the embedded backend when embedded startup is selected
A Ruby trigger reuses an idempotency key inside its active windowHatchet rejects the duplicate instead of creating another runUse a new key or wait for the configured window or terminal state

Key files

FileWhy to read it
sdks/…/client.tsShows the runtime-neutral application client and how engine, API, run, task, and stream capabilities meet.
sdks/…/client.tsShows the Node product's workflow declarations, run invocation, worker creation, and feature clients.
sdks/…/admin.tsShows the Node trigger, workflow registration, bulk run, and retry boundary.
sdks/…/trigger-request.tsShows the shared trigger contract used by core and Node clients.
sdks/…/rpc.tsShows the shared event contract used across TypeScript transports.
sdks/…/streams.tsShows durable topic publishing, cursor reads, payload references, and reconnect behavior for fetch runtimes.
sdks/…/retrier.tsShows the shared retry meaning for normal failures and server-provided throttling delays.
sdks/…/hatchet.pyShows the Python client boundary, feature clients, worker creation, and embedded entry point.
sdks/…/workflow.pyShows how Python workflow declarations become Hatchet workflow contracts.
sdks/…/task.pyShows the task declaration boundary for regular, durable, batch, and conditional work.
sdks/…/context.pyShows the task-facing execution context and durable controls.
sdks/…/worker.pyShows Python workflow registration and worker startup.
sdks/…/streams.pyShows Python durable topic publishing and cursor-based reads.
sdks/…/tenacity_utils.pyShows Python handling of server-provided retry delays.
sdks/…/embedded.pyShows the local embedded engine lifecycle used by the Python client.
sdks/…/index.tsShows the common serverless healthcheck, trigger, signature, and invocation boundary.
sdks/…/declarations.tsShows how serverless declarations map to regular and durable execution.
sdks/…/invocation.tsShows the socket-delivered task and outcome contract.
sdks/…/sandbox.tsShows sandbox lifecycle, provider selection, snapshots, and the Hatchet task boundary.
sdks/…/package.jsonShows the sandbox package boundary and its TypeScript SDK peer requirement.
sdks/…/session-host.tsShows how one Hatchet task owns, resumes, and schedules a durable agent session.
sdks/…/client.tsShows how external callers send session messages and read session views.
sdks/…/protocol.tsDefines the session topics, client messages, and published view contract.
sdks/…/hatchet-storage.tsShows the optional Hatchet durable-stream storage boundary for session failover and recovery.
sdks/…/sandbox-env.tsShows how agent tools use Hatchet sandboxes and workspace snapshots.
sdks/…/hatchet-storage.e2e.test.tsDemonstrates storage recovery and the safeguards for retention loss and competing owners.
sdks/…/session.e2e.test.tsDemonstrates session tools, forks, aborts, and worker failover with both local and Hatchet-backed storage.
pkg/…/integration.goDefines the shared boundary for provider actions, webhooks, and integration data.
pkg/…/slack.goIllustrates an outbound provider action integration.
pkg/…/email.goDefines the platform notification provider contract.
sdks/…/client.goShows the Go client boundary for embedded use, workflow and task runs, workers, and feature clients.
sdks/…/durable_streams_test.goCaptures the cross-client durable stream contract for cursors, reset, namespaces, metadata, and large payloads.
sdks/…/task.rbShows Ruby task definition, invocation, conditions, durable behavior, and batch behavior.
sdks/…/server_retry_delay.rbShows Ruby handling of server-directed throttling delays.