pi-dynamic-workflows-py
Dynamic workflow orchestration extension for pi-python.
Python port of @quintinshaw/pi-dynamic-workflows.
Install
pip install pi-dynamic-workflows-py
Overview
The workflow tool lets the LLM write a Python orchestration script that
fans work out across isolated subagents via agent(), parallel(),
pipeline(), and phase().
How a script runs
A script does not run in the host's interpreter. Each WorkflowRuntime.execute() starts a
child process (standard library only, empty environment, empty scratch directory) and the
script computes there. Anything with an effect — running a sub-agent, logging, asking the
budget — is a request over a pipe that the host answers; the host treats whatever arrives on
that pipe as untrusted.
- Limits (
SandboxLimits, passed asWorkflowRuntime(sandbox_limits=...)): memory, CPU time, open files, an optional wall-clock deadline, and caps on calls in flight, log output and phases. The kernel enforces the first ones (rlimits andNO_NEW_PRIVSon Linux; a Job Object and a lowered integrity level on Windows), so a script that spins or allocates is stopped and the host's event loop keeps running. - Values cross as JSON:
args,result(...)and whatagent()returns.budgetis a read-only view of the host's books. - Errors: a script that raises makes
execute()raiseWorkflowScriptError(itsstr()is the script's own message); a script that is stopped or cannot be run raises aSandboxError. agent(..., cwd=)must stay inside the project directory.
This is a process boundary with resource limits, not a security boundary against a script
written to break out: the in-process audit hook that refuses open, os.*, socket.*,
subprocess.* and ctypes.* is Python and can be undone by Python. What a script can still do
then, per platform, is in
docs/specs/2026-10-01-workflow-sandbox-design.md
(section 9); run the agent in a container if scripts cannot be trusted. Sub-agents' tool calls
still go through the session's permission policy.
Built-in Patterns
/deep-research— Research a question across the web with cross-checked sources/adversarial-review— Investigate then cross-check findings with skeptical reviewers/code-review— Multi-angle parallel code review/multi-perspective— Analyze a topic from several perspectives, then synthesize/codebase-audit— Run parallel checks against a codebase scope
Metadata
Release files for pi-dynamic-workflows-py 0.2.0
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 |
|---|---|---|---|---|
| pi_dynamic_workflows_py-0.2.0.tar.gz | 85.6 kB | Without provenance | Details for pi_dynamic_workflows_py-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pi_dynamic_workflows_py-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pi_dynamic_workflows_py-0.2.0-py3-none-any.whl |
Total release size: 135.9 kB
Release files / pi_dynamic_workflows_py-0.2.0.tar.gz
| Download URL | pi_dynamic_workflows_py-0.2.0.tar.gz |
|---|---|
| Size | 85.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce9522fbf0508624ebbfb77004c4f145800e000602c3d4ea9ba20748b712106b
|
|
BLAKE2b-256 checksum How to use checksums |
19850c24aa413011b6a8cf8819fb2e0b334bc6f4526359fdfb6b001b4d868fb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / pi_dynamic_workflows_py-0.2.0-py3-none-any.whl
| Download URL | pi_dynamic_workflows_py-0.2.0-py3-none-any.whl |
|---|---|
| Size | 50.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e1f3019fd79a5f01550694f9d78abc35b4c120c14aa2093b5082cdd4437127f
|
|
BLAKE2b-256 checksum How to use checksums |
ca7bffe60d5a35cef4a4e2591ba00d1e6b8a53373ab4292c186b751ad43bcb90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for pi-dynamic-workflows-py 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.