Skip to content

Add autonomous agent team configurations and task completion hooks - #26

Merged
adityak74 merged 1 commit into
mainfrom
claude/setup-agent-teams-TJGen
Feb 24, 2026
Merged

Add autonomous agent team configurations and task completion hooks#26
adityak74 merged 1 commit into
mainfrom
claude/setup-agent-teams-TJGen

Conversation

@arjunjaggi34

Copy link
Copy Markdown
Contributor

Summary

This PR introduces a comprehensive agent team framework for Claude Code, enabling autonomous multi-agent workflows across marketing, research, and GTM functions. It includes three fully-configured team hierarchies, task completion validation hooks, and teammate idle detection to ensure quality output.

Key Changes

Team Configurations

  • Marketing Team (.claude/teams/marketing-team/config.json): 11-agent hierarchy with CMO lead overseeing content, demand generation, product marketing, community, events, and retention functions
  • Research Team (.claude/teams/research-team/config.json): 10-agent research organization spanning hypothesis generation, literature synthesis, experimentation, engineering, and publication workflows
  • GTM Team (.claude/teams/gtm-team/config.json): 8-agent product intelligence and sales enablement team with portfolio-level PM strategy, competitive research, and proposal automation

Quality Gates & Hooks

  • TaskCompleted Hook (.claude/hooks/TaskCompleted.sh): Validates that task-layer teammates produce required deliverables (PRDs, whitepapers, hypotheses, roadmaps, proposals, papers) before marking tasks complete
  • TeammateIdle Hook (.claude/hooks/TeammateIdle.sh): Prevents teammates from going idle without producing output files; applies layer-specific validation (task-layer requires file output, orchestrators require coordination notes)

Configuration

  • Settings (.claude/settings.json): Enables experimental agent teams feature and registers both hooks for automatic execution on task completion and teammate idle events

Implementation Details

Each team follows a hierarchical structure:

  • Strategic layer: Portfolio-level lead (CMO, Computer Scientist, PM Director) approves plans before execution
  • Orchestrator/Portfolio layer: VPs and Principal Scientists coordinate parallel workstreams
  • Task layer: Specialists produce concrete deliverables (documents, analyses, code)
  • Continuous layer: Auto-benchmark agent runs ongoing competitive monitoring

All agents include:

  • Skill references pointing to .md files in skills/ directory
  • Spawn prompts defining role, responsibilities, and reporting relationships
  • Task sizing guidance for appropriate work decomposition
  • Spawn instructions for team instantiation

The hooks use bash pattern matching to detect required output files and provide feedback to teammates, ensuring accountability and preventing incomplete work from being marked done.

https://claude.ai/code/session_01BMXMiDLdCm4SPh5Up4bu7M

Sets up the .claude directory with settings, team configs, and quality-gate
hooks to enable Claude Code agent teams for the three org-wide skill hierarchies
defined in the README:

- research-team: computer-scientist lead → principal-scientist → lead-researcher
  → task-layer specialists (hypothesis-generation, literature-synthesis,
  experiment-design, code-replication, research-writing, ieee-paper-generator,
  ai-engineer, auto-website-builder) + auto-benchmark (continuous)

- marketing-team: cmo-marketing lead → VP orchestrators (content-marketing,
  demand-gen, product-marketing, community-growth, events-webinars,
  retention-marketing) → task-layer specialists (seo-automation,
  whitepaper-engine, paid-ads-manager, lead-routing, customer-intel,
  community-builder)

- gtm-team: pm-ai-research lead → pm-lead → task-layer specialists
  (stakeholder-intel, competitive-research, idea-generation, prd-writer,
  roadmap-planner, proposal-writer, proposal-automation, calendar-pipeline)

Each team config includes skill references, layer metadata, spawn prompts, and
task-sizing guidance. Hooks enforce output-file quality gates on task completion
and teammate idle transitions.

https://claude.ai/code/session_01BMXMiDLdCm4SPh5Up4bu7M
@adityak74
adityak74 merged commit a9abaf8 into main Feb 24, 2026
1 check failed
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.

3 participants