Skip to main content

yuuagents

A minimal Python agent runtime built around a single runtime core: Flow.

Flow = observable execution + mailbox + cancellation
Agent = LLM loop on top of Flow
Basin = live-flow index
TaskHost = SDK-first host API

Architecture

Flow is the only runtime object that matters.

  • Flow records what happened, owns a mailbox, tracks parent/children, and can be cancelled or waited on.
  • Agent is the LLM executor attached to a root Flow.
  • Deferred is a Flow state, not a separate object type.
  • Basin indexes all live flows, not just roots.
  • TaskHost is the host-facing API for submit, status, history, inspect, wait, cancel, and persistence.
  • Daemon/CLI support is an adapter layer on top of TaskHost, not the core model.

Persistence

SDK-only users should be able to run the runtime without yagents install.

  • In-process persistence should work without any daemon or socket.
  • Durable local persistence should be optional and pluggable.
  • The daemon adapter may use default disk locations and discovery files, but those are deployment conveniences, not runtime requirements.

Core Model

TaskHost
├── Basin
│   ├── flow lookup by id
│   ├── live flow registry
│   └── flow-level inspect / wait / cancel
└── Persistence
    ├── in-memory for SDK use
    └── optional disk-backed storage

Agent
├── root Flow
├── messages / usage / rounds
└── tool execution on child Flows

Flow Semantics

Flow is the execution topology.

  • Each flow has an id, kind, info, stem, mailbox, children, and optional parent link.
  • send(content) accepts str, Item, or list[Item].
  • The meaning of send is flow-specific and follows dependency inversion: different flow kinds interpret the same content differently.
  • A deferred flow continues running and may later notify its parent through the mailbox.

Host API

TaskHost is the main service boundary for both SDK and daemon usage.

host = TaskHost(basin=basin, persistence=persistence, root_factory=root_factory)

task_id = await host.submit(spec)
info = await host.status(task_id)
history = await host.history(task_id)
await host.wait(task_id)
await host.cancel(task_id)

This is the level that should remain stable. CLI and HTTP are projections of this API.

Built-in Tool Families

  • delegate: create a child agent flow through the host/runtime boundary.
  • execute_bash: create an interactive terminal flow when Docker is available.
  • inspect_background, wait_background, cancel_background, input_background, defer_background: host-level operations over live flow ids.
  • web_search, read_file, edit_file, delete_file, sleep, view_image: ordinary tools that do not require host-level control.

Design Notes

  • Root flow id should be the task id.
  • The implementation should prefer one truth source for runtime state, not mirrored host-side caches.

Metadata

Release files for yuuagents 0.2.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 yuuagents 0.2.0
File Size Uploaded Provenance Actions
yuuagents-0.2.0.tar.gz 60.0 kB With provenance Details for yuuagents-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 133.9 kB

Release files / yuuagents-0.2.0.tar.gz

Download URL yuuagents-0.2.0.tar.gz
Size 60.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4eb4649b9af12f9b1e529e6a5f990703172f28e7de2323220c3952b429d449ea
BLAKE2b-256 checksum
How to use checksums
74c2e693cea021af88beea402aa26fc079d36c4d0ce8f401585787942abd73b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Apr 1, 2026.

Transparency log

Release files / yuuagents-0.2.0-py3-none-any.whl

Download URL yuuagents-0.2.0-py3-none-any.whl
Size 73.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d59b8732aec0d18f77a452ea1a94f2d338db38c75aaa193e21540cda92a9324a
BLAKE2b-256 checksum
How to use checksums
f7fb6d87c7464a12b570359e72a5437e7fd7952673ace9514eb5b53818785799
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Apr 1, 2026.

Transparency log

Security for yuuagents 0.2.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for yuuagents-0.2.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 Apr 1, 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