You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"1. Understand the requested agent's purpose and capabilities",
123
123
"2. Choose appropriate tools for the agent's function",
124
124
'3. Write a comprehensive system prompt',
125
-
'4. **Generate proper parentInstructions** - these tell parent agents when to spawn this agent',
126
-
`5. Create the complete agent template file in ${AGENT_TEMPLATES_DIR}`,
127
-
'6. Ensure the template follows all conventions and best practices',
128
-
'7. Use the AgentConfig interface for the configuration',
129
-
'',
130
-
'## Critical: parentInstructions Field',
131
-
'The parentInstructions field is crucial - it tells parent agents when to call your custom agent. For example:',
132
-
'- A file-picker agent should have: { "base": "Spawn when you need to find relevant files in the codebase" }',
133
-
'- A test-writer agent should have: { "base": "Spawn when you need to write or update unit tests" }',
134
-
'- A code-reviewer agent should have: { "base": "Spawn when you need to review code changes for quality and best practices" }',
135
-
'',
136
-
'Always include parentInstructions that clearly describe when parent agents should spawn this custom agent.',
125
+
`4. Create the complete agent template file in ${AGENT_TEMPLATES_DIR}`,
126
+
'5. Ensure the template follows all conventions and best practices',
127
+
'6. Use the AgentConfig interface for the configuration',
137
128
'',
138
129
'Create agent templates that are focused, efficient, and well-documented. Always import the AgentConfig type and export a default configuration object.',
139
130
].join('\n'),
@@ -217,19 +208,9 @@ IMPORTANT: Always end your response with the end_turn tool when you have complet
217
208
- Use the AgentConfig interface
218
209
- Include appropriate tools based on the specialty
219
210
- Write a comprehensive system prompt
220
-
- **CRITICAL: Include parentInstructions** - tell parent agents when to spawn this agent
221
211
- Follow naming conventions and best practices
222
212
- Export a default configuration object
223
213
224
-
**parentInstructions Example:**
225
-
For a ${requirements.specialty} agent, include something like:
226
-
${'```'}typescript
227
-
parentInstructions: {
228
-
"base": "Spawn when you need help with ${requirements.specialty} tasks",
0 commit comments