Barkain Claude Code Workflow Orchestration — Summary
This Claude Code plugin (60 stars) enforces a strict Director/Coder split via adaptive hook-based delegation: the main Claude Code agent is required to use /workflow-orchestrator:delegate to route every task to one of 8 specialized agents rather than directly using tools itself. Hard blocking has been replaced with adaptive nudges (silent → hint → warning → strong) that escalate per turn when the main agent bypasses delegation. The system uses Claude Code's native plan mode (EnterPlanMode/ExitPlanMode) for two-stage execution: Stage 0 decomposes the request into a task DAG with wave assignments, and Stage 1 executes agents in parallel waves. A dual-mode execution model selects between isolated subagents (default) and experimental Agent Teams (when CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1) based solely on tool availability. Hooks cover 6 lifecycle events (PreToolUse, PostToolUse, UserPromptSubmit, SessionStart, SubagentStop, Stop) with Python-based validators, lean session injection (stub orchestrator ~1.1KB at startup, full ~7.5KB on-demand), and Python/Ruff validators auto-running PostToolUse on file edits. Compared to seeds, it most closely resembles BMAD-METHOD (persona-md agents, plan-then-execute) but uniquely implements hook-enforced delegation rather than relying on agent discipline, and adds native plan mode integration as the planning/execution handoff mechanism.