Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
SkillCẩn thậnQuy trình & bộ nhớ agentNâng cao

pi-herdsman

boadij · boadij/pi-herdsman

Kỹ năng này cho phép các subagent Pi không đồng bộ và điều phối đội tác nhân, cho phép mã hóa song song với ủy quyền lồng ghép, công việc nền và giám sát trong herdr.

Điều phối các Pi subagent không đồng bộ và đội ngũ agent để lập trình song song với ủy quyền lồng ghép, công việc nền và giám sát trong herdr.

121 sao10Giấy phép: Apache-2.0Cập nhật 13 ngày trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Giao phó các tác vụ mã hóa phức tạp cho nhiều subagent làm việc song song.
  • Điều phối một đội tác nhân cho công việc dự án với ủy quyền và giám sát rõ ràng.
  • Quản lý các tác nhân mã hóa nền mà không làm gián đoạn cuộc trò chuyện chính.

Kiểm tra an toàn

Cẩn thận

Dùng được, nhưng nên đọc ghi chú trước.

  • ●Trình cài đặt tải script từ xa và chạy thẳng bằng shell.install.sh

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

Pi Herdsman 🐏

The orchestration layer between Pi and herdr.

Pi Herdsman turns independent Pi sessions into a coordinated agent system, from one background Agent to parallel branch-based project work. Pi owns each coding-agent conversation; herdr owns processes, panes, workspaces, and worktree placement; Herdsman connects them through delegation, ownership, supervision, and project orchestration.

Demo

Concept animation, not a live recording.

What Pi Herdsman gives you

  • Background Agents. Delegate bounded work without blocking the Lead conversation.
  • Parallel and nested delegation. Run independent work concurrently and let explicitly enabled Agents delegate their own bounded subtasks.
  • Project orchestration. A Manager coordinates durable branch-based work across independent Leads and their Agent trees.
  • Direct supervision. Chief, Manager, Lead, and Agent responsibilities stay explicit instead of collapsing into one global controller.
  • Owned usage visibility. Inspect Pi-native token usage and cost for the current session and its transitively owned managed Agents. An active Manager also sees the Leads in its current durable project assignments and their owned Agent trees.
  • Your workflow stays yours. Bring your own Agent definitions, models, tools, skills, extensions, and development process.

Quick start

On Linux or macOS, install the released Pi, herdr, and Pi Herdsman stack:

curl -fsSL https://raw.githubusercontent.com/boadij/pi-herdsman/main/install.sh | sh

See Getting started for the tested runtime baselines and how the bootstrap handles newer Pi and herdr versions.

If you already manage Pi and herdr yourself:

pi install npm:pi-herdsman
herdr integration install pi

Start herdr in your project, then start Pi inside its pane:

herdr
pi

Delegate naturally:

Use scout to inspect the authentication flow.

The Agent runs asynchronously while the Lead conversation stays available. Open the human Agent-management surface at any time with:

/agents

It also exposes Session stats for the current Pi session and its owned Agent sessions; in active Manager mode, it includes current assigned project Leads and their owned Agent trees.

See Getting started for prerequisites, configuration, observability, and the complete first-use path.

From one Agent to a project

A normal Pi session is a Lead. It owns the Agents it delegates:

You ↔ Lead
      ├─ Agent
      │  └─ Agent
      └─ Agent

For independent project work, an eligible Lead can enter Manager mode. Managers coordinate Leads instead of implementing through Agents themselves:

You ↔ Manager
      ├─ Lead → Agents
      └─ Lead → Agents

A Chief is an optional runtime-wide supervisor above Managers. Without an active Manager for a project, Chief can directly supervise its ordinary Leads.

The important boundaries are:

supervision: Chief → Manager → Lead
ownership: Lead → Agent → Agent

Project work is durable by Git branch. It does not belong to the Manager session that happened to start it, so work can be paused, resumed, completed, or reconciled across Manager turnover.

See Coordination for the mental model and Project orchestration for the Manager workflow.

Choose your next step

GoalStart here
Install and delegate your first taskGetting started
Run independent branch-based project workProject orchestration
Understand roles, ownership, and authorityCoordination
Customize AgentsAgent definitions
Build against the model-facing toolsCoordination API
Deploy an SSH-ready environmentContainer deployment
Contribute to Pi HerdsmanDocumentation index

Community

Questions, workflows, examples, and ideas are welcome in GitHub Discussions.

For reproducible bugs and concrete actionable work, use GitHub Issues.

License

Apache License 2.0

Xem mã nguồn trên GitHub