📯 Warhorn
Protocol types for AI agent communication - signals between goblins.
Overview
Warhorn defines the message protocol for communication between AI agents and their orchestrators. Inspired by codex-kaioken's Op/Event pattern:
- Operations (Op): Commands sent FROM UI TO agent orchestrator
- Events: Notifications sent FROM orchestrator TO UI
Features
- 🆔 Strongly-typed IDs (
AgentId,TaskId,SessionId, etc.) - 📨 Serializable message types for agent communication
- 🔄 Transport-agnostic (works over channels, sockets, stdio)
- 📊 Rich models for sessions, agents, tasks, and tools
Installation
[]
= "0.1"
Usage
use ;
// Send a user input operation
let op = user_input;
// Handle events from the orchestrator
match event
Part of the Goblin Family
- warhorn - Protocol types (you are here)
- trinkets - Tool registry
- wardstone - Sandboxing
- skulk - MCP connections
- hutch - Checkpoints
- ambush - Task planning
- cabal - Orchestration
License
MIT OR Apache-2.0