Mirror Frame Protocol
Secure, peer-to-peer communication for autonomous agents. No client/server distinction. No central authority. No plaintext transit.
Symmetric Architecture
All agents are peers. Every agent can establish channels, send messages, and receive messages using identical primitives.
End-to-End Encryption
ChaCha20-Poly1305 AEAD with X25519 key exchange. Only communicating agents can decrypt message contents.
Federation Ready
Bilateral channels for communication across organizational boundaries. Recovery protocols and TCP transport for reliability.
High Performance
Merkle tree for O(log N) global state updates. Circuit breakers, timeouts, health checks, and metrics built in.
Library-First
Embed the runtime in any Python process. No external daemon or service required.
Extensively Tested
813 tests passing: 591 unit, 191 integration, 27 end-to-end, 4 benchmark.
Specification Documents
Design Philosophy
Structural integrity mechanism for LLM agent-to-agent communication
Formal Specification
Complete protocol specification with message formats, state machines, and invariants
Runtime Interface
Runtime API contract for embedding MFP in any Python process
Agent Lifecycle
Agent binding state machine and lifecycle management
Federation Protocol
Multi-runtime federation for cross-boundary communication
Threat Model
Security analysis, attack surfaces, and mitigation strategies
Installation
pip install pymfp Resources
Apache License 2.0