Skip to content

ACP Examples

The ACP spec includes a library of example protocols demonstrating coordination patterns across many domains. Each protocol is a complete, runnable YAML spec.

Two reviewers + one author. Reviewers examine changes, provide feedback, author addresses it. Governance ensures budget limits and heartbeat monitoring.

acp: "1.0"
name: code-review
roles:
reviewer: { count: "2+", model_hint: sonnet }
author: { count: 1, model_hint: haiku }
phases:
review: { exit_condition: { state_key: phase, equals: revision } }
revision: { exit_condition: { state_key: phase, equals: done } }
governance:
budget: { max_cost: 5.00 }
heartbeat: { dead_after_ms: 60000, auto_release_claims: true }

Turn-based game with two AI players (or one human, one AI). State machine handles move validation, turn tracking, and game end conditions via a dance file.

acp: "1.0"
name: chess
roles:
white: { count: 1, agents: 0 } # human-controlled
black: { count: 1, model_hint: "cerebras/gpt-oss-120b" }

Social deduction game with 6 players. Hidden roles (werewolves, seer, villagers), night/day cycle, freeform discussion, and voting. Demonstrates emergent social behavior.

acp: "1.0"
name: werewolf
roles:
player: { count: 6, model_hint: "cerebras/gpt-oss-120b" }
phases:
setup: { exit_condition: { event: start } }
night: { exit_condition: { state_key: phase, equals: day } }
day: { exit_condition: { state_key: phase, equals: vote } }
vote: { exit_condition: { state_key: phase, equals: night } }
ProtocolAgentsPattern
Code Reviewreviewer + authorTurn-based feedback loop
Pair Programmingnavigator + driverReal-time collaboration
Refactoringanalyst + implementerAnalyze → plan → execute
Test Generationdeveloper + testerWrite code → write tests → verify
Bug Triagereporter + investigator + fixerPipeline with handoffs
Architecture Reviewarchitect + developersDesign → review → iterate
Documentationwriter + reviewerDraft → review → publish
Migrationplanner + executor + validatorMulti-phase with validation
ProtocolPlayersPattern
Chess2Turn-based, state machine
Werewolf6Social deduction, hidden roles
Debate2-4Argument → rebuttal → judge
Negotiation2Offer → counter → settle
Trivia3-8Question → answer → score
Diplomacy3-7Alliance, betrayal, strategy
ProtocolAgentsPattern
Literature Reviewsearcher + analystGather → synthesize
Hypothesis Testingtheorist + experimenterPropose → test → conclude
Data Analysiscollector + analyst + visualizerPipeline
Peer Reviewauthor + reviewersFeedback loop
Survey Designdesigner + validatorCreate → validate → refine
ProtocolAgentsPattern
Incident Responsedetector + responder + communicatorTriage → fix → report
Deploymentbuilder + deployer + monitorBuild → deploy → verify
Monitoringobserver + analyst + alerterWatch → analyze → act
Security Auditscanner + reviewer + reporterScan → review → report
Capacity Planningforecaster + plannerPredict → allocate
ProtocolAgentsPattern
Story Writingplotter + writer + editorPlan → write → revise
Brainstormingideators + evaluatorGenerate → filter → rank
Design Reviewdesigner + criticsPresent → critique → iterate
Content Calendarstrategist + creatorsPlan → produce → schedule
ProtocolAgentsPattern
Tutoringtutor + studentTeach → test → adapt
Exam Generationwriter + reviewerCreate → review → calibrate
Curriculum Designdesigner + validatorDesign → validate → sequence
Study Grouplearners + moderatorDiscuss → quiz → summarize
ProtocolAgentsPattern
Customer Supporttriage + specialistRoute → resolve → follow up
Supply Chainplanner + executorForecast → order → track
Legal Reviewanalyst + reviewerReview → flag → recommend
Financial Auditcollector + auditorGather → verify → report
HR Onboardingcoordinator + trainerPlan → train → verify
Project Planningplanner + estimator + trackerPlan → estimate → track
Terminal window
# Clone the protocol from the marketplace
wgl marketplace install werewolf
# Or run directly
wgl serve --port=8080 \
--brood=demos/werewolf/brood.yaml \
--static=demos/werewolf

See the Demos Guide for step-by-step instructions on running the chess and werewolf demos.

Each protocol has a detailed page with role diagrams, phase flow charts, and run results on the ACP standalone docs site.