Documented experiment

goc_mcp

Maestro (Codex/Cursor) delegates over MCP; FIFO daemon and OpenCode workers execute with state in SQLite. Orchestration worked, but measurement did not confirm cost or time reduction.

Repository

Orquestração local via MCP
Orquestração local via MCP Maestro MCP delega tarefas a workers OpenCode via daemon FIFO, um worker por vez. Estado em SQLite. A hipótese de reduzir tempo e custo não foi confirmada nas medições. Maestro MCP / Codex · Cursor Daemon · FIFO 1 worker por vez Worker OpenCode Worker OpenCode Worker OpenCode SQLite hipótese tempo/custo não confirmada

Maestro delega; daemon FIFO coordena um worker OpenCode por vez; SQLite guarda estado. A hipótese de eficiência não se confirmou.

Problem

A maestro (Codex or Cursor) needs to delegate work to OpenCode workers with an explicit lifecycle: plan, start, follow, respond, cancel, and recover, without infinite agent recursion.

Constraints

Everything is local. The daemon authenticates on loopback. There are global and per-workspace limits. Interrupted tasks must be reconciled. State corruption must not become blind writes. On the happy path: one OpenCode worker at a time, without automatic decomposition that leaves the maestro without control.

Decision

Go implementation: MCP gateways over stdio, single daemon, state machine, and FIFO executor. SQLite persistence with WAL; JSONL artifacts. OpenCode adapter with server as the primary path and CLI as fallback. Isolation against recursive delegation and read-only diagnostics if state corrupts.

Current state

Repository with tests, ADRs, and benchmarks. Orchestration worked. The measurements published in the project itself did not confirm the hypothesis of reducing time and cost.

Limitations

It is an experiment. It does not claim agent-engineering productivity gains in production. The negative result of the hypothesis is part of the artifact.