omp packages

herdr-delegate1.0.0

Delegate tasks from Pi to ready agents in Herdr workspaces.

oskarcode Published 9 days ago MIT ~296 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

Herdr Delegate

A Pi extension for delegating work to another ready agent in a Herdr workspace. It provides a picker for workspaces, tabs, and agents, then brings the selected agent's marked final response back into the current Pi conversation.

Requirements

  • Pi with TypeScript extension support.
  • Herdr installed and running.
  • Pi running in a Herdr-managed interactive terminal. The extension checks HERDR_ENV=1 and requires Pi's TUI.

Install

Install from npm:

pi install npm:herdr-delegate

Or install directly from GitHub:

pi install git:github.com/oskarcode/herdr-delegate

Then reload Pi with /reload or restart the session.

Use

Start the picker and enter the task when prompted:

/herdr-delegate

Or include the task directly:

/herdr-delegate Review the API changes in the current branch and report actionable findings.

The extension lets you choose a workspace, tab, and agent, then shows a confirmation before sending the task. The generated prompt identifies the source agent, Herdr workspace/tab IDs and labels, working directory, Pi session ID, and exact session transcript path. It also tells the target how to inspect the source pane's recent output with herdr agent read. The extension targets existing agents in idle or done states; it excludes the current pane and does not offer working, blocked, or unknown agents. It does not create or move workspaces, tabs, or panes.

The extension waits up to ten minutes for the task to settle. When the target agent ends its response with the requested markers, the result is added to the current Pi conversation as a rendered message. Results are limited to 40,000 characters. If the task times out or the marked answer cannot be read, the extension reports that and does not automatically resend the prompt.

Permissions and behavior

Pi extensions execute with the same operating-system permissions as Pi. Review the source before installing. This extension invokes the Herdr CLI to list workspaces, agents, and tabs, and—only after your confirmation—to prompt and read the selected agent. The source transcript path is provided to the target as a reference; the extension does not read or attach the source transcript itself. It stores no credentials.

Delegation uses the selected agent's existing conversation. The delegated agent may make changes or run commands according to the task and its own permissions; review its response and work as appropriate.

Package discovery

This package includes the pi-package keyword and a pi.extensions manifest, so after publishing to npm it is eligible for the Pi package gallery at https://pi.dev/packages.

License

MIT. See LICENSE.