Observed since 21 Oct, 09:03 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Agnostic subagent orchestration for pi-coding-agent. Supports single, chain, parallel, and fork execution modes with depth limiting and worktree isolation.
Agnostic subagent orchestration for pi-coding-agent
A TypeScript package for orchestrating multi-agent workflows with depth limiting, worktree isolation, and model flexibility.
| Type | Emoji | Purpose | Depth Limit |
|---|---|---|---|
scout | 🔍 | Fast reconnaissance | 0 |
specialist | 🧠 | Domain expert | 1 |
worker | ⚒️ | Implementation | 1 |
reviewer | 👁️ | Quality validation | 0 |
coordinator | 🎯 | Task orchestration | ∞ |
pi-orchestration inherits the parent agent's model registry and selects the best model for each agent type:
// "auto" = use parent's ctx.modelRegistry (default)
{ agent: "worker", model: "auto" }
// Explicit model
{ agent: "worker", model: "ollama/qwen2.5-coder:14b" }
// Use parent's current model
{ agent: "reviewer", model: "inherit" }
ollama/* - Local or cloud Ollama modelsclaude/* - Anthropic Claudeanthropic/* - Alias for claude/npm install @0xkobold/pi-orchestration
import { orchestrate } from "@0xkobold/pi-orchestration";
const result = await orchestrate({
agent: "worker",
task: "Implement user authentication",
}, ctx);
console.log(result.content);
const result = await orchestrate({
chain: [
{ agent: "scout", task: "Analyze the codebase structure" },
{ agent: "planner", task: "Create implementation plan" },
{ agent: "worker", task: "Implement the feature" },
{ agent: "reviewer", task: "Review the changes" },
],
}, ctx);
const result = await orchestrate({
parallel: [
{ agent: "scout", task: "Audit frontend security" },
{ agent: "scout", task: "Audit backend security" },
{ agent: "scout", task: "Audit infrastructure" },
],
}, ctx);
const result = await orchestrate({
agent: "worker",
task: "Refactor authentication module",
cwd: "/path/to/project",
timeout: 60000, // 60 second timeout
maxOutput: 5000, // 5000 character max output
isolation: {
type: "worktree",
diffOnComplete: true,
autoApply: false,
},
model: "ollama/qwen2.5-coder:14b",
}, ctx);
orchestrate(options, ctx)Main orchestration function.
Options:
agent - Agent type for single executiontask - Task descriptionchain - Array of steps for chain executionparallel - Array of tasks for parallel executioncwd - Working directorytimeout - Timeout in millisecondsmaxOutput - Maximum output lengthisolation - Isolation configurationmodel - Model overridecontext - Context mode: fresh, fork, or inheritReturns: OrchestrateResult | ChainResult | ParallelResult
orchestrate - Main orchestration tool (single, chain, parallel execution)orchestrate_status - Check engine status and pi CLI availabilitysrc/
├── core/ # Types and agent definitions
├── utils/ # Model selection, depth tracking, templates
├── modes/ # Single, chain, parallel, fork execution
├── execution/ # Main orchestration engine
└── tools/ # pi-coding-agent skill definitions
MIT
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:03 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:c427eeb9e4693bb614c6a02e35ce14d0cbd3dac574588bdf8f93afff5022f36c