The Formats System is an abstraction used to inject platform-specific rules, structures, and constraints into an agent's execution context. Instead of agents having generic instructions, they receive a specific format context (e.g., instagram-feed) that defines how they should behave for a particular content type on a particular platform.
Context Injection Order
When a pipeline step includes a format field, the system assembles the agent's instructions in this specific order:
- Base Agent: The core identity and instructions of the agent.
- Squad Overlay: Any
.custom.md files specific to the squad. - Format: The content from the selected format file (e.g.,
_opensquad/core/formats/instagram-feed.md). - Skill Instructions: The specific instructions for the skill being executed.
Agent Roles in Formats
Different agents interpret the format context differently based on their role:
- Copywriter: Writes content that adheres to the format's constraints and guidelines.
- Reviewer: Validates the output against the format's rules and quality criteria.
- Strategist: Plans content based on the platform dynamics described in the format.
- Data Analyst: Interprets metrics specific to that format/platform.