</>MCP Agents Market
Plugin

pi-dynamic-workflows

by Michaelliv1.2kTypeScriptUpdated 2026-05-31

Pi

pi-dynamic-workflows is an extension for Pi that enables Claude-Code-style dynamic workflows through a registered workflow tool. Instead of sequential processing by a single assistant, it allows the AI model to write JavaScript scripts that distribute work across multiple isolated subagents and synthesize their results. The extension is particularly useful for codebase audits, multi-perspective reviews, large-scale refactors, and fan-out research tasks. Developers install it via Pi's package manager and interact with workflows through natural language prompts.

Key Features

JavaScript-based workflow scripts that fan out work across isolated subagents running in sandboxed environments
Real-time progress tracking with phase-based visualization showing completed, active, and skipped subagent tasks
Parallel execution via parallel() and sequential pipeline() helpers for concurrent and staged processing
Structured output support using JSON Schema validation for typed subagent responses
Deterministic execution sandbox that restricts non-reproducible APIs like Date.now() and Math.random()
Live workflow cancellation with Esc key that aborts active subagents and surfaces them as skipped
TypeScript IntelliSense support for workflow globals including agent, phase, log, and budget tracking
Token budget tracker with total, spent, and remaining budget visibility across workflow execution

Use Cases

  • 01Auditing large codebases by distributing module inspection across parallel subagents
  • 02Conducting multi-perspective code reviews with different subagents analyzing separate aspects
  • 03Orchestrating large-scale refactoring tasks that span multiple files or components
  • 04Performing fan-out research where multiple subagents investigate different sources simultaneously
  • 05Running security scans that analyze different vulnerability categories in parallel
  • 06Generating comprehensive documentation by assigning sections to specialized subagents

Related Plugins

View more

pi-dynamic-workflows — FAQ

What is pi-dynamic-workflows?+

pi-dynamic-workflows is an extension for the Pi AI assistant that adds a workflow tool allowing the model to write JavaScript scripts that distribute tasks across multiple isolated subagents. It's inspired by Anthropic's dynamic workflows feature in Claude Code.

How do I install pi-dynamic-workflows?+

Install it using Pi's package manager with 'pi install npm:pi-dynamic-workflows' or from a local directory with 'pi install /path/to/pi-dynamic-workflows'. After installation, run '/reload' in Pi to activate the extension.

Which AI clients work with pi-dynamic-workflows?+

This extension works exclusively with Pi, the AI assistant framework from Earendil Works. It registers as a Pi extension and requires Pi to be installed.

Do I need API keys or prerequisites?+

You need a working Pi installation. No additional API keys are required, but the extension assumes you have Pi already configured and operational.

Is pi-dynamic-workflows free?+

Yes, pi-dynamic-workflows is open source and released under the MIT license, making it free to use and modify.

How do I use workflows after installing?+

Simply ask Pi in natural language to run a workflow, such as 'Run a workflow to inspect this repository and summarize the main modules.' The model will write the workflow script and execute it automatically.

How do I install pi-dynamic-workflows?+

Open the source repository on GitHub and follow its README. pi-dynamic-workflows is a plugin — MCP Agents Market links you directly to the official repo.

Is pi-dynamic-workflows free?+

pi-dynamic-workflows is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches