Skip to main content

AgentOS

CI PyPI Python License: MIT

A control plane for durable, observable, human-in-the-loop LLM agent workflows.

Define a workflow as a DAG of agent steps. AgentOS runs it durably — surviving crashes, recording exactly one committed completion per step (a step that ran but did not commit before a crash is re-run, so external effects rely on downstream idempotency — see FAIL_MODES.md), pausing for human approval, and emitting a full trace and cost breakdown for every run.

The interesting part isn't calling LLMs. It's the distributed-systems layer around them: durable execution, idempotency, retries without corruption, suspended workflows, and observability. See DESIGN.md for the architecture and the decisions behind it.


Why this exists

A notebook chaining three agent calls works until something real happens — the process crashes mid-run, a model call times out, a step needs sign-off, or you need to explain why run #4821 cost $2.10. AgentOS handles those.

What it looks like running

One trace per run, derived from the event log. This one wrote a haiku on a local model, suspended for a human's approval of a spend step, waited, and resumed after the grant — the gap is the human:

Jaeger: a run suspended for approval, then resumed

The provisioned Grafana dashboard, from the same log: runs per minute, error rate, latency percentiles, step outcomes, retries and dead-letters, tokens by executor, approval wait, cost by workflow. Every number is a fold of events — replaying the log rebuilds it exactly.

Grafana: the AgentOS dashboard

Both are from a real two-process run (API + worker) against Ollama — see docs/quickstart-llm.md §7 to reproduce them.

Architecture (at a glance)

flowchart TD
    C[Client] -->|define / start / approve| API[FastAPI API]
    API -->|append run.started, enqueue| PG[(PostgreSQL or SQLite<br/>event log · queue · leases · blobs)]
    PG --> W[Worker<br/>fenced lease, wave scheduler]
    W --> EXEC[Executors]
    EXEC --> PROV[Provider plugins<br/>openai-compat · anthropic · openai-agents · pydantic-ai · acp]
    EXEC --> TOOL[tool<br/>HTTP · subprocess]
    W -->|append events| PG
    PG -.observers derive.-> OTEL[OpenTelemetry → Jaeger]
    PG -.observers derive.-> PROM[Prometheus → Grafana]

One store is the whole truth: the append-only, hash-chained event log, plus the queue, fenced leases and content-addressed blobs, behind one Store port with PostgreSQL, SQLite and in-memory adapters. There is no second system to keep consistent. Snapshots bound replay cost and are only a cache of the fold.

Quick start

Five-minute start

No server, no .env edits, no curl — one run from the command line to a terminal state:

pip install dagentos
agentos init demo && cd demo
agentos run workflow.json --agents agent.json
# run 07c897b27789430fbbc4dd5d0b82300d: completed, 8 events

init writes .env (SQLite store, asserted auth, a comment pointing at bearer), the quick start's agent.json (an echo agent) and workflow.json (two steps, b after a), and a README with the three commands. run registers both on the store and advances the run in-process — the same engine path the API uses for ?sync=true, no process to start. Exit 0 when the run completed, 3 when it suspended for a human's approval (it says how many are pending), 1 when a step failed or was dead-lettered; --input topic=rain reaches steps as {run.topic}, --store sqlite:///path or memory picks the store, --json gives the facts as one document. Everything below — the API, the worker, the inbox — reads the same store, so a run started here shows up in /ui once you start the API.

With the API and a worker

Three paths. With a real model, no API key (recommended): docs/quickstart-llm.md — Ollama + the openai-compat provider, five minutes, a poet and a critic on your laptop. The approval gate, end to end: docs/tutorial.md — a run that suspends before a spend step, decided as a named human, then the log that proves it and a rewind to the moment it stopped; ten minutes, no model. Without any model (the mechanics only), below.

cp .env.example .env
pip install -e ".[dev]"
uvicorn dagentos.api.main:app --reload      # API (SQLite file ./agentos.db by default)
python -m dagentos.worker                   # worker, in another terminal

Installing rather than cloning: distribution and import package are both dagentos (pip install dagentos → import dagentos). The product is AgentOS; the name agentos on PyPI belongs to an unrelated project, so the package carries a d for durable. The AGENTOS_* environment variables and the agentos CLI keep the product name. Every release ships wheels with Sigstore-signed provenance and a multi-arch image built from the same wheels — verification in docs/RELEASING.md.

pip install "dagentos[providerkit]" agentos-provider-openai-compat
docker run --rm -p 127.0.0.1:8000:8000 ghcr.io/amitsinghom/agentos   # API on loopback; python -m dagentos.worker for the worker

A whole coding agent as a step: providers/acp runs one Agent Client Protocol turn (kiro-cli acp by default, any ACP agent by config) under the same gate — the agent's permission prompts are answered from the step's declared effect classes, never allow_always, and an unasked undeclared tool dead-letters the step.

No Docker needed for the default SQLite store. For Postgres (needs the .env from above — the compose file reads POSTGRES_PASSWORD from it and refuses to start without one): docker compose up -d, then AGENTOS_STORE=postgres AGENTOS_PG_DSN=postgresql://agentos:agentos@localhost/agentos for both processes.

Define and run a workflow (the Content-Type header matters — without it curl sends a form body and the API answers 422):

# register an agent
curl -X POST localhost:8000/agents -H 'Content-Type: application/json' -d @examples/echo_agent.json

# define a workflow
curl -X POST localhost:8000/workflows -H 'Content-Type: application/json' -d @examples/hello_workflow.json

# start a run: 202 + run id; the worker advances it. Repeating with the same
# Idempotency-Key returns the same run.
curl -X POST localhost:8000/workflows/hello/runs -H 'Idempotency-Key: demo-1'

# fetch the folded state, or the raw event log paged by seq
curl localhost:8000/runs/{run_id}
curl 'localhost:8000/runs/{run_id}/events?after=0'

# a step that exhausted its retries is dead-lettered with the cause; reopen it,
# recording who asked, and the run continues from where it stopped
curl -X POST localhost:8000/runs/{run_id}/steps/{step_id}/retry \
     -H 'Content-Type: application/json' \
     -d '{"principal": {"kind": "human", "id": "amit"}, "reason": "fixed the agent"}'

# operator control: each is a persisted request, finalized at the worker's next
# boundary (or immediately if nothing is running). Completed steps are never lost.
curl -X POST localhost:8000/runs/{run_id}/pause
curl -X POST localhost:8000/runs/{run_id}/resume
curl -X POST localhost:8000/runs/{run_id}/cancel

# human-in-the-loop: a step whose agent declares spend / write_external / send_message /
# execute_code suspends the run BEFORE it runs. Decide from the inbox; the decision and
# who made it are in the log; the step then runs, and its completion is committed once.
curl localhost:8000/approvals
curl -X POST localhost:8000/runs/{run_id}/approvals/{approval_id}/approve \
     -H 'Content-Type: application/json' \
     -d '{"principal": {"kind": "human", "id": "amit"}, "reason": "within budget"}'

# or run synchronously in the API process (Phase 0 behaviour)
curl -X POST 'localhost:8000/workflows/hello/runs?sync=true'

Or run the same walkthrough as a test: pytest tests/test_quickstart.py.

What people use it for

AgentOS is for the agent work that has to be accountable: it spends money, writes to a system someone else depends on, or has to be explained afterwards to a person who was not there. Each use case below is one declared workflow; the files named are in examples/ and run against the quick start.

Use case The shape Where the ledger earns its keep
Content pipeline with a reviewer — write, then critique, then ship two llm steps: poet writes, critic reviews with depends_on: ["write"] and a retry policy (haiku_workflow.json); critic_typed_agent.json makes the review a typed {score, reason} via output_schema budget.max_run_cost caps the whole run; a flaky model is retried per node and dead-lettered with the cause, not silently dropped
Research, then write — pull facts from an API, hand them to a model a tool step (kind: http, effect read) feeding an llm step (research_workflow.json); the URL is the operator's and inputs reach the tool as values only, never as URL or argv the response body (capped at 1 MiB, header values redacted) is the step's recorded output, so the writer's prompt is reproducible after the API changes
Anything that spends or ships — payment, deploy, outbound email any node whose agent declares spend, write_external, send_message or execute_code (diamond_workflow.json with payer_agent.json) the run suspends before the step runs; a named human approves from the inbox or the API; who, when and why are in the hash-chained log; the step's completion is then committed once
A coding agent as one step — fix a failing test, open a change one llm step with executor: acp declaring [compute, read, execute_code] (providers/acp); the agent's permission prompts are answered from that declaration an unasked edit outside the declaration dead-letters the step; every tool call is recorded by SHA-256; no allow_always ever
Scheduled and event-driven runs — nightly reports, "on every push" python -m dagentos.triggers with cron slots (IANA time zones) and HMAC-signed webhooks (triggers.json) every trigger goes through the public run-start API with a derived Idempotency-Key, so a redelivered webhook or a retried slot is one run
Comparing models or harnesses — same task, different backend one workflow, executor swapped between openai-compat, anthropic, openai-agents, pydantic-ai and acp; the two API providers share one output shape and the two SDK harnesses another, each pinned by a test the cost panel and provenance.model_id make the comparison a query over runs, not a spreadsheet

If the work is a conversation with an agent that should remember you, that is a workspace product (Kiro CLI, Kiro Crew) — AgentOS runs its agent as a step when the step needs the ledger, and stays out of the way otherwise.

Every model touches the core through one seam, the Executor port, so the choice of model is an agent-definition field plus environment variables — never a code change. Two agents in the same workflow can use two vendors.

Backend executor Environment config.model
Ollama (local, the default) openai-compat none — ollama serve on 127.0.0.1:11434, ollama pull qwen2.5:0.5b alias chat.fast → qwen2.5:0.5b, chat.default → llama3.2:3b
OpenAI (gpt-4.1, gpt-4o, o3-mini, …) openai-compat AGENTOS_OPENAI_BASE_URL=https://api.openai.com/v1 and OPENAI_API_KEY a concrete id, or re-point the aliases: AGENTOS_OPENAI_ALIASES='{"chat.fast":"gpt-4o-mini","chat.default":"gpt-4.1"}'
Anthropic (claude-sonnet-4, claude-3-5-haiku-latest, …) anthropic AGENTOS_ANTHROPIC_BASE_URL=https://api.anthropic.com (no /v1) and ANTHROPIC_API_KEY AGENTOS_ANTHROPIC_ALIASES='{"chat.fast":"claude-3-5-haiku-latest","chat.default":"claude-sonnet-4"}'
Google Gemini openai-compat AGENTOS_OPENAI_BASE_URL=https://generativelanguage.googleapis.com/v1beta/openai and AGENTOS_OPENAI_API_KEY=<Gemini key> e.g. gemini-2.5-flash — any id the endpoint lists
OpenRouter (hundreds of models behind one key) openai-compat AGENTOS_OPENAI_BASE_URL=https://openrouter.ai/api/v1 and AGENTOS_OPENAI_API_KEY the router's vendor/model id, as its GET /models lists it
vLLM / LM Studio / any OpenAI-compatible server openai-compat AGENTOS_OPENAI_BASE_URL=http://host:8000/v1 (vLLM) or http://127.0.0.1:1234/v1 (LM Studio) whatever the server reports at GET /models
An agent SDK with tools (OpenAI Agents SDK, PydanticAI) openai-agents / pydantic-ai same shape with the AGENTOS_OPENAI_AGENTS_* / AGENTOS_PYDANTIC_AI_* prefix; both default to local Ollama alias or id; tools names registered operator functions, each with an effect class
A whole coding agent (Kiro CLI, Gemini CLI, Claude Code via its ACP adapter, …) acp AGENTOS_ACP_COMMAND='["kiro-cli","acp"]' (default) plus the agent's own login ignored — the agent brings its model

The same poet, three ways. Only executor (and the environment above) changes:

{"name": "poet", "type": "llm", "executor": "openai-compat",
 "config": {"model": "chat.fast", "system": "You are a terse poet.",
            "prompt": "Write a haiku about {run.topic}."}}
{"name": "poet", "type": "llm", "executor": "anthropic",
 "config": {"model": "claude-3-5-haiku-latest", "system": "You are a terse poet.",
            "prompt": "Write a haiku about {run.topic}."}}
{"name": "poet", "type": "llm", "executor": "pydantic-ai", "declared_effects": ["compute"],
 "config": {"model": "gpt-4o-mini", "instructions": "You are a terse poet.",
            "prompt": "Write a haiku about {run.topic}.", "tools": ["utc_now"]}}

