Claude Code usage

Pi Dynamic Workflows

Claude Code–style dynamic workflows for Pi: code-mode subagents with real model routing, journaled resume, git-worktree isolation, cost accounting, an interactive /workflows TUI, an /ultracode standing opt-in, and deep research.

590 stars 114 forksUsage & cost trackers Source

Install

From source
git clone https://github.com/QuintinShaw/pi-dynamic-workflows.git

From the README

Documentation ·
  npm ·
  Pi package

Turn one request into a JavaScript orchestration script that fans work out across isolated subagents, routes each task to the right model, cross-checks the results, and returns one synthesized answer. Intermediate work stays in script variables instead of filling your chat context.

Built for codebase-wide audits, multi-perspective review, large refactors, and source-checked research—the jobs that are too broad for one agent and one context window.

Start in 30 seconds

Run /reload in Pi, then ask naturally:

Pi writes and starts the workflow in the background. A live panel tracks progress while you keep working, and the final result is delivered back into the conversation automatically.

Keyword triggering is on by default: use the bounded word workflow or workflows in an idle interactive editor submission to arm workflow mode — the assistant then handles a request by fanning it out across agents, but still answers plainly if you're only asking *about* workflows (the trigger authorizes the tool, it doesn't force it). The directive applies only to that request; the original user message stays unchanged. Print/JSON/RPC inputs and queued steering/follow-up inputs do not keyword-arm. Or run /workflows run  explicitly. Identifier-like text and paths such as myworkflow, workflow_name, and src/workflow-editor.ts do not trigger. You can change the keyword with /workflows-trigger set pi-workflow or disable it with /workflows-trigger off.

How it works

1. Orchestrate — Pi writes a deterministic JavaScript workflow with agent(), parallel(), pipeline(), and phase().
2. Fan out — fresh subagent sessions run concurrently, optionally on different models or isolated git worktrees.
3. Verify and return — the workflow cross-checks findings,…
Read the full README on GitHub

Details

Language
TypeScript
License
MIT
Last updated
27 October 2026
Topics
agentic-workflowsclaude-codecoding-agentdeep-researchdynamic-workflowsllmmulti-agentpipi-packagesubagentstypescriptultracode

FAQ

What is Pi Dynamic Workflows?

Claude Code–style dynamic workflows for Pi: code-mode subagents with real model routing, journaled resume, git-worktree isolation, cost accounting, an interactive /workflows TUI, an /ultracode standing opt-in, and deep research. It is a usage for Claude Code, from QuintinShaw/pi-dynamic-workflows on GitHub.

How do I install Pi Dynamic Workflows?

Clone QuintinShaw/pi-dynamic-workflows from GitHub and follow the setup steps in its README.

Is Pi Dynamic Workflows popular?

QuintinShaw/pi-dynamic-workflows has 590 GitHub stars and 114 forks. It was last updated on 27 October 2026.

More usage & cost trackers

Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.