|
2 | 2 |
|
3 | 3 | This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. |
4 | 4 |
|
| 5 | +## Available Subagents |
| 6 | + |
| 7 | +ToolHive uses specialized AI subagents for different aspects of development. These agents are configured in `.claude/agents/` and MUST be invoked when you need to perform tasks that come under their expertise: |
| 8 | + |
| 9 | +### Core Development Agents |
| 10 | + |
| 11 | +- **toolhive-expert**: Deep expert on ToolHive architecture, codebase structure, design patterns, and implementation guidance. Use for general ToolHive questions, architecture decisions, and navigating the codebase. |
| 12 | + |
| 13 | +- **golang-code-writer**: Expert Go developer for writing clean, idiomatic Go code. Use when creating new functions, structs, interfaces, or complete packages. |
| 14 | + |
| 15 | +- **unit-test-writer**: Specialized in writing comprehensive unit tests for Go code. Use when you need thorough test coverage for functions, methods, or components. |
| 16 | + |
| 17 | +- **code-reviewer**: Reviews code for ToolHive best practices, security patterns, Go conventions, and architectural consistency. Use after significant code changes. |
| 18 | + |
| 19 | +- **tech-lead-orchestrator**: Provides architectural oversight, task delegation, and technical leadership for code development projects. Use for complex features or architectural decisions. |
| 20 | + |
| 21 | +### Specialized Domain Agents |
| 22 | + |
| 23 | +- **kubernetes-expert**: Specialized in Kubernetes operator patterns, CRDs, controllers, and cloud-native architecture for ToolHive. Use for operator-specific questions or K8s resources. |
| 24 | + |
| 25 | +- **mcp-protocol-expert**: Specialized in MCP (Model Context Protocol) specification, transport implementations, and protocol compliance. Use when working with MCP transports or protocol details. |
| 26 | + |
| 27 | +- **oauth-expert**: Specialized in OAuth 2.0, OIDC, token exchange, and authentication flows for ToolHive. Use for auth/authz implementation. |
| 28 | + |
| 29 | +- **site-reliability-engineer**: Expert on observability and monitoring (logging, metrics, tracing) including OpenTelemetry instrumentation. Use for telemetry and monitoring setup. |
| 30 | + |
| 31 | +### Support Agents |
| 32 | + |
| 33 | +- **documentation-writer**: Maintains consistent documentation, updates CLI docs, and ensures documentation matches code behavior. Use when updating docs. |
| 34 | + |
| 35 | +- **security-advisor**: Provides security guidance for coding tasks, including code reviews, architecture decisions, and secure implementation patterns. |
| 36 | + |
| 37 | +### When to Use Subagents |
| 38 | + |
| 39 | +Invoke specialized agents when: |
| 40 | +- You need expertise in their specific domain (e.g., Kubernetes, OAuth, MCP protocol) |
| 41 | +- Writing new code (use golang-code-writer) |
| 42 | +- Creating tests (use unit-test-writer) |
| 43 | +- Orchestrating the different tasks to other subagents that are required for completing work asked by the user (use tech-lead-orchestrator) |
| 44 | +- Reviewing code that is written (use code-reviewer) |
| 45 | +- Working with observability/monitoring (use site-reliability-engineer) |
| 46 | + |
| 47 | +The agents work together - for example, tech-lead-orchestrator might delegate to golang-code-writer for implementation and then to code-reviewer for validation. |
| 48 | + |
5 | 49 | ## Project Overview |
6 | 50 |
|
7 | 51 | ToolHive is a lightweight, secure manager for MCP (Model Context Protocol: https://modelcontextprotocol.io) servers written in Go. It provides three main components: |
|
0 commit comments