8000 GitHub - laminko/pi-multi-agent: Let your pi hand work to other pi agents that run in parallel, and watch them think while they work. · GitHub
[go: up one dir, main page]

Skip to content

About

Let your pi hand work to other pi agents that run in parallel, and watch them think while they work.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

pi-multi-agent

Let your pi hand work to other pi agents that run in parallel, and watch them think while they work.

You chat with your pi, the manager. It sends self-contained tasks to worker pis, separate processes with their own context, model and tools, and gets their results back when ready. You can also message a worker directly. A live view shows each worker's thinking, tool calls and cost.

Install

pi install git:github.com/laminko/pi-multi-agent

Or try it once without installing: pi -e git:github.com/laminko/pi-multi-agent. You need pi (tested with 1.6.0) and a working model.

Use

Ask pi in plain language:

Spawn two read-only workers in parallel (tools: read, grep, find, ls). One summarizes what this project does in five bullets; the other lists every TODO and FIXME comment with file and line.

pi starts the workers and keeps talking with you. Each result appears as a ⚑ worker … done message when it is ready.

Watch

The widget above the editor shows every worker, with its latest thinking (💭):

 St  Worker    Turns  Tools  Ctx  ↑In  ↓Out   Cost  Time  Now
 ●   reviewer      3      2  1.5%   4  1.4k  $0.14   25s  💭 …I'm also flagging that the `__main__` module lacks a guard…
 ✓   tests         4      3  1.2%  10  6.1k  $0.17   48s  → I wrote `tests/test_todo.py`. It has 39 tests…

Type /workers for a live view of one worker: its thinking, output and tool calls.

You don't need to watch for stuck workers. The manager checks running workers every 10 s; when one goes silent, stops answering or loops, you see ⚠ in the widget and the manager follows up on it by itself. PI_MULTI_AGENT_HEALTH_INTERVAL changes the interval.

Idle workers clean up after themselves: a finished worker that is not reused for 10 minutes (PI_MULTI_AGENT_IDLE_MINUTES) has its process stopped. worker_send starts it again with its context.

If pi quits

Reopen with pi -c and type /workers-resume. Interrupted workers continue where they stopped.

Learn more

  • User guide: prompting, stepping in, cost, limits
  • Observability: everything about watching workers
  • Reference: every tool, command and setting
  • Runbook: install details, troubleshooting, tests
  • Status: what is verified, known issues

License

MIT

About

Let your pi hand work to other pi agents that run in parallel, and watch them think while they work.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0