Mixing vendors in one run is the same file twice: register the Anthropic poet and an OpenAI critic, and haiku_workflow.json runs unchanged. GET /executors shows each backend's health (server reachable, aliases resolvable to models it actually has) before you start a run.

What the log records is the same for all of them: the concrete model_id the server reported (not the alias you asked for), token usage, and a cost metered through a content-addressed pricing table whose hash is on every step. OpenAI and Anthropic ids in the bundled tables are priced; anything else (Gemini, OpenRouter, a local model) is recorded with its meters and priced: false until you point AGENTOS_OPENAI_PRICING / AGENTOS_ANTHROPIC_PRICING at your own table — the amount is never guessed. A misconfiguration is a ConfigError naming the variable; an unreachable server, a missing model or a bad key is a step.failed whose message says what to do (ollama pull …, set the key), then the node's retry policy, then a dead-letter with that message as the cause. Full per-provider tables: providers/*/README.md.

Authentication

The quick start runs with AGENTOS_AUTH=asserted (the default): the principal in a request body is recorded as given and nothing verifies it — the API says so in a startup warning. Before anyone else can reach the API, switch to bearer mode, where the credential decides who the caller is and the body may not:

# one line per principal; the file holds SHA-256 hashes, never tokens
TOKEN=$(openssl rand -hex 32)
printf '{"principals": [{"sha256": "%s", "kind": "human", "id": "amit"}]}\n' \
  "$(printf %s "$TOKEN" | shasum -a 256 | cut -d' ' -f1)" > tokens.json
AGENTOS_AUTH=bearer AGENTOS_AUTH_TOKENS=tokens.json uvicorn dagentos.api.main:app

# every request except /health, /ready and /metrics needs the token; decisions drop the body principal
curl -X POST localhost:8000/runs/{run_id}/approvals/{approval_id}/approve \
     -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
     -d '{"reason": "within budget"}'

The recorded principal on approval.granted is the token's (kind, id, and an attestation naming which credential, token:sha256:<12 hex>), a body principal is rejected 422 rather than silently replaced, an agent-kind token can neither approve a spend step (403) nor register agents or define workflows (403), and every rejection is logged by hash prefix only. Rotate by editing the file and restarting. Tests: tests/test_auth.py; contract: docs/TRUST_BOUNDARY.md §1. Which way every chokepoint fails, with the test that pins it: docs/FAIL_MODES.md.

Operator policy ceiling

Every limit the gate enforces comes from the workflow's budget — written by whoever defines the workflow. The operator's rules live in one file that every workflow budget is intersected with before the gate sees it. Tightest wins; a policy can only narrow:

AGENTOS_POLICY=examples/operator_policy.json uvicorn dagentos.api.main:app   # and the worker
curl localhost:8000/policy          # the ceiling and its sha256

effect_ceiling is the set of effect classes any step may ever run (outside it → refused before dispatch, whatever the workflow says); always_approve forces a decision even where a workflow allows a class freely; agent_approval_allowed: false revokes allow_agent_approval everywhere, including on the approve path; allowed_executors fails a run at dispatch if an agent names anything else; the cost and wall limits are minimums. Each run records governance.policy_applied right after run.started with the policy's sha256 and every narrowing, so the log says which ceiling governed it. No AGENTOS_POLICY → no ceiling and a startup warning. Tests: tests/test_policy.py.

Operator UI

The run page at /ui: the diamond run suspended with one pending approval — step "pay" declares spend — the ApprovalCard with Approve and Reject, and the DAG with a and b completed, pay awaiting approval, d pending

