# Switchyard

> A local plugin runtime exploring shared checks, editor feedback, and project context across coding-agent tools.
>
> The Markdown version of https://imminentlatency.com/projects/switchyard. For an index of the whole site, see https://imminentlatency.com/llms.txt.

A common place for coding agents to check their work. Switchyard is an early Rust prototype for carrying project knowledge and development checks across different agent tools.

- **Status:** Early prototype
- **Role:** Designer & developer
- **Stack:** Rust, MCP, LSP, Tree-sitter
- **Started:** Around May 2026
- **Platform:** Local CLI & editor integration
- **License:** MIT

## Overview

Doctrack gave me a way to keep project knowledge between sessions. Switchyard asks what else should carry over when I change coding-agent tools: the checks a project expects, the feedback an agent receives, and a record of what happened.

I'm building a local runtime where plugins respond to development events and return advice or requirements. The runtime owns how those responses are handled; plugins focus on their own domain. Doctrack is the first plugin, giving the design a real code-and-documentation workflow to work against.

The prototype includes plugin dispatch, tool routing, file watching, an editor language-server bridge, and a command-line commit gate. The gate can turn an unresolved documentation reference into a blocking decision with an explanation. That is a first step toward making project rules executable across agent workflows.

Switchyard is still early. The broader design puts an MCP proxy between agents and their tools, with adapters for different hosts. That proxy and general execution enforcement remain unfinished, so consistent enforcement across hosts is the direction of the project, not a capability I can claim today.

## Key features

### One plugin contract

Plugins receive lifecycle events and contribute tools and checks through a small Rust interface, separate from the runtime's internal implementation.

### A concrete commit check

The prototype's commit gate can block when Doctrack reports unresolved documentation references, with reasons attached to the decision.

### Feedback in the editor

A language-server bridge brings plugin diagnostics, hover information, and definitions into the editor and refreshes affected notes when files change.
