Flowgentic
Flowgentic runs LLM agents on HPC resources with the RADICAL stack: as AsyncFlow workflow tasks, and, from 0.5.0, as agents at scale whose tools run as RHAPSODY tasks and whose state lives in RaDEX. Agents at scale run on Flowgentic's own agent loop and OpenAI-compatible model servers; LangGraph is optional. Documentation: stride-research.github.io/flowgentic.
Where Flowgentic sits
The stack answers where Flowgentic sits: what uses it, what it uses, and which of those another tool can replace.
Above Flowgentic are the systems whose agents it runs: agentic middleware such as AUTONMI, agents written as LangGraph graphs, and AsyncFlow workflows that call agents as tasks, such as the agentic ones built with Workflow Mini-Apps. Around it, the boxes in blue are seams, each named by its interface. The tool in each seam is an example of the layer: another tool that implements the interface can take its place, today or after the work below. The application starts the services among them and passes them in; Flowgentic starts none of them.
| Seam | Interface | What Flowgentic ships | Another tool |
|---|---|---|---|
| Agent framework | The host's Runner: start and resume |
LoopRunner, Flowgentic's own loop; GraphRunner, for LangGraph |
After some work: another framework needs a runner, and an adapter for its tools |
| Model servers | OpenAI-compatible HTTP, through a Transport |
HTTPTransport, for vLLM, SGLang or a hosted API; OpenAITransport; LangChain chat models |
Fits today: any server that speaks the API, or the application's own Transport, such as a stub for tests |
| Store | KeyValueStore: get, put, delete, contains |
RadexStore, on RaDEX under Dragon; MemoryStore, a dictionary in the process |
Fits today: any object with these four methods |
| MCP servers | MCP, by URL or a connect function | The tool service's MCP clients | Fits today: any MCP server |
| Telemetry | The OpenTelemetry API | Spans and metrics from every part; flowgentic.otlp, to stream them to a collector |
Fits today: any SDK and exporters the application sets up |
| Task runtime | A RHAPSODY Session, or an AsyncFlow engine |
ToolRuntime takes either; RHAPSODY runs on its own backends, such as Dragon or a local pool |
After some work: another runtime needs a module like flowgentic._rhapsody |
| Runtime | Processes, queues and memory, passed in | Dragon on an allocation; threads, multiprocessing queues and a dictionary locally |
Fits today: Flowgentic imports nothing from Dragon |
Architecture
The architecture answers what Flowgentic's own components are, what each does,
and which interfaces connect them to each other and to the systems around
Flowgentic. Each runtime is reached through one private module, so the rest of
Flowgentic does not depend on it. LangGraphIntegration is frozen: it gets
fixes, not features.
How agents run
The execution model answers what happens, in order, when agents run, and in which process.
- Start. The application starts the model servers, the store, the tool
service and N agent processes, and passes each process what it uses. Each
process's
AgentHoststarts its agents, from a list or as they arrive, up to a cap of live agents. Thousands of agents share the process's event loop, each in one state at a time. - A model turn. The loop sends the agent's model call through the fleet, which admits it within this process's share of the caps and sends it to the agent's replica of a model server.
- A task tool. The tool calls of a reply run at once. An inline tool runs in the agent's process: an async one on the event loop, any other in a thread pool. A task tool, such as a simulation, becomes a RHAPSODY task on a worker, or a task of the application's AsyncFlow engine.
- Suspend and resume. While its task runs, the agent waits. If the tool suspends it, which needs a store, the loop puts its messages in the store, and the agent holds no memory in the process. When the task ends, the host resumes the agent, and the loop reads its messages back.
- An MCP tool. An MCP tool goes to the tool service over queues: one service calls the MCP servers for every agent process.
- The end. When the agent answers, the loop deletes its state from the
store, and the host hands its result to the application, through
on_doneor the future thatsubmitreturned.
Status
The agents-at-scale path, new in 0.5.0, is in active development. It runs many
thousands of agents per process on an HPC allocation: an agent host,
Flowgentic's own agent loop, which keeps a suspended agent's state in the
allocation's memory, tools that run inline, as RHAPSODY tasks or through a
shared MCP tool service, and a client for a fleet of OpenAI-compatible model
servers, such as vLLM and SGLang. LangGraph is optional: with the langgraph
extra, LangGraph graphs run on the same parts.
The AsyncFlow path is in maintenance mode: it gets fixes, not features. The
LangGraph execution adapter (LangGraphIntegration) is frozen. New
applications can bind agents with bind_agent, or run LangGraph on AsyncFlow
directly.
0.7.2 requires Python 3.11 or later, and installs each path's dependencies as an extra.
| Path | Agent framework | Runs tasks on | Python |
|---|---|---|---|
| Agents at scale | Flowgentic's agent loop; LangGraph 1.x, optional | RHAPSODY 0.7 and 0.8 | 3.11, 3.12, 3.13 |
| AsyncFlow | LangGraph 1.x | RADICAL AsyncFlow 0.7 and 0.8, local backends | 3.11, 3.12, 3.13 |
Project status lists the tested versions, the known limitations and the archived branches.
What it provides
Agents at scale (see Agents at scale):
LoopRunner(flowgentic.loop) runs each agent as a tool-calling loop on OpenAI-format messages: the calls of a reply run at once, tool errors go back to the model, and an agent suspends while its task runs, its state in a key-value store (flowgentic.store): RaDEX on an allocation, a dictionary in the process elsewhere. It needs no LangGraph.AgentHost(flowgentic.host) runs thousands of agents in one process: it tunes the collector, caps the agents live at once, staggers their starts, resumes agents that wait on tasks, and counts agents by state. It runs a list of agents, or takes them one at a time, as a server's messages arrive (start,submit,stop).GraphRunnerandKeyValueSaver(flowgentic.langgraph), with thelanggraphextra, run LangGraph graphs in the same host, their checkpoints in the same store.task_toolandmcp_tool(flowgentic.tools) say where a tool runs: as a task on a RHAPSODY session or on the application's own AsyncFlow engine, which may suspend its agent and leaves a record of when the agent decided on it and when it ran, or through the tool service (flowgentic.tools.service), which calls MCP tools for many agent processes.Fleet(flowgentic.fleet) sends each agent's model calls to one replica of a model server, under caps on tokens and requests in flight. A replica is a transport, such asHTTPTransportfor vLLM, SGLang or OpenRouter.read_export(flowgentic.telemetry) reads back the OpenTelemetry export of every agent process of a run, and checks it: each fleet's calls against itschatspans, and its tokens against the model servers' own counters.configure(flowgentic.otlp), with theotlpextra, streams each agent process's metrics and spans to an OpenTelemetry collector, andexamples/live-dashboardshows the run live in Grafana: agents in each state, model calls and tokens per second, queues at the replicas, tools. Its stack runs per user, on 127.0.0.1, behind a login and a token; on a shared node, other users of the node can reach 127.0.0.1, so keep both.
The AsyncFlow path:
bind_agent(flowgentic.agent) binds an agent component, any object with anainvoke(context)method, to an AsyncFlow task on a named backend. Each call to the bound agent runs the component as that task and returns its structured decision with the agent's identity and timing, and is an OpenTelemetryinvoke_agentspan.accept(flowgentic.acceptance) accepts or rejects an agent's output on explicit checks, before it becomes HPC work. It asks again with the reasons, within an attempt budget, and falls back to a deterministic value when no proposal passes. Each call, attempt and check is recorded in the run's trace.LangGraphIntegration(flowgentic.langgraph) runs a LangGraph graph's tools, services, tasks and nodes as AsyncFlow tasks, in their caller's trace.
Install
From PyPI, with the extra of each path you use:
pip install "flowgentic[agents]"
Flowgentic's core installs no agent framework and no workflow engine. Each path is an extra:
| Extra | Installs | For |
|---|---|---|
agents |
rhapsody and mcp |
Agents at scale |
rhapsody |
RHAPSODY | Task tools on a RHAPSODY session |
mcp |
The MCP SDK | The tool service's MCP clients |
langgraph |
LangGraph and LangChain | LangGraph graphs on agents at scale (agents,langgraph), and the LangGraph integration on AsyncFlow (langgraph,asyncflow) |
asyncflow |
RADICAL AsyncFlow | bind_agent, and task tools on an AsyncFlow engine |
openai |
The openai SDK |
OpenAITransport, the fleet's transport over the SDK |
otlp |
The OpenTelemetry SDK and its OTLP/HTTP exporter | Streaming a run's telemetry to an OpenTelemetry collector, for a live dashboard |
RaDEX, which keeps agents' state in a Dragon distributed dictionary on an
allocation, is not on PyPI, and no extra installs it: RadexStore needs its
Python client, built from source with its C++ core; see
radical-cybertools/radex. A
laptop needs neither RaDEX nor Dragon.
The examples and the demos run from a clone, with the locked environment:
git clone https://github.com/stride-research/flowgentic.git
cd flowgentic
uv sync --locked
The demos' make targets add the extras they need.
Run the examples
examples/agents-at-scale/ runs a campaign of agents on Flowgentic's loop on
a laptop, with a scripted model, RHAPSODY on a thread pool and a real MCP
server, in one agent process or several; --runner graph runs the same
agents as a LangGraph graph:
uv run --extra agents python examples/agents-at-scale/campaign.py --agents 1000
uv run --extra agents --extra langgraph python examples/agents-at-scale/campaign.py --agents 1000 --runner graph
Agents at scale walks through it.
Two demos of the AsyncFlow path, in examples/ai-hpc-coupling/, run offline,
with no model credentials: a deterministic LangGraph graph, and an agentic
one whose agents take scripted decisions.
make examples-ai-hpc-deterministic
make examples-ai-hpc-agentic
Getting started
explains their output, and examples/ai-hpc-coupling/README.md the other
demos.
Development
uv sync --locked --extra dev
uv run --extra dev pytest -q
uv run --extra dev mkdocs build --strict
CONTRIBUTING.md covers the environment, coding style, tests and pull requests. Report bugs and requests as GitHub issues. CHANGELOG.md lists the changes in each release.
How to cite
If you use Flowgentic in your work, please cite it. CITATION.cff holds the metadata, and GitHub's "Cite this repository" menu turns it into APA or BibTeX:
Alsaadi, A., Amirghofran, Y., Barbero, C., Cordovez, D., Dominguez, J., Oliveros, D., & Turilli, M. (2026). Flowgentic (Version 0.7.2) [Computer software]. https://github.com/stride-research/flowgentic
License
MIT; see LICENSE.
Metadata
Release files for flowgentic 0.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flowgentic-0.7.2.tar.gz | 156.3 kB | With provenance | Details for flowgentic-0.7.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flowgentic-0.7.2-py3-none-any.whl | Python 3 | none | any | Details for flowgentic-0.7.2-py3-none-any.whl |
Total release size: 321.1 kB
Release files / flowgentic-0.7.2.tar.gz
| Download URL | flowgentic-0.7.2.tar.gz |
|---|---|
| Size | 156.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9aeeef7cc4fcad7bfdd398f271eb22ef700255823af4f5c6e0b6b70c1653ea2
|
|
BLAKE2b-256 checksum How to use checksums |
5c241e16728310e88536c76613a1bd8d580d92c45783dfa3af3b39ff554c1cf2
|
| 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 Dec 4, 2026.
Transparency logRelease files / flowgentic-0.7.2-py3-none-any.whl
| Download URL | flowgentic-0.7.2-py3-none-any.whl |
|---|---|
| Size | 164.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90e39c49d017db0c296e137314645be2013bc87f3c8b4a81fd524bb25d816a18
|
|
BLAKE2b-256 checksum How to use checksums |
2679fc4066701f348ba0118bfe377cb2d07ba2c59d9806d2057f539abf5ce717
|
| 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 Dec 4, 2026.
Transparency logSecurity for flowgentic 0.7.2
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.
Attestation for flowgentic-0.7.2.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 Dec 4, 2026.
Transparency logA 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.