Skip to content

chore(agents): flatten delegation model to spec-and-review architecture#371

Merged
steilerDev merged 1 commit into
betafrom
chore/flat-delegation-model
Mar 2, 2026
Merged

chore(agents): flatten delegation model to spec-and-review architecture#371
steilerDev merged 1 commit into
betafrom
chore/flat-delegation-model

Conversation

@steilerDev
Copy link
Copy Markdown
Owner

Summary

  • Replaces nested agent invocation (orchestrator → dev-team-lead → Haiku agents) with a flat model where the orchestrator launches all implementation agents directly
  • The dev-team-lead now operates in three modes: [MODE: spec] (produces structured implementation specs), [MODE: review] (reviews code, returns verdicts), [MODE: commit] (commits, pushes, creates PR, watches CI)
  • Updates all skills (/develop, /epic-run, /epic-close) to use the multi-phase orchestration flow: spec → implement → review → commit

Motivation

Nested Agent tool calls are unreliable — the dev-team-lead frequently falls back to writing production code directly, violating the delegation protocol. This restructuring eliminates nested delegation entirely.

Files Changed

  • .claude/agents/dev-team-lead.md — Major rewrite to three-mode protocol
  • .claude/skills/develop/SKILL.md — Step 6 rewritten to multi-phase orchestration (6a-6h)
  • .claude/skills/epic-run/SKILL.md — Phase 2 steps 2.5-2.6, 2.9, 3.3 updated
  • .claude/skills/epic-close/SKILL.md — Step 4 refinement PR updated
  • .claude/agents/backend-developer.md — Minor wording update for orchestrator routing
  • .claude/agents/frontend-developer.md — Minor wording update for orchestrator routing
  • CLAUDE.md — Agent table, delegation enforcement, orchestrator delegation list updated
  • .claude/agent-memory/dev-team-lead/MEMORY.md — Updated to reflect three-mode protocol

Test plan

  • No references to nested delegation remain (verified via grep)
  • All /develop phases connect correctly (6a → 6b/6c → 6d → 6e → 6f → 6g → 6h)
  • CLAUDE.md agent table, delegation enforcement, and delegation list all align
  • Run a /develop session on a story to validate the new flow in practice

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Replace nested agent invocation (orchestrator → dev-team-lead → Haiku agents)
with a flat model where the orchestrator launches all agents directly using
specs produced by the dev-team-lead.

The dev-team-lead now operates in three modes:
- [MODE: spec] — reads wiki/codebase, returns structured implementation specs
- [MODE: review] — reads modified files, returns VERDICT with fix specs
- [MODE: commit] — stages, commits with trailers, pushes, creates PR, watches CI

This eliminates the unreliable nested Agent tool calls that caused the
dev-team-lead to write production code directly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@steilerDev steilerDev merged commit 47949bc into beta Mar 2, 2026
9 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 2, 2026

🎉 This PR is included in version 1.10.0-beta.78 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 2, 2026

🎉 This PR is included in version 1.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@steilerDev steilerDev deleted the chore/flat-delegation-model branch March 7, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants