pi-dteam

dteam - 轻量级多代理编排系统

Packages

Package details

extensionprompt

Install pi-dteam from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-dteam
Package
pi-dteam
Version
0.2.3
Published
May 31, 2026
Downloads
not available
Author
diwu507
License
MIT
Types
extension, prompt
Size
217.8 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions"
  ],
  "prompts": [
    "./prompts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-dteam

Lightweight multi-agent orchestration system — a multi-agent workflow framework for Pi

English | 中文

Overview

dteam is a Pi extension package that provides lightweight multi-agent orchestration capabilities. It balances efficiency and effectiveness through three modes: solo, chain, and team.

Core Concepts

  • Task: Work unit object (Markdown format)
  • Worker: Execution unit (solo/chain/team modes)
  • Roles: 5 execution roles (explore/design/build/check/close)
  • Signals: Real-time communication mechanism (4 signals + 5 strategies = 9 types)

Installation

# Install via git (recommended)
pi install git:github.com/ssdiwu/pi-dteam

# Or via local path
pi install /path/to/pi-dteam

Usage

Commands

/explore task description    # Explorer: gather internal and external information
/design task description     # Designer: evaluate requirements, create plans
/build task description      # Builder: execute plans, write code, update docs, write tests
/check task description      # Reviewer: check code quality, verify results
/close task description      # Closer: organize, archive, record lessons, close tasks

Tools

Task Tools

Tool Description
task_create Create a new task
task_read Read a specific section of a task
task_update Update a specific section of a task
task_complete Mark a checklist item as completed
task_archive Archive a completed task
task_list List all tasks
task_search Search tasks

Worker Tools

Tool Description
worker_create Create a worker instance
worker_start Start worker execution
worker_sendSignal Send a signal to a worker
worker_cancel Cancel a background worker
worker_status Get worker status

Memory Tools

Tool Description
memory_get Get a value from shared memory
memory_set Set a value in shared memory
memory_keys List all keys in a namespace
memory_has Check if a key exists
memory_delete Delete a key
memory_clear Clear a namespace
memory_save Save shared memory to a file
memory_load Load shared memory from a file

Auth Tools

Tool Description
auth_register User registration
auth_login User login
auth_verify Verify a token
auth_refresh Refresh a token
auth_logout User logout

Other Tools

Tool Description
reference_architecture Query architecture type references
signal_emit Emit a signal
signal_history Get signal history

Compaction I18n

dteam includes built-in localization for Pi's compaction and branch summary outputs. This means when you use /compact or navigate branches with /tree, the summary headings will be automatically localized to your language.

Supported Languages:

Locale Language Headings Example
zh-CN 简体中文 ## 目标 / ## 进展 / ## 下一步
zh-TW 繁體中文 ## 目標 / ## 進展 / ## 下一步
ja 日本語 ## 目標 / ## 進捗 / ## 次のステップ
ko 한국어 ## 목표 / ## 진행 상황 / ## 다음 단계
de Deutsch ## Ziel / ## Fortschritt / ## Nächste Schritte
fr Français ## Objectif / ## Progression / ## Étapes suivantes
es Español ## Objetivo / ## Progreso / ## Próximos pasos
pt Português ## Objetivo / ## Progresso / ## Próximos passos
ru Русский ## Цель / ## Прогресс / ## Следующие шаги
ar العربية ## الهدف / ## التقدم / ## الخطوات التالية
en English ## Goal / ## Progress / ## Next Steps

Check Status:

/compaction-i18n-status

The language is auto-detected from your environment (PI_LOCALE > LC_ALL > LANG).

Full Workflow

User Requirement
       │
       ▼
/explore → /design → /build → /check → /close
 (explore)  (design)  (build)  (review)  (close)

Directory Structure

pi-dteam/
├── package.json        # Package metadata
├── extensions/         # Extension entry point
├── src/                # Source code
│   ├── P0/             # Atomic layer: types, config, pure functions
│   ├── P1/             # Molecular layer: service implementations
│   ├── P2/             # Cellular layer: orchestration patterns
│   ├── P3/             # Organizational layer: orchestration logic
│   └── P4/             # User interface layer: Pi extension entry
├── agents/             # Agent definitions (5)
├── prompts/            # Prompt templates (5)
├── reference/          # Reference data
├── .doc/               # Documentation
├── tests/              # Tests
├── AGENTS.md           # Agent behavior specification
└── README.md           # This file

Documentation

License

MIT