Skip to main content

Examples: Real-World connector.json

These examples show pipeline topology. For dialogue, meeting, mesh, and recursive team examples, see Use Cases, Bidirectional, Meeting Protocol, and N-to-N Topology.

Example 1: Sandboxed Research Session

Single session, sandboxed, no network. Safe exploration of untrusted code.

Example 2: Claude + Codex Code Review

Two LLMs review the same diff independently. Compare results.
Two workers run in parallel — Claude for security, Codex for performance. Each in its own worktree + sandbox. Results collected in scratchpad. Final synthesis by Claude.

Example 3: Cost-Optimized Feature Build

Research with cheap models. Implement with expensive ones. Verify with medium.
5 Haiku workers research in parallel (cheap). 1 Opus worker plans and implements (expensive, but only 2 phases). 3 Sonnet workers verify (medium). If Opus is unavailable, falls back to Gemini automatically.

Example 4: Cross-Machine Distributed Team

Workers on laptop and server, coordinated by a single connector.json.
Frontend work on laptop, backend work on server. Both coordinated by one connector.json. Scratchpad and mailbox sync across machines via gateway.

Example 5: Provider Failover

Primary is Claude. If Anthropic API is down, switch to Gemini. If that fails, use local LLM.
Tries Claude first. If unavailable, tries Gemini. Last resort: local Ollama. Work continues regardless of provider status.

Example 6: Nightly Dream (Auto Memory Consolidation)

Runs every 24 hours via daemon scheduler. Reads session history, consolidates memory.
Cheap model (Haiku) runs at 3 AM. Reads session history. Updates memory. AI maintains its own knowledge base automatically.

Running Examples