Skip to content

pi: add foreground delegate tool - #67

Merged
cmpadden merged 4 commits into
mainfrom
pi/delegate
Nov 10, 2026
Merged

cmpadden merged 4 commits into
mainfrom
pi/delegate

Conversation

@cmpadden

@cmpadden cmpadden commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add a foreground-only delegate tool for bounded tasks using an explicit provider/model ID.
  • Support parallel delegation with up to three active children per session and a cancellable FIFO queue.
  • Accept explicit existing cwd values for parent-prepared Worktrunk worktrees; the parent decides whether isolation is needed. No automatic worktree creation or cleanup.
  • Show queued/running/final status, canonical cwd, queue time, execution time, streamed activity, and usage.
  • Propagate cancellation/shutdown to running and queued calls; avoid transferring parent project trust to a different cwd.
  • Document shared-checkout/security boundaries, Worktrunk preparation, hooks, dirty-state limitations, and deliberate cleanup.

Validation

  • All 32 delegate tests passed twice using fake child processes (no paid model requests in tests).
  • Coverage includes real overlapping children, concurrency cap, FIFO, queued cancellation, shutdown, failure recovery, cwd/trust, rendering, and live timing.
  • Code review found no blocking defects.
  • make format passed with no changes.
  • make lint: all available checks passed; both ShellCheck hooks could not run because shellcheck is not installed.
  • Reviewed the staged changes for secrets and machine-specific state.

Only the delegate extension is included; unrelated local configuration changes and the unpushed tmux commit are excluded.

@cmpadden
cmpadden merged commit c86d41e into main Nov 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant