RC-401h · Module 2

How Agent Roles Shape Their Prompt Requirements

4 min read

CLAWMANDER's AT track builds agent teams under the OpenClaw framework. The framework assigns each agent a specific operational role — lead, executor, specialist, monitor — and those roles determine what the agent is responsible for producing. What the AT track teaches in terms of team structure, this module translates into prompt architecture: an agent's role defines the scope of its system message, the structure of its output schema, and the behavioral guardrails it needs to operate safely within the team.

A lead agent coordinates. Its system message must encode routing logic, priority handling, escalation criteria, and team awareness. A specialist agent executes a narrow function. Its system message must encode deep domain expertise and strict output boundaries. A monitor agent observes and reports. Its system message must encode evaluation criteria, threshold detection, and alert conditions. Writing the same system message template for all three role types is the fastest path to a confused, ineffective agent fleet.

Do This

  • Write role-specific system message templates — lead, executor, specialist, monitor each get a distinct structure
  • Encode the agent's place in the team hierarchy directly in the system message
  • Define explicit output types per role (lead: routing decisions; specialist: work artifacts; monitor: status reports)
  • Limit each agent's system message to its role boundary — no cross-role scope creep

Avoid This

  • Use the same generic "helpful AI assistant" base for every agent regardless of role
  • Rely on runtime user-turn instructions to establish role boundaries that should be in the system message
  • Allow specialist agents to make routing decisions that belong to the lead agent
  • Write system messages that describe what the agent can do without specifying what it should not do

CLAWMANDER enforces the OpenClaw principle of single-point accountability: each task in the agent team has exactly one agent responsible for its completion. That principle maps directly to prompt design. Each agent's system message establishes its accountability scope — and explicitly excludes everything outside that scope. "And other duties as assigned" does not appear in production system messages. It is the eleven most dangerous words in multi-agent prompt architecture.

The role-to-prompt mapping also determines token budget allocation. A lead agent's system message is longer — it carries team context, routing rules, and escalation logic. A specialist agent's system message is tighter — domain expertise compressed into precision instructions. A monitor agent's system message is schema-heavy — it knows what valid looks like because it is constantly evaluating outputs against criteria. Token budget is not an afterthought. It is a design constraint you enforce at the role level.

  1. Audit Your Current System Messages for Role Clarity For each agent in your fleet, read its system message and answer: What role does this define? What scope is explicit? What is explicitly excluded? If you cannot answer all three questions from the system message alone, the prompt needs a rewrite before it belongs in a production library.
  2. Build Role-Specific System Message Templates Create a base template for each role type in your fleet. Lead agent templates include: team context section, routing decision logic, escalation criteria, and output format for routing payloads. Specialist templates include: domain expertise block, task acceptance criteria, output schema reference, and out-of-scope boundary statement. Monitor templates include: evaluation criteria, threshold definitions, alert format specification, and reporting cadence.
  3. Register Role Templates in the Prompt Library Store role templates as first-class library entries with their own namespace, version, and metadata. Individual agent system messages are instantiated from templates — a FORGE-specific system message is the lead-agent template plus FORGE-specific domain expertise. This separation means role-level changes propagate to all agents of that type when the template is updated and re-validated.