How giuseppecrj/pi-herdr-agents works
Pi Herdr Agents adds asynchronous child-agent delegation to Pi, running child Pi processes in legacy Herdr panes or Herdr Core terminals. The main workflow is parent delegation, surface selection and resource acquisition, child execution, live supervision, then result delivery and presentation. The README also documents managed worktrees, conversation handoff, persistent specialists, and an optional sidebar plugin. The excerpts show extension wiring and parts of both surface implementations; several Maestro runtime details are documented but not present in the sampled source.
Main entry points: subagents Subagent engine · herdr-surface-provider.ts Legacy surface provider · herdr-core-surface-provider.ts Core surface provider · index.ts Extension entry
Components 23
Pi extension
- Extension entry
pi-extension/subagents/index.ts - Host surface binding
pi-extension/subagents/host-surface.ts - Subagent engine
pi-extension/subagents - Child Pi process
maestro/adapters/pi/child/subagent-done.ts - Persistent specialists
pi-extension/subagents
Legacy Herdr
- Legacy surface provider
maestro/surfaces/herdr/herdr-surface-provider.ts - Legacy orchestration
maestro/surfaces/herdr/herdr.ts - Pane inspection
maestro/surfaces/herdr/herdr-pane.ts - Herdr CLI
maestro/surfaces/herdr/herdr-cli.ts - Terminal support
maestro/surfaces/herdr/terminal.ts - Managed worktrees
maestro/surfaces/herdr - Conversation handoff
maestro/surfaces/herdr
Herdr Core
- Core surface provider
maestro/surfaces/herdr/herdr-core-surface-provider.ts - Core protocol
maestro/surfaces/herdr/herdr-core-protocol.ts - Core socket
maestro/surfaces/herdr/herdr-socket.ts
Supervision and display
- Status widgets
pi-extension/subagents/widgets.ts - Message renderers
pi-extension/subagents/renderers.ts - Tool renderers
pi-extension/subagents/tool-renderers.ts
Optional integrations
- Sidebar focus plugin
plugins/sidebar/sidebar.mjs
Other components
- Pi parent session
- Herdr environment
- Core terminal
- Herdr user
Connections 26
- Pi parent session → Extension entry: delegates to
README.md - Extension entry → Host surface binding: configures
pi-extension/subagents/index.ts - Extension entry → Subagent engine: creates
pi-extension/subagents/index.ts - Host surface binding → Legacy surface provider: selects provider
pi-extension/subagents/host-surface.ts - Host surface binding → Core surface provider: selects provider
pi-extension/subagents/host-surface.ts - Subagent engine → Child Pi process: launches child
pi-extension/subagents/index.ts - Legacy surface provider → Legacy orchestration: delegates to
maestro/surfaces/herdr/herdr-surface-provider.ts - Legacy surface provider → Pane inspection: inspects panes
maestro/surfaces/herdr/herdr-surface-provider.ts - Legacy surface provider → Herdr CLI: invokes
maestro/surfaces/herdr/herdr-surface-provider.ts - Legacy surface provider → Terminal support: uses
maestro/surfaces/herdr/herdr-surface-provider.ts - Legacy orchestration → Herdr CLI: runs commands
maestro/surfaces/herdr/herdr.ts - Pane inspection → Herdr CLI: runs commands
maestro/surfaces/herdr/herdr-pane.ts - Legacy orchestration → Herdr environment: provisions panes
README.md - Core surface provider → Core protocol: uses protocol
maestro/surfaces/herdr/herdr-core-surface-provider.ts - Core surface provider → Core socket: communicates through
- Core surface provider → Core terminal: manages terminals
maestro/surfaces/herdr/herdr-core-surface-provider.ts - Core surface provider → Child Pi process: runs child
README.md - Subagent engine → Status widgets: creates
pi-extension/subagents/index.ts - Subagent engine → Message renderers: registers
pi-extension/subagents/index.ts - Subagent engine → Tool renderers: registers
pi-extension/subagents/index.ts - Child Pi process → Pi parent session: returns result
README.md - Pi parent session → Managed worktrees: manages
README.md - Pi parent session → Conversation handoff: hands off
README.md - Pi parent session → Persistent specialists: runs sequential tasks
README.md - Herdr user → Sidebar focus plugin: enables focus
README.md - Sidebar focus plugin → Herdr environment: hides marked panes
README.md