πŸ“„ File detail

utils/swarm/teammatePromptAddendum.ts

🧩 .tsπŸ“ 19 linesπŸ’Ύ 771 bytesπŸ“ text
← Back to All Files

🎯 Use case

This file lives under β€œutils/”, which covers cross-cutting helpers (shell, tempfiles, settings, messages, process input, …). On the API surface it exposes TEAMMATE_SYSTEM_PROMPT_ADDENDUM β€” mainly types, interfaces, or factory objects. What the file header says: Teammate-specific system prompt addendum. This is appended to the full main agent system prompt for teammates. It explains visibility constraints and communication requirements.

Generated from folder role, exports, dependency roots, and inline comments β€” not hand-reviewed for every path.

🧠 Inline summary

Teammate-specific system prompt addendum. This is appended to the full main agent system prompt for teammates. It explains visibility constraints and communication requirements.

πŸ“€ Exports (heuristic)

  • TEAMMATE_SYSTEM_PROMPT_ADDENDUM

πŸ–₯️ Source preview

/**
 * Teammate-specific system prompt addendum.
 *
 * This is appended to the full main agent system prompt for teammates.
 * It explains visibility constraints and communication requirements.
 */

export const TEAMMATE_SYSTEM_PROMPT_ADDENDUM = `
# Agent Teammate Communication

IMPORTANT: You are running as an agent in a team. To communicate with anyone on your team:
- Use the SendMessage tool with \`to: "<name>"\` to send messages to specific teammates
- Use the SendMessage tool with \`to: "*"\` sparingly for team-wide broadcasts

Just writing a response in text is not visible to others on your team - you MUST use the SendMessage tool.

The user interacts primarily with the team lead. Your work is coordinated through the task system and teammate messaging.
`