whatisgithub

What is pi-multi-agent?

jwangkun/pi-multi-agent — explained in plain English

Analysis updated 2026-05-18

29TypeScriptAudience · developerComplexity · 3/5Setup · easy

In one sentence

A TypeScript framework for coordinating teams of AI agents through planning, parallel execution, evaluation, and automatic retries until a quality bar is met.

Mindmap

mindmap
  root((Pi Multi-Agent))
    What it does
      Plan task
      Execute in parallel
      Evaluate result
      Replan if needed
    Tech stack
      TypeScript
      DeepSeek
      WebSocket
    Use cases
      Research reports
      Complex tasks
      Agent teams
    Audience
      Developers
    Collaboration
      Sequential
      Debate
      Hierarchy

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Break a large goal into a dependency graph of sub-tasks handled by specialized agents.

USE CASE 2

Run agents in a debate-and-consensus process to improve answer quality.

USE CASE 3

Watch agent status and tool calls live on the built-in web dashboard.

USE CASE 4

Produce a long research report by decomposing it across multiple agents automatically.

What is it built with?

TypeScriptNode.jsDeepSeekWebSocket

How does it compare?

jwangkun/pi-multi-agentdavidhdev/rbp-portfoliodrakkar-softwares/polymarket-kalshi-arbitrage-bot
Stars292929
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasyeasymoderate
Complexity3/52/53/5
Audiencedeveloperdesignerdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Requires Node.js 18 or later and an API key for a supported language model.

The README does not state a license.

So what is it?

Pi Multi-Agent is a TypeScript framework for building systems where multiple AI agents work together on a single task. Rather than simple prompt chaining, it implements a full lifecycle: a goal is submitted, a planning step breaks it into a dependency graph of sub-tasks, a cluster of specialized agents executes those tasks with real tool calls, an evaluator scores the result on multiple dimensions, and the system replans and retries if the quality threshold is not met. The framework offers six ways agents can collaborate: they can work in sequence, in parallel, through a debate-and-consensus process, as a pool of domain experts, in a creator/critic pair, or in a hierarchy where a supervisor delegates to subordinates. Separately, it offers six communication structures that control how information flows between agents. These two dimensions can be combined depending on what a task requires. Agents have access to a shared memory system that lets them pass data between sessions and build on each other's outputs. Built-in tools include web search, a data analyzer, a web scraper, a code executor, and a report writer. A real-time web dashboard, connected over WebSocket, shows agent status, active tool calls, and progress across the cluster. The framework is written in TypeScript with strict mode throughout and uses DeepSeek as the default language model, configurable to any OpenAI-compatible endpoint. The core classes, DeepPlanner, AgentCluster, and LLMAgentCollaboration, are the main entry points. A quick-start example in the README shows how to produce a 30,000-word research report by decomposing the goal, running up to eight specialized agents, and iterating until a quality score threshold is met. Installation is through npm. Node.js 18 or later and an API key for a supported language model are the only prerequisites.

Copy-paste prompts

Prompt 1
Set up Pi Multi-Agent with npm and configure it to use DeepSeek as the model.
Prompt 2
Show me how to combine a hierarchy collaboration mode with a custom communication structure.
Prompt 3
Walk me through building a 30,000-word research report using DeepPlanner and AgentCluster.
Prompt 4
Explain how the evaluator decides when to trigger a replan.

Frequently asked questions

What is pi-multi-agent?

A TypeScript framework for coordinating teams of AI agents through planning, parallel execution, evaluation, and automatic retries until a quality bar is met.

What language is pi-multi-agent written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, DeepSeek.

What license does pi-multi-agent use?

The README does not state a license.

How hard is pi-multi-agent to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is pi-multi-agent for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.