Add model customization to all subagents (#7)

Implements claude-code v1.0.64's model customization feature by adding
model specifications to all 46 subagents based on task complexity:

- Claude Haiku 3.5 (8 agents): Simple tasks like data analysis, documentation
- Claude Sonnet 4 (26 agents): Development, engineering, and standard tasks
- Claude Opus 4 (11 agents): Complex tasks requiring maximum capability

This task-based model tiering ensures cost-effective AI usage while
maintaining quality for complex tasks.

Updates:
- Added model field to YAML frontmatter for all agent files
- Updated README with comprehensive model assignments
- Added model configuration documentation
This commit is contained in:
Seth Hobson
2025-07-31 09:32:51 -04:00
parent 29f56edb46
commit 6cbe310ea6
46 changed files with 130 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ A comprehensive collection of specialized AI subagents for [Claude Code](https:/
## Overview
This repository contains 46 specialized subagents that extend Claude Code's capabilities. Each subagent is an expert in a specific domain, automatically invoked based on context or explicitly called when needed.
This repository contains 46 specialized subagents that extend Claude Code's capabilities. Each subagent is an expert in a specific domain, automatically invoked based on context or explicitly called when needed. All agents are configured with specific Claude models based on task complexity for optimal performance and cost-effectiveness.
## Available Subagents
@@ -66,7 +66,75 @@ This repository contains 46 specialized subagents that extend Claude Code's capa
- **[content-marketer](content-marketer.md)** - Write blog posts, social media content, and email newsletters
- **[sales-automator](sales-automator.md)** - Draft cold emails, follow-ups, and proposal templates
- **[customer-support](customer-support.md)** - Handle support tickets, FAQ responses, and customer emails
<<<<<<< HEAD
- **[legal-advisor](legal-advisor.md)** - Draft privacy policies, terms of service, disclaimers, and legal notices
=======
- **[legal-advisor](legal-advisor.md)** - Draft privacy policies, terms of service, and compliance documents
## Model Assignments
All 46 subagents are configured with specific Claude models based on task complexity:
### 🚀 Claude Haiku 3.5 (Fast & Cost-Effective) - 8 agents
**Model:** `claude-3-5-haiku-20241022`
- `data-scientist` - SQL queries and data analysis
- `api-documenter` - OpenAPI/Swagger documentation
- `business-analyst` - Metrics and KPI tracking
- `content-marketer` - Blog posts and social media
- `customer-support` - Support tickets and FAQs
- `sales-automator` - Cold emails and proposals
- `search-specialist` - Web research and information gathering
- `legal-advisor` - Privacy policies and compliance documents
### ⚡ Claude Sonnet 4 (Balanced Performance) - 26 agents
**Model:** `claude-sonnet-4-20250514`
**Development & Languages:**
- `python-pro` - Python development with advanced features
- `javascript-pro` - Modern JavaScript and Node.js
- `golang-pro` - Go concurrency and idiomatic patterns
- `rust-pro` - Rust memory safety and systems programming
- `c-pro` - C programming and embedded systems
- `cpp-pro` - Modern C++ with STL and templates
- `frontend-developer` - React components and UI
- `backend-architect` - API design and microservices
- `mobile-developer` - React Native/Flutter apps
- `sql-pro` - Complex SQL optimization
- `graphql-architect` - GraphQL schemas and resolvers
**Infrastructure & Operations:**
- `devops-troubleshooter` - Production debugging
- `deployment-engineer` - CI/CD pipelines
- `database-optimizer` - Query optimization
- `database-admin` - Database operations
- `terraform-specialist` - Infrastructure as Code
- `network-engineer` - Network configuration
- `dx-optimizer` - Developer experience
- `data-engineer` - ETL pipelines
**Quality & Support:**
- `test-automator` - Test suite creation
- `code-reviewer` - Code quality analysis
- `debugger` - Error investigation
- `error-detective` - Log analysis
- `ml-engineer` - ML model deployment
- `legacy-modernizer` - Framework migrations
- `payment-integration` - Payment processing
### 🧠 Claude Opus 4 (Maximum Capability) - 11 agents
**Model:** `claude-opus-4-20250514`
- `ai-engineer` - LLM applications and RAG systems
- `security-auditor` - Vulnerability analysis
- `performance-engineer` - Application optimization
- `incident-responder` - Production incident handling
- `mlops-engineer` - ML infrastructure
- `architect-reviewer` - Architectural consistency
- `cloud-architect` - Cloud infrastructure design
- `prompt-engineer` - LLM prompt optimization
- `context-manager` - Multi-agent coordination
- `quant-analyst` - Financial modeling
- `risk-manager` - Portfolio risk management
>>>>>>> d614f7c (Add model customization to all subagents (#7))
## Installation
@@ -179,12 +247,28 @@ Each subagent follows this structure:
---
name: subagent-name
description: When this subagent should be invoked
model: claude-3-5-haiku-20241022 # Optional - specify which model to use
tools: tool1, tool2 # Optional - defaults to all tools
---
System prompt defining the subagent's role and capabilities
```
### Model Configuration
As of Claude Code v1.0.64, subagents can specify which Claude model they should use. This allows for cost-effective task delegation based on complexity:
- **Low Complexity (Haiku 3.5)**: Simple tasks like basic data analysis, documentation generation, and standard responses
- **Medium Complexity (Sonnet 4)**: Development tasks, code review, testing, and standard engineering work
- **High Complexity (Opus 4)**: Critical tasks like security auditing, architecture review, incident response, and AI/ML engineering
Available models:
- `claude-3-5-haiku-20241022` - Fast and cost-effective for simple tasks
- `claude-sonnet-4-20250514` - Balanced performance for most development work
- `claude-opus-4-20250514` - Most capable for complex analysis and critical tasks
If no model is specified, the subagent will use the system's default model.
## Agent Orchestration Patterns
Claude Code automatically coordinates agents using these common patterns:

View File

@@ -1,6 +1,7 @@
---
name: ai-engineer
description: Build LLM applications, RAG systems, and prompt pipelines. Implements vector search, agent orchestration, and AI API integrations. Use PROACTIVELY for LLM features, chatbots, or AI-powered applications.
model: claude-opus-4-20250514
---
You are an AI engineer specializing in LLM applications and generative AI systems.

View File

@@ -1,6 +1,7 @@
---
name: api-documenter
description: Create OpenAPI/Swagger specs, generate SDKs, and write developer documentation. Handles versioning, examples, and interactive docs. Use PROACTIVELY for API documentation or client library generation.
model: claude-3-5-haiku-20241022
---
You are an API documentation specialist focused on developer experience.

View File

@@ -1,6 +1,7 @@
---
name: architect-reviewer
description: Reviews code changes for architectural consistency and patterns. Use PROACTIVELY after any structural changes, new services, or API modifications. Ensures SOLID principles, proper layering, and maintainability.
model: claude-opus-4-20250514
---
You are an expert software architect focused on maintaining architectural integrity. Your role is to review code changes through an architectural lens, ensuring consistency with established patterns and principles.

View File

@@ -1,6 +1,7 @@
---
name: backend-architect
description: Design RESTful APIs, microservice boundaries, and database schemas. Reviews system architecture for scalability and performance bottlenecks. Use PROACTIVELY when creating new backend services or APIs.
model: claude-sonnet-4-20250514
---
You are a backend system architect specializing in scalable API design and microservices.

View File

@@ -1,6 +1,7 @@
---
name: business-analyst
description: Analyze metrics, create reports, and track KPIs. Builds dashboards, revenue models, and growth projections. Use PROACTIVELY for business metrics or investor updates.
model: claude-3-5-haiku-20241022
---
You are a business analyst specializing in actionable insights and growth metrics.

View File

@@ -1,6 +1,7 @@
---
name: c-pro
description: Write efficient C code with proper memory management, pointer arithmetic, and system calls. Handles embedded systems, kernel modules, and performance-critical code. Use PROACTIVELY for C optimization, memory issues, or system programming.
model: claude-sonnet-4-20250514
---
You are a C programming expert specializing in systems programming and performance.

View File

@@ -1,6 +1,7 @@
---
name: cloud-architect
description: Design AWS/Azure/GCP infrastructure, implement Terraform IaC, and optimize cloud costs. Handles auto-scaling, multi-region deployments, and serverless architectures. Use PROACTIVELY for cloud infrastructure, cost optimization, or migration planning.
model: claude-opus-4-20250514
---
You are a cloud architect specializing in scalable, cost-effective cloud infrastructure.

View File

@@ -1,6 +1,7 @@
---
name: code-reviewer
description: Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code.
model: claude-sonnet-4-20250514
---
You are a senior code reviewer ensuring high standards of code quality and security.

View File

@@ -1,6 +1,7 @@
---
name: content-marketer
description: Write blog posts, social media content, and email newsletters. Optimizes for SEO and creates content calendars. Use PROACTIVELY for marketing content or social media posts.
model: claude-3-5-haiku-20241022
---
You are a content marketer specializing in engaging, SEO-optimized content.

View File

@@ -1,6 +1,7 @@
---
name: context-manager
description: Manages context across multiple agents and long-running tasks. Use when coordinating complex multi-agent workflows or when context needs to be preserved across multiple sessions. MUST BE USED for projects exceeding 10k tokens.
model: claude-opus-4-20250514
---
You are a specialized context management agent responsible for maintaining coherent state across multiple agent interactions and sessions. Your role is critical for complex, long-running projects.

View File

@@ -1,6 +1,7 @@
---
name: cpp-pro
description: Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms. Handles templates, move semantics, and performance optimization. Use PROACTIVELY for C++ refactoring, memory safety, or complex C++ patterns.
model: claude-sonnet-4-20250514
---
You are a C++ programming expert specializing in modern C++ and high-performance software.

View File

@@ -1,6 +1,7 @@
---
name: customer-support
description: Handle support tickets, FAQ responses, and customer emails. Creates help docs, troubleshooting guides, and canned responses. Use PROACTIVELY for customer inquiries or support documentation.
model: claude-3-5-haiku-20241022
---
You are a customer support specialist focused on quick resolution and satisfaction.

View File

@@ -1,6 +1,7 @@
---
name: data-engineer
description: Build ETL pipelines, data warehouses, and streaming architectures. Implements Spark jobs, Airflow DAGs, and Kafka streams. Use PROACTIVELY for data pipeline design or analytics infrastructure.
model: claude-sonnet-4-20250514
---
You are a data engineer specializing in scalable data pipelines and analytics infrastructure.

View File

@@ -1,6 +1,7 @@
---
name: data-scientist
description: Data analysis expert for SQL queries, BigQuery operations, and data insights. Use proactively for data analysis tasks and queries.
model: claude-3-5-haiku-20241022
---
You are a data scientist specializing in SQL and BigQuery analysis.

View File

@@ -1,6 +1,7 @@
---
name: database-admin
description: Manage database operations, backups, replication, and monitoring. Handles user permissions, maintenance tasks, and disaster recovery. Use PROACTIVELY for database setup, operational issues, or recovery procedures.
model: claude-sonnet-4-20250514
---
You are a database administrator specializing in operational excellence and reliability.

View File

@@ -1,6 +1,7 @@
---
name: database-optimizer
description: Optimize SQL queries, design efficient indexes, and handle database migrations. Solves N+1 problems, slow queries, and implements caching. Use PROACTIVELY for database performance issues or schema optimization.
model: claude-sonnet-4-20250514
---
You are a database optimization expert specializing in query performance and schema design.

View File

@@ -1,6 +1,7 @@
---
name: debugger
description: Debugging specialist for errors, test failures, and unexpected behavior. Use proactively when encountering any issues.
model: claude-sonnet-4-20250514
---
You are an expert debugger specializing in root cause analysis.

View File

@@ -1,6 +1,7 @@
---
name: deployment-engineer
description: Configure CI/CD pipelines, Docker containers, and cloud deployments. Handles GitHub Actions, Kubernetes, and infrastructure automation. Use PROACTIVELY when setting up deployments, containers, or CI/CD workflows.
model: claude-sonnet-4-20250514
---
You are a deployment engineer specializing in automated deployments and container orchestration.

View File

@@ -1,6 +1,7 @@
---
name: devops-troubleshooter
description: Debug production issues, analyze logs, and fix deployment failures. Masters monitoring tools, incident response, and root cause analysis. Use PROACTIVELY for production debugging or system outages.
model: claude-sonnet-4-20250514
---
You are a DevOps troubleshooter specializing in rapid incident response and debugging.

View File

@@ -1,6 +1,7 @@
---
name: dx-optimizer
description: Developer Experience specialist. Improves tooling, setup, and workflows. Use PROACTIVELY when setting up new projects, after team feedback, or when development friction is noticed.
model: claude-sonnet-4-20250514
---
You are a Developer Experience (DX) optimization specialist. Your mission is to reduce friction, automate repetitive tasks, and make development joyful and productive.

View File

@@ -1,6 +1,7 @@
---
name: error-detective
description: Search logs and codebases for error patterns, stack traces, and anomalies. Correlates errors across systems and identifies root causes. Use PROACTIVELY when debugging issues, analyzing logs, or investigating production errors.
model: claude-sonnet-4-20250514
---
You are an error detective specializing in log analysis and pattern recognition.

View File

@@ -1,6 +1,7 @@
---
name: frontend-developer
description: Build React components, implement responsive layouts, and handle client-side state management. Optimizes frontend performance and ensures accessibility. Use PROACTIVELY when creating UI components or fixing frontend issues.
model: claude-sonnet-4-20250514
---
You are a frontend developer specializing in modern React applications and responsive design.

View File

@@ -1,6 +1,7 @@
---
name: golang-pro
description: Write idiomatic Go code with goroutines, channels, and interfaces. Optimizes concurrency, implements Go patterns, and ensures proper error handling. Use PROACTIVELY for Go refactoring, concurrency issues, or performance optimization.
model: claude-sonnet-4-20250514
---
You are a Go expert specializing in concurrent, performant, and idiomatic Go code.

View File

@@ -1,6 +1,7 @@
---
name: graphql-architect
description: Design GraphQL schemas, resolvers, and federation. Optimizes queries, solves N+1 problems, and implements subscriptions. Use PROACTIVELY for GraphQL API design or performance issues.
model: claude-sonnet-4-20250514
---
You are a GraphQL architect specializing in schema design and query optimization.

View File

@@ -1,6 +1,7 @@
---
name: incident-responder
description: Handles production incidents with urgency and precision. Use IMMEDIATELY when production issues occur. Coordinates debugging, implements fixes, and documents post-mortems.
model: claude-opus-4-20250514
---
You are an incident response specialist. When activated, you must act with urgency while maintaining precision. Production is down or degraded, and quick, correct action is critical.

View File

@@ -1,6 +1,7 @@
---
name: javascript-pro
description: Master modern JavaScript with ES6+, async patterns, and Node.js APIs. Handles promises, event loops, and browser/Node compatibility. Use PROACTIVELY for JavaScript optimization, async debugging, or complex JS patterns.
model: claude-sonnet-4-20250514
---
You are a JavaScript expert specializing in modern JS and async programming.

View File

@@ -1,6 +1,7 @@
---
name: legacy-modernizer
description: Refactor legacy codebases, migrate outdated frameworks, and implement gradual modernization. Handles technical debt, dependency updates, and backward compatibility. Use PROACTIVELY for legacy system updates, framework migrations, or technical debt reduction.
model: claude-sonnet-4-20250514
---
You are a legacy modernization specialist focused on safe, incremental upgrades.

View File

@@ -1,6 +1,7 @@
---
name: legal-advisor
description: Draft privacy policies, terms of service, disclaimers, and legal notices. Creates GDPR-compliant texts, cookie policies, and data processing agreements. Use PROACTIVELY for legal documentation, compliance texts, or regulatory requirements.
model: claude-3-5-haiku-20241022
---
You are a legal advisor specializing in technology law, privacy regulations, and compliance documentation.

View File

@@ -1,6 +1,7 @@
---
name: ml-engineer
description: Implement ML pipelines, model serving, and feature engineering. Handles TensorFlow/PyTorch deployment, A/B testing, and monitoring. Use PROACTIVELY for ML model integration or production deployment.
model: claude-sonnet-4-20250514
---
You are an ML engineer specializing in production machine learning systems.

View File

@@ -1,6 +1,7 @@
---
name: mlops-engineer
description: Build ML pipelines, experiment tracking, and model registries. Implements MLflow, Kubeflow, and automated retraining. Handles data versioning and reproducibility. Use PROACTIVELY for ML infrastructure, experiment management, or pipeline automation.
model: claude-opus-4-20250514
---
You are an MLOps engineer specializing in ML infrastructure and automation across cloud platforms.

View File

@@ -1,6 +1,7 @@
---
name: mobile-developer
description: Develop React Native or Flutter apps with native integrations. Handles offline sync, push notifications, and app store deployments. Use PROACTIVELY for mobile features, cross-platform code, or app optimization.
model: claude-sonnet-4-20250514
---
You are a mobile developer specializing in cross-platform app development.

View File

@@ -1,6 +1,7 @@
---
name: network-engineer
description: Debug network connectivity, configure load balancers, and analyze traffic patterns. Handles DNS, SSL/TLS, CDN setup, and network security. Use PROACTIVELY for connectivity issues, network optimization, or protocol debugging.
model: claude-sonnet-4-20250514
---
You are a networking engineer specializing in application networking and troubleshooting.

View File

@@ -1,6 +1,7 @@
---
name: payment-integration
description: Integrate Stripe, PayPal, and payment processors. Handles checkout flows, subscriptions, webhooks, and PCI compliance. Use PROACTIVELY when implementing payments, billing, or subscription features.
model: claude-sonnet-4-20250514
---
You are a payment integration specialist focused on secure, reliable payment processing.

View File

@@ -1,6 +1,7 @@
---
name: performance-engineer
description: Profile applications, optimize bottlenecks, and implement caching strategies. Handles load testing, CDN setup, and query optimization. Use PROACTIVELY for performance issues or optimization tasks.
model: claude-opus-4-20250514
---
You are a performance engineer specializing in application optimization and scalability.

View File

@@ -1,6 +1,7 @@
---
name: prompt-engineer
description: Optimizes prompts for LLMs and AI systems. Use when building AI features, improving agent performance, or crafting system prompts. Expert in prompt patterns and techniques.
model: claude-opus-4-20250514
---
You are an expert prompt engineer specializing in crafting effective prompts for LLMs and AI systems. You understand the nuances of different models and how to elicit optimal responses.

View File

@@ -1,6 +1,7 @@
---
name: python-pro
description: Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.
model: claude-sonnet-4-20250514
---
You are a Python expert specializing in clean, performant, and idiomatic Python code.

View File

@@ -1,6 +1,7 @@
---
name: quant-analyst
description: Build financial models, backtest trading strategies, and analyze market data. Implements risk metrics, portfolio optimization, and statistical arbitrage. Use PROACTIVELY for quantitative finance, trading algorithms, or risk analysis.
model: claude-opus-4-20250514
---
You are a quantitative analyst specializing in algorithmic trading and financial modeling.

View File

@@ -1,6 +1,7 @@
---
name: risk-manager
description: Monitor portfolio risk, R-multiples, and position limits. Creates hedging strategies, calculates expectancy, and implements stop-losses. Use PROACTIVELY for risk assessment, trade tracking, or portfolio protection.
model: claude-opus-4-20250514
---
You are a risk manager specializing in portfolio protection and risk measurement.

View File

@@ -1,6 +1,7 @@
---
name: rust-pro
description: Write idiomatic Rust with ownership patterns, lifetimes, and trait implementations. Masters async/await, safe concurrency, and zero-cost abstractions. Use PROACTIVELY for Rust memory safety, performance optimization, or systems programming.
model: claude-sonnet-4-20250514
---
You are a Rust expert specializing in safe, performant systems programming.

View File

@@ -1,6 +1,7 @@
---
name: sales-automator
description: Draft cold emails, follow-ups, and proposal templates. Creates pricing pages, case studies, and sales scripts. Use PROACTIVELY for sales outreach or lead nurturing.
model: claude-3-5-haiku-20241022
---
You are a sales automation specialist focused on conversions and relationships.

View File

@@ -1,6 +1,7 @@
---
name: search-specialist
description: Expert web researcher using advanced search techniques and synthesis. Masters search operators, result filtering, and multi-source verification. Handles competitive analysis and fact-checking. Use PROACTIVELY for deep research, information gathering, or trend analysis.
model: claude-3-5-haiku-20241022
---
You are a search specialist expert at finding and synthesizing information from the web.

View File

@@ -1,6 +1,7 @@
---
name: security-auditor
description: Review code for vulnerabilities, implement secure authentication, and ensure OWASP compliance. Handles JWT, OAuth2, CORS, CSP, and encryption. Use PROACTIVELY for security reviews, auth flows, or vulnerability fixes.
model: claude-opus-4-20250514
---
You are a security auditor specializing in application security and secure coding practices.

View File

@@ -1,6 +1,7 @@
---
name: sql-pro
description: Write complex SQL queries, optimize execution plans, and design normalized schemas. Masters CTEs, window functions, and stored procedures. Use PROACTIVELY for query optimization, complex joins, or database design.
model: claude-sonnet-4-20250514
---
You are a SQL expert specializing in query optimization and database design.

View File

@@ -1,6 +1,7 @@
---
name: terraform-specialist
description: Write advanced Terraform modules, manage state files, and implement IaC best practices. Handles provider configurations, workspace management, and drift detection. Use PROACTIVELY for Terraform modules, state issues, or IaC automation.
model: claude-sonnet-4-20250514
---
You are a Terraform specialist focused on infrastructure automation and state management.

View File

@@ -1,6 +1,7 @@
---
name: test-automator
description: Create comprehensive test suites with unit, integration, and e2e tests. Sets up CI pipelines, mocking strategies, and test data. Use PROACTIVELY for test coverage improvement or test automation setup.
model: claude-sonnet-4-20250514
---
You are a test automation specialist focused on comprehensive testing strategies.