You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- remind_skill_continuation.py: use tempfile.gettempdir() for debug log
path (cross-platform) and sys.stdout.write instead of print (T201).
- require_delegation.py: exit 1 on unexpected exception per hook
exit-code policy (still non-blocking for the tool call itself).
- validate_task_graph_compliance.py, validate_task_graph_depth.py: add
PEP 723 script metadata block (required for uv run --script).
- Delete orphaned system-prompts/workflow_orchestrator.md. No Python
code loads this file; the full orchestrator logic lives in
commands/delegate.md, which is injected by the slash command on
demand. Update README.md and CLAUDE.md references accordingly.
Qodo #5 (team_mode_score fallback) and #6 (team_mode_active auto-create)
are intentional / false positives and will be replied to on the PR.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CLAUDE.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,7 +171,7 @@ Two team workflow patterns:
171
171
- Agents use conditional COMMUNICATION MODE (teammate messaging vs `DONE|{path}`)
172
172
- State files: `.claude/state/team_mode_active`, `.claude/state/team_config.json`
173
173
174
-
Agent selection uses keyword matching (≥2 matches threshold, highest count wins). Falls back to general-purpose if 0-1 matches. See `system-prompts/workflow_orchestrator.md` for keyword lists.
174
+
Agent selection uses keyword matching (≥2 matches threshold, highest count wins). Falls back to general-purpose if 0-1 matches. See `commands/delegate.md` (Available Specialized Agents section) for keyword lists.
- Return format must be exactly `DONE|{output_file_path}` (no summaries or explanations)
@@ -270,7 +270,7 @@ ls .claude/state/delegation_active 2>/dev/null # delegation in progress?
270
270
```
271
271
272
272
**Multi-step not detected:**
273
-
Ensure SessionStart hooks are installed (inject_workflow_orchestrator.py) so that workflow_orchestrator.md is injected and native plan mode (EnterPlanMode/ExitPlanMode) is available. Use connectors in prompts: "and then", "with", "including".
273
+
Ensure the SessionStart hook is installed (`hooks/SessionStart/inject_all.py`) so `orchestrator_stub.md` is injected and the main agent knows to route multi-step work through `/workflow-orchestrator:delegate`. Use connectors in prompts: "and then", "with", "including".
- Injects orchestrator routing stub (`orchestrator_stub.md`, ~1.1KB): points the main agent at `/workflow-orchestrator:delegate`for multi-step work. Minimal overhead (~200 tokens).
276
276
- Optionally injects token-efficient CLI guide (`token_efficient_cli.md`, ~1.9KB, gated by `CLAUDE_TOKEN_EFFICIENCY=1` env var). Teaches compact flags and command patterns.
277
277
- Output style loaded natively from plugin.json `outputStyles` field (no injection required). Saves ~1.5K tokens.
278
278
279
279
**On first delegation (lazy load):**
280
-
- Full `workflow_orchestrator.md`(~7.5KB) loaded only when `/workflow-orchestrator:delegate` runs or multi-step detected.
280
+
- Full orchestrator logic (planning instructions, agent catalog, wave scheduling, team-mode execution) lives inline in `commands/delegate.md`and is loaded only when `/workflow-orchestrator:delegate` runs.
281
281
282
-
**Net savings:**~6.6K tokens off session startup. Sessions pay only for orchestrator when delegation is used.
282
+
**Net savings:**~6.6K tokens off session startup. Sessions pay the orchestration tax only when delegation is actually used.
Enables multi-step workflow detection and preparation for complex tasks. Works in conjunction with native plan mode (EnterPlanMode/ExitPlanMode).
352
+
The `/workflow-orchestrator:delegate` slash command loads the full orchestrator logic on demand: multi-step detection, plan-mode instructions, agent catalog, wave scheduling, and team-mode execution. Works in conjunction with native plan mode (EnterPlanMode/ExitPlanMode).
0 commit comments