feat(plugin): add agent-teams-pipeline plugin#25631
Open
0xarkstar wants to merge 1 commit intoanthropics:mainfrom
Open
feat(plugin): add agent-teams-pipeline plugin#256310xarkstar wants to merge 1 commit intoanthropics:mainfrom
0xarkstar wants to merge 1 commit intoanthropics:mainfrom
Conversation
Lifecycle management for Claude Code's Agent Teams feature: - 7 hooks across 4 event types (PreToolUse, Stop, TeammateIdle, TaskCompleted) - Context-aware shutdown: blocks heavy ops at 55%+ context, suggests fresh session at 75%+ - Orphan detection: auto-detects agents whose team config was deleted - Team size enforcement: max 3 concurrent active teammates - Pipeline lifecycle: detects Pipeline Complete, blocks post-pipeline work - Deliverable validation: verifies phase output files on task completion - tmux cleanup script with normal, --all, and --orphans modes - Multi-phase pipeline orchestration skill (P-1 Research through P4 Docs) Addresses: anthropics#24385 (leaked panes), anthropics#25131 (runaway spawning), anthropics#24585 (context exhaustion), anthropics#18405 anthropics#20369 anthropics#25180 (orphans), anthropics#24414 (post-pipeline freeze)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent Teams Pipeline Plugin
Lifecycle management plugin for Claude Code's Agent Teams feature — 7 hooks, a cleanup script, and a multi-phase pipeline orchestration skill that address common Agent Teams pain points.
Problem
Agent Teams currently lacks lifecycle management, leading to:
Solution
7 hooks across 4 event types:
check-context-preemptive.shExitPlanMode/TeamCreateat 55%+ contextdetect-pipeline-complete.shblock-after-pipeline.shcheck-idle-reason.shcheck-team-limit.jsverify-phase-output.shcheck-context-stop.shPlus:
cleanup-team-panes.sh— Manual tmux pane cleanup ([team],--all,--orphans)/agent-teams-pipeline:cleanup-team-panesslash commandTesting
All hooks are production-tested across 50+ pipeline runs with 3-agent teams on macOS. Key thresholds (55%/75% context, max 3 teammates, 200-char min deliverables) are empirically tuned from real failure incidents.
Platform Support
mkdiratomic locking,stat -f,md5)stat -c,md5sum)Requirements
jq(JSON parsing in hooks)tmux(pane cleanup — optional if not using tmux-based spawning)check-team-limit.js)Files
Also updates
plugins/README.mdtable with the new plugin entry.