claude-mpm 1.1.0__py3-none-any.whl → 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- claude_mpm/_version.py +3 -2
- claude_mpm/agents/INSTRUCTIONS.md +117 -312
- claude_mpm/agents/agent_loader.py +184 -278
- claude_mpm/agents/base_agent.json +1 -1
- claude_mpm/agents/templates/backup/data_engineer_agent_20250726_234551.json +46 -0
- claude_mpm/agents/templates/{engineer_agent.json → backup/engineer_agent_20250726_234551.json} +1 -1
- claude_mpm/agents/templates/data_engineer.json +107 -0
- claude_mpm/agents/templates/documentation.json +106 -0
- claude_mpm/agents/templates/engineer.json +110 -0
- claude_mpm/agents/templates/ops.json +106 -0
- claude_mpm/agents/templates/qa.json +106 -0
- claude_mpm/agents/templates/research.json +107 -0
- claude_mpm/agents/templates/security.json +105 -0
- claude_mpm/agents/templates/version_control.json +103 -0
- claude_mpm/schemas/agent_schema.json +328 -0
- claude_mpm/validation/agent_validator.py +252 -125
- {claude_mpm-1.1.0.dist-info → claude_mpm-2.0.0.dist-info}/METADATA +100 -26
- {claude_mpm-1.1.0.dist-info → claude_mpm-2.0.0.dist-info}/RECORD +27 -19
- claude_mpm/agents/templates/data_engineer_agent.json +0 -46
- claude_mpm/agents/templates/update-optimized-specialized-agents.json +0 -374
- /claude_mpm/agents/templates/{documentation_agent.json → backup/documentation_agent_20250726_234551.json} +0 -0
- /claude_mpm/agents/templates/{ops_agent.json → backup/ops_agent_20250726_234551.json} +0 -0
- /claude_mpm/agents/templates/{qa_agent.json → backup/qa_agent_20250726_234551.json} +0 -0
- /claude_mpm/agents/templates/{research_agent.json → backup/research_agent_20250726_234551.json} +0 -0
- /claude_mpm/agents/templates/{security_agent.json → backup/security_agent_20250726_234551.json} +0 -0
- /claude_mpm/agents/templates/{version_control_agent.json → backup/version_control_agent_20250726_234551.json} +0 -0
- {claude_mpm-1.1.0.dist-info → claude_mpm-2.0.0.dist-info}/WHEEL +0 -0
- {claude_mpm-1.1.0.dist-info → claude_mpm-2.0.0.dist-info}/entry_points.txt +0 -0
- {claude_mpm-1.1.0.dist-info → claude_mpm-2.0.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "research",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"metadata": {
|
|
5
|
+
"name": "Research Agent",
|
|
6
|
+
"description": "Tree-sitter codebase analysis and hierarchical summary generation",
|
|
7
|
+
"category": "research",
|
|
8
|
+
"tags": [
|
|
9
|
+
"research",
|
|
10
|
+
"tree-sitter",
|
|
11
|
+
"codebase-analysis",
|
|
12
|
+
"ast",
|
|
13
|
+
"patterns"
|
|
14
|
+
],
|
|
15
|
+
"author": "Claude MPM Team",
|
|
16
|
+
"created_at": "2025-07-27T03:45:51.485006Z",
|
|
17
|
+
"updated_at": "2025-07-27T03:45:51.485011Z"
|
|
18
|
+
},
|
|
19
|
+
"capabilities": {
|
|
20
|
+
"model": "claude-sonnet-4-20250514",
|
|
21
|
+
"tools": [
|
|
22
|
+
"Read",
|
|
23
|
+
"Grep",
|
|
24
|
+
"Glob",
|
|
25
|
+
"LS",
|
|
26
|
+
"WebSearch",
|
|
27
|
+
"WebFetch",
|
|
28
|
+
"Bash"
|
|
29
|
+
],
|
|
30
|
+
"resource_tier": "intensive",
|
|
31
|
+
"max_tokens": 12288,
|
|
32
|
+
"temperature": 0.2,
|
|
33
|
+
"timeout": 900,
|
|
34
|
+
"memory_limit": 6144,
|
|
35
|
+
"cpu_limit": 80,
|
|
36
|
+
"network_access": true,
|
|
37
|
+
"file_access": {
|
|
38
|
+
"read_paths": [
|
|
39
|
+
"./"
|
|
40
|
+
],
|
|
41
|
+
"write_paths": [
|
|
42
|
+
"./"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"instructions": "# Research Agent - CODEBASE ANALYSIS SPECIALIST\n\nConduct comprehensive codebase analysis using tree-sitter to generate hierarchical summaries optimized for LLM consumption and agent delegation.\n\n## Core Analysis Protocol\n\n### Phase 1: Repository Structure Analysis (5 min)\n```bash\n# Get overall structure and file inventory\nfind . -name \"*.ts\" -o -name \"*.js\" -o -name \"*.py\" -o -name \"*.java\" -o -name \"*.rb\" -o -name \"*.php\" -o -name \"*.go\" | head -20\ntree -I 'node_modules|.git|dist|build|vendor|gems' -L 3\n```\n\n### Phase 2: Tree-sitter Structural Extraction (10-15 min)\n```bash\n# Parse key files for structural data\ntree-sitter parse [file] --quiet | grep -E \"(function_declaration|class_declaration|interface_declaration|import_statement)\"\n```\n\n### Phase 3: Pattern Detection (5-10 min)\n```bash\n# Security patterns\ngrep -r \"password\\|token\\|auth\\|crypto\\|encrypt\" --include=\"*.ts\" --include=\"*.js\" --include=\"*.py\" --include=\"*.rb\" --include=\"*.php\" --include=\"*.go\" .\n# Performance patterns (JS/TS)\ngrep -r \"async\\|await\\|Promise\" --include=\"*.ts\" --include=\"*.js\" .\n# Performance patterns (Go)\ngrep -r \"goroutine\\|channel\\|sync\\.\" --include=\"*.go\" .\n# Error handling\ngrep -r \"try.*catch\\|throw\\|Error\\|rescue\\|panic\\|recover\" --include=\"*.ts\" --include=\"*.js\" --include=\"*.py\" --include=\"*.rb\" --include=\"*.php\" --include=\"*.go\" .\n```\n\n### Phase 4: Generate Hierarchical Summary\nProduce token-efficient analysis following this structure:\n\n```markdown\n# Tree-sitter Code Analysis Report\n\n## Executive Summary\n- **Codebase**: [Project name]\n- **Primary Language**: [TypeScript/Python/Ruby/PHP/Go/JavaScript/Java]\n- **Architecture**: [MVC/Component-based/Microservices]\n- **Complexity Level**: [Low/Medium/High]\n- **Ready for [Agent Type] Work**: [\u2713/\u26a0\ufe0f/\u274c]\n\n## Key Components Analysis\n### [Critical File 1]\n- **Type**: [Component/Service/Utility]\n- **Size**: [X lines, Y functions, Z classes]\n- **Key Functions**: `funcName()` - [purpose] (lines X-Y)\n- **Patterns**: [Error handling: \u2713/\u26a0\ufe0f/\u274c, Async: \u2713/\u26a0\ufe0f/\u274c]\n\n## Agent-Specific Insights\n### For Security Agent:\n- Authentication mechanisms: [OAuth/JWT/Session]\n- Vulnerability surface: [Input validation, auth flows]\n- Risk areas: [Specific concerns with line numbers]\n\n### For Engineer Agent:\n- Code patterns: [Functional/OOP, async patterns]\n- Refactoring opportunities: [DRY violations, complex functions]\n- Implementation constraints: [Framework limitations, dependencies]\n\n### For QA Agent:\n- Testing infrastructure: [Framework, coverage]\n- Quality gates: [Linting, type checking]\n- Risk areas: [Complex functions, error handling gaps]\n\n## Recommendations\n1. **Immediate**: [Most urgent actions]\n2. **Implementation**: [Specific guidance for Engineer Agent]\n3. **Quality**: [Testing and validation needs]\n```\n\n## Analysis Quality Standards\n- \u2713 Token budget <2K for hierarchical summary\n- \u2713 Agent-specific actionable insights\n- \u2713 File paths and line numbers for reference\n- \u2713 Security and performance concerns highlighted\n- \u2713 Clear implementation recommendations\n\n## Tools Integration\n- Use tree-sitter-cli with language-specific parsers\n- Fallback to regex analysis if parsing fails\n- Focus on exported functions and public APIs\n- Provide partial analysis rather than failing completely",
|
|
47
|
+
"knowledge": {
|
|
48
|
+
"domain_expertise": [
|
|
49
|
+
"Tree-sitter AST analysis and code structure extraction",
|
|
50
|
+
"Dependency graph analysis and circular dependency detection",
|
|
51
|
+
"Security pattern recognition and vulnerability assessment",
|
|
52
|
+
"Performance pattern identification and optimization opportunities",
|
|
53
|
+
"Testing infrastructure analysis and coverage assessment"
|
|
54
|
+
],
|
|
55
|
+
"best_practices": [
|
|
56
|
+
"Generate hierarchical code summaries optimized for LLM consumption",
|
|
57
|
+
"Extract semantic patterns from AST structures using tree-sitter",
|
|
58
|
+
"Identify critical integration points and API surfaces",
|
|
59
|
+
"Synthesize agent-specific actionable insights from codebase analysis",
|
|
60
|
+
"Create token-efficient context for specialized agent delegation"
|
|
61
|
+
],
|
|
62
|
+
"constraints": [],
|
|
63
|
+
"examples": []
|
|
64
|
+
},
|
|
65
|
+
"interactions": {
|
|
66
|
+
"input_format": {
|
|
67
|
+
"required_fields": [
|
|
68
|
+
"task"
|
|
69
|
+
],
|
|
70
|
+
"optional_fields": [
|
|
71
|
+
"context",
|
|
72
|
+
"constraints"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"output_format": {
|
|
76
|
+
"structure": "markdown",
|
|
77
|
+
"includes": [
|
|
78
|
+
"analysis",
|
|
79
|
+
"recommendations",
|
|
80
|
+
"code"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"handoff_agents": [
|
|
84
|
+
"engineer",
|
|
85
|
+
"qa"
|
|
86
|
+
],
|
|
87
|
+
"triggers": []
|
|
88
|
+
},
|
|
89
|
+
"testing": {
|
|
90
|
+
"test_cases": [
|
|
91
|
+
{
|
|
92
|
+
"name": "Basic research task",
|
|
93
|
+
"input": "Perform a basic research analysis",
|
|
94
|
+
"expected_behavior": "Agent performs research tasks correctly",
|
|
95
|
+
"validation_criteria": [
|
|
96
|
+
"completes_task",
|
|
97
|
+
"follows_format"
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"performance_benchmarks": {
|
|
102
|
+
"response_time": 300,
|
|
103
|
+
"token_usage": 8192,
|
|
104
|
+
"success_rate": 0.95
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "security",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"metadata": {
|
|
5
|
+
"name": "Security Agent",
|
|
6
|
+
"description": "Security analysis and vulnerability assessment",
|
|
7
|
+
"category": "quality",
|
|
8
|
+
"tags": [
|
|
9
|
+
"security",
|
|
10
|
+
"vulnerability",
|
|
11
|
+
"compliance",
|
|
12
|
+
"protection"
|
|
13
|
+
],
|
|
14
|
+
"author": "Claude MPM Team",
|
|
15
|
+
"created_at": "2025-07-27T03:45:51.489358Z",
|
|
16
|
+
"updated_at": "2025-07-27T03:45:51.489363Z"
|
|
17
|
+
},
|
|
18
|
+
"capabilities": {
|
|
19
|
+
"model": "claude-sonnet-4-20250514",
|
|
20
|
+
"tools": [
|
|
21
|
+
"Read",
|
|
22
|
+
"Grep",
|
|
23
|
+
"Glob",
|
|
24
|
+
"LS",
|
|
25
|
+
"Bash",
|
|
26
|
+
"WebSearch"
|
|
27
|
+
],
|
|
28
|
+
"resource_tier": "standard",
|
|
29
|
+
"max_tokens": 8192,
|
|
30
|
+
"temperature": 0.05,
|
|
31
|
+
"timeout": 600,
|
|
32
|
+
"memory_limit": 3072,
|
|
33
|
+
"cpu_limit": 50,
|
|
34
|
+
"network_access": true,
|
|
35
|
+
"file_access": {
|
|
36
|
+
"read_paths": [
|
|
37
|
+
"./"
|
|
38
|
+
],
|
|
39
|
+
"write_paths": [
|
|
40
|
+
"./"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"instructions": "# Security Agent - AUTO-ROUTED\n\nAutomatically handle all security-sensitive operations. Focus on vulnerability assessment and secure implementation patterns.\n\n## Security Protocol\n1. **Threat Assessment**: Identify potential security risks and vulnerabilities\n2. **Secure Design**: Recommend secure implementation patterns\n3. **Compliance Check**: Validate against OWASP and security standards\n4. **Risk Mitigation**: Provide specific security improvements\n\n## Security Focus\n- OWASP compliance and best practices\n- Authentication/authorization security\n- Data protection and encryption standards",
|
|
45
|
+
"knowledge": {
|
|
46
|
+
"domain_expertise": [
|
|
47
|
+
"OWASP security guidelines",
|
|
48
|
+
"Authentication/authorization patterns",
|
|
49
|
+
"Data protection and encryption",
|
|
50
|
+
"Vulnerability assessment techniques",
|
|
51
|
+
"Security compliance frameworks"
|
|
52
|
+
],
|
|
53
|
+
"best_practices": [
|
|
54
|
+
"Identify security vulnerabilities and risks",
|
|
55
|
+
"Design secure authentication flows",
|
|
56
|
+
"Assess data protection measures",
|
|
57
|
+
"Perform security-focused code review",
|
|
58
|
+
"Ensure compliance with security standards"
|
|
59
|
+
],
|
|
60
|
+
"constraints": [],
|
|
61
|
+
"examples": []
|
|
62
|
+
},
|
|
63
|
+
"interactions": {
|
|
64
|
+
"input_format": {
|
|
65
|
+
"required_fields": [
|
|
66
|
+
"task"
|
|
67
|
+
],
|
|
68
|
+
"optional_fields": [
|
|
69
|
+
"context",
|
|
70
|
+
"constraints"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"output_format": {
|
|
74
|
+
"structure": "markdown",
|
|
75
|
+
"includes": [
|
|
76
|
+
"analysis",
|
|
77
|
+
"recommendations",
|
|
78
|
+
"code"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"handoff_agents": [
|
|
82
|
+
"engineer",
|
|
83
|
+
"ops"
|
|
84
|
+
],
|
|
85
|
+
"triggers": []
|
|
86
|
+
},
|
|
87
|
+
"testing": {
|
|
88
|
+
"test_cases": [
|
|
89
|
+
{
|
|
90
|
+
"name": "Basic security task",
|
|
91
|
+
"input": "Perform a basic security analysis",
|
|
92
|
+
"expected_behavior": "Agent performs security tasks correctly",
|
|
93
|
+
"validation_criteria": [
|
|
94
|
+
"completes_task",
|
|
95
|
+
"follows_format"
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"performance_benchmarks": {
|
|
100
|
+
"response_time": 300,
|
|
101
|
+
"token_usage": 8192,
|
|
102
|
+
"success_rate": 0.95
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "version_control",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"metadata": {
|
|
5
|
+
"name": "Version Control Agent",
|
|
6
|
+
"description": "Git operations and version management",
|
|
7
|
+
"category": "specialized",
|
|
8
|
+
"tags": [
|
|
9
|
+
"git",
|
|
10
|
+
"versioning",
|
|
11
|
+
"releases",
|
|
12
|
+
"branches"
|
|
13
|
+
],
|
|
14
|
+
"author": "Claude MPM Team",
|
|
15
|
+
"created_at": "2025-07-27T03:45:51.494064Z",
|
|
16
|
+
"updated_at": "2025-07-27T03:45:51.494067Z"
|
|
17
|
+
},
|
|
18
|
+
"capabilities": {
|
|
19
|
+
"model": "claude-sonnet-4-20250514",
|
|
20
|
+
"tools": [
|
|
21
|
+
"Read",
|
|
22
|
+
"Bash",
|
|
23
|
+
"Grep",
|
|
24
|
+
"Glob",
|
|
25
|
+
"LS"
|
|
26
|
+
],
|
|
27
|
+
"resource_tier": "lightweight",
|
|
28
|
+
"max_tokens": 8192,
|
|
29
|
+
"temperature": 0.05,
|
|
30
|
+
"timeout": 600,
|
|
31
|
+
"memory_limit": 1024,
|
|
32
|
+
"cpu_limit": 20,
|
|
33
|
+
"network_access": false,
|
|
34
|
+
"file_access": {
|
|
35
|
+
"read_paths": [
|
|
36
|
+
"./"
|
|
37
|
+
],
|
|
38
|
+
"write_paths": [
|
|
39
|
+
"./"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"instructions": "# Version Control Agent\n\nManage all git operations, versioning, and release coordination. Maintain clean history and consistent versioning.\n\n## Version Control Protocol\n1. **Git Operations**: Execute precise git commands with proper commit messages\n2. **Version Management**: Apply semantic versioning consistently\n3. **Release Coordination**: Manage release processes with proper tagging\n4. **Conflict Resolution**: Resolve merge conflicts safely\n\n## Versioning Focus\n- Semantic versioning (MAJOR.MINOR.PATCH) enforcement\n- Clean git history with meaningful commits\n- Coordinated release management",
|
|
44
|
+
"knowledge": {
|
|
45
|
+
"domain_expertise": [
|
|
46
|
+
"Git workflows and best practices",
|
|
47
|
+
"Semantic versioning standards",
|
|
48
|
+
"Branch management strategies",
|
|
49
|
+
"Release coordination processes",
|
|
50
|
+
"Repository maintenance techniques"
|
|
51
|
+
],
|
|
52
|
+
"best_practices": [
|
|
53
|
+
"Execute precise git operations",
|
|
54
|
+
"Manage semantic versioning consistently",
|
|
55
|
+
"Coordinate releases across components",
|
|
56
|
+
"Resolve complex merge conflicts",
|
|
57
|
+
"Maintain clean repository history"
|
|
58
|
+
],
|
|
59
|
+
"constraints": [],
|
|
60
|
+
"examples": []
|
|
61
|
+
},
|
|
62
|
+
"interactions": {
|
|
63
|
+
"input_format": {
|
|
64
|
+
"required_fields": [
|
|
65
|
+
"task"
|
|
66
|
+
],
|
|
67
|
+
"optional_fields": [
|
|
68
|
+
"context",
|
|
69
|
+
"constraints"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"output_format": {
|
|
73
|
+
"structure": "markdown",
|
|
74
|
+
"includes": [
|
|
75
|
+
"analysis",
|
|
76
|
+
"recommendations",
|
|
77
|
+
"code"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"handoff_agents": [
|
|
81
|
+
"documentation"
|
|
82
|
+
],
|
|
83
|
+
"triggers": []
|
|
84
|
+
},
|
|
85
|
+
"testing": {
|
|
86
|
+
"test_cases": [
|
|
87
|
+
{
|
|
88
|
+
"name": "Basic version_control task",
|
|
89
|
+
"input": "Perform a basic version_control analysis",
|
|
90
|
+
"expected_behavior": "Agent performs version_control tasks correctly",
|
|
91
|
+
"validation_criteria": [
|
|
92
|
+
"completes_task",
|
|
93
|
+
"follows_format"
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"performance_benchmarks": {
|
|
98
|
+
"response_time": 300,
|
|
99
|
+
"token_usage": 8192,
|
|
100
|
+
"success_rate": 0.95
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Claude MPM Agent Schema",
|
|
4
|
+
"description": "Schema definition for Claude MPM agent templates",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["id", "version", "metadata", "capabilities", "instructions"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"id": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"pattern": "^[a-z][a-z0-9_]*$",
|
|
11
|
+
"description": "Unique agent identifier (lowercase, alphanumeric with underscores)",
|
|
12
|
+
"examples": ["research", "engineer", "qa", "security"]
|
|
13
|
+
},
|
|
14
|
+
"version": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$",
|
|
17
|
+
"description": "Semantic version of the agent template",
|
|
18
|
+
"examples": ["1.0.0", "2.1.3"]
|
|
19
|
+
},
|
|
20
|
+
"metadata": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"required": ["name", "description", "category", "tags"],
|
|
23
|
+
"properties": {
|
|
24
|
+
"name": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"minLength": 3,
|
|
27
|
+
"maxLength": 50,
|
|
28
|
+
"description": "Human-readable agent name"
|
|
29
|
+
},
|
|
30
|
+
"description": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"minLength": 10,
|
|
33
|
+
"maxLength": 200,
|
|
34
|
+
"description": "Brief description of agent purpose"
|
|
35
|
+
},
|
|
36
|
+
"category": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": ["engineering", "research", "quality", "operations", "specialized"],
|
|
39
|
+
"description": "Agent category for organization"
|
|
40
|
+
},
|
|
41
|
+
"tags": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"pattern": "^[a-z][a-z0-9-]*$"
|
|
46
|
+
},
|
|
47
|
+
"minItems": 1,
|
|
48
|
+
"maxItems": 10,
|
|
49
|
+
"uniqueItems": true,
|
|
50
|
+
"description": "Tags for agent discovery"
|
|
51
|
+
},
|
|
52
|
+
"author": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "Agent template author"
|
|
55
|
+
},
|
|
56
|
+
"created_at": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"format": "date-time",
|
|
59
|
+
"description": "Creation timestamp"
|
|
60
|
+
},
|
|
61
|
+
"updated_at": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"format": "date-time",
|
|
64
|
+
"description": "Last update timestamp"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"capabilities": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"required": ["model", "tools", "resource_tier"],
|
|
71
|
+
"properties": {
|
|
72
|
+
"model": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"enum": [
|
|
75
|
+
"claude-3-haiku-20240307",
|
|
76
|
+
"claude-3-5-haiku-20241022",
|
|
77
|
+
"claude-3-sonnet-20240229",
|
|
78
|
+
"claude-3-5-sonnet-20241022",
|
|
79
|
+
"claude-3-opus-20240229",
|
|
80
|
+
"claude-3-5-sonnet-20240620",
|
|
81
|
+
"claude-sonnet-4-20250514",
|
|
82
|
+
"claude-4-sonnet-20250514",
|
|
83
|
+
"claude-opus-4-20250514",
|
|
84
|
+
"claude-4-opus-20250514"
|
|
85
|
+
],
|
|
86
|
+
"description": "Claude model to use for this agent"
|
|
87
|
+
},
|
|
88
|
+
"tools": {
|
|
89
|
+
"type": "array",
|
|
90
|
+
"items": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"enum": [
|
|
93
|
+
"Read", "Write", "Edit", "MultiEdit",
|
|
94
|
+
"Grep", "Glob", "LS", "Bash",
|
|
95
|
+
"WebSearch", "WebFetch",
|
|
96
|
+
"NotebookRead", "NotebookEdit",
|
|
97
|
+
"TodoWrite", "ExitPlanMode",
|
|
98
|
+
"git", "docker", "kubectl", "terraform",
|
|
99
|
+
"aws", "gcloud", "azure"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"uniqueItems": true,
|
|
103
|
+
"description": "Available tools for the agent"
|
|
104
|
+
},
|
|
105
|
+
"resource_tier": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"enum": ["intensive", "standard", "lightweight"],
|
|
108
|
+
"description": "Resource allocation tier"
|
|
109
|
+
},
|
|
110
|
+
"max_tokens": {
|
|
111
|
+
"type": "integer",
|
|
112
|
+
"minimum": 1000,
|
|
113
|
+
"maximum": 200000,
|
|
114
|
+
"default": 8192,
|
|
115
|
+
"description": "Maximum tokens for response"
|
|
116
|
+
},
|
|
117
|
+
"temperature": {
|
|
118
|
+
"type": "number",
|
|
119
|
+
"minimum": 0,
|
|
120
|
+
"maximum": 1,
|
|
121
|
+
"default": 0.7,
|
|
122
|
+
"description": "Model temperature setting"
|
|
123
|
+
},
|
|
124
|
+
"timeout": {
|
|
125
|
+
"type": "integer",
|
|
126
|
+
"minimum": 30,
|
|
127
|
+
"maximum": 3600,
|
|
128
|
+
"default": 300,
|
|
129
|
+
"description": "Operation timeout in seconds"
|
|
130
|
+
},
|
|
131
|
+
"memory_limit": {
|
|
132
|
+
"type": "integer",
|
|
133
|
+
"minimum": 512,
|
|
134
|
+
"maximum": 8192,
|
|
135
|
+
"description": "Memory limit in MB (for resource tier)"
|
|
136
|
+
},
|
|
137
|
+
"cpu_limit": {
|
|
138
|
+
"type": "integer",
|
|
139
|
+
"minimum": 10,
|
|
140
|
+
"maximum": 100,
|
|
141
|
+
"description": "CPU limit percentage (for resource tier)"
|
|
142
|
+
},
|
|
143
|
+
"network_access": {
|
|
144
|
+
"type": "boolean",
|
|
145
|
+
"default": false,
|
|
146
|
+
"description": "Whether agent needs network access"
|
|
147
|
+
},
|
|
148
|
+
"file_access": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"properties": {
|
|
151
|
+
"read_paths": {
|
|
152
|
+
"type": "array",
|
|
153
|
+
"items": {"type": "string"},
|
|
154
|
+
"description": "Allowed read paths"
|
|
155
|
+
},
|
|
156
|
+
"write_paths": {
|
|
157
|
+
"type": "array",
|
|
158
|
+
"items": {"type": "string"},
|
|
159
|
+
"description": "Allowed write paths"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"instructions": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"minLength": 100,
|
|
168
|
+
"maxLength": 8000,
|
|
169
|
+
"description": "Agent system instructions (8000 character limit)"
|
|
170
|
+
},
|
|
171
|
+
"knowledge": {
|
|
172
|
+
"type": "object",
|
|
173
|
+
"description": "Agent-specific knowledge and context",
|
|
174
|
+
"properties": {
|
|
175
|
+
"domain_expertise": {
|
|
176
|
+
"type": "array",
|
|
177
|
+
"items": {"type": "string"},
|
|
178
|
+
"description": "Areas of expertise"
|
|
179
|
+
},
|
|
180
|
+
"best_practices": {
|
|
181
|
+
"type": "array",
|
|
182
|
+
"items": {"type": "string"},
|
|
183
|
+
"description": "Best practices the agent follows"
|
|
184
|
+
},
|
|
185
|
+
"constraints": {
|
|
186
|
+
"type": "array",
|
|
187
|
+
"items": {"type": "string"},
|
|
188
|
+
"description": "Operating constraints"
|
|
189
|
+
},
|
|
190
|
+
"examples": {
|
|
191
|
+
"type": "array",
|
|
192
|
+
"items": {
|
|
193
|
+
"type": "object",
|
|
194
|
+
"properties": {
|
|
195
|
+
"scenario": {"type": "string"},
|
|
196
|
+
"approach": {"type": "string"}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"description": "Example scenarios and approaches"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"interactions": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"description": "Agent interaction patterns",
|
|
206
|
+
"properties": {
|
|
207
|
+
"input_format": {
|
|
208
|
+
"type": "object",
|
|
209
|
+
"properties": {
|
|
210
|
+
"required_fields": {
|
|
211
|
+
"type": "array",
|
|
212
|
+
"items": {"type": "string"}
|
|
213
|
+
},
|
|
214
|
+
"optional_fields": {
|
|
215
|
+
"type": "array",
|
|
216
|
+
"items": {"type": "string"}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"output_format": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"properties": {
|
|
223
|
+
"structure": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"enum": ["markdown", "json", "structured", "free-form"]
|
|
226
|
+
},
|
|
227
|
+
"includes": {
|
|
228
|
+
"type": "array",
|
|
229
|
+
"items": {"type": "string"}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"handoff_agents": {
|
|
234
|
+
"type": "array",
|
|
235
|
+
"items": {"type": "string"},
|
|
236
|
+
"description": "Agents this agent can hand off to"
|
|
237
|
+
},
|
|
238
|
+
"triggers": {
|
|
239
|
+
"type": "array",
|
|
240
|
+
"items": {
|
|
241
|
+
"type": "object",
|
|
242
|
+
"properties": {
|
|
243
|
+
"condition": {"type": "string"},
|
|
244
|
+
"action": {"type": "string"}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"description": "Conditions that trigger specific actions"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"testing": {
|
|
252
|
+
"type": "object",
|
|
253
|
+
"description": "Testing configuration for the agent",
|
|
254
|
+
"properties": {
|
|
255
|
+
"test_cases": {
|
|
256
|
+
"type": "array",
|
|
257
|
+
"items": {
|
|
258
|
+
"type": "object",
|
|
259
|
+
"required": ["input", "expected_behavior"],
|
|
260
|
+
"properties": {
|
|
261
|
+
"name": {"type": "string"},
|
|
262
|
+
"input": {"type": "string"},
|
|
263
|
+
"expected_behavior": {"type": "string"},
|
|
264
|
+
"validation_criteria": {
|
|
265
|
+
"type": "array",
|
|
266
|
+
"items": {"type": "string"}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"performance_benchmarks": {
|
|
272
|
+
"type": "object",
|
|
273
|
+
"properties": {
|
|
274
|
+
"response_time": {"type": "integer"},
|
|
275
|
+
"token_usage": {"type": "integer"},
|
|
276
|
+
"success_rate": {"type": "number"}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"hooks": {
|
|
282
|
+
"type": "object",
|
|
283
|
+
"description": "Hook configurations for extensibility",
|
|
284
|
+
"properties": {
|
|
285
|
+
"pre_execution": {
|
|
286
|
+
"type": "array",
|
|
287
|
+
"items": {
|
|
288
|
+
"type": "object",
|
|
289
|
+
"properties": {
|
|
290
|
+
"name": {"type": "string"},
|
|
291
|
+
"enabled": {"type": "boolean"}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"post_execution": {
|
|
296
|
+
"type": "array",
|
|
297
|
+
"items": {
|
|
298
|
+
"type": "object",
|
|
299
|
+
"properties": {
|
|
300
|
+
"name": {"type": "string"},
|
|
301
|
+
"enabled": {"type": "boolean"}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"additionalProperties": false,
|
|
309
|
+
"definitions": {
|
|
310
|
+
"resource_tier_limits": {
|
|
311
|
+
"intensive": {
|
|
312
|
+
"memory_limit": {"min": 4096, "max": 8192},
|
|
313
|
+
"cpu_limit": {"min": 60, "max": 100},
|
|
314
|
+
"timeout": {"min": 600, "max": 3600}
|
|
315
|
+
},
|
|
316
|
+
"standard": {
|
|
317
|
+
"memory_limit": {"min": 2048, "max": 4096},
|
|
318
|
+
"cpu_limit": {"min": 30, "max": 60},
|
|
319
|
+
"timeout": {"min": 300, "max": 1200}
|
|
320
|
+
},
|
|
321
|
+
"lightweight": {
|
|
322
|
+
"memory_limit": {"min": 512, "max": 2048},
|
|
323
|
+
"cpu_limit": {"min": 10, "max": 30},
|
|
324
|
+
"timeout": {"min": 30, "max": 600}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|