Skip to content

Commit dda0e31

Browse files
committed
docs: update Primary Agent and MCP API documentation
Update documentation for recently added features README: Add Solution Architect and Technical Planner to Layer 2 Primary Agents (5 languages) API docs: Document parse_mode response fields and new MCP tools CHANGELOG: Add version 2.0.0 changes Agents README: Add detailed documentation for Solution Architect and Technical Planner no reference
1 parent f966936 commit dda0e31

8 files changed

Lines changed: 405 additions & 24 deletions

File tree

README.es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Añade a la configuración de Claude Desktop (`~/Library/Application Support/Cla
8585
Consulta el diagrama de arquitectura de arriba para una visión general del sistema de agentes de 3 capas:
8686

8787
- **Layer 1 (Agentes de Modo)**: Ciclo de flujo de trabajo PLAN → ACT → EVAL
88-
- **Layer 2 (Agentes Principales)**: Frontend/Backend Developer, Code Reviewer, DevOps
88+
- **Layer 2 (Agentes Principales)**: Solution Architect, Technical Planner, Frontend/Backend Developer, Code Reviewer, DevOps
8989
- **Layer 3 (Especialistas)**: 9 expertos de dominio (Seguridad, Rendimiento, Accesibilidad, etc.)
9090
- **Habilidades**: Capacidades reutilizables (TDD, Depuración, Brainstorming, etc.)
9191

README.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Claude Desktop設定に追加(`~/Library/Application Support/Claude/claude_des
8585
上記のアーキテクチャ図で3層エージェントシステムの全体像をご確認ください:
8686

8787
- **Layer 1(モードエージェント)**:PLAN → ACT → EVAL ワークフローサイクル
88-
- **Layer 2(主要エージェント)**:Frontend/Backend Developer、Code Reviewer、DevOps
88+
- **Layer 2(主要エージェント)**Solution Architect、Technical Planner、Frontend/Backend Developer、Code Reviewer、DevOps
8989
- **Layer 3(スペシャリスト)**:9名のドメイン専門家(セキュリティ、パフォーマンス、アクセシビリティなど)
9090
- **スキル**:再利用可能な機能(TDD、デバッグ、ブレインストーミングなど)
9191

README.ko.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Claude Desktop 설정 파일에 추가 (`~/Library/Application Support/Claude/cl
8585
위 아키텍처 다이어그램에서 3계층 에이전트 시스템의 전체 구조를 확인하세요:
8686

8787
- **Layer 1 (모드 에이전트)**: PLAN → ACT → EVAL 워크플로우 사이클
88-
- **Layer 2 (주요 에이전트)**: Frontend/Backend Developer, Code Reviewer, DevOps
88+
- **Layer 2 (주요 에이전트)**: Solution Architect, Technical Planner, Frontend/Backend Developer, Code Reviewer, DevOps
8989
- **Layer 3 (전문가)**: 9명의 도메인 전문가 (보안, 성능, 접근성 등)
9090
- **스킬**: 재사용 가능한 기능 (TDD, 디버깅, 브레인스토밍 등)
9191

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Add to Claude Desktop config (`~/Library/Application Support/Claude/claude_deskt
8585
See the architecture diagram above for a visual overview of the 3-layer agent system:
8686

8787
- **Layer 1 (Mode Agents)**: PLAN → ACT → EVAL workflow cycle
88-
- **Layer 2 (Primary Agents)**: Frontend/Backend Developer, Code Reviewer, DevOps
88+
- **Layer 2 (Primary Agents)**: Solution Architect, Technical Planner, Frontend/Backend Developer, Code Reviewer, DevOps
8989
- **Layer 3 (Specialists)**: 9 domain experts (Security, Performance, Accessibility, etc.)
9090
- **Skills**: Reusable capabilities (TDD, Debugging, Brainstorming, etc.)
9191

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ npx codingbuddy init
8585
请参阅上方架构图,了解三层代理系统的完整概览:
8686

8787
- **Layer 1(模式代理)**:PLAN → ACT → EVAL 工作流程循环
88-
- **Layer 2(主要代理)**:Frontend/Backend Developer、Code Reviewer、DevOps
88+
- **Layer 2(主要代理)**Solution Architect、Technical Planner、Frontend/Backend Developer、Code Reviewer、DevOps
8989
- **Layer 3(专家)**:9位领域专家(安全、性能、可访问性等)
9090
- **技能**:可复用功能(TDD、调试、头脑风暴等)
9191

docs/api.md

Lines changed: 240 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ Specialist agent definitions.
130130

131131
| URI | Agent |
132132
|-----|-------|
133-
| `rules://agents/frontend-developer.json` | Frontend Developer |
134-
| `rules://agents/backend-developer.json` | Backend Developer |
135-
| `rules://agents/code-reviewer.json` | Code Reviewer |
133+
| `rules://agents/solution-architect.json` | Solution Architect (PLAN mode) |
134+
| `rules://agents/technical-planner.json` | Technical Planner (PLAN mode) |
135+
| `rules://agents/frontend-developer.json` | Frontend Developer (ACT mode) |
136+
| `rules://agents/backend-developer.json` | Backend Developer (ACT mode) |
137+
| `rules://agents/code-reviewer.json` | Code Reviewer (EVAL mode) |
136138
| `rules://agents/architecture-specialist.json` | Architecture Specialist |
137139
| `rules://agents/test-strategy-specialist.json` | Test Strategy Specialist |
138140
| `rules://agents/performance-specialist.json` | Performance Specialist |
@@ -309,12 +311,31 @@ Parse workflow mode keyword from prompt and return mode-specific rules with proj
309311
"content": [
310312
{
311313
"type": "text",
312-
"text": "{\"mode\": \"PLAN\", \"prompt\": \"Design a user authentication feature\", \"instructions\": \"...\", \"rules\": \"...\", \"language\": \"ko\"}"
314+
"text": "{\"mode\": \"PLAN\", \"originalPrompt\": \"Design a user authentication feature\", \"instructions\": \"...\", \"rules\": [...], \"agent\": \"plan-mode\", \"delegates_to\": \"technical-planner\", \"primary_agent_source\": \"intent\", \"delegate_agent_info\": {...}, \"parallelAgentsRecommendation\": {...}, \"languageInstruction\": \"Always respond in Korean.\", \"resolvedModel\": {\"model\": \"claude-sonnet-4-20250514\", \"source\": \"mode\"}}"
313315
}
314316
]
315317
}
316318
```
317319

320+
**Response Fields**:
321+
322+
| Field | Type | Description |
323+
|-------|------|-------------|
324+
| `mode` | string | Detected mode: `PLAN`, `ACT`, or `EVAL` |
325+
| `originalPrompt` | string | User prompt with keyword removed |
326+
| `instructions` | string | Mode-specific instructions |
327+
| `rules` | array | Applicable rule files with content |
328+
| `warnings` | array | Parsing warnings (optional) |
329+
| `agent` | string | Mode Agent name (e.g., `plan-mode`) |
330+
| `delegates_to` | string | Primary Agent name |
331+
| `primary_agent_source` | string | How Primary Agent was selected: `explicit`, `config`, `intent`, `context`, `default` |
332+
| `delegate_agent_info` | object | Primary Agent details (name, description, expertise) |
333+
| `parallelAgentsRecommendation` | object | Recommended specialist agents for parallel execution |
334+
| `recommended_act_agent` | object | Recommended ACT mode agent (for PLAN mode) |
335+
| `activation_message` | object | Agent activation transparency info |
336+
| `languageInstruction` | string | Dynamic language instruction based on config |
337+
| `resolvedModel` | object | Resolved AI model info (`model`, `source`) |
338+
318339
**Mode Values**:
319340

320341
| Mode | Trigger Keywords | Description |
@@ -508,6 +529,220 @@ recommend_skills({ prompt: "Build a dashboard component" })
508529

509530
---
510531

532+
### list_skills
533+
534+
List all available skills with optional priority filtering.
535+
536+
**Input Schema**:
537+
538+
```json
539+
{
540+
"type": "object",
541+
"properties": {
542+
"minPriority": {
543+
"type": "number",
544+
"description": "Minimum priority threshold (inclusive)"
545+
},
546+
"maxPriority": {
547+
"type": "number",
548+
"description": "Maximum priority threshold (inclusive)"
549+
}
550+
},
551+
"required": []
552+
}
553+
```
554+
555+
**Request Example**:
556+
557+
```json
558+
{
559+
"name": "list_skills",
560+
"arguments": {}
561+
}
562+
```
563+
564+
**Response Example**:
565+
566+
```json
567+
{
568+
"content": [
569+
{
570+
"type": "text",
571+
"text": "{\"skills\": [{\"name\": \"systematic-debugging\", \"priority\": 1, \"description\": \"Systematic approach to debugging\"}, {\"name\": \"test-driven-development\", \"priority\": 2, \"description\": \"TDD workflow\"}], \"total\": 10}"
572+
}
573+
]
574+
}
575+
```
576+
577+
**Response Fields**:
578+
579+
| Field | Type | Description |
580+
|-------|------|-------------|
581+
| `skills` | array | List of available skills |
582+
| `skills[].name` | string | Skill identifier |
583+
| `skills[].priority` | number | Skill priority (lower = higher priority) |
584+
| `skills[].description` | string | Brief description of the skill |
585+
| `total` | number | Total number of skills returned |
586+
587+
**Filter Example**:
588+
589+
```json
590+
{
591+
"name": "list_skills",
592+
"arguments": {
593+
"minPriority": 1,
594+
"maxPriority": 3
595+
}
596+
}
597+
```
598+
599+
---
600+
601+
### get_agent_system_prompt
602+
603+
Get complete system prompt for a specialist agent to be executed as a Claude Code subagent.
604+
605+
**Input Schema**:
606+
607+
```json
608+
{
609+
"type": "object",
610+
"properties": {
611+
"agentName": {
612+
"type": "string",
613+
"description": "Name of the specialist agent (e.g., 'security-specialist', 'accessibility-specialist')"
614+
},
615+
"context": {
616+
"type": "object",
617+
"description": "Context for the agent",
618+
"properties": {
619+
"mode": {
620+
"type": "string",
621+
"enum": ["PLAN", "ACT", "EVAL"],
622+
"description": "Current workflow mode"
623+
},
624+
"targetFiles": {
625+
"type": "array",
626+
"items": { "type": "string" },
627+
"description": "Files to analyze or review"
628+
},
629+
"taskDescription": {
630+
"type": "string",
631+
"description": "Description of the task"
632+
}
633+
},
634+
"required": ["mode"]
635+
}
636+
},
637+
"required": ["agentName", "context"]
638+
}
639+
```
640+
641+
**Request Example**:
642+
643+
```json
644+
{
645+
"name": "get_agent_system_prompt",
646+
"arguments": {
647+
"agentName": "security-specialist",
648+
"context": {
649+
"mode": "EVAL",
650+
"targetFiles": ["src/auth/login.ts"],
651+
"taskDescription": "Review authentication security"
652+
}
653+
}
654+
}
655+
```
656+
657+
**Response Example**:
658+
659+
```json
660+
{
661+
"content": [
662+
{
663+
"type": "text",
664+
"text": "{\"agentName\": \"security-specialist\", \"systemPrompt\": \"You are a Security Specialist agent...\", \"taskPrompt\": \"Analyze security of src/auth/login.ts...\"}"
665+
}
666+
]
667+
}
668+
```
669+
670+
---
671+
672+
### prepare_parallel_agents
673+
674+
Prepare multiple specialist agents for parallel execution via Claude Code Task tool.
675+
676+
**Input Schema**:
677+
678+
```json
679+
{
680+
"type": "object",
681+
"properties": {
682+
"mode": {
683+
"type": "string",
684+
"enum": ["PLAN", "ACT", "EVAL"],
685+
"description": "Current workflow mode"
686+
},
687+
"specialists": {
688+
"type": "array",
689+
"items": { "type": "string" },
690+
"description": "List of specialist agent names"
691+
},
692+
"targetFiles": {
693+
"type": "array",
694+
"items": { "type": "string" },
695+
"description": "Files to analyze or review"
696+
},
697+
"sharedContext": {
698+
"type": "string",
699+
"description": "Shared context or task description for all agents"
700+
}
701+
},
702+
"required": ["mode", "specialists"]
703+
}
704+
```
705+
706+
**Request Example**:
707+
708+
```json
709+
{
710+
"name": "prepare_parallel_agents",
711+
"arguments": {
712+
"mode": "EVAL",
713+
"specialists": ["security-specialist", "accessibility-specialist", "performance-specialist"],
714+
"targetFiles": ["src/components/UserForm.tsx"],
715+
"sharedContext": "Review the user registration form"
716+
}
717+
}
718+
```
719+
720+
**Response Example**:
721+
722+
```json
723+
{
724+
"content": [
725+
{
726+
"type": "text",
727+
"text": "{\"prepared\": [{\"agentName\": \"security-specialist\", \"systemPrompt\": \"...\", \"taskPrompt\": \"...\"}, ...], \"executionHint\": \"Use Task tool with subagent_type='general-purpose' and run_in_background=true\"}"
728+
}
729+
]
730+
}
731+
```
732+
733+
**Usage with Claude Code Task Tool**:
734+
735+
```typescript
736+
// Launch multiple agents in parallel
737+
await Promise.all([
738+
Task({ subagent_type: 'general-purpose', prompt: securityPrompt, run_in_background: true }),
739+
Task({ subagent_type: 'general-purpose', prompt: accessibilityPrompt, run_in_background: true }),
740+
Task({ subagent_type: 'general-purpose', prompt: performancePrompt, run_in_background: true })
741+
]);
742+
```
743+
744+
---
745+
511746
## Prompts
512747

513748
Prompts provide pre-defined message templates for common workflows.
@@ -584,7 +819,7 @@ Activate a specific specialist agent with project context.
584819
| `Invalid URI scheme` | URI doesn't start with `rules://` or `config://` | Use correct URI scheme |
585820
| `Resource not found: {uri}` | Requested rule file doesn't exist | Check file path in `packages/rules/.ai-rules/` |
586821
| `Agent '{name}' not found` | Invalid agent name | Use valid agent name from list |
587-
| `Tool not found: {name}` | Invalid tool name | Use one of: `search_rules`, `get_agent_details`, `parse_mode`, `get_project_config`, `suggest_config_updates`, `recommend_skills` |
822+
| `Tool not found: {name}` | Invalid tool name | Use one of: `search_rules`, `get_agent_details`, `parse_mode`, `get_project_config`, `suggest_config_updates`, `recommend_skills`, `list_skills`, `get_agent_system_prompt`, `prepare_parallel_agents` |
588823
| `Failed to load project configuration` | Missing or invalid `codingbuddy.config.js` | Run `npx codingbuddy init` |
589824

590825
---

packages/rules/.ai-rules/CHANGELOG.md

Lines changed: 50 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,55 @@ All notable changes to the Multi-AI Coding Assistant Common Rules System will be
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.0.0] - 2026-01-06
9+
10+
### Added
11+
12+
- **PLAN Mode Primary Agents** with intent-based resolution
13+
- `solution-architect.json`: High-level system design and architecture planning
14+
- `technical-planner.json`: Low-level implementation planning with TDD and bite-sized tasks
15+
- Intent-based automatic selection between architects based on prompt analysis
16+
- Support for Korean and English intent patterns
17+
18+
- **AI Model Selection and Resolution**
19+
- CLI init prompt for model selection (Sonnet/Opus/Haiku)
20+
- `ai.defaultModel` configuration field in `codingbuddy.config.js`
21+
- Agent-level model preferences with priority resolution (agent > mode > system)
22+
- `resolvedModel` field in MCP tool responses
23+
24+
- **Parallel Agent Execution Support**
25+
- `get_agent_system_prompt` MCP tool for generating subagent prompts
26+
- `prepare_parallel_agents` MCP tool for batch agent preparation
27+
- `parallelAgentsRecommendation` in `parse_mode` response
28+
- Default specialist lists per mode (PLAN/ACT/EVAL)
29+
30+
- **Dynamic Language Configuration**
31+
- `LanguageService` supporting 10 languages (ko, en, ja, zh, es, de, fr, pt, ru, hi)
32+
- `languageInstruction` field in `parse_mode` response
33+
- Automatic language detection from project config
34+
35+
- **Agent Activation Transparency**
36+
- `ActivationMessageBuilder` for clear agent activation reporting
37+
- `activation_message` field showing active agents with tiers
38+
39+
### Changed
40+
41+
- **Primary Agent Resolution**
42+
- Extended `PrimaryAgentSource` type to include `intent`
43+
- Priority order: explicit > config > intent > context > default
44+
- Centralized Primary Agent constants with `_LIST` variants
45+
46+
- **Token Usage Optimization**
47+
- Mode-based `core.md` filtering to reduce token consumption
48+
- Shared `ResponseUtils` for consolidated response generation
49+
50+
### Fixed
51+
52+
- Canary deployment timestamp mismatch bug
53+
- Type assertions replaced with proper typing in keyword service
54+
55+
---
56+
857
## [1.0.0] - 2025-11-20
958

1059
### Added
@@ -48,18 +97,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4897

4998
## [Unreleased]
5099

51-
### Added
52-
- **Clarification Phase** for PLAN mode (`rules/clarification-guide.md`)
53-
- Optional phase triggered when AI detects ambiguous requirements
54-
- Sequential Q&A with progress indicator (Question N/M format)
55-
- Multiple-choice questions preferred for easy response
56-
- Ambiguity assessment checklist (6 categories, triggers on 2+ unclear)
57-
- Question count guidelines (2-7 questions based on complexity)
58-
- Korean/English output format support
59-
- Updated `rules/core.md` with Clarification Phase section
60-
61100
### Planned
62-
- Real-world usage testing across all 6 AI tools
101+
- Real-world usage testing across all 7 AI tools (including OpenCode)
63102
- Performance metrics collection
64103
- User feedback integration
65104
- Advanced examples and use cases

0 commit comments

Comments
 (0)