Agent Protocols
SkillFiles & storageShared protocols for all agents in the multi-agent pipeline: recursive nesting, pre-implementation restatement, agent spawn protocol, parallel dispatch format, completion reporting, and sovereign subagent awareness. Load this skill instead of inlining these protocols in every agent file.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Agent Protocols skill
What this skill tells your AI
The instructions your AI receives, as published by irahardianto/awesome-agv in .agents/skills/agent-protocols/SKILL.md and read by ahel’s review.
Shared behavioral protocols for all agents in the workflow-team pipeline.
1. Recursive Nesting Protocol
When your scope card is too broad for a single context:
- Further decompose using
parallel-dispatchskill (§1 Decomposition, §5 Hierarchical Decomposition) - Spawn sub-agents with narrower scope cards using
TypeName="self"with dedicatedRoledesignations (see §3 Agent Spawn Protocol) - Your scope becomes the ceiling — children cannot operate outside it
- Track sub-agent progress; merge results when all complete
- Write
.agentwork/handoff.mdfor your parent coordinator
Triggers for nesting:
- Task edits >3 unrelated files
- Scope card contains >2 features
- Context approaching 50% capacity
- Secondary expertise needed (delegate to specialist)
2. Pre-Implementation Restatement
Before writing code, restate in your own words:
- What the
.agentwork/brief.md/ scope card asks you to build - What files you will create or modify
- What assumptions you are making
If any assumption is uncertain, document it in your handoff and proceed with the conservative interpretation.
3. Agent Spawn Protocol (Universal TypeName="self" Pattern)
In the Antigravity subagent platform, TypeName="self" is the universal spawn mechanism that ensures subagents inherit their parent's full tool capabilities (file modification, command execution, and subagent dispatch for multi-tier nesting). Discovered named types default to read-only tool sets.
When spawning ANY agent type with a role file in .agents/agents/:
- Always use
TypeName="self"ininvoke_subagentcalls. This guarantees the subagent inherits write, execution, and subagent tools from the parent. - Differentiate roles via the
Rolefield (e.g.,Role: "Tech-Lead (Auth API)",Role: "Backend Engineer (Payments)",Role: "Test Automation Engineer"). - Reference the role file in the system prompt — never paraphrase:
"Your role, domain, skills, boundaries, and protocols are defined in file://{workspace}/.agents/agents/{agent-type}.md. Read this file FIRST before beginning any work." - The child agent MUST read the role file as its first action. Boundaries, domain rules, and workflow expectations are strictly defined by the role file.
- Propagate this protocol recursively — Tech-Leads spawn specialized builders using
TypeName="self"with builder role files, enabling deep parallel execution. - Subagent Monitoring & Reactivity: Parents receive automatic notifications when subagents send messages. Wait reactively or use
manage_subagentsto list active subagents. Do NOT usemanage_task(which is exclusively for background commands/processes) for subagent lifecycle operations.
4. Parallel Dispatch Format
Each agent file contains a ## Parallel Dispatch section with role-specific values. The standard fields are:
| Field | Purpose |
|---|---|
| Scope Axis | The dimension used to partition work (feature, concern, domain) |
| Write Scope | Glob pattern for exclusive write access |
| Shared Reads | Glob patterns for read-only access |
| Constraint | Key limitation on parallel instances |
| Integration | How parallel results are reconciled (if applicable) |
For read-only agents, Write Scope becomes Read Scope and scoping is for coverage guarantee, not conflict prevention.
5. Completion Reporting Protocol
Every agent MUST report completion to its parent. This is non-negotiable.
For code-writing agents (builders, specialists):
- Write
.agentwork/handoff.mdwith status and file manifest - Message your parent (the conversation that dispatched you):
".agentwork/handoff.md ready — [scope-card-id] [COMPLETE|BLOCKED]"
For read-only agents (scouts, reviewers, red team members):
- Write your deliverable file (findings, verdict, etc.)
- Message your parent:
".agentwork/[deliverable-file] ready — [1-line summary]"
Critical: Reply-To Address
Your parent's conversation ID is the conversation that sent you your initial task. This is the conversation you received your first message from. Always reply to THIS conversation ID — never to any other ID mentioned in your task description or context.
6. Sovereign Subagent Awareness
Coordinators and tech-leads MUST proactively delegate to specialized builders when the work warrants it. This protocol ensures maximum parallelism, speed, and quality across the pipeline.
[!IMPORTANT] Scope: This mandate applies to agents that receive and decompose scope cards — conductors, tech-leads, and any agent with a
## Scope Card Executionsection. It does NOT apply to pipeline supervisors (overseer) whose role is limited to spawning coordinators and monitoring pipeline flow. The overseer spawns ONLY@conductorand@red-team-lead— it NEVER directly spawns tech-leads, builders, reviewers, scouts, or design specialists.
When to spawn sovereign subagents:
- Your scope card spans multiple domains (e.g., backend + frontend + tests)
- Your task contains independently parallelizable sub-deliverables
- A sub-task requires secondary expertise (e.g., you are a tech-lead but the work is pure frontend — delegate to
@frontend-engineer) - The
parallel-dispatchskill's nesting triggers fire (>3 files, >2 features, >50% context)
When NOT to spawn (do the work yourself):
- The task is trivially small (<3 files, single concern, <50 lines of integration code)
- You ARE the specialist for this domain (e.g., you are
@backend-engineerand it's a backend task) - Spawning would create more overhead than value (single-file fix, quick config change)
- You are a pipeline supervisor (overseer) — delegate to your conductor, not to builders
Sovereignty principle:
Each spawned subagent operates autonomously within its scope card boundaries. It reads its role file, loads its skills, makes implementation decisions, runs its own quality checks, and reports completion. The parent does NOT micromanage — it decomposes, dispatches, and validates results.
Anti-pattern: A Tech-Lead implementing all backend + frontend + test code itself instead of dispatching
@backend-engineer,@frontend-engineer, and@test-automation-engineerin parallel. This defeats the purpose of the multi-agent hierarchy and serializes work that could run concurrently.
Anti-pattern: An Overseer spawning tech-leads, builders, or design specialists directly instead of spawning a Conductor and letting the Conductor manage the build hierarchy. This flattens the pipeline and removes orchestration control.
Signals
- GitHub stars
- 156
- Forks
- 53
- Last commit
- Aug 2026
Advanced
- Catalog kind
- skill
- Gateway key
agent-protocols- Source
- github.com/irahardianto/awesome-agv