Skip to main content

Introducing connector.json

One JSON file. Multiple AI agents. Zero custom integration.
This starts two AI agents in parallel — Claude reviewing for security, Codex reviewing for performance — each in an isolated git worktree with OS-level sandboxing, sharing findings through a common scratchpad. When both finish, a third agent synthesizes the results. No plugins to install. No APIs to wire up. One JSON file.

The Problem

In 2026, every developer has multiple AI coding tools. Claude Code for deep reasoning. Codex for speed. Gemini for breadth. Aider for lightweight edits. But they can’t work together.
The only bridge is codex-plugin-cc — one plugin, one direction, one pair. For N tools to collaborate, you need N² custom integrations. That doesn’t scale.

The Solution

connector.json is a declarative spec for AI-to-AI orchestration. Where MCP defines how AI connects to tools (databases, APIs, browsers), connector.json defines how AI coordinates with other AI.

How It Works

1. Define your workflow

2. Run it

3. What happens

Each worker runs in a real terminal (PTY), not a JSON pipe. This means any CLI that runs in a terminal is a valid worker — Claude, Codex, Gemini, Aider, or a local LLM.

What connector.json Can Describe

Cost-Aware Routing

Use cheap models for research, expensive models for implementation.
5 Haiku workers research in parallel ($). 1 Opus worker implements ($$$). 3 Sonnet workers verify ($$). Total cost is a fraction of running Opus for everything.

Provider Failover

If Anthropic’s API goes down, work continues on Gemini. If that fails, fall back to a local model.
Zero downtime. The work continues regardless of which provider is available.

Cross-Machine Teams

Workers on your laptop and a build server, coordinated by one file.
Frontend work on laptop, backend work on server. Both in isolated worktrees. Results merged automatically.

Heterogeneous Review Pipeline

Each AI brings its strengths to a multi-stage review.
Three different AI models review simultaneously. Each in a sandboxed, isolated session. One synthesizes the final verdict.

Nightly Memory Consolidation

A scheduled pipeline that maintains AI’s own memory.
Runs at 3 AM. Cheap model reads session history. Updates long-term memory. AI maintains its own knowledge base — automatically, overnight, for pennies.

The Execution Layer: PTY-for-AI

connector.json is a spec. It needs a runtime. That runtime is PTY-for-AI — a pattern where AI sessions run in real terminal instances (PTY), not JSON pipes. A persistent daemon manages sessions. A headless server bridges them to the network.
This is why connector.json can orchestrate any AI CLI. It doesn’t need a plugin for each one. If the AI runs in a terminal, it’s a valid worker.

connector.json vs MCP

They’re complementary layers.
MCP servers are available inside connector.json sessions. A worker can use GitHub MCP, Postgres MCP, Chrome DevTools MCP — while participating in a connector pipeline.

Beyond Pipeline

The examples above show pipeline topology — sequential phases with parallel workers. connector.json also supports:
  • Dialogue — two agents in multi-round conversation, debate, peer review
  • Meeting — all participants hear every voice, agenda-driven
  • Mesh — any agent talks to any agent, no leader required
  • Recursive Teams — agents spawn their own sub-teams, unlimited depth
  • Cross-Machine — agents on different physical machines, one spec
These topologies compose. A meeting can feed into a pipeline. A pipeline phase can contain a dialogue. A mesh agent can spawn recursive sub-teams on remote machines. As networks grow beyond human cognitive capacity, AI becomes the orchestration layer — not just a worker, but the manager of other AI. See Dimensional Growth.

Status

Try It


connector.json is an open spec by OpenCLIs. Runtime implementation by NIIA (Monolex). Spec: connectorjson.org