The API serves a small React app at /ui — in the wheel and the image, no Node at runtime — with three screens: the approvals inbox, the run list (status filter held in the URL), and the run page: the DAG laid out by dagre with each node's state read from the server's folded run, the live stream as the trigger for refetches, a timeline with time travel (GET /runs/{id}?at=k, folded on the server, never in the browser), cost and latency per node, Pause / Resume / Cancel and per-step retry that mirror the engine's 409 rules, an integrity verdict chip from GET /runs/{id}/integrity, and decisions in place with the same ApprovalCard the inbox uses. Every decision control shows exactly who the log will name first (GET /me; in asserted mode the banner says Unverified and makes you type a principal), keeps the bearer token in the tab's sessionStorage only, sends the API's own bodies, and shows the API's errors verbatim. Three runtime dependencies, a ~325 kB bundle, a strict CSP (frame-ancestors 'none') on every /ui response. Building from a checkout: cd ui && npm ci && npm run build; the contract and what the UI deliberately does not do are in docs/UI.md, and docs/tutorial.md drives all three screens in ten minutes. The screenshot above is agentos run examples/diamond_workflow.json --agents examples/calc_agent.json examples/payer_agent.json followed by the API on the same store — the run suspends before pay and waits for a named human.

Triggers: cron and webhooks

Runs can start without a person at a terminal, through the same POST /workflows/{name}/runs everything else uses — no second door into the engine:

AGENTOS_TRIGGERS=triggers.json uvicorn dagentos.api.main:app     # mounts POST /triggers/webhooks/{name}
AGENTOS_TRIGGERS=triggers.json python -m dagentos.triggers       # fires the cron triggers

A cron slot becomes Idempotency-Key: cron:{name}:{slot}, a webhook delivery becomes webhook:{name}:{delivery-id}, so a restarted runner or a redelivered webhook lands on the same run. Webhooks are signed Stripe-style (X-AgentOS-Timestamp + HMAC-SHA256 X-AgentOS-Signature, ±300 s), the secret comes from an environment variable the file names, and an unset secret stops the API at startup rather than mounting an unsignable route. Missed cron slots are never backfilled. Contract, file format and every fail mode in docs/triggers.md.

Approval notices in Slack

AGENTOS_SLACK_WEBHOOK=https://hooks.slack.com/services/T…/B…/… python -m dagentos.worker

When a run suspends for a human, the channel gets the workflow, step, effect class, reason and a link to the run page; when someone decides, it gets who and why. The message carries no authority — no approve button, no token — because an incoming webhook can verify nobody; the decision stays in the UI or API where the principal is. Posts happen off the engine's thread on a bounded queue, and Slack being down is a warning, never a failed run. docs/notifications.md.

Sealed chains and the agentos CLI

The hash chain makes edits visible; it cannot stop someone with database access from rewriting an idle run and recomputing every hash. With a keyring configured, every event that leaves a run idle is followed in the same batch by a seal — an HMAC under a key the database host never sees — so a rewrite needs the key and a deleted seal shows as an unsigned tail:

printf '{"active": "k1", "keys": {"k1": "%s"}}\n' "$(openssl rand -hex 32)" > signing-keys.json
AGENTOS_SIGNING_KEYS=signing-keys.json uvicorn dagentos.api.main:app      # and the worker

agentos verify                      # every run: chain + seals; exit 1 on any failure
agentos doctor                      # store, migrations, executors, auth/policy/signing, every run
agentos policy explain hello        # what the operator ceiling does to one workflow, per node
agentos pause --all --reason "leaked provider key"   # kill switch: in-flight steps finish,
agentos pause --status              #   nothing new dispatches, runs are not cancelled or paused
agentos resume --all                #   individually; parked runs continue on the next tick
agentos init demo                   # a minimal project: .env, agent.json, workflow.json, README
agentos run workflow.json --agents agent.json   # one run, in-process, to a terminal state (exit 3 = suspended)
agentos export-run --run <id> --format jsonl --include-blobs --out run.jsonl   # a file for an auditor / evaluator
agentos archive --older-than 30d --out ./archive          # dry run: which terminal runs WOULD leave the store
agentos archive --older-than 30d --out ./archive --yes    # export each to <run_id>.jsonl, check it, then purge

agentos export-run hands a run to an auditor or an external evaluator (opik, langfuse) as JSON Lines: a header with the chain verdict, every event exactly as stored (hashes included), the referenced blobs with --include-blobs, and the fold's own status and cost. AgentOS records, never scores. --all is one stream with a header per run. A run that fails verification is still exported, marked verified: false, and the exit is 1. Format and versioning rule: docs/REPLAY.md, "Exporting a run".

agentos archive is the bound on disk, and the only path that removes rows: every terminal run last updated before the cutoff is exported with the same writer, fsynced and read back, and only then purged in one transaction (events, snapshot, queue and lease rows, the run row; blobs only with --include-blobs, and only those no remaining run references). ARCHIVE.jsonl in the output dir records each file's sha256. A run whose chain or seals fail is exported but kept (exit 1); non-terminal runs are never touched; the default is a dry run. The export file is then the record, and this is retention, not erasure — crypto-shredding (A7) is still open. docs/REPLAY.md, "Archiving runs".

The pause is one store-level fact (scheduler_state, an append-only history with who/why/when), never a run event, so per-run replay stays deterministic. The engine reads it before every wave and the worker before every pull and sweep; an unreadable flag counts as paused (fail-closed). GET /scheduler shows it read-only — no API verb can set or clear it.

GET /runs/{id}/integrity reports the same seal state (unsigned | verified | unverifiable | INVALID). Limits, stated plainly in docs/TRUST_BOUNDARY.md §2: the key is symmetric (keep it off the DB host), and nothing in the log can detect truncation after the last seal — the CLI reports the uncovered tail instead of pretending. Tests: tests/test_seal_and_cli.py.

Observability

Telemetry is derived from the event log, so it can be rebuilt from any stored run and the core imports no telemetry SDK.

pip install -e ".[observability]"
docker compose up -d jaeger prometheus grafana
AGENTOS_OTEL_EXPORTER=otlp OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 \
  uvicorn dagentos.api.main:app          # and the worker, with the same two variables
  • Traces: Jaeger — one span per run, one per step attempt, with OpenTelemetry GenAI attributes (gen_ai.system, gen_ai.request.model, gen_ai.usage.*_tokens) plus agentos.* (effects declared/reported, cost, approval and dead-letter events).
  • Metrics: GET /metrics on the API, scraped by Prometheus.
  • Dashboard: Grafana, provisioned — runs/min, error rate, runs awaiting approval, total cost, latency p50/p95/p99, step outcomes, retries and dead-letters, tokens by agent, approval wait, cost per minute by workflow.

The crash demo, as a test

pytest tests/chaos/test_kill9_real_process.py -v

A real worker process is started, hard-killed (exit 137) right after step 2 of 3 is committed, and a second process picks the run up and finishes it. The test asserts step 2 is never started again and the log has exactly one completion per step. Every fault point in the commit path has a test in tests/chaos/; they run on every PR.

Roadmap

This is built in public, in phases, each ending in a tagged release and a writeup. See ROADMAP.md.

Phase Ships Status
0 · Walking skeleton API + Postgres up, single-step run end-to-end ✅ v0.1.0-skeleton
1 · Durable execution Event-sourced state, idempotent steps, crash-resume ✅ v0.2.0-durable
2 · DAG orchestration Parallel branches, agent versioning, retries + DLQ ✅ v0.3.0-dag
3 · HITL + observability Approval gates, OpenTelemetry, cost dashboard ✅ v0.4.0-observable
4 · Providers + DX OpenAI-compatible + Anthropic plugins, aliases, cassettes, 5-minute quickstart ✅ v0.5.0-providers
5 · Trust boundary + polish C12: strict control payloads, tamper-evident log, inputs as data; screenshots ✅ v0.6.0-trusted
6 · Tools, snapshots, survey close-out tool agent, verified snapshots + migrations, all 15 landscape-con issues closed with tests ✅ v0.7.0-complete
7 · Streaming + inner harness GET /runs/{id}/stream (SSE over the log), OpenAI Agents SDK and PydanticAI as governed steps ✅ v0.8.0-watchable, v0.8.1
8 · Pilot readiness Authenticated Principal, operator policy ceiling, sealed chains + agentos verify / doctor / policy explain, FAIL_MODES, publishing with provenance as agentos-durable (renamed dagentos in v0.11.0) ✅ v0.9.0-pilot
9 · UI Approvals inbox, live run graph over the stream, timeline with time travel, cost + latency — served at /ui, in the wheel and image ✅ v0.10.0-ui, detailed in v0.12.0, production passes in v0.13.0 and v0.14.0, shell in v0.15.0, run controls, in-place decisions, first-hour tutorial and four-seat review in v0.16.0
10 · Triggers, notifier, ACP, hardening Cron runner + HMAC-signed webhooks through the public run-start API, Slack approval notices that carry no authority, a whole ACP coding agent as one governed step, compose and image on loopback with no literal credential, asserted-mode tool deny, first PyPI release ✅ v0.17.0, v0.17.1
11 · Hardening, operability, run index, archive, function calling Global pause kill switch (agentos pause --all, migration 3), tool output streamed under byte caps with substituted secrets redacted, runs index + server-side GET /runs?status= (migration 4), agentos export-run and agentos archive (export-then-purge, never on an unverified chain), agentos init / run, function calling on openai-compat gated by declared effects, ruff + mypy baseline gate, SHA-pinned actions and hash-pinned image, Hypothesis properties + Toxiproxy scenarios, scheduled CI ✅ v0.18.0

Phases 1–3 are scoped against a survey of what the popular agent runtimes get wrong (LangGraph, agno, Microsoft Agent Framework, crewAI, ADK, mastra, Temporal, Hatchet…). Each gap is a tracked issue labelled landscape-con; see ROADMAP.md.

Engineering writeups

Each phase produces an article on a distributed-systems problem solved here:

  • Idempotency Beyond API Keys
  • Durable Execution: Resuming Workflows After a Crash
  • Retry Without Data Corruption
  • Suspended Workflows: Human Approval as a First-Class State
  • Providers Are Plugins
  • Three Doors: Where Untrusted Bytes Meet an Agent Engine
  • Snapshots That Are Never the Truth
  • The Stream Is the Log

(See docs/blog/.)

Contributing

CONTRIBUTING.md sets up a clone exactly as CI does and lists the gate (ruff check ., lint-imports, pytest -q --ignore=tests/chaos) and the house rules: a test that is red first, a docs/FAIL_MODES.md row when a boundary changes, docs checked against code. Bugs and feature requests go through the issue forms in .github/ISSUE_TEMPLATE/ — the bug form asks for the version, the store, the auth mode and agentos doctor --json, with a reminder to redact.

Security

Report vulnerabilities privately through GitHub's Security Advisory form; scope, supported versions and response times are in SECURITY.md. Dependabot watches every distribution, the UI and the workflow actions; CI runs pip-audit --strict and npm audit --audit-level=high --omit=dev (what ships in ui/dist; the dev tree is reported, not blocking) on every pull request. Release artifacts carry build provenance (gh attestation verify).

License

MIT

Metadata

Release files for dagentos 0.18.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dagentos 0.18.0
File Size Uploaded Provenance Actions
dagentos-0.18.0.tar.gz 476.3 kB With provenance Details for dagentos-0.18.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dagentos 0.18.0
File Interpreter ABI Platform Actions
dagentos-0.18.0-py3-none-any.whl Python 3 none any Details for dagentos-0.18.0-py3-none-any.whl

Total release size: 970.9 kB

Release files / dagentos-0.18.0.tar.gz

Download URL dagentos-0.18.0.tar.gz
Size 476.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0e20a7861ae2305ebf3632e4fd34b70ad7532459ac0c8588ae2ba772703866c0
BLAKE2b-256 checksum
How to use checksums
460f67c942b84120aa9230283966c756e24b0c1c7f7138451b1e51dd9fa77c05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / dagentos-0.18.0-py3-none-any.whl

Download URL dagentos-0.18.0-py3-none-any.whl
Size 494.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b61a2e96511d458ee72ce372ed3ea6a0b80d51bff8be7e61b80654fdfcaa62b3
BLAKE2b-256 checksum
How to use checksums
8e4aabebde3631e5f38a3d1a80f7e53710f6e598a5a74bac7c617965cbf02b06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for dagentos 0.18.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dagentos-0.18.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page