docs(rfc): RFC-0058 Dynamic Workflow Capability - #363
Open
Million-mo wants to merge 1 commit into
Open
Conversation
Proposes a DynamicWorkflowCapability that lets the LLM author Python scripts to orchestrate subagents at scale, inspired by Claude Code's dynamic workflows and pi-dynamic-workflows. Includes three-option analysis (ast sandbox vs RestrictedPython vs declarative IR), full technical design with primitives (agent/parallel/pipeline/phase/log), budget tracking, journal-based resumability, and a 4-week implementation plan.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Proposes RFC-0058: a new
DynamicWorkflowCapabilitythat lets the LLM author Python scripts to orchestrate subagents at scale, inspired by Claude Code dynamic workflows and pi-dynamic-workflows.Motivation
AgentPool currently has two orchestration models:
graph:section) — topology fixed at config-load time, cannot adapt at runtimeNeither handles tasks requiring 50+ parallel agents or iterative loops with unknown iteration counts without context degradation. This RFC addresses that gap with a script-based orchestration model where the plan lives in code, not in the LLM context window.
Key Design Decisions
astmodule provides robust sandboxing without a JS runtime dependencyast-level allowlist (noimport,open,eval, dunder access) — sufficient for cooperative-LLM threat modelagent(),parallel(),pipeline(),phase(),log(),budget— matching Claude Code / pi-dynamic-workflows proven APIAbstractCapabilitysubclass, registered viawolfharness.capabilitiesentry-point groupOptions Analyzed
astsandboxRelated
openspec/specs/static-graph-workflows/(current static workflow baseline)Checklist