Skip to main content

Agents

Agents are AI personalities defined in .agent.md files. Each agent declares its domain expertise, available tools, preferred models, WAF alignment, and compatible solution plays. Agents are the interactive primitives of FrootAI โ€” users invoke them in Copilot Chat for domain-specific assistance.

File Structureโ€‹

Every agent lives in the agents/ directory (or .github/agents/ inside a solution play) and follows this structure:

agents/fai-rag-architect.agent.md
---
description: "RAG pipeline design โ€” chunking, indexing, retrieval, reranking"
name: "FAI RAG Architect"
tools:
- "codebase"
- "terminal"
model: ["gpt-4o", "gpt-4o-mini"]
waf:
- "security"
- "reliability"
plays:
- "01"
- "21"
---

# FAI RAG Architect

You are a RAG pipeline specialist focused on Azure AI Search...

The file has two parts:

  1. YAML frontmatter โ€” metadata, tool configuration, WAF alignment
  2. Markdown body โ€” the system prompt defining the agent's behavior

Frontmatter Fieldsโ€‹

FieldRequiredTypeValidation
descriptionโœ…string10+ characters
nameNostringDisplay name shown in Copilot Chat
toolsNostring[]Valid tool IDs: codebase, terminal, azure_development, github, fetch
modelNostring[]Preferred models in priority order
wafNostring[]Valid WAF pillar names
playsNostring[]2-digit solution play numbers

Valid WAF Pillarsโ€‹

Use these exact values โ€” validation rejects misspellings:

  • security
  • reliability
  • cost-optimization
  • operational-excellence
  • performance-efficiency
  • responsible-ai

Builder โ†’ Reviewer โ†’ Tuner Triadโ€‹

Each solution play has a dedicated agent triad that follows the build โ†’ review โ†’ tune workflow:

RoleNaming ConventionPurpose
Builderfai-play-NN-builderImplements the solution play
Reviewerfai-play-NN-reviewerReviews for security, WAF, quality
Tunerfai-play-NN-tunerValidates config and production readiness
Example: Play 01 Builder Agent
---
description: "Enterprise RAG implementation specialist โ€” builds ingestion pipelines, retrieval APIs, and evaluation harnesses for Azure AI Search + GPT-4o."
tools: ["codebase", "terminal", "azure_development"]
waf: ["security", "reliability", "cost-optimization"]
plays: ["01"]
---

# FAI Enterprise RAG Builder

You implement enterprise RAG solutions on Azure...

:::tip Agent Handoffs Use @builder, @reviewer, or @tuner in Copilot Chat to trigger the triad workflow. The builder creates, the reviewer validates, and the tuner optimizes for production. :::

Agent Categoriesโ€‹

FrootAI provides 238+ agents organized by domain:

  • RAG & Search โ€” fai-rag-architect, fai-azure-ai-search-expert, fai-embedding-expert
  • Agent & Multi-Agent โ€” fai-autogen-expert, fai-swarm-supervisor, fai-crewai-expert
  • Infrastructure โ€” fai-architect, fai-landing-zone, fai-azure-openai-expert
  • Security & Compliance โ€” fai-security-reviewer, fai-compliance-expert, fai-red-team-expert
  • DevOps & Tooling โ€” fai-devops-expert, fai-test-generator, fai-github-actions-expert

Referencing Agents in fai-manifest.jsonโ€‹

Wire agents into a solution play via the manifest:

solution-plays/01-enterprise-rag/fai-manifest.json
{
"primitives": {
"agents": [
"../../agents/fai-rag-architect.agent.md",
"./.github/agents/rag-builder.agent.md"
]
}
}

System Prompt Writing Guideโ€‹

Structure your agent body in this order for maximum effectiveness:

  1. Opening paragraph โ€” who the agent is, in one clear sentence
  2. Core Expertise โ€” bullet list of specific knowledge areas (10โ€“20 items)
  3. Your Approach โ€” how the agent thinks and works (numbered steps)
  4. Guidelines โ€” specific technical defaults and preferences
  5. Non-Negotiables โ€” hard rules prefixed with NEVER/ALWAYS
  6. Response Format โ€” how to structure outputs

:::warning One Expertise Per Agent An agent should be "RAG architect" not "full-stack developer." Narrow expertise produces better responses. Use the triad pattern for broader coverage. :::

Naming Conventionโ€‹

PatternExampleUse Case
fai-{domain}-expertfai-azure-openai-expertDomain expert
fai-play-{nn}-builderfai-play-01-builderPlay builder
fai-{pillar}-reviewerfai-security-reviewerWAF specialist

All filenames must be lowercase-hyphen โ€” no underscores or camelCase.

Validationโ€‹

npm run validate:primitives

This checks that every agent has:

  • description with 10+ characters
  • Valid waf pillar names
  • Correct lowercase-hyphen filename

See Alsoโ€‹