Cài — hai lệnh
Cần Node.js 22.19.0 trở lên. Không cần cài Pi Coding Agent trước: piagent-setup tự cài đúng bản host mà release hiện tại đang pin. Chạy nó ngay trong thư mục project — nó cài Pi package, khởi tạo .pi/, cài MCP baseline cùng subagents, rồi chạy doctor. Thêm --no-mcp, --no-subagents, --no-herdr hoặc --global-only để bỏ bớt.
| Runtime | Trạng thái rollout |
|---|---|
| macOS Apple Silicon + Bash | Đã verify cho release này. |
| Linux x64 + Bash | Đã verify trong CI. |
| macOS Intel / Linux ARM64 + Bash | Supported target; chạy doctor + smoke test trước khi rollout rộng. |
| Native Windows / WSL2 | Chưa là target rollout team; WSL2 chỉ experimental. |
npm install -g @piagent/platform
piagent-setup
Vì chạy từ package đã cài, source ghi vào .pi/settings.json là npm:@piagent/platform@<version> — giá trị này có nghĩa như nhau trên máy đồng đội, nên commit được cho cả team.
Dùng Herdr thì cài Herdr trước: piagent-setup tự cài luôn Herdr Pi integration khi thấy herdr trên PATH, còn không thì bỏ qua kèm cảnh báo — cài Herdr sau phải chạy lại piagent-setup --global-only.
brew install herdr # macOS
curl -fsSL https://herdr.dev/install.sh | sh # macOS hoặc Linux
Bản curl chạy script tải về lúc cài; muốn kiểm tra được thì dùng brew hoặc tải từ GitHub releases. Herdr stable hỗ trợ macOS và Linux, Windows mới ở mức preview.
Rollout pin từng bước, update, rollback, và channel latest cho máy cá nhân nằm trong release & install policy.