code60-transmission-server

v0.2.0
code60-transmission-server Checked 3 days ago Published 8 days ago

Run user-approved workflows with independent coding agents over ACP.

Transmission runs an approved coding workflow in an existing Git project. The calling assistant designs the tasks and asks you to confirm them. Each task gets a fresh worker. A separate verifier inspects the project, runs checks, and returns a verdict. Rejected work goes back to the same worker with the verifier’s feedback. On macOS with Node 24.22 or later in the 24.x series, add this stdio MCP server to your assistant. Sign in to Codex once using your usual Codex login. For an unpublished candidate, install the tarball and run code60 mcp-config for the exact local server entry.

Summary extracted from the README.

Transmission

Transmission runs an approved coding workflow in an existing Git project. The calling assistant designs the tasks and asks you to confirm them. Each task gets a fresh worker. A separate verifier inspects the project, runs checks, and returns a verdict. Rejected work goes back to the same worker with the verifier’s feedback.

Connect your assistant

On macOS with Node 24.22 or later in the 24.x series, add this stdio MCP server to your assistant. Sign in to Codex once using your usual Codex login.

{
  "mcpServers": {
    "transmission": {
      "command": "npx",
      "args": ["-y", "code60-transmission-server", "mcp"]
    }
  }
}

For an unpublished candidate, install the tarball and run code60 mcp-config for the exact local server entry. A first connection starts the local engine. Describe the outcome you want, review the caller’s proposed tasks and verification criteria, and confirm the workflow.

Execution

The MCP caller sends the approved workflow to start_workflow. Project paths are absolute. The caller can load the same input from a saved JSON definition.

{
  "repository": "/absolute/path/to/project",
  "confirmed": true,
  "idempotencyKey": "my-project-duration-parser-1",
  "tasks": [{
    "name": "Repair duration parsing",
    "instructions": "Reproduce the fractional-duration bug, fix the parser, and add regression coverage.",
    "verify": "Exercise positive and negative fractional durations against the public API. Explain the observed behavior.",
    "checks": ["npm test"]
  }]
}

The engine uses a single ACP client implementation and the maintained @agentclientprotocol/codex-acp package, which includes a compatible Codex executable. Codex owns development tools, configuration, authentication, filesystem access and command execution. The project folder is the session working directory. The ACP adapter supports normal Codex configuration and the optional CODEX_PATH override. Transmission advertises no client terminal or filesystem services.

Each worker submission is tied to a Git tree snapshot. Workers receive the task instructions and requested commands. Verifiers receive the independent verification prompt and the candidate summary in a separate session. Put shared requirements in the task instructions. Optional explicit checks run in the verifier’s harness and their reported results are included in the verdict. Acceptance requires a valid affirmative verdict on the same source tree. A verifier can tell the original worker exactly what to repair. By default a worker gets two repairs before replacement and a task gets two fresh-session retries. The workflow can override repairs and retries.

The initial worktree, including existing staged, unstaged and nonignored untracked source, is the diff baseline. Transmission uses a disposable index and private Git objects. Ordinary results remain uncommitted. Use one active workflow per checkout and avoid simultaneous external source edits if you need attribution of the final patch.

Decisions, results and recovery

Status What the caller receives
running Current task and role
needs_input A decision with a question ID and, for a permission request, the choices offered by the harness
completed The result, verifier verdict, and ordered accepted task records
failed The reason and attempt history
cancelled Confirmation and the accepted tasks so far

The MCP tools include status, paginated events, the paginated accepted diff, answering questions, steering and cancellation. autoApprove defaults to true and selects a one-time allowance when the harness offers one. Set it to false to receive those decisions yourself. Requirements and scope questions always go to the caller. The harness enforces its effective permissions.

The engine stays up when the MCP client disconnects. Approved tasks, questions, verdicts, and attempts are stored in SQLite. On restart, the engine continues with the first unfinished task and retains partial working-tree changes. Restarting the engine preserves the task’s retry allowance. A lost harness consumes a fresh-session retry. Completed tasks stay accepted. Cancellation leaves the files available for review.

Private state defaults to ~/Library/Application Support/Code60 Transmission/workflows. The first ordinary connection registers a per-user LaunchAgent to restart the engine at login. Keep Node and the installed package available at their original paths for login restart. Credentials supplied only through transient shell environment variables need to be available again after login. For an isolated engine, set TRANSMISSION_STATE_DIR to a new absolute directory. Isolated engines skip login registration. Use code60 status and code60 stop with the same state directory.

Development and validation

Run npm ci, npm run typecheck, and npm test. The HTTP contract is generated from the same schemas used by MCP and the engine. Run npm run contracts:check after changing the interface.

For the installed-package live test, run npm pack followed by npm run acceptance:installed -- /absolute/path/to/candidate.tgz /absolute/path/to/new-evidence-directory. This uses the normal Codex login and real model calls. It installs the package, clones a pinned upstream repository, and exercises rejection, same-session repair, fresh verification, and a second task over MCP. Pass --agent-caller to have a real Codex caller design the workflow and submit it over MCP after the test supplies confirmation. The default caller uses the MCP SDK. An independent grader runs the upstream suite and additional public-API assertions and checks the dirty baseline, index and HEAD. The script saves the report, diff, events and uncommitted checkout, then stops the isolated engine.

See project intent and the HTTP contract.