WorksComputer Science
WeaveMX: Zero-Code Orchestration of Structured Multi-Agent Systems for Asset Generation
Abstract
Single-prompt Large Language Model (LLM) inference works well for self-contained queries, but generating complex, multi-part digital assets requires coordinated multi-agent systems (MAS). Existing tools pull in two directions. Code-centric state graphs demand heavy engineering and costly optimization. Open-ended harnesses and single-agent loops avoid that cost, yet suffer from inconsistent runs, lossy handoffs, and poor visibility into progress. As a remedy, this paper presents WeaveMX (Multi-agent eXecution), a declarative orchestration layer for agent harnesses whose main contribution is the zero-code definition of structured MAS in plain Markdown. Authors define orchestrators and isolated workers in partially predefined Markdown files that pair natural-language instructions with file and parameter ports, written by hand or from a brief. Dedicated skills guide agents through a predictable protocol, while programmatic Model Context Protocol (MCP) tools isolate worker directories, check port contracts, and track lifecycles in weave.md manifests. Declared port signatures induce cyclic workflow graphs that unwind at runtime into acyclic provenance graphs under concurrent execution and subset I/O, grounding static auditing and runtime checks. Because the LLM orchestrator reasons over files and resumable sessions rather than a compiled state machine, WeaveMX supports both batch runs and interactive human-AI workflows. Creators inspect live assets in a zero-token filesystem UI, steer at review gates, and make cross-stage surgical edits in natural language without pre-wired edges or checkpoint replay. WeaveMX supports Google Antigravity (agy) app and IDE, VS Code, and Cursor out of the box, with setup notes for Claude Code and Windsurf. Case studies in agy evaluate WeaveMX across rapid pipeline synthesis and production-scale interactive asset generation.
Introduction
Prompting a single Large Language Model (LLM) to produce a complex creative or analytical deliverable in one pass forces competing requirements into a single context window: tone, structure, factual accuracy, multimodal planning, and self-critique. While single-prompt inference handles short, self-contained tasks well, generating rich, multi-part digital assets quickly exposes the limits of monolithic generation.
Why Go Beyond a Single LLM?
Splitting work across a coordinated Multi-Agent System (MAS) [19, 28, 7] addresses practical bottlenecks that arise when forcing an entire workflow into one model call. As conversation history and generated text accumulate inside a single context window, models begin dropping negative constraints, skipping sections, or hitting output token limits mid-task. Breaking the job into smaller units lets an orchestrator run isolated agents sequentially or in parallel (for instance, ten chapter writers working concurrently), each starting with a clean context window. Different stages also call for different compute profiles: open-ended research benefits from stronger reasoning models with web search, drafting favors faster general-purpose models, and illustration requires image generation tools. Assigning each specialist only the model tier and toolset its role needs avoids bloated tool schemas and unnecessary inference spend.
Task decomposition further improves factual grounding and inspectability. When a single prompt must be both imaginative and strictly factual, accuracy often suffers: in the KidsWiki example (§ 3.1), prompting a frontier LLM in one turn to explain “Rockets” to a 4-year-old yields engaging but false prose (“A rocket is a super-strong space boat that flies all the way to the stars!”), whereas pairing the Writer with an independent Fact Checker catches and repairs the claim in a targeted revision loop. Persisted intermediate artifacts (01_draft.md, fact_audit.md, 02_illustration.png) likewise give human operators concrete checkpoints to inspect and steer the work rather than regenerating everything from scratch when an early assumption goes wrong. Added reliability and control come with a latency trade-off: coordinating isolated workspaces, checking file contracts, running verification loops, and pausing at review gates often takes substantially longer than a single prompt.
Iterative Single-Agent Harness Loops vs. Multi-Agent Systems
A popular alternative to multi-agent orchestration is the Iterative Single-Agent Harness Loop, often called a “Ralph loop” by practitioners, where a single agent with shell and filesystem access is re-invoked in an outer loop against a persistent task list on disk until every item is checked off. Externalizing state to disk and resetting context between passes lets a single agent work past single-turn token limits without multi-agent coordination logic.
Even so, single-agent loops fall short of structured multi-agent systems in multiple ways.
Unpredictable and Unrepeatable Cross-Run Quality. Because the looping agent improvises its task decomposition and tool sequence on every run, one successful pass does not guarantee repeatable quality: running the same loop on a different input gives no assurance of following a comparable workflow or achieving similar output quality.
Reliance on Automated Checks and Poor Fit for Human Interaction. Autonomous outer loops work best when completion can be checked mechanically (such as passing unit tests or compiler checks), which rarely holds for creative asset generation. Moreover, unattended checklist loops are not designed around structured human review gates or interactive mid-run steering.
Correlated Blind Spots. Across fresh context passes, a single agent running under one persona and full workspace visibility tends to share its own blind spots, often signing off on subtle hallucinations or quietly relaxing rubric criteria to mark tasks done. Reliable verification requires an independent auditor whose prompt, tools, and input view are separated from the generator’s.
Monolithic Tool and Model Assignment. A single looping agent needs the union of all tools and permissions used anywhere in the workflow and typically runs every iteration on one frontier model, ruling out per-step model selection or parallel execution across independent subtasks.
Unrestricted Workspace Access. Because the looping agent can read and write anywhere in the project tree, a mistaken edit in a later pass can overwrite upstream instructions, alter validated outputs, or pollute shared files without boundary checks.
Compliance and Least-Privilege Governance. Domains such as finance, healthcare, legal publishing, and safety-critical engineering require least-privilege access control, separation of duties, and clear audit trails. Constraining each agent through an explicit input/output signature ensures that external-facing agents cannot read confidential files, no agent writes outside of its working directory, and every deliverable passes through a separate verification step recorded on disk.
The Multi-Agent Landscape and the Limits of Dynamic Flexibility
Current multi-agent tools largely fall into two camps, neither of which fits rapid iteration and interactive digital asset production well.
Code-Centric Graph and Conversational Frameworks. Libraries such as LangGraph [12], AutoGen [28], and MetaGPT [7] provide programmatic abstractions for multi-agent workflows. Code-based state graphs offer static typing, persistent state checkpointing, and headless execution suited to production backend services, but creating or changing a workflow means writing Python or TypeScript glue code, managing dependencies, and wiring up state serialization. Even when checkpointing supports rewinding to an earlier state, resuming a compiled graph replays downstream transitions across serialized state dictionaries unless custom skip logic and dirty-bit guards were pre-coded in advance. For interactive human–AI creative processes (where creators routinely step back several stages to make unanticipated stylistic or structural tweaks), that engineering rigidity gets in the way.
Open-Ended Dynamic Agent Harnesses. General-purpose agent environments such as Google Antigravity (agy) [6], Claude Code, Cursor, and OpenHands [27] prioritize open-ended flexibility for tasks like interactive debugging, codebase exploration, and ad-hoc research. In agy, for instance, an Editor view and an Agent Manager can spawn subagents on demand, complemented by a built-in Swarm mode (where parallel workers coordinate over a shared message board) and an Orchestrator that switches dynamically between model tiers at runtime.
Ad-hoc subagent dispatch, message-board swarms, and heuristic model switching work well for exploratory coding, yet break down in predictable ways when a workflow requires repeatable structure across runs. Without explicit stage contracts, repeated invocations drift across different folder layouts, skip intermediate deliverables, or bypass verification steps. When an orchestrator passes context by summarizing prior turns in chat, detailed constraints, citations, and formatting rules are gradually compressed away. Left unconstrained, subagents also spend turns scanning parent directories (ls, dir), reading unrelated repository files for orientation, or spawning fresh instances during revisions instead of continuing existing sessions, while operators lack on-disk manifests to tell which stage is running or where a stalled run stopped without digging through raw transcripts.
How WeaveMX is Different: Predictability Without Code
This paper presents WeaveMX (Multi-agent eXecution), a declarative orchestration layer for agent harnesses whose primary contribution is the zero-code definition of structured multi-agent systems in plain Markdown. Running across multiple MCP-capable IDE and CLI harnesses (with Google Antigravity (agy) as the primary reference environment in this paper), WeaveMX achieves predictable execution without orchestration code through a three-part causal design. First, partially predefined declarative Markdown files define the orchestrator (orchestrator.md, orchestrator/stage*.md) and specialist worker agents (.agent/agents/*.md), combining structured headers for stages, roles, file/parameter ports, tasks (# Role Specifications, # Tasks, # Lifecycle), and review gates with natural-language instructions (written by hand or synthesized from a short brief via weave-authoring). Second, orchestrator and agent execution skills (weave-orchestrator and weave-agent) govern how the host harness interprets those Markdown files, prescribing repeatable operating protocols for workspace provisioning, subagent dispatch, directory discipline, and multi-turn handoffs. Third, programmatic Weave MCP tools [1] (weave) enforce those protocols at runtime, sandboxing each worker inside its own Current Working Directory (CWD), validating declared input/output port contracts, and managing orchestrator and worker lifecycles in on-disk weave.md manifests. Because weave.md externalizes lifecycle state to disk, an out-of-band Node.js UI polls the local filesystem to display stage progress, per-agent status cards, elapsed runtimes, and single-click artifact previews with zero LLM token overhead.
For interactive creative workflows, WeaveMX pairs human review gates with an LLM orchestrator reasoning over discrete files rather than compiled state transitions. Stage gates pause execution at verified milestone deliverables (such as drafted prose and embedded image prompts) before triggering costly downstream synthesis, while persisted intermediate files and resumable worker sessions keep retries local to individual stages. At any review gate or after a run finishes, a creator can also request cross-stage surgical edits in plain language (such as revising one upstream analogy or regenerating a single illustration) without altering the reusable pipeline specification: the orchestrator traces declared file dependencies, wakes the relevant worker session in place, and updates only affected downstream steps.
Contributions of the Paper
This paper makes four main contributions, led by the zero-code specification of structured multi-agent workflows:
Zero-Code Declarative Multi-Agent Specification (§ 4): Introduces a partially predefined Markdown format for defining orchestrators, multi-stage plans, and isolated worker agents without orchestration code, supporting both direct hand-authoring and one-shot pipeline synthesis with contract-preserving revision via
weave-authoring.
Predictable Execution via Skills, MCP Enforcement, and
weave.mdLifecycles (§ 4): Establishes a causal runtime stack in which orchestrator and worker skills (weave-orchestrator,weave-agent) prescribe repeatable two-phase provisioning and dispatch protocols, programmatic MCP tools (weave) enforce per-agent CWD sandboxing, scoped port bindings, and on-diskweave.mdlifecycle state, and a filesystem-polling UI provides zero-token observability.
Formal Port-Graph Semantics and Two-Tier Consistency Auditing (§ 3 and § 5): Formalizes Markdown file and parameter port signatures as cyclic tripartite graphs that unwind at runtime into acyclic provenance DAGs under concurrent execution and selective subset I/O, grounding authoring-time data-flow checks (Port Contract Isomorphism, Causal Input Availability, and Monotonic State Evolution) alongside runtime MCP enforcement and future pipeline optimization (§ 7).
End-to-End Case Studies (§ 6): Evaluates WeaveMX across two pipelines: an introductory 2-stage workflow (KidsWiki, illustrating one-shot synthesis, parallel fact and age verification loops, and human-gated illustration) and a 9-stage, 17-role production workflow (TheTuneMachine, examining scale, UI observability, per-role token telemetry across model tiers, and cross-stage surgical edits).
The WeaveMX plugin, skills, and weave MCP server are publicly available under the MIT license at https://github.com/axiomfab/weavemx.
The rest of the paper is organized as follows. § 2 situates WeaveMX within related work. § 3 introduces the formal system model, § 4 details the implementation, and § 5 presents the data-flow auditing and runtime enforcement mechanisms. § 6 presents the end-to-end case studies, and § 7 outlines future directions and concluding remarks.
Related Work
WeaveMX connects four lines of prior work: multi-agent LLM frameworks, open-ended agent harnesses and single-agent loops, deterministic scientific workflow engines, and capability sandboxing with tool protocols. Table 1 compares WeaveMX against representative systems across these areas.
| System / Paradigm | Spec. Modality | State Handoff | Topology & Cycles | Pre-Run Check | I/O Sand-boxing | Observability Mechanism |
| Conversational MAS (AutoGen [28], CAMEL [13]) | Python API + Prompts | Chat history / dialogue turns | Dynamic chat graph (cyclic) | None (runtime only) | Shared process / optional Docker | In-band chat transcripts & callback loggers |
| SOP Role Frameworks (MetaGPT [7], ChatDev [21]) | Python classes + SOP schemas | Structured msgs & shared repo | Fixed waterfall / phase loops | Schema type checks | Shared workspace directory | Console streams & web replay logs |
| Code State Graphs (LangGraph [12], DSPy [10]) | Imperative Python / TS | In-memory state / typed fields | Explicit state / compute graph | Host-language types | Application-defined scope | Cloud telemetry traces [5] (e.g., LangSmith) |
| Iterative Agent Loops (SWE-agent [30], “Ralph” loops) | Single prompt + outer bash loop | Global mutable filesystem | Unbounded single-agent loop | None | Unrestricted repo read/write | Raw terminal & trajectory JSONL logs |
| Scientific Workflows (Nextflow [4], Snakemake [11]) | Custom DSL (Groovy / Python) | File channels / target rules | Acyclic job DAG | DAG cycle & file rule check | Task workdirs (Nextflow) / opt-in shadow | CLI progress & execution reports |
| WeaveMX (This work) | Plain Markdown (zero code) | Physical files () & params () | Cyclic Unwound DAG | Port Isomorphism & Causal Flow | Per-agent CWD + Scoped MCP Ports | Async filesystem UI |
Table 1. Taxonomy and Architectural Comparison of Multi-Agent, Single-Agent, and Workflow Paradigms.
Code-Centric Multi-Agent Frameworks and Conversational Orchestration
Early multi-agent LLM work simulated believable social interaction across autonomous personas [19] and showed that splitting complex tasks across distinct agent roles improves reasoning diversity and output quality over single-prompt inference [13, 28, 3]. Conversational frameworks such as CAMEL [13], AutoGen [28], AgentVerse [3], and DyLAN [14] coordinate agents mainly through multi-turn dialogue. Free-form dialogue makes initial experimentation easy, but passing workflow state through growing chat transcripts leads to context bloat and lossy summarization: across turns, formatting rules, negative constraints, and source provenance gradually erode unless anchored to external files.
To add stronger structure, role- and Standard Operating Procedure (SOP) frameworks such as MetaGPT [7], ChatDev [21], and CrewAI [16] assign agents to specialized roles or waterfall software-engineering phases (as in MetaGPT and ChatDev) that exchange structured intermediate outputs. In parallel, graph- and compiler-oriented frameworks including LangGraph [12], Graph of Thoughts (GoT) [2], GPTSwarm [32], and DSPy [10] model multi-step LLM programs as explicit state graphs or optimizable pipelines.
While expressive, all of these systems are code-centric: defining topologies, conditional cycles, and state schemas requires writing Python or TypeScript orchestration code, maintaining package environments, and handling state serialization. Optimization frameworks such as DSPy [10] and GPTSwarm [32] further assume multi-example training runs whose API token costs rarely pay off for interactive, small-batch digital asset creation. By contrast, WeaveMX eliminates orchestration code altogether: pipelines are written in plain Markdown, generated from a concise brief, and audited before execution while preserving formal graph semantics ().
Open-Ended Agent Harnesses and Iterative Single-Agent Loops
A second line of work equips an iterative reasoning-and-acting loop, building on ReAct [31], Reflexion [25], Self-Refine [15], and Voyager [26], with direct shell and filesystem tools. Developer harnesses such as SWE-agent [30], OpenHands [27], and Google Antigravity (agy) [6] expose file editing and command execution inside an interactive workspace, with platforms such as OpenHands and agy further adding subagent dispatch. Practitioners often run these harnesses as iterative single-agent loops (“Ralph loops”), repeatedly invoking one agent against a persistent checklist on disk until every item is finished.
Although outer-loop repetition avoids multi-agent setup, prior studies show clear limits to single-agent self-correction. Huang et al. [8], for example, show that without independent external feedback, LLMs struggle to self-correct reasoning mistakes and can even degrade accuracy across self-critique rounds. When generator and critic share the same system persona, tools, and full-workspace view, subtle factual slips (such as the interstellar rocket claim in the KidsWiki example) easily pass review. Unrestricted workspace access also lets the agent wander across unrelated directories or accidentally overwrite upstream instructions. WeaveMX builds directly on the subagent and MCP primitives of modern developer harnesses (such as Google Antigravity [6]), bounding execution through separate specialist roles, per-agent CWD sandboxing, and scoped file resolution.
Deterministic Dataflow, Scientific Workflows, and File-Grounded State
The formal model draws directly on classical concurrency models and scientific workflow managers. In Kahn Process Networks (KPN) [9], concurrent processes communicate strictly over unbounded FIFO channels with blocking reads, guaranteeing determinate input–output histories regardless of scheduling order, whereas Petri Nets [17] formalize concurrent token-driven synchronization and firing preconditions across place–transition graphs. Classical Blackboard systems [18] likewise decouple specialist modules by coordinating through a shared structured store rather than direct peer-to-peer messages.
In computational science, file-based workflow engines such as Snakemake [11] and Nextflow [4] achieve reproducibility and local fault recovery by modeling steps as explicit file-to-file transformations, executing tasks either in isolated per-process work directories by default (Nextflow) or in a shared workspace with opt-in shadow directories and containers (Snakemake). Even where dynamic checkpoints or channels defer graph construction, classical scientific workflow engines still require an acyclic dependency graph (DAG): they cannot naturally express cyclic generator–verifier revision loops, iteration-dependent subset I/O over cyclic ports, or stateful multi-turn LLM sessions that pause in waiting/* states and resume on incoming messages. WeaveMX bridges these two worlds by expressing the static specification as a cyclic tripartite graph over agents , files , and parameters that unwinds dynamically at runtime into an acyclic provenance DAG (Propositions 1 and 2), while still supporting authoring-time causal data-flow checks (§ 5).
Tool Protocols, Capability Sandboxing, and Out-of-Band Observability
Connecting LLMs to external tools has moved from model-specific fine-tuning in Toolformer [24] and Gorilla [20] to standardized protocols, most notably the Model Context Protocol (MCP) [1]. MCP standardizes how hosts expose tools and resources to models, but leaves workflow ordering and per-agent filesystem isolation up to the application.
From a security standpoint, giving autonomous agents broad tool and filesystem permissions violates least privilege [23] and information-flow control [22]. Recent work such as IsolateGPT [29] shows how shared, unisolated LLM environments invite cross-agent state contamination, prompt injection escalation, and unintended data exposure. WeaveMX enforces least-privilege boundaries in both specification and execution: an agent’s static signature fixes what it may read and write, while the weave MCP server checks inputs before execution (weave_verify), resolves paths via explicit scope prefixes and port aliases, and validates outputs on completion (weave_update) inside isolated working directories.
Finally, most agent observability tools [5] depend on SDK callbacks, cloud tracing services, or supervisor LLMs that summarize peer progress, adding code dependencies or extra token spend. Recording lifecycle state directly in on-disk weave.md manifests lets WeaveMX drive a live stage stepper, runtime counters, and artifact previews from a separate UI through simple filesystem polling.
Formal System Model
To ground zero-code Markdown specifications in rigorous data-flow semantics, this section formalizes WeaveMX workflows in three steps: (1) the passive state artifacts and worker agents defined by their permissible input/output interfaces, (2) the induced static workflow graph , which allows cycles for iterative refinement, and (3) the runtime unwinding of into a time-indexed Directed Acyclic Graph (DAG) under concurrent execution of independent agents and selective subset I/O. Throughout this section, each concept is illustrated on the KidsWiki pipeline.
Running Example: The KidsWiki Asset Pipeline
Consider generating factually verified, age-calibrated, illustrated encyclopedia articles for children (KidsWiki). Writing for young readers requires balancing engaging simplicity against scientific accuracy. As seen in § 1, a single LLM pass explaining “Rockets” to a 4-year-old readily invents claims such as rockets flying “all the way to the stars.”
To separate storytelling from verification without custom orchestration code, KidsWiki coordinates four specialist roles across two stages. In Stage 1 (Editorial), a Writer () takes a target topic and reader age, drafts the article, and embeds an in-place Markdown image tag whose alt-text carries a self-contained visual prompt () followed by an italicized caption. Two independent reviewers, a Fact Checker () and an Age Checker (), then audit the draft concurrently for scientific accuracy and age-appropriate readability, writing findings to fact_audit.md and age_audit.md and triggering an in-place revision round with whenever issues arise. Once a human operator approves the verified text at the Stage 1 review gate, Stage 2 (Publishing) dispatches an Illustrator () that extracts the alt-text prompt, generates 02_illustration.png, and completes the illustrated article without modifying the prose.
Agents and Permissible I/O Signatures
Let be the set of files (persistent unstructured or structured artifacts on disk) and be the set of parameters (scalar configuration values, prompt arguments, or control flags), with .
Let be a finite set of autonomous worker agents disjoint from artifacts, . Each agent is characterized by a static 4-tuple defining its permissible input/output interface:
Here denote the maximal sets of files that may read and write, and denote the maximal sets of parameters that may read and write. Any of the four sets may be empty (). Each element represents a distinct stateful agent instance with its own workspace and I/O bindings, even when multiple instances share the same underlying role instructions (for example, a stage dispatching 15 segment fact-checkers instantiates 15 distinct elements ).
In KidsWiki, the parameter set is and the file set is
with static agent signatures:
These signatures express logical inter-role dataflow. At the physical runtime layer (§ 4–§ 5), local working files such as draft.md map onto 01_draft.md via port bindings, while in-stage revision feedback from fact_audit.md and age_audit.md is forwarded to the active writer session via message wakeup rather than bound as an initial Turn-1 file input.
The Induced Static Workflow Graph
A set of worker agents induces a static directed tripartite graph capturing all permissible dataflow pathways. Its vertex set partitions into three disjoint sets:
where and .
Because only agents compute while files and parameters hold passive state, every directed edge in connects either an artifact to an agent (a permissible read) or an agent to an artifact (a permissible write):
Iterative workflows such as generator–verifier loops require agents to exchange drafts and critiques across rounds, so is generally a directed cyclic graph. In Figure 1, writes 01_draft.md for and , which in turn write fact_audit.md and age_audit.md back to , forming two directed cycles:

Figure 1. Induced static tripartite workflow graph for KidsWiki, with distinct node shapes for parameters , worker agents , and file artifacts . The editorial review loop forms directed cycles.
Parallel Execution and the Unwound DAG
As execution progresses over runtime , a scheduling Orchestrator unwinds the cyclic specification into a growing Directed Acyclic Graph representing the concrete provenance trace (Figure 2).

Figure 2. Dynamic unwinding of the KidsWiki workflow into the execution DAG over runtime . Invocations create immutable snapshots 01_draft.md, fact_audit.md, and age_audit.md, unfolding static cycles into a strict topological order . Once and pass at , the orchestrator advances 01_draft.md to editorial approval at ahead of Stage 2 illustration ().
Time-Indexed Vertices (). The unwound vertex set records immutable artifact snapshots and bounded-duration agent invocations:
State Snapshots (): and represent immutable versions of file and parameter created at time . Execution starts at from seed vertices (for example, and ).
Parallel Agent Invocations (): denotes an invocation of agent started by at time that runs for duration and finishes at . Two invocations and execute in parallel whenever .
Selective Subset I/O. An agent’s static signature fixes the maximal set of ports it may access, whereas any single invocation reads and writes an active I/O footprint contained within that boundary:
On the first pass of KidsWiki, reads only topic and target_age (, since no critique exists yet) and writes 01_draft.md. After parallel verification produces fact_audit.md and age_audit.md, incorporates both critiques to produce 01_draft.md. Once verifiers and return clean reviews at , the orchestrator advances 01_draft.md directly to the human review gate at rather than relying on the writer to self-approve. Upon approval, reads 01_draft.md and generates 02_illustration.png.
Causal Edge Instantiation (). Only active ports of an invocation add vertices and edges to :
Selective Input Binding (at start time ): Each active input is bound to an existing snapshot with (by default the latest snapshot ):
Selective Output Materialization (at completion time ): At , new immutable snapshot vertices are instantiated if and only if , connected by write edges:
Structural Execution Invariants
Connecting and gives two straightforward invariants: runtime traces remain strictly acyclic (Proposition 1) and never step outside the static capability surface declared in (Proposition 2).
Proposition 1 (Strict Acyclicity of ). For any parallel execution trace with positive invocation durations (), the unwound graph is a Directed Acyclic Graph (DAG).
Proof. Define by for state snapshots and for invocations . Along every input edge , and imply . Along every output edge , . Since holds strictly on every edge , contains no directed cycles. □
Proposition 2 (Subgraph-Compliant Projection Homomorphism). Let be the type-preserving projection , , and . Then is a graph homomorphism from to .
Proof. Every edge is either an input edge with or an output edge with . In both cases , so every runtime trace respects the static read/write boundaries of . □
Remark on the Orchestrator () and Human Review Gates. In the formal model, both the orchestrator and human review gates (shown as dashed boxes in Figure 1 and Figure 2) reside in the control plane rather than in . inspects the frontier of , pauses at review gates until an operator approves an existing snapshot (such as 01_draft.md at ), and dispatches downstream invocations without mutating artifacts directly. If an operator requests changes at a gate, routes the revision back to the responsible worker session so every file write remains an explicit provenance edge in .
WeaveMX Implementation
To realize the formal model from § 3 with zero orchestration code, WeaveMX is implemented as an open-source, MIT-licensed multi-harness toolkit with zero external package dependencies (Figure 3), available at https://github.com/axiomfab/weavemx. Predictable execution follows a direct causal chain across three layers. First, orchestrators and worker agents are specified in partially predefined, declarative Markdown files. Second, WeaveMX orchestrator and worker skills prescribe deterministic operating protocols so agents execute those Markdown specifications predictably. Third, the weave Model Context Protocol (MCP) server enforces those protocols programmatically on disk, validating port contracts and recording lifecycle transitions in weave.md manifests.

Figure 3. WeaveMX multi-layer architecture illustrated on Stage 1 of KidsWiki. Partially predefined Markdown stage and agent definitions are executed predictably via weave-orchestrator and weave-agent skills, backed by weave MCP tools (weave_init, weave_discover_agents, weave_read, and weave_update on the control plane, and weave_verify and weave_update inside worker sandboxes) that enforce port contracts and manage lifecycles in on-disk weave.md manifests. An out-of-band UI polls those manifests with zero LLM calls.
Declarative Pipeline Authoring and Stage Orchestration
A WeaveMX pipeline contains no Python or TypeScript orchestration code: both the control-plane stage roadmap and every specialist role are written in Markdown following a partially predefined declarative structure (combining YAML frontmatter and canonical section headers for roles, ports, parameters, tasks, and review gates with free-form domain instructions). Three skills connect authoring-time specification to predictable runtime execution and weave.md lifecycle tracking:
Skill 1:
weave-authoring(Authoring Time): Synthesizes and revises partially predefined Markdown agent definitions and stage guides from natural-language briefs or run feedback, backed by static data-flow auditing so specifications start inside .
Skill 2:
weave-orchestrator(Predictable Control-Plane Execution): Ensures the root orchestrator and stage sub-orchestrators executeorchestrator.mdandstage*.mdthrough repeatable control-flow rules, chainingorchestrator-agent-instantiation(Phase 1 workspace provisioning) andorchestrator-agent-execution(Phase 2 worker dispatch and completion checks) while tracking pipeline and stage lifecycles inweave.mdvia the weave MCP server.
Skill 3:
weave-agent(Predictable Worker Execution): Ensures worker subagents execute their.agent/agents/*.mdspecifications predictably inside isolated directories, requiring Turn-1 pre-flight input verification (weave_verify), incremental subtask logging, and output-verified status transitions (weave_update) recorded in each worker’sweave.md.
Flat Agent Specifications (.agent/agents/*.md). Each worker agent is defined by a standalone Markdown instruction file in .agent/agents/<agent_name>.md, which the host registers as an invocable subagent type that the orchestrator may instantiate one or more times. Its YAML frontmatter pins the model tier, attaches the weave-agent skill, and restricts built-in tools to those needed by the role (such as view_file and write_to_file). In the Markdown body, # Role Specifics states the agent’s domain task and local Output Target filenames (e.g., draft.md or segment_*.md), referring to inputs strictly by local alias so the agent stays decoupled from stage numbers and run paths. Single-purpose roles (such as an atomic verifier or image generator) need only # Role Specifics and report in_progress directly, whereas multi-step roles optionally add # Tasks to break internal work into numbered snake_case subtasks (## Task: 01_outline, ## Task: 02_draft, mirrored in status prefixes such as in_progress/01_outline) and # Lifecycle to specify subtask ordering and conditional branches without hardcoding low-level MCP tool calls or JSON schemas inside agent instructions.
Stage-Modular Guides and Two-Phase Execution. Multi-stage pipelines divide into sequential stages () described by a root guide (orchestrator.md) and per-stage files (orchestrator/stage<N>_<slug>.md). Each stage file lists its leaf agents (## Agents) with their instruction paths, working directories, explicit or aliased Inputs, and optional Outputs, followed by an ## Execution plan with explicit Parameters: lines and optional User Review Gates.
At runtime, the root orchestrator follows weave-orchestrator. In Step 0, it creates all stage folders under runs/<context_slug>/ and initializes the root weave.md manifest so the UI can render the full stage stepper right away. Each stage then runs in two phases (delegated per stage to an ephemeral stage_orchestrator in multi-stage pipelines) to keep control-plane scheduling separate from workspace setup:
Phase 1: Provisioner Delegation (
orchestrator-agent-instantiation). The root orchestrator never creates worker directories or workerweave.mdfiles itself. At the start of Stage , it dispatches a lightweight provisioner subagent that reads## Agents, creates each worker’s isolated folder, callsweave_initto populate itsweave.mdfrontmatter (instructions_file,inputs,outputs), and returnsPROVISIONING_COMPLETE.
Phase 2: Worker Dispatch and Execution Topologies (
orchestrator-agent-execution). Once provisioning finishes, the orchestrator queriesweave_discover_agents(filtering for initialized nodes) and dispatches workers under one of two protocols:
Protocol A (Direct Sequential and Parallel Waves): The orchestrator launches leaf subagents sequentially or in parallel batches via
invoke_subagent, passing only the working directory, explicitRuntime Parameters, and local Required Output filenames. In cyclic generator–verifier loops (such as Writer and Fact Checker), critique paths are sent back to the live generator session viasend_message, preserving its working memory across rounds.
Protocol B (Hierarchical Sub-Orchestrators): When a stage fans out across independent units that each need their own multi-agent sequence or revision loop (for example, drafting and checking ten book chapters in parallel), the root orchestrator spawns parallel sub-orchestrators. Each sub-orchestrator runs the local loop and
weave_readchecks for its unit inside the sharedruns/<context_slug>/tree without creating nested run roots or touching the rootweave.md.
One-Shot Pipeline Synthesis and Constrained Revision (weave-authoring). Let denote the space of WeaveMX specifications (comprising flat agent definitions and stage guides ) that satisfy the data-flow consistency checks in § 5. Because is pure Markdown without code dependencies, weave-authoring can synthesize an initial valid specification from a short two-to-five-sentence brief in one pass.
Iterative pipeline development requires refining a specification after inspecting real outputs without breaking upstream or downstream contracts. When an operator submits feedback items on a completed run in runs/<context_slug>/, weave-authoring performs structured feedback triage to map systemic issues to candidate specification edits :
Triage (): Each feedback item is classified either as a Run-Specific Preference (, such as asking for a red rocket instead of a blue rocket on one KidsWiki run) or a Systemic Pipeline Defect (, such as noticing that
age_checkernever audited the italicized image caption).
Root-Cause Mapping (): For each , parallel read-only research subagents compare the run artifacts against to propose minimal specification edits on concrete agent tasks or port bindings, while leaving one-off preferences out of .
Audited Update (): After the user chooses whether to patch the current run, update the reusable specification , or do both,
weave-authoringapplies and re-runs the data-flow audit, rejecting any edit that would violate port matching or input availability.
Workspace Isolation and Scoped File Resolution
To back the formal view of worker agents as bounded operators , each worker invocation runs in an isolated directory scope.
Directory Sandboxing. Every pipeline run lives under runs/<context_slug>/, divided into stage folders (stage01_editorial/, stage02_publishing/) where each worker receives its own Current Working Directory (CWD):
Optional organizational subdirectories ([<group>/], such as per-act or per-chapter folders like agents/act_01/<agent_id>/) may sit ahead of <agent_id>/ to keep high-fan-out stages structured. Workers write scratch notes and intermediate files inside , whereas shared run deliverables live directly in runs/<context_slug>/ (${RUN_DIR}) and are accessed strictly through declared port bindings. Unapproved edits to workspace-root files or sibling directories are prohibited. Figure 4 shows the folder layout and port bindings for KidsWiki.

Figure 4. Physical directory sandboxing and port bindings for KidsWiki (runs/kidswiki_rocket_age4/). Worker instances (, , , ) execute in isolated CWDs with local weave.md manifests: Stage 1 checkers read sibling ../writer/draft.md, whereas Stage 1/2 deliverables (01_draft.md, 02_illustration.png) promote to ${RUN_DIR} through declared port bindings.
Within each worker sandbox, weave-agent restricts filesystem activity so subagents do not waste context tokens crawling parent folders: broad directory scans (dir, ls, Get-ChildItem) outside CWD() are prohibited, text reads are confined to CWD() and explicitly bound inputs, binary deliverables (*.png, *.mp3) are checked for existence and byte size by MCP rather than loaded into LLM context, and status updates invoke MCP tools directly rather than through ad-hoc wrapper scripts.
Explicit Scoped Path Resolution and Port Aliasing. A deterministic path resolver binds declared file ports without opening global filesystem reads. Rather than relying on implicit multi-directory search orderings, paths use explicit scope prefixes:
Agent CWD (unprefixed or
./,../): Paths without a variable prefix resolve against the worker’s CWD() (including sibling paths such as../writer/script.mdor wildcard globs../act_*/architect/beats.md).Run Directory (
${RUN_DIR}): Resolves directly toruns/<context_slug>/for shared run-level deliverables (e.g.,${RUN_DIR}/01_draft.mdor${RUN_DIR}/02_concept.md).Project Root (
${PROJECT_DIR}): Resolves to the repository root for static templates, configs, and other global data.
To keep agent instructions decoupled from stage numbers, filenames, and run-root paths, input ports support aliasing of the form <alias>: <target_path> (for example, draft.md: ${RUN_DIR}/01_draft.md, or even an extensionless logical alias such as draft: ${RUN_DIR}/01_draft.md). Inside the agent’s Markdown instructions, the author refers simply to draft.md (or draft). During initialization and pre-flight verification (weave_verify), the MCP server translates the alias to its concrete location on disk and informs the agent where the file lives.
Output Port Bindings and Completion Checks. Declared outputs in weave.md are optional (outputs: [] for roles that produce no file deliverables). When outputs are declared, entries may be bare CWD filenames (such as fact_audit.md) or mapped bindings <local_file>: <target_path> (such as setup.md: ${RUN_DIR}/01_setup.md). When a worker calls weave_update with status completed, the MCP server checks whether each declared output exists on disk. For mapped bindings, verifyOutputFiles copies <local_file> from CWD(a) to <target_path> if the agent wrote it locally, or accepts <target_path> directly if the file already exists there.
Lifecycle Management via Status Manifests and MCP Service
WEAVEMX records every lifecycle transition and port binding on disk in weave.md, keeping execution state inspectable outside chat transcripts. Both the run root and every worker directory hold a weave.md file combining a closed 7-key YAML frontmatter header (six core fields plus an optional conversation_id session handle for surgical resumes) with an append-only Markdown log (Listing 1, shown for the KidsWiki Stage 2 illustrator).
---
type: "agent"
status: "in_progress"
instructions_file: ".agent/agents/stage2_illustrator.md"
inputs:
- "draft.md: ${RUN_DIR}/01_draft.md"
outputs:
- "illustration.png: ${RUN_DIR}/02_illustration.png"
updated_at: "2026-11-18T10:12:00.000Z"
---
# Illustrator Status
- 2026-11-18T10:12:00.000Z: `in_progress` - Extracting alt-text prompt
from draft.md
Listing 1: Canonical weave.md state manifest schema illustrated on the KidsWiki illustrator.
Native MCP Tool Suite (weave). The weave MCP server (namespaced by agy plugins as <plugin>_<server>, i.e., weavemx_weave) drives the state machine in Figure 5 through five tools:

Figure 5. WeaveMX worker state lifecycle across standardized status prefixes (orchestrator manifests additionally pause at awaiting_review/* during human review gates). Pre-flight checks resolve declared inputs before work starts, and completion verifies declared outputs on disk.
weave_init(dir, type, status, instructions_file, inputs, outputs, conversation_id): Creates aweave.mdmanifest (type ∈ {"agent", "orchestrator"}, default status: "not_started"). For workers, the Phase 1 provisioner sets status: "initialized" to mark scaffolded workspaces ready for dispatch.
weave_verify(dir, expected_role): Mandatory Step 0 check called on Turn 1 of every worker run (and upon waking fromwaiting/*). It checks directory and role identity, resolves declared inputs (expanding${RUN_DIR},${PROJECT_DIR}, aliases, and * globs), and partitions them intoresolved_inputson disk andpending_inputs(deferred peer outputs). If an input required for the worker’s current task remains inpending_inputs, the worker halts immediately viaweave_update(blocked/*).
weave_update(dir, status, type, progress, outputs, conversation_id): Transitions lifecycle state across [<stage>]/<state>[/<detail>] where <state> is one of not_started, in_progress, waiting, awaiting_review, blocked, or completed (requiring type: "orchestrator" when updating an orchestrator manifest), persists optionalconversation_idhandles, and appends a timestamped log entry. When entering completed, it verifies declared outputs on disk and promotes <local>: <target> bindings.weave_read(dir | dirs | stage_dir, expected_outputs, expected_status): Lets the orchestrator confirm worker status and verify declared output files on disk for a single worker (dir) or across an entire wave or stage in one batch call (dirs, stage_dir), without reading full Markdown logs or trusting chat replies.weave_discover_agents(directory, filter_status, limit): Scans a stage or run directory for workerweave.mdmanifests matchingfilter_status(default "initialized"), supporting paginated discovery vialimit.
All five tools validate inputs strictly and fail fast without fallback values: invalid parameters, missing required files, or schema violations raise an immediate error or transition the node to blocked/<reason>, halting bad state before it propagates downstream.
Monitoring and Out-of-Band Observability
Most agent frameworks tie observability into the execution path via SDK callbacks or supervisor prompts. WeaveMX separates monitoring completely through an asynchronous Node.js UI panel that periodically scans runs/<context_slug>/ for weave.md manifests using standard filesystem calls, adding zero LLM calls and zero token overhead to running agents. As illustrated on the production run in Figure 7, the web panel renders a pipeline stepper showing stage progress and review states, collapsible agent status cards grouped by stage with resolved input chips and live wall-clock runtimes, single-click deliverable previews for text and media outputs, and a live activity log tailing append-only entries from weave.md.

Figure 7. WeaveMX UI panel monitoring The Rolling Stones: The Golden Run (1968–1972) live during Stage 3 (Writing, 51 worker workspaces across 9 stages). Completed Stages 1–2 are collapsed (1 and 5 agents), whereas active Stage 3 (22 agents) is expanded with its four act drawers (Act 01–Act 04), the Writer card open in in_progress: 02_write (showing resolved green vs. pending red input badges and timestamped task transitions), and Editor and Cold Reader queued in initialized.
Protocol Portability vs. Host-Specific Bindings
Google Antigravity (agy) [6] (app and IDE) serves as the primary reference host for the case studies, while WeaveMX cleanly separates its portable coordination protocol from thin host bindings. The weave.md manifest schema, the Node.js weave MCP server, explicit scoped path resolution and port aliasing, per-agent CWD sandboxing, and the UI panel rely solely on standard POSIX/Windows filesystem calls and MCP [1]. Out of the box, WeaveMX supports agy app, agy IDE, VS Code, and Cursor, alongside documented setup notes for Claude Code and Windsurf (and straightforward adaptation to other MCP-capable harnesses such as Block’s Goose). Only three thin adapter points vary by host: registering subagents (such as .agent/agents/*.md frontmatter in agy), spawning and messaging sessions (such as invoke_subagent and send_message in agy, or the target harness’s native subagent and MCP configuration), and opening the UI panel via host panel links or a browser view. Switching between supported or adapted harnesses changes only those thin host bindings and setup configuration, leaving agent files, stage guides, and MCP enforcement untouched.
Pipeline Data-Flow Auditing and Contract Enforcement
Authoring a WeaveMX pipeline across separate Markdown agent files (.agent/agents/*.md) and orchestrator guides (orchestrator.md, orchestrator/stage*.md) creates natural opportunities for cross-file drift: an agent might expect a runtime parameter that the orchestrator omits, write to a local filename that differs from its declared output port, or read an input file before any upstream wave produces it. To catch these errors during authoring and enforce every port boundary at runtime, WeaveMX pairs three formal Data-Flow Consistency Conditions with a two-tier auditing and enforcement architecture.
Data-Flow Consistency Conditions
Data-flow consistency over separates persistent file artifacts (resolved on disk through explicit scope prefixes and port aliases from § 4.2) from scalar runtime parameters (passed in dispatch prompts).
Intrinsic Agent Interfaces vs. Extrinsic Orchestrator Bindings. Each agent Markdown file is authored as a self-contained specialist that refers only to local filenames (such as draft.md), without hardcoding stage numbers or sibling directory paths. Formally, each worker specification declares an intrinsic (local) port signature:
where is the set of local file names read by , is the set of local output filenames or wildcard patterns written by , is the set of required input parameters (such as topic, target_age, or slice selectors like segment_id), and is the set of runtime parameters emitted by back to the orchestrator upon handoff or completion. Any of the four sets may be empty ().
For each scheduled invocation of , the orchestrator instructions supply a matching extrinsic binding:
defined over the orchestrator-declared local input port set and local output port set :
maps each declared local input name to a concrete source path on disk: (i) a CWD-relative or sibling path (e.g.,
../write/draft.md, whose basenamedraft.mdserves directly as the local port name), (ii) an aliased deliverable in the run directory (e.g.,draft.md \mapsto ${RUN_DIR}/O1_draft.md), or (iii) a static workspace file (e.g.,${PROJECT_DIR}/prompts/personas/*.md).
is a partial promotion map from declared local output names to run-directory targets (e.g.,
draft.md${RUN_DIR}/01_draft.md). When an intermediate output is kept inside without run-directory promotion, no target is assigned, written .
is the set of scalar parameters listed explicitly on the invocation step’s
Parameters:line.
is the set of emitted parameters captured by the orchestrator from ’s handoff or completion message to populate downstream
Parameters:dispatches.
In KidsWiki, fact_checker, age_checker, and illustrator all declare the exact same intrinsic file input , keeping their role prompts decoupled from pipeline topology. The orchestrator binds that local port according to stage context: in Stage 1, resolves to the sibling writer’s CWD while keeps the critique local. In Stage 2, binds draft.md to the gate-approved deliverable in ${RUN_DIR}.
Condition 1: Symmetrical Port Contract Isomorphism. An invocation of agent is port-consistent if and only if the local input files, local output files, input parameters, and emitted output parameters declared in the agent instructions match those declared by the orchestrator:
Parameters mentioned only in narrative prose or implied by folder names do not enter and fail Eq. (18). Across KidsWiki, all four roles satisfy Eq. (18) (with ):
Writer (): , , and (in-place revision feedback is routed via
send_messageto the active writer session rather than as a Turn-1 file input).
Fact and Age Checkers (): Both match on local input , local outputs and , and role-specific parameter sets and . Had
stage1_editorial.mddescribed age calibration only in prose while omittingParameters: target_age, would violate Condition 1 prior to execution.
Illustrator (): Matches on , , and (
Parameters: none).
Condition 2: Symbolic Data-Flow Execution and Causal Input Availability. Port consistency alone does not prevent scheduling an agent before its file or parameter inputs exist. To verify temporal ordering, symbolic waves track the available file set (materialized across worker CWDs, ${RUN_DIR}, and ${PROJECT_DIR}) and available parameter set at the end of wave , starting from static repository files and initial operator parameters .
An invocation starts at wave and, in multi-turn handoffs, may pause in waiting/* while peers run before resuming at wave . Letting denote the local file inputs read at wave , causal availability requires all dispatch parameters at and every consumed file at to exist in the preceding wave:
Eq. (19) rules out same-wave read–write races while supporting both agent-emitted parameters and deferred wakeup inputs.
In KidsWiki, starting from and , all inputs are consumed at across three symbolic waves:
Wave (writer): Consumes with , satisfying Eq. (19).
Wave (parallel fact_checker and age_checker): Consumes and from and reads . Scheduling writer and fact_checker concurrently in wave 1 would instead fail Eq. (19) since .
Wave (Stage 2 illustrator, after the Stage 1 review gate): Reads .
Condition 3: Dynamic Placeholder Resolution and Monotonic State Evolution. When working directories or port bindings contain dynamic index placeholders (such as writer_chapter<CC> for a larger writing process that requires parallel chapter-writing agents), each placeholder variable must be derivable from an upstream artifact already in . In KidsWiki, all four worker directories and port bindings are static singletons without index placeholders, satisfying this requirement directly. At the end of each wave , the invocations completing (or handing off parameters) in wave expand the available file and parameter sets monotonically:
Manual file copying by the orchestrator outside is prohibited. Tracing Eq. (20) across KidsWiki (, for all since ) yields:
Wave 1 populates both the writer’s local draft.md (consumed by sibling verifiers in wave 2) and the promoted ${RUN_DIR}/01_draft.md (approved at the review gate and consumed by the Stage 2 illustrator in wave 3), whereas wave 2 adds only CWD critique files because for both verifiers.
Two-Tier Auditing and Enforcement Architecture
Agent instructions and orchestrator guides are written in natural-language Markdown rather than a rigid DSL, so extracting from prose cannot offer compiler-grade soundness on its own. Eqs. (18)–(20) are therefore enforced in two tiers: fast heuristic auditing during authoring, backed by programmatic contract enforcement at runtime.
Tier 1: Authoring-Time Heuristic Auditing. Whenever weave-authoring generates or edits a pipeline, it executes a structured symbolic audit across all .agent/agents/<agent>.md files, orchestrator.md, and orchestrator/stage*.md before any worker is launched. Stepping through symbolic waves , it prints a side-by-side contract checklist. Listing 2 shows the audit report produced when generating KidsWiki.
Any discrepancy (for instance, stage1_age_checker expecting target_age when the execution step declares Parameters: none) produces an unchecked warning entry and blocks activation until fixed. Because Tier 1 relies on an LLM reading Markdown prose, it serves explicitly as a high-recall authoring check rather than a sound static type checker: an ambiguously worded prose assumption could still slip past.
Tier 2: Programmatic Runtime Enforcement. Tier 2 closes that gap at runtime using plain Node.js filesystem logic (with zero LLM calls) over the closed YAML frontmatter of weave.md:
Pre-Flight Input and Identity Check (
weave_verify): On Turn 1 (and on every wakeup fromwaiting/*), the worker callsweave_verify. Server code checks the working directory against the expected role, resolves${RUN_DIR},${PROJECT_DIR}, CWD-relative paths, aliases, and globs (*), and partitions declared inputs into verifiedresolved_inputs
### Static Pipeline Data-Flow Verification
## Stage 1: `stage1_editorial` (`orchestrator/stage1_editorial.md`)
- [x] `writer` (`.agent/agents/stage1_writer.md`)
- [x] Agent/Orchestrator Contract Match:
- Agent: Reads `[none]` (Params: `topic`, `target_age`), Writes `[draft.md]`
- Orchestrator: Inputs `[none]` (Params: `topic`, `target_age`), Outputs `[draft.md: ${RUN_DIR}/01_draft.md]`
- [x] Input Availability (t=1): No file inputs required, receives `topic` and `target_age` via parameters
- [x] `fact_checker` (`.agent/agents/stage1_fact_checker.md`)
- [x] Agent/Orchestrator Contract Match:
- Agent: Reads `[draft.md]` (Params: `topic`), Writes `[fact_audit.md]`
- Orchestrator: Inputs `[../writer/draft.md]` (Params: `topic`), Outputs `[fact_audit.md]`
- [x] Input Availability (t=2): `../writer/draft.md` available in `writer` directory (produced at t=1)
- [x] `age_checker` (`.agent/agents/stage1_age_checker.md`)
- [x] Agent/Orchestrator Contract Match:
- Agent: Reads `[draft.md]` (Params: `target_age`), Writes `[age_audit.md]`
- Orchestrator: Inputs `[../writer/draft.md]` (Params: `target_age`), Outputs `[age_audit.md]`
- [x] Input Availability (t=2): `../writer/draft.md` available in `writer` directory (produced at t=1)
### Stage 2: `stage2_publishing` (`orchestrator/stage2_publishing.md`)
- [x] `illustrator` (`.agent/agents/stage2_illustrator.md`)
- [x] Agent/Orchestrator Contract Match:
- Agent: Reads `[draft.md]` (Params: `none`), Writes `[illustration.png]`
- Orchestrator: Inputs `[draft.md: ${RUN_DIR}/01_draft.md]` (Params: `none`), Outputs `[illustration.png: ${RUN_DIR}/02_illustration.png]`
- [x] Input Availability (t=3): `${RUN_DIR}/01_draft.md` available in run directory (promoted in Stage 1 and gate-approved)
### Pipeline Summary (`orchestrator.md`)
- [x] All stage outputs and final pipeline outputs are produced, auto-promoted via `# Agents` port bindings, and gate-aligned.
Listing 2: Authoring-time data-flow audit report generated for KidsWiki. (fs.existsSync) and pending_inputs. If an input required for the current task is still in pending_inputs, the worker halts immediately via weave_update (blocked/*).
Post-Flight Output Check (weave_update, weave_read): When an agent transitions to completed with non-empty outputs,
weave_updatemerges output bindings viamergeOutputDeclarations, checks viaverifyOutputFileswhether every declared output or glob match exists on disk, and copies any promotions (such asdraft.md→${RUN_DIR}/01_draft.md) into${RUN_DIR}while retaining the original file inside CWD(). The orchestrator then callsweave_readto confirm completion and output existence on disk before advancing the stage.
Out-of-Band UI Checks (input_verifier.mjs): Alongside execution, the UI runs
checkAgentInputsandresolveAgentOutputsacross discovered manifests to track glob match counts, verify non-zero file sizes, and tag media types (image, audio, video, or text) for live inspection.
Case Studies
To evaluate how WeaveMX behaves from compact authoring examples to multi-stage production workloads, this section examines two end-to-end pipelines: KidsWiki, an introductory 2-stage workflow introduced in § 3.1, and TheTuneMachine, a 9-stage, 17-role production pipeline for long-form music history shows.
Introductory Example: KidsWiki
KidsWiki illustrates three foundational capabilities of WeaveMX: one-shot pipeline synthesis from a short natural-language brief, factual error correction through isolated writer and verifier sessions, and multimodal illustration gated by human review and in-place Markdown placeholders.
One-Shot Pipeline Generation. A central goal of WeaveMX is letting authors spin up structured pipelines without writing orchestration scripts, IPC glue, or custom UI code. Invoking weave-authoring on a single natural-language brief produces a complete runnable setup:
“Use the weave-authoring skill to create a 2-stage KidsWiki pipeline for a topic and target age (3–12, default 4). Stage 1 (Editorial): a Writer drafts the article with an  placeholder and italicized caption. A Fact Checker and Age Checker audit accuracy and readability in parallel with an in-place revision loop, followed by a human review gate to approve the draft. Stage 2 (Publishing): an Illustrator generates the image from the alt-text prompt.”
From this prompt, WeaveMX emits all Markdown specifications conforming to the port model:
Flat Agent Definitions: Emits four Markdown agent files in
.agent/agents/(stage1_writer.md,stage1_fact_checker.md,stage1_age_checker.md, andstage2_illustrator.md), each with pinned model tiers (model: flash) and scoped host tools. The multi-step writer includes# Tasksand# Lifecycle, whereas the three single-purpose agents omit them.
Stage Guides: Generates
orchestrator.mdalongsidestage1_editorial.mdandstage2_publishing.mdinorchestrator/, with explicit port bindings targeting${RUN_DIR}/01_draft.mdand${RUN_DIR}/02_illustration.png.
Workspace Trigger Rule: Emits
orchestrator_trigger.mdto bind user invocations in the workspace to the root orchestrator.
Before any run starts, weave-authoring executes the Tier 1 data-flow audit (Listing 2 in § 5.2) to verify port isomorphism (Condition 1), causal input availability across waves (Condition 2), and output promotion into (Condition 3).
Iterative Refinements and Hallucination Elimination. Single-pass generation often trades accuracy for tone when writing for young audiences. Prompted in one shot to explain “Rockets” to a 4-year-old, frontier models routinely produce lively but false claims:
“A rocket is a super-strong space boat that flies all the way to the stars!”
Friendly as it sounds, the claim is wrong: chemical rockets reach Earth orbit, the Moon, and planets inside the solar system, never distant stars. Separating drafting from verification across isolated agent sessions catches and repairs the slip cleanly. In the first pass, the Writer writes draft.md locally, which promotes via its output port binding to 01_draft.md in ${RUN_DIR}, after which the Fact Checker and Age Checker read ../writer/draft.md in parallel and flag the interstellar error and vocabulary issues in fact_audit.md and age_audit.md. On the second pass, the orchestrator forwards the combined feedback to the existing Writer session via send_message (capped at 2 revision cycles) rather than spawning a fresh writer from scratch, and the Writer revises 01_draft.md in place:
“A rocket is a super-strong space machine that flies high above the Earth into outer space! . . . Rockets carry astronauts to orbit the Earth and visit the Moon.”
The Fact Checker and Age Checker then re-check the revised draft, confirm accuracy and readability, and mark their manifests completed. Running the exact same pipeline with target_age = 11 scales the article up to a 250-word explanation of Newton’s Third Law, liquid propellants, and multi-stage orbital mechanics, with both verifiers calibrating their checks to the older reading level.
Human Review Gates and Multimodal Asset Synthesis. Generating images, speech, or video adds substantial latency and inference cost, making eager generation wasteful when upstream prose still needs factual fixes or editorial changes. WeaveMX avoids wasted multimodal calls by coupling a Stage 1 review gate with an in-place Markdown placeholder contract. During Stage 1, the Writer embeds a Markdown image tag whose alt-text holds a complete visual prompt followed immediately by an italicized caption (Listing 3).

*3... 2... 1... Blast off! A rocket zooms up past the clouds!*
Listing 3: In-place illustration placeholder authored by the Writer.
Once both Stage 1 verifiers pass, the orchestrator pauses at the review gate and presents 01_draft.md to the operator, who can inspect both the verified prose and the embedded image prompt in the UI, approving the file as-is or requesting a quick prompt tweak without re-running fact checking. Upon approval, Stage 2 dispatches the Illustrator, which reads ${RUN_DIR}/01_draft.md via its aliased input port binding (draft.md: ${RUN_DIR}/01_draft.md), extracts the alt-text prompt, and writes ${RUN_DIR}/02_illustration.png. Because 01_draft.md already links to ./02_illustration.png inside ${RUN_DIR}, the final illustrated article renders in place without altering a word of verified prose.
Production Case Study: TheTuneMachine
TheTuneMachine is a production multi-agent workflow built on WeaveMX to research, script, voice, render, and publish long-form music history episodes on YouTube. Unlike KidsWiki, it coordinates 17 specialized agent roles across 9 sequential stages, 5 user review gates, and dynamic act- and segment-level parallel fan-out.
Nine-Stage Architecture and Fan-Out Topology. Figure 6 maps the full pipeline specification declared in orchestrator.md and orchestrator/stage*.md. Stage 1 (Setup) scopes the episode brief and persona (01_setup.md, 01_host.md). In Stage 2 (Concept), the Showrunner designs the initial arc from both Stage 1 files, dispatches track_queries to 4 parallel YouTube Sourcer workers, and calibrates runtimes in a re-sourcing loop before emitting 02_concept.md. Stage 3 (Writing) fans out one Architect worker per act defined by the Showrunner to produce act-by-act beats.md files, feeds them to a single Writer authoring 03_script.md, and then runs parallel Fact Checker instances (one per spoken host segment), an Editor, and a blind Cold Reader concurrently against the draft in a consolidated revision loop. Downstream media stages form two parallel asset streams that reconverge during video assembly and upload. Stage 4 (Staging) produces 04_staged_script.md (feeding Stage 5 Promo, Stage 6 Audio, and Stage 7 Subtitler) alongside 04_transitions_telemetry.json (feeding Stage 6 Audio). Stage 5 (Promo) runs Promo and Background (from 02_concept.md) in parallel to feed Thumbnail, while Stage 6 (Audio) renders 06_audio/*.mp3 and 06_audio_manifest.md. Stage 7 (Video) aligns parallel Subtitler shards (one per spoken host segment) against 06_audio/*.mp3 and 04_staged_script.md before Video muxes the audio tracks, .srt subtitles, 05_promo_background.png, and 05_promo.md into 07_video/*.mp4. Stage 8 (YouTube) uploads the rendered MP4s with 05_promo.md and 05_thumbnail.png and interleaves music tracks from 02_concept.md, and Stage 9 (Publish) switches the episode public using 08_youtube_manifest.md and 05_promo.md. Stages 1, 2, 3, 7, and 8 pause at explicit user review gates, whereas intermediate stages 4–6 advance automatically once Stage 3’s script is approved.

Figure 6. End-to-end 9-stage, 17-role tripartite workflow graph of TheTuneMachine (orchestrator.md and orchestrator/stage*.md), encoding parameters , single-line agent roles (), stage deliverables [], and the 5 boundary user review gates (Stages 4–6 advance automatically, while Stage 3 Architect and Stages 3 & 7 Fact Checker and Subtitler, respectively, scale dynamically in multiplicity with act and host-segment counts, shown here at ×4 and ×15). Solid arrows trace stage and media asset dataflow, dotted arcs show cross-stage 02_concept.md bindings, and dashed arcs denote iterative calibration and audit loops (Stage 1 episode-brief and host-persona bindings 01_setup.md into Stage 3 and 01_host.md into Stages 3–6, plus static ${PROJECT_DIR} assets, are omitted for clarity).
Live UI Observability at Scale. To evaluate the finalized 17-role pipeline end to end, TheTuneMachine generated The Rolling Stones: The Golden Run (1968–1972) (show_18-11-2026_the_rolling_stones_golden_run, initialized at 60 minutes, extended to 90 minutes via Stage 1 review feedback, and spanning 4 acts and 15 spoken commentary segments interleaved with 15 music tracks). Across all 9 stages, active execution completed in 1 hour 23 minutes (excluding wait times at human review gates) and materialized 51 isolated worker weave.md manifests alongside the root run manifest, with every worker workspace spawned once (51 worker invocations plus 9 stage-level provisioner invocations, 60 invoke_subagent calls in total). Figure 7 captures the live WeaveMX UI panel during Stage 3: the 9-stage stepper highlights Stages 1–2 complete and Stage 3 active, collapsible act drawers group the completed Architect shards alongside the 15 waiting Fact Checker shards, and the expanded Writer card exposes resolved vs. pending port bindings and append-only task logs without terminal log scraping.
Per-Role Token Telemetry and Model-Tier Attribution. Figure 8 breaks down uncached token consumption ordered by stage across the 1 hour 23 minute Rolling Stones run (8.52 M uncached tokens in total prior to post-release edits). The central takeaway is that orchestration overhead remains modest relative to worker generation: isolating intra-stage dispatch, 1-line acknowledgments, and batch weave_read checks inside ephemeral per-stage sub-orchestrators (Stage Orch. (S1)–(S9), 0.85 M combined) keeps the Root Orchestrator context compact (0.95 M), holding combined coordination to 21.1% of episode uncached tokens. Nearly four-fifths of the token budget goes directly into content creation and verification, concentrated in the 15-way parallel Fact Checker loops, full-episode Writer drafting, and 15-way Subtitler alignment.

Figure 8. Uncached token consumption (input plus output) ordered by pipeline stage for The Rolling Stones: The Golden Run (1968–1972) (8.52 M uncached tokens total across workers and hierarchical stage orchestration, prior to the post-release surgical edit). Shaded rows with bold labels highlight the Root Orchestrator (0.95 M, split across 0.54 M Gemini 4 Carbon in Stages 1–5 and 0.41 M Gemini 4 Hydrogen in Stages 6–9) and the nine per-stage Stage Orch. (S1)–(S9) sub-orchestrators (0.85 M combined, peaking at 0.36 M in Stage 3). All eight model: inherit worker roles ran on Gemini 4 Carbon in Stages 1–5, whereas high-fan-out and media roles plus Provisioner (×9) ran on model: flash.
Model-tier routing further bounds inference cost while exposing a practical avenue for future savings. Pinning high-fan-out retrieval, fact-checking, subtitle alignment, and media/CLI roles (plus Provisioner) to model: flash keeps heavy parallel waves off the frontier reasoning quota, reserving Gemini 4 Carbon for the eight creative, structural, and editorial roles in Stages 1–5. Because the case-study reference environment (agy) currently provides no explicit model: carbon selector (and model: pro does not map to Carbon), those Stages 1–5 roles rely on model: inherit from a Carbon parent session, which requires running the Root Orchestrator and Stage Orch. (S1)–(S5) on Carbon as well before switching the session to Gemini 4 Hydrogen for Stages 6–9. Supporting direct frontier model selectors on worker definitions will allow both root and stage orchestrators to run entirely on lightweight tiers, lowering coordination cost further without altering pipeline specifications.
Cross-Stage Surgical Asset Edits. In real creative production, operators rarely treat the initial public release as final: reviewing a published deliverable often surfaces a localized phrasing or timing fix upstream. In compiled state-graph frameworks, rewinding to an upstream checkpoint and modifying state replays downstream graph edges unless custom skip predicates and per-shard filters were coded ahead of time. Because WeaveMX stores every stage deliverable as a plain file on disk and preserves stateful worker conversations alongside declarative weave.md manifests, the operator can instruct the orchestrator in natural language to patch a single segment and cascade only the affected artifacts across downstream stages.
Immediately after Stage 9 published the 30-item Rolling Stones YouTube playlist, the operator spotted two calendar years clashing in one sentence of Segment 01 (Act01_Segment01) and issued a constrained surgical instruction:
“Let’s do a surgical edit: ‘That road starts in London during the spring of 1968. Singer Mick Jagger and guitarist Keith Richards were still rattled from 1967 drug busts and courtroom trials.’ . . . change it to . . . ‘from the previous year’s drug busts and courtroom trials.’ and then re-run the pipeline just for this segment and then replace the video in the playlist with the new one. Make sure not to retrigger the fact checkers / editor / cold reader for such a minor change.”
Without calling invoke_subagent once (0 new worker spawns), the orchestrator propagated the single-segment update across six stages (Stages 3, 4, 6, 7, 8, and 9) via 8 send_message dispatches to 7 existing worker sessions:
Script and Staging Patch (Stages 3–4): The orchestrator resumed
stage3_writerto patchAct01_Segment01in03_script.mdwhile leaving all 17 Stage 3 verifier manifests (15 Fact Checkers, Editor, and Cold Reader) untouched, then resumedstage4_stagingto sync04_staged_script.mdand skipped Stage 5 (Promo, Background, Thumbnail) altogether.
Single-Segment Media Re-Synthesis (Stages 6–7): The orchestrator resumed
stage6_audioto regenerate onlysegment_01_spoken.mp3, wokesubtitler_s01alone (leaving the other 14 odd-indexed spoken shardssubtitler_s03–s29idle) to realignsegment_01.srt, and resumedstage7_videoto re-rendersegment_01_video.mp4, preserving the other 14 mastered MP3, SRT, and MP4 files on disk.
Playlist Swap and Re-Publication (Stages 8–9): Finally, the orchestrator resumed
stage8_youtubeto upload the replacement MP4, swap it into slot 0 of the live YouTube playlist, and delete the superseded video, then resumedstage9_publicationto switch the replacement video to public and update09_publication_manifest.md.
The entire 6-stage single-segment update completed in 14 minutes (19 orchestrator steps and 52 subagent steps) and consumed 0.96 M uncached tokens (0.88 M input and 0.08 M output, plus 10.49 M cached input tokens, for 11.45 M total), amounting to 11.3% of the 8.52 M full-episode uncached budget while retaining full append-only provenance across every modified weave.md manifest.
Future Work and Concluding Remarks
Declarative, file-grounded orchestration makes structured multi-agent workflows predictable and lightweight on local hardware while opening clear avenues for structural optimization and production compilation.
Future Work
Low-Cost Structural and Multi-Objective Pipeline Optimization. A primary research direction is systematic structural pipeline optimization over the valid specification space . Whereas single-agent prompt and instruction tuning is already extensively covered in existing literature, optimizing pipeline structure (stage boundaries, parallel fan-out width, verification-loop topology, port granularity, and per-role model tiers) remains largely open. Because a WeaveMX pipeline (with extracted interfaces and orchestrator bindings ) exposes stage parallelization, model tiers, and port bindings in plain Markdown, it supports both automatic exploration (in the spirit of DSPy [10] and GPTSwarm [32]) and semi-automatic, human-guided tuning integrated with the feedback triage workflow from § 4.1. In contrast to existing automated optimization approaches that execute extensive end-to-end iterations with large token consumption, future work on WeaveMX will specifically focus on low-cost, sample-efficient optimization. Future optimization methods in WeaveMX will explore the Pareto front across three competing objectives without collapsing them into a single scalar score: run-time (tuning parallel fan-out width, merging sequential stages where context windows allow, and overlapping deferred-wakeup work), token usage (per-role model down-selection, tighter input views, and early-exit rules that trim unnecessary revision passes), and output quality (scored by rubric evaluators, Fact-Checker pass rates, and operator preferences). Filtering structural edits through Tier 1 auditing and Tier 2 runtime checks keeps candidate pipelines inside , preserving port consistency and file provenance throughout exploration.
Code-Graph Compilation. Another planned direction is a compiler backend that lowers verified WeaveMX Markdown pipelines into typed state-graph code such as LangGraph [12], letting authors develop and run interactive workflows directly in WeaveMX, while optionally compiling fixed topologies into headless, high-throughput backend services.
Concluding Remarks
This paper presented WeaveMX, a declarative orchestration layer for agent harnesses whose main contribution is the zero-code definition of structured multi-agent systems in plain Markdown. Predictable execution follows from a clear causal design: orchestrators and isolated worker agents are defined in partially predefined Markdown files, dedicated orchestrator and worker skills (weave-orchestrator and weave-agent) ensure those definitions are executed through repeatable protocols, and programmatic weave MCP tools enforce port boundaries and manage execution lifecycles in on-disk weave.md manifests. Modeling worker agents via explicit file and parameter port signatures () whose cyclic specifications unwind into acyclic provenance DAGs grounds both authoring-time data-flow auditing and runtime enforcement, bridging code-heavy state graphs and unconstrained agent harnesses. Together with stateful worker sessions for natural-language surgical asset edits and a zero-token filesystem UI, these mechanisms make structured multi-agent workflows practical, inspectable, and steerable on everyday local hardware.
References
- [1]Anthropic. Model Context Protocol specification. https://modelcontextprotocol.io, 2024.
- [2]Maciej Besta, Nils Blach, Aleš Kubíček, Robert Gerstenberger, Michal Podstawski, Lukas Gianinazzi, Joanna Gajda, Tomasz Lehmann, Hubert Newiadomski, Piotr Nyczyk, and Torsten Hoefler. Graph of thoughts: Solving elaborate problems with large language models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 17682–17690, 2024.DOI
- [3]Weize Chen, Yusheng Su, Jingwei Zuo, Cheng Yang, Chenfei Yuan, Chi-Min Chan, Heyang Yu, Yaxi Liu, Yi-Hsin Hung, Chen Qian, Yujia Qin, Xin Cong, Ruobing Xie, Zhiyuan Liu, Maosong Sun, and Jie Zhou. Agent Verse: Facilitating multi-agent collaboration and exploring emergent behaviors. In International Conference on Learning Representations (ICLR), 2024.arxiv.org/abs/2308.10848
- [4]Paolo Di Tommaso, Maria Chatzou, Evan W. Floden, Pablo Prieto Barja, Emilio Palumbo, and Cedric Notredame. Nextflow enables reproducible computational workflows. Nature Biotechnology, 35(4):316–319, 2017.DOI
- [5]Liming Dong, Qinghua Lu, and Liming Zhu. AgentOps: Enabling observability of LLM agents. arXiv preprint arXiv:2411.05285, 2024.arxiv.org/abs/2411.05285
- [6]Google. Google Antigravity: Agentic development platform documentation. https://antigravity.google/docs, 2026.
- [7]Sirui Hong, Mingchen Zhuge, Jiaq i Chen, Xiawu Zheng, Yuheng Cheng, Jinlin Wang, Ceyao Zhang, Zili Wang, Steven Ka Shing Yau, Zijuan Lin, Liyang Zhou, Chenyu Ran, Lingfeng Xiao, Chenglin Wu, and Jürgen Schmidhuber. MetaGPT: Meta programming for a multi-agent collaborative framework. In International Conference on Learning Representations (ICLR), 2024.arxiv.org/abs/2308.00352
- [8]Jie Huang, Xinyun Chen, Swaroop Mishra, Huaixiu Steven Zheng, Adams Wei Yu, Xinying Song, and Denny Zhou. Large language models cannot self-correct reasoning yet. In International Conference on Learning Representations (ICLR), 2024.arxiv.org/abs/2310.01798
- [9]Gilles Kahn. The semantics of a simple language for parallel programming. In Information Processing 74: Proceedings of the IFIP Congress, pages 471–475, 1974.
- [10]Omar Khattab, Arnav Singhvi, Paridhi Maheshwari, Zhiyuan Zhang, Keshav Santhanam, Sri Vardhamanan, Saiful Haq, Ashutosh Sharma, Thomas T. Joshi, Hanna Moazam, Heather Miller, Matei Zaharia, and Christopher Potts. DSPy: Compiling declarative language model calls into self-improving pipelines. In International Conference on Learning Representations (ICLR), 2024.arxiv.org/abs/2310.03714
- [11]Johannes Köster and Sven Rahmann. Snakemake—a scalable bioinformatics workflow engine. Bioinformatics, 28(19):2520–2522, 2012.
- [12]LangChain Inc. LangGraph: Building stateful, multi-actor applications with LLMs. https://github.com/langchain-ai/langgraph, 2024.
- [13]Guohao Li, Hasan Abed Al Kader Hammoud, Hani Itani, Dmitrii Khizbullin, and Bernard Ghanem. CAMEL: Communicative agents for “mind” exploration of large language model society. In Advances in Neural Information Processing Systems (NeurIPS), volume 36, pages 51991–52008, 2023.arxiv.org/abs/2303.17760
- [14]Zijun Liu, Yanzhe Zhang, Peng Li, Yang Liu, and Diyi Yang. A dynamic LLM-powered agent network for task-oriented agent collaboration. In First Conference on Language Modeling (COLM), 2024.arxiv.org/abs/2310.02170
- [15]Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, Shashank Gupta, Bodhisattwa Prasad Majumder, Katherine Hermann, Sean Welleck, Amir Yazdanbakhsh, and Peter Clark. Self-Refine: Iterative refinement with self-feedback. In Advances in Neural Information Processing Systems (NeurIPS), volume 36, pages 46534–46594, 2023.arxiv.org/abs/2303.17651
- [16]João Moura. CrewAI: Framework for orchestrating role-playing, autonomous AI agents. https://github.com/crewAIInc/crewAI, 2024.
- [17]Tadao Murata. Petri nets: Properties, analysis and applications. Proceedings of the IEEE, 77(4):541–580, 1989.DOI
- [18]H. Penny Nii. Blackboard systems, part one: The blackboard model of problem solving and the evolution of blackboard architectures. AI Magazine, 7(2):38–53, 1986.
- [19]Joon Sung Park, Joseph C. O’Brien, Carrie J. Cai, Meredith Ringel Morris, Percy Liang, and Michael S. Bernstein. Generative agents: Interactive simulacra of human behavior. In Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology (UIST), pages 1–22, 2023.arxiv.org/abs/2304.03442
- [20]Shishir G. Patil, Tianjun Zhang, Xin Wang, and Joseph E. Gonzalez. Gorilla: Large language model connected with massive APIs. In Advances in Neural Information Processing Systems (NeurIPS), volume 37, pages 126544–126565, 2024.arxiv.org/abs/2305.15334
- [21]Chen Qian, Wei Liu, Hongzhang Liu, Nuo Chen, Yufan Dang, Jiahao Li, Cheng Yang, Weize Chen, Yusheng Su, Xin Cong, Juyuan Xu, Dahai Li, Zhiyuan Liu, and Maosong Sun. ChatDev: Communicative agents for software development. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (ACL), pages 15174–15186, 2024.arxiv.org/abs/2307.07924
- [22]Andrei Sabelfeld and Andrew C. Myers. Language-based information-flow security. IEEE Journal on Selected Areas in Communications, 21(1):5–19, 2003.DOI
- [23]Jerome H. Saltzer and Michael D. Schroeder. The protection of information in computer systems. Proceedings of the IEEE, 63(9):1278–1308, 1975.DOI
- [24]Timo Schick, Jane Dwivedi-Yu, Roberto Dessi, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. Toolformer: Language models can teach themselves to use tools. In Advances in Neural Information Processing Systems (NeurIPS), volume 36, pages 68539–68551, 2023.arxiv.org/abs/2302.04761
- [25]Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), volume 36, pages 8634–8652, 2023.arxiv.org/abs/2303.11366
- [26]Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar. Voyager: An open-ended embodied agent with large language models. Transactions on Machine Learning Research (TMLR), 2024.arxiv.org/abs/2305.16291
- [27]Xingyao Wang, Boxuan Li, Yufan Song, Frank F. Xu, Xiangru Tang, Mingchen Zhuge, Jiayi Pan, Yueqi Song, Bowen Li, Jaskirat Singh, Hoang H. Tran, Fuqiang Li, Ren Ma, Mingzhang Zheng, Bill Qian, Yanjun Shao, Niklas Muennighoff, Yizhe Zhang, Binyuan Hui, Junyang Lin, Robert Brennan, Hao Peng, Heng Ji, and Graham Neubig. OpenHands: An open platform for AI software developers as generalist agents. In International Conference on Learning Representations (ICLR), 2025.arxiv.org/abs/2407.16741
- [28]Qingyun Wu, Gagan Bansal, Jieyu Zhang, Yiran Wu, Beibin Li, Erkang Zhu, Li Jiang, Xiaoyun Zhang, Shaokun Zhang, Jiale Liu, Ahmed Hassan Awadallah, Ryen W. White, Doug Burger, and Chi Wang. AutoGen: Enabling next-gen LLM applications via multi-agent conversation. In First Conference on Language Modeling (COLM), 2024.arxiv.org/abs/2308.08155
- [29]Yuhao Wu, Franziska Roesner, Tadayoshi Kohno, Ning Zhang, and Umar Iqbal. IsolateGPT: An execution isolation architecture for LLM-based agentic systems. In Network and Distributed System Security Symposium (NDSS), 2025.arxiv.org/abs/2403.04960
- [30]John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. SWE-agent: Agent-computer interfaces enable automated software engineering. In Advances in Neural Information Processing Systems (NeurIPS), volume 37, pages 50528–50652, 2024.arxiv.org/abs/2405.15793
- [31]Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. ReAct: Synergizing reasoning and acting in language models. In International Conference on Learning Representations (ICLR), 2023.arxiv.org/abs/2210.03629
- [32]Mingchen Zhuge, Wenyı Wang, Louis Kirsch, Francesco Faccio, Dmitrii Khizbullin, and Jürgen Schmidhuber. GPTSwarm: Language agents as optimizable graphs. In International Conference on Machine Learning (ICML), volume 235, pages 62743–62767, 2024.arxiv.org/abs/2402.16823