Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
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.
| Date | Stars |
|---|---|
| 2026-07-31 | 338 |
| 2026-08-02 | 347 |
| 2026-08-06 | 347 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
60.0
growth rate 0.00%/day
<p align="center">
<img src="https://raw.githubusercontent.com/QuintinShaw/pi-dynamic-workflows/main/assets/readme/hero.png" width="100%" alt="pi-dynamic-workflows turns one prompt into a routed, resumable, cross-checked fleet of Pi subagents">
</p>
<p align="center">
<a href="https://www.npmjs.com/package/@quintinshaw/pi-dynamic-workflows"><img src="https://img.shields.io/npm/v/@quintinshaw/pi-dynamic-workflows?color=cb3837&logo=npm" alt="npm version"></a>
<a href="#license"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT license"></a>
<a href="https://pi.dev"><img src="https://img.shields.io/badge/for-Pi-7c3aed" alt="Built for Pi"></a>
</p>
<p align="center">
<a href="https://quintinshaw.github.io/pi-dynamic-workflows/">Documentation</a> ·
<a href="https://www.npmjs.com/package/@quintinshaw/pi-dynamic-workflows">npm</a> ·
<a href="https://pi.dev/packages/@quintinshaw/pi-dynamic-workflows">Pi package</a>
</p>
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
```bash
pi install npm:@quintinshaw/pi-dynamic-workflows
```
Run `/reload` in Pi, then ask naturally:
```text
Run a workflow to audit every route under src/routes/ for missing auth checks.
```
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 a message 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). Or run `/workflows run <prompt>` 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, journals completed work for resume, and delivers one result.
The orchestration itself is plain JavaScript:
```js
export const meta = {
name: 'auth_audit',
description: 'Find routes missing auth checks and verify the findings',
phases: [{ title: 'Scan' }, { title: 'Review' }, { title: 'Verify' }],
}
phase('Scan')
const files = await agent('List every route file under src/routes/.', { tier: 'small' })
phase('Review')
const findings = await parallel(
files.split('\n').filter(Boolean).map((file) =>
() => agent(`Audit ${file} for missing auth checks.`, {
tier: 'medium',
isolation: 'worktree',
}),
),
)
phase('Verify')
return await agent(
'Synthesize and double-check these findings:\n' + findings.join('\n\n'),
{ tier: 'big' },
)
```
## Why use it
- **Real parallel orchestration** — fan out up to 16 concurrent and 1000 total subagents from one orcExcerpt of 26,321 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:cd26ea48763c856b, llm:Topics: agentic-workflows, coding-agent, dynamic-workflows, llm, multi-agent, workflow-orchestration; description: Claude Code–style dynamic workflows for Pi: code-mode subagents with real model routing, journaled resume, git-worktree isolation, cost accounting, interactive TUI, ultracode, deep research.
matched fp:cd26ea48763c856b, llm:Topics: agentic-workflows, coding-agent, dynamic-workflows, llm, multi-agent, workflow-orchestration; description: Claude Code–style dynamic workflows for Pi: code-mode subagents with real model routing, journaled resume, git-worktree isolation, cost accounting, interactive TUI, ultracode, deep research.
matched fp:cd26ea48763c856b, llm:Topics: agentic-workflows, coding-agent, dynamic-workflows, llm, multi-agent, workflow-orchestration; description: Claude Code–style dynamic workflows for Pi: code-mode subagents with real model routing, journaled resume, git-worktree isolation, cost accounting, interactive TUI, ultracode, deep research.