DeltaRoute MCP Server
DeltaRoute is an MCP server that delegates and routes work across your installed AI subscription CLIs, with worker discovery, routing recommendations, workflow orchestration, result retrieval, and cancellation.
Discover workers/models with
list_workers, including optional measured usage counters and compact/full detail.Get routing recommendations with
recommend_routefor categories like coding, research, video analysis, planning, and review.Delegate tasks with
submit_task, using read-only or isolated Git worktree code modes, provider fallback, profiles, context, and short waits.Run heavy workflows with persistent contracts: steps, dependencies, allowed paths, acceptance checks, budgets, checkpoints, and review integration.
Analyze media and research through
media_optionsfor sampled video frames andresearch_scopefor bounded topic/region/time research.Collect results and token counters with
get_task, including compact/full output and optional waits.Cancel tasks with
cancel_taskwhile retaining job files and worktrees for inspection.Use Claude-first, benchmark-updated routing that hands off specialist work to providers when they are clearly better.
Routes quick coding, iteration, and large-context tasks to a configured Google CLI / Gemini worker.
Conducts cited web research through Perplexity via gstack, or falls back to original public sources.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DeltaRoute MCP Server route this refactor to Codex in a pinned worktree"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DeltaRoute (Δ)
DeltaRoute connects the AI subscriptions you already pay for, from Claude Code, any Claude chat (phone included) or ChatGPT, running on your own computer. Claude does most of the work; DeltaRoute hands off only what another model is clearly better at, judged by a registry that a weekly check of live benchmarks keeps current: live research to Perplexity, Grok and Muse, images and video to Nano Banana Pro, ChatGPT, Grok Imagine, Seedance or Veo, and code when a worker leads on benchmarks. Workers share a team board, ask each other for help, render their own stills, and are watched by disposable Grok monitors. Long jobs run as an Operation Plan the user approves first: routes with token budgets, agents and cheap sub-agents, a 0-100 Review (80 passes), a simulated review of the whole product and the user's final approval, all streamed to a live local dashboard. A capability registry gives each role to the best available model. See docs/ARCHITECTURE.md.

Windows is the supported installation target. The Node core also has portable tests; macOS/Linux native integrations require manual configuration and are not claimed as fully validated. Bring your own eligible subscriptions and official clients. The project supplies no accounts, provider binaries or API credits.
Install
Install Node.js 22+, Git, Python 3.11+, and the official Claude Code and/or Codex CLI. Install any additional provider clients you intend to use, then sign in through each client's normal account flow. Subscription eligibility and available models depend on the provider and account. Never copy someone else's credentials.
git clone https://github.com/olivergoldberg15-bit/DeltaRoute.git
cd DeltaRoute
powershell -NoProfile -ExecutionPolicy Bypass -File .\setup.ps1
npm testSetup creates a private local config.json, discovers compatible installed executables and leaves missing providers disabled. Review that file before enabling additional workers. config.example.json explains the configurable transports. There are no npm runtime dependencies to install.
Register the clients you use:
# Claude Code: global routing policy, prompt hook, MCP and repetitive subagent
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1 -AllowRouterTools
# Codex: global routing policy, native skill and MCP
powershell -NoProfile -ExecutionPolicy Bypass -File .\install-codex.ps1 -ManagedHeads
powershell -NoProfile -ExecutionPolicy Bypass -File .\doctor.ps1The switches opt into approval for the seven local router tools. They do not grant blanket shell/browser permissions or override explicit Codex denials. Without the switches, worker submission/cancellation use normal approvals; the Codex installer may approve its read-only router tools. Installers back up changed global files and refuse to overwrite an unrelated existing MCP registration. Keep this checkout at its installed path and restart the host to load changes.
See setup and providers for prerequisites, sign-in, research, video tools, optional skills, manual MCP setup and troubleshooting.
On Linux or macOS, node install-claude.mjs --allow-router-tools does what install.ps1 -AllowRouterTools does. DeltaRoute runs on your own computer by default. The optional always-on cloud server setup is in DeltaRoute in the cloud; nothing uses it unless you start it.
Related MCP server: Agent Harness Kit
Use it from chat
Claude Code runs DeltaRoute locally (installed below).
Claude chat on your phone or desktop, and ChatGPT: run
powershell -ExecutionPolicy Bypass -File .\connect.ps1 -AtLogon. It starts DeltaRoute's endpoint on this computer, opens a Tailscale Funnel and prints a secret connector link once. Add that link in Claude (Settings > Connectors > Add custom connector) or ChatGPT (Settings > Connectors, developer mode). Then ask "make me an image of a neon octopus with Nano Banana Pro" in any chat. It works while this computer is on.node signins.mjsshows which subscriptions are signed in (no model request);--smokethen runs one tiny real job per worker.
What routes where
Work | Default role |
Planning, creative direction, animation, review, integration, and any work Claude scores within 5 points of the best worker | Current Claude Code/Codex host |
Code a worker leads on (registry, from live benchmarks) | Codex, Gemini or Cursor |
Cited live web research | Perplexity, Grok and Muse through gstack (experimental: consumer sites), or original public sources |
Images and video |
|
Watching running workers | Disposable Grok monitors, Gemini Flash backup |
First look at rendered stills | Gemini Flash (advice only) |
Repetitive read-only work | Claude's native Haiku subagent, when available |
Animation, 3D, realism, context and verification | Relevant specialist instructions, loaded on demand |
These are editable starting specialties. Availability and capabilities filter the choices. Explicit checkpoint reviews build memory by exact model and task category; three reviews are required before bounded ranking adjustments apply. Pin explicit model IDs for version-specific comparisons; an account-default alias can change underneath its stored feedback. This is local feedback, not an independently proven model leaderboard.
recommend_route explains each choice, and submit_task with provider auto refuses work Claude keeps (naming a provider still sends it). The weekly benchmark check applies cited score changes on its own, at most 10 points per score, only from pages the research visited, and each change can be undone. Routing is a host policy and tool workflow, not an interceptor that guarantees every chat launches a worker.
Local CLI worker processes automatically receive a bounded context snapshot: applicable project/user instructions, up to two relevant installed skill entry points with excerpts (never skills the project's rules ban, like "No Higgsfield", nor deploy/publish skills), BRIEF.md, STORYBOARD.md, optional .deltaroute/context.md, recent jobs from the same project, known active worker PIDs, and existing output paths. Discovery checks project and user .agents/skills, .claude/skills, .codex/skills, and the local Codex plugin cache. Skill files do not prove a tool is available. Skills must exist on the machine running DeltaRoute; laptop-only files are not available to a cloud worker.
Each attempt saves worker-context.json (source paths, modification times, included-content hashes, truncation flags) and worker-context.md (the exact prompt addition). get_task reports these paths and a compact retrievedContext summary. Prompt context is capped at 12,000 characters; large sources and partial discovery are marked. Manual context and workflow contracts remain in force. Chat history is not automatically inherited. For durable project-specific handoffs, save the relevant decisions and artifact paths in .deltaroute/context.md.
Retrieval does not read credentials, raw prior prompts/answers, or other projects' jobs, follow skill-directory symlinks outside their roots, run skill scripts, or send this context to browser research/image services. Set contextRetrieval.enabled to false in local config.json to disable it.
Long work and recovery
Save the original prompt as a workflow with constraints, non-goals, dependencies, allowed paths and acceptance checks. Workers use pinned Git worktrees with the project's node_modules linked in, and every code attempt comes back as a patch that apply_patch applies without a commit; the scope audit reads only that patch. Time limits follow the wall clock (a sleeping laptop no longer stretches them) and warn the worker at 80% so it saves its progress. Creative phases use light plans approved in one call and revised with a one-line approval; big builds use full Operation Plans. Four external workers may run at once; heavy profiles allow bounded 30-minute attempts.
An external supervisor can replace a stopped Claude head with Codex, or vice versa, for a managed workflow. If both heads reach hard quotas, new work waits for verified recovery. Native app chats keep their own host.
.\DeltaRoute.ps1 -WorkflowId "<saved-workflow-UUID>" -BackgroundWorker outages, expired logins and quotas use finite fallbacks and cooldowns. Exhausted workers hand back to the current coordinator. Login challenges, unconfirmed process shutdown and unresolved approval needs preserve state and require attention. No system can guarantee availability when all accounts or services are unavailable. There is no paid API fallback or quota bypass.
Details: heavy workflows, MCP examples, architecture, editable chart.
Video, social evidence and quality
Video URL analysis extracts actual sampled frames with local yt-dlp/FFmpeg and attaches them to a configured vision-capable Codex worker. Default coverage is eight frames from the first 60 seconds. Longer videos use explicit bounded windows. Native captions are retained; missing audio remains unverified.
Social research retains original URLs, publication/retrieval times and available metrics. Missing dates/counts remain unknown. A few posts do not establish a platform-wide trend. Grok through Cursor does not establish privileged live X access. Browser pages and public extraction can change or require login.
Specialist guidance covers Three.js, Blender, Remotion, creative work, context efficiency and verification. Licensing, pinned sources and installation are documented in third-party notices and the skill manifest. Some upstream collections have no redistribution license and are not bundled; the notices explain the optional explicit download path. Skills do not install a renderer, prove photorealism or automatically authorize cloud uploads and purchases.
Tests, speed and cost
npm test
npm run test:process
npm run test:install
npm run usage
npm run savings
npm run skills:verifyThe default tests use local fixtures without provider calls or account resets. Process fault tests require Windows and Git; see test and benchmark instructions.
One historical matched log experiment reduced Claude logical input from 89,908 to 9,489 tokens. Tiny forced delegation used substantially more context than direct work. A separate managed head/worker fixture took 40.252 seconds. These are observations from individual trials, not universal speed or savings claims. Cached reads are a subset of input; browser counters may be unavailable. Fixed monthly subscription bills remain unchanged. npm run savings writes state/savings.html: the share of fresh tokens that ran off your Claude plan, counting Claude's own tokens from Claude Code's transcripts, per project. See verification and measurement limits.
Project files
server.mjs: seven MCP tools and bounded worker adapters.media.mjs,image-jobs.mjs:generate_mediaand Higgsfield/Codex/Grok image and video jobs.board.mjs,monitor.mjs,pre-review.mjs,render-stills.mjs: the team board, Grok monitors, the Flash still check and stills for workers.deadline.mjs,patches.mjs: wall-clock limits and commit-free integration.benchmark-news.mjs,registry.mjs: the weekly benchmark check and Claude-first routing.remote-mcp.mjs,connect.ps1: the endpoint for Claude and ChatGPT chats, with secret connector links.coordinator-usage.mjs,signins.mjs,templates/: Claude's own token count, sign-in checks and job templates.workflows.mjs: original contract, dependency gates and scope audits.coordinator-supervisor.mjs: external managed-head lifecycle.coordinator-state.mjs,account-limits.mjs: observed quota state and native readiness.routing-memory.mjs: explicit reviewed task-fit feedback.media-evidence.mjs,browser.mjs: sampled video and sourced research.telemetry.mjs,usage-report.mjs: native counters, compact results and retained attempts.deltaroute-skill/: host instructions and on-demand references.
Original DeltaRoute code is MIT licensed. Third-party materials retain their own licenses. Local account data, prompts, caches and session logs are excluded from the release; see SECURITY.md.
Available Tools
5 toolscancel_taskA
Cancel a queued or running delegated task and its child process. Keep job files and worktree for inspection.
Inputs: task_id (required).
get_taskB
Collect compact results and real token counters when exposed. wait_seconds up to 45 avoids repeated polling. Full prompts/research packet stay in artifacts; detail=full retrieves them only when needed. Truncated answers are labeled.
Inputs: detail, task_id, workflow_id, wait_seconds.
list_workersC
Compact worker/model availability. include_usage adds measured worker counters (not coordinator/browser totals); optional since ISO timestamp scopes them. Historical success does not guarantee current login/quota. Full paths/config only when detail=full.
Inputs: since, detail, include_usage.
recommend_routeB
Suggest a provider using editable task-fit heuristics. The coordinator chooses based on actual capabilities, context, previous outcomes and explicit user requests.
Inputs: category (required), task.
submit_taskB
Delegate a task or manage a heavy workflow: create_workflow, run_step, checkpoint. See the DeltaRoute heavy-workflows reference. Heavy profiles allow bounded 30-minute attempts. Workflow code requires scoped paths and reviewed dependencies. Optional wait_seconds (up to 45) collects short jobs in one call. Default read-only; code jobs use isolated clean Git worktrees. Returns compact status/result and full artifact path, never echoes the prompt. Automatic bounded provider fallback; no paid API fallback.
Inputs: cwd, mode, task, action, +14 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
list_workers and recommend_route are related but distinguishable (availability vs routing advice). submit_task, get_task, and cancel_task form a clear task lifecycle, though submit_task also bundles heavy-workflow subcommands, slightly blurring its scope.
All tool names follow a consistent snake_case verb_noun pattern: list_workers, recommend_route, submit_task, get_task, cancel_task. The convention is predictable and easy to scan.
Five tools cleanly cover worker listing, route recommendation, and task submit/get/cancel. The count is well-scoped with no obvious bloat or missing essential standalone operations.
The core delegation lifecycle is covered: discover workers, get a route recommendation, submit, retrieve, and cancel tasks. Minor gaps include no list_tasks/status browsing and heavy workflow operations folded into submit_task rather than exposed separately.
Maintenance
Related MCP Connectors
Shared long-term memory & Stop-hook task handoff across Claude Code, Codex, Cursor, and mobile.
AI work orchestration for plans, tasks, teams, and coding-agent dispatch.
Shared task queue for humans and AI agents: leases, handoffs, approvals and signed receipts.
AI that does the work and checks it. EU-hosted gateway: memory, the codai router, opt-in toolsets.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI coding providers to run structured multi-agent workflows with document specifications, tracked tasks, handoffs, and server-owned health evidence. It coordinates task claims, repairs, reviews, and completion gates across Claude Code, Codex CLI, Cursor, Grok Build, and OpenCode.29 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding providers to run structured multi-agent workflows, manage specs and tracked tasks, record handoffs, and enforce health-gated completion evidence.29 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding providers to run structured multi-agent workflows with document specifications, tracked tasks, audited handoffs, and server-owned health gates.29 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding providers to run structured multi-agent workflows with tracked tasks, document specifications, handoffs, health gates, and server-owned evidence across providers like Claude Code, Codex CLI, Cursor, Grok Build, and OpenCode.29 npmMIT