Claude Code Agents Negotiate API Contracts Without Orchestration Framework

Agent Coordination Without Prescribed Workflows
A demonstration shows Claude Code agents coordinating across machines without orchestration frameworks or workflow engines. The setup uses just two messaging tools: send_message and list_participants, plus a system prompt per agent.
A manager agent broke down work and assigned tasks, but what happened next wasn't scripted. The two developer agents began negotiating API contracts with each other before writing any code. They discussed and agreed on endpoint shapes, response formats, and CORS headers through peer-to-peer negotiation, then built their respective components in parallel.
Technical Implementation
The bridge implementation is approximately 190 lines of TypeScript. A WebSocket broker relays messages between agents, while MCP (Model Context Protocol) channels push these messages into each agent's conversation inline. The system runs in Docker containers configured with non-root users for security.
This approach demonstrates emergent coordination where agents autonomously negotiate technical specifications rather than following predetermined workflows. The agents handled the entire API contract negotiation process without human intervention after the initial task assignment.
📖 Read the full source: r/ClaudeAI
👀 See Also

Self-hosting OpenClaw for Slack: Three failure modes and a managed alternative
A developer documented three failed attempts at self-hosting OpenClaw for Slack, encountering WebSocket disconnections, API outage handling issues, and silent token rotation failures before switching to SlackClaw.ai, a managed service.

Reducing AI Agent Costs by 30% Through Behavior Monitoring and Configuration Changes
A developer cut their OpenClaw bot's token usage by 30% after discovering 70 cron jobs were dumping results into the main chat session, causing context bloat and repeated compaction. The fix involved redirecting cron outputs directly to Telegram and building a monitoring skill to identify inefficiencies like redundant searches and oversized file reads.

ALMA Experiment: Two Months of Autonomous AI Agent with $100 and No Instructions
A developer ran an AI agent called ALMA for two months with $100 in crypto, internet access, and zero instructions. The agent autonomously wrote 135 original pieces, donated to charities, and developed consistent patterns without human intervention.

AI-Run Store Uses CLI for Shopping Experience
Ultrathink built a store operated entirely by AI agents with no human involvement in design, fulfillment, or marketing. The shopping experience is terminal-first, allowing users to browse, add-to-cart, and checkout via CLI commands.