Skip to content

Commit 3f76960

Browse files
authored
Merge pull request #17 from arvoreeducacao/joaobarros-/-fix-teammate-mcp-zod-compat
fix: pin zod-to-json-schema + add teammate communication prompt
2 parents 92cbd5f + b8d54d9 commit 3f76960

3 files changed

Lines changed: 23 additions & 5 deletions

File tree

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,10 @@
4242
"node": ">=20.0.0",
4343
"pnpm": ">=9.0.0"
4444
},
45+
"pnpm": {
46+
"overrides": {
47+
"zod-to-json-schema": "~3.24.5"
48+
}
49+
},
4550
"packageManager": "pnpm@9.14.4+sha512.c8180b3fbe4e4bca02c94234717896b5529740a6cbadf19fa78254270403ea2f27d4e1d46a08a0f56c89b63dc8ebfd3ee53326da720273794e6200fcf0d184ab"
4651
}

packages/agent-teams-lead/src/spawner.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,16 @@ export class TeammateSpawner {
297297
"- Use ONLY the agent-teams-teammate MCP server for task management. Do NOT search for tools via mcp-proxy.",
298298
"- After completing all your tasks, check one more time for new tasks before finishing.",
299299
"",
300+
"## TEAMMATE COMMUNICATION",
301+
"",
302+
"You are NOT working alone. Other teammates may depend on your output or you may depend on theirs.",
303+
"",
304+
"- After completing a task that produces an API contract, interface, or shared type, use send_message to broadcast the exact contract (paths, request/response shapes, field names) to all teammates.",
305+
"- Before implementing code that consumes another teammate's output (e.g. frontend calling a backend API), use fetch_messages to check if they shared the contract. If not available yet, wait and retry.",
306+
"- When your task has depends_on, always check fetch_messages for context from the dependency task's owner before starting your implementation.",
307+
"- Use write_artifact to publish API contracts, schemas, or interface definitions so other teammates can read_artifact to consume them.",
308+
"- NEVER assume paths, field names, or response shapes. Always coordinate with the teammate who owns that layer.",
309+
"",
300310
agentInstructions ? `## Agent Instructions\n\n${agentInstructions}` : "",
301311
]
302312
.filter(Boolean)

pnpm-lock.yaml

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)