Local-First Agent Platform · Zero-Model Core
Separate work.
One clear review.
Run autonomous coding agents in isolated Git worktrees, account for real-time token economics, and proxy LLM traffic through a local zero-telemetry gateway. Catch collisions before you merge.
src/auth.ts has concurrent changes from api and auth.Inspect collision evidence →
One cohesive platform for multi-agent engineering.
Switchyard provides deterministic isolation, economic visibility, and local routing without relying on external agent clouds or proprietary control planes.
Spawn dedicated Git worktrees for concurrent agents. Check tree-diff intersections to catch collisions before merging.
# Spawn an isolated worktree with auto-injected gateway config
$ fleet spawn api --gateway
✓ Created worktree at .fleet/agents/api
✓ Checked out new branch fleet/api from main
✓ Provisioned isolated .env.fleet (OPENAI_BASE_URL=http://localhost:52425/v1)
# Compute index-tree collision evidence across all active worktrees
$ fleet check
[collision-engine] Scanning 3 active worktrees...
• fleet/api : 4 files modified (2 clean, 2 shared)
• fleet/auth : 3 files modified (1 clean, 2 shared)
• fleet/docs : 5 files modified (5 clean, 0 shared)
WARNING: Overlapping modifications detected on src/server.ts and src/types.ts
Run fleet diff --agent api to inspect exact conflicting hunk boundaries.
Architected for production agent workflows.
Three specialized tools designed to work in concert without cloud lock-in.
Fleet Worktree Engine
Spawns isolated Git worktrees backed by atomic locks. Calculates index-tree diff intersections so you see exact file and line collisions before running a merge.
Context Economics
Calculates true token expenditure across Anthropic, OpenAI, Gemini, and DeepSeek. Accurately factors prompt cache write penalties, read discounts, and context bloat.
Gateway & Studio
Local reverse proxy at 127.0.0.1:52425 exposing OpenAI-compatible completions. Auto-provisions worktree credentials and maintains an immutable audit trail.
How Switchyard coordinates agent execution.
A deterministic pipeline keeping agent operations sandboxed, observable, and ready for human review.
Spawn Worktrees
fleet spawn <name> generates a linked Git worktree under .fleet/agents/ and checks out a private branch.
.fleet/agents/api
Route & Audit
Worktree agent invokes localhost:52425/v1. Fleet Gateway proxies completions directly to your provider and records costs.
.fleet/audit.jsonl
Collision Check
fleet check calculates index-tree diff intersections across all active worktrees to detect concurrent file overlaps.
fleet check --json
Gate & Merge
fleet validate executes your repo test suites. fleet merge lands verified, collision-free code into main.
fleet merge api
From separate work
to a shared review.
Open the interactive review tool or export your existing CLI reports. The browser reads them locally and helps you prepare a deliberate handoff.
Try the review viewer →-
01
Inspect the evidence
See agent changes, shared files, token bills, and validation states.
-
02
Verify collision states
Inspect blockers and run local commands that safely resolve overlapping diffs.
-
03
Prepare a handoff
Select agents, review cost impact, and download an executable integration plan.
Start in your repository.
The CLI runs locally. The report viewer reads JSON in your browser and never executes commands. It does not connect to third-party tracking servers or upload your code.
Read the complete documentation portal →npm install -g @switchyardhq/switchyard contextbill
# Inside an existing Git repository:
fleet init
fleet gateway --port 52425 &
fleet spawn api --gateway
fleet spawn auth --gateway
fleet check
fleet dashboard